* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --bg: #0f1115;
    /* Gunmetal grey/black, less 'software' purple */
    --surface: #171a1f;
    --accent: #ff4d4d;
    /* Brightened for Accessibility */
    --text: #e2e8f0;
    --text-muted: #cbd5e1;
    --border: #2d333d;
    --border-bright: #3d4652;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Texture - Keeping a very subtle grain for a 'paper/metal' feel */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)"/%3E%3C/svg%3E');
    opacity: 0.02;
    pointer-events: none;
    z-index: 9999;
}

.container {
    max-width: 1000px;
    /* Tighter container for focus */
    margin: 0 auto;
    padding: 0 2rem;
}

/* Nav - Leaner, sharper */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(15, 17, 21, 0.95);
    border-bottom: 1px solid var(--border);
}

nav .container {
    height: 80px;
    /* Bumping up for a more substantial nav */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
    width: 48px;
    aspect-ratio: 1/1;
    object-fit: contain;
    filter: brightness(1.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.15s;
}

.nav-links a:hover {
    color: var(--text);
}

.btn-nav {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

/* Hero - No glows, just grid and type */
.hero {
    padding: 140px 0 80px;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 700;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.05rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    /* Sharper corners */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-1px);
}

.btn-secondary {
    border: 1px solid var(--border-bright);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--border);
}

/* Stats Grid - Strict, technical */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Who I Help */
 .who {
    padding: 90px 0;
 }

 .who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
 }

 .who-item {
    border: 1px solid var(--border);
    background: rgba(23, 26, 31, 0.35);
    padding: 1.25rem 1.25rem;
    font-weight: 700;
    color: var(--text);
 }

 .who-item:link,
 .who-item:visited {
    text-decoration: none;
 }

 .who-item:hover {
    background: rgba(23, 26, 31, 0.55);
    border-color: var(--border-bright);
 }

.stat-item {
    padding: 3rem 1rem;
    text-align: center;
    border-right: 1px solid var(--border);
    contain: content;
    /* Helps with CLS */
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-item p {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1rem;
}

/* Services - Simple cards, no hover lift slop */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    /* Line based grid */
    background: var(--border);
}

/* Results */
 .results {
    padding: 100px 0;
    background: #090a0c;
 }

 .results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
 }

 .results-card {
    border: 1px solid var(--border);
    background: var(--bg);
    padding: 2.5rem;
 }

 .results-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
 }

 .results-metric {
    border: 1px solid var(--border);
    background: rgba(23, 26, 31, 0.35);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
 }

 .results-shot {
    border: 1px solid var(--border);
    background: rgba(23, 26, 31, 0.35);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
 }

 .results-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
 }

 .results-shot video {
    width: 100%;
    height: 100%;
    object-fit: cover;
 }

/* Social Proof */
 .proof {
    padding: 100px 0;
 }

 .proof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
 }

 .proof-card {
    border: 1px solid var(--border);
    background: rgba(23, 26, 31, 0.35);
    padding: 2.5rem;
 }

.service-card {
    background: var(--bg);
    padding: 3.5rem 2.5rem;
}

.service-card i {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: block;
}

.service-card h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Comparison - Why HuddyDev? */
.comparison {
    padding: 100px 0;
    background: #090a0c;
}

/* Process */
 .process {
    padding: 100px 0;
 }

 .process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
 }

 .process-card {
    border: 1px solid var(--border);
    background: rgba(23, 26, 31, 0.35);
    padding: 2.5rem;
 }

.comp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-top: 4rem;
}

.comp-item {
    background: var(--bg);
    padding: 4rem;
}

.comp-item h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.comp-item.highlight h5 {
    color: var(--accent);
}

.comp-list {
    list-style: none;
    padding: 0;
}

.comp-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 1.1rem;
}

.comp-list li i.fa-circle-xmark {
    color: #522d2d;
}

.comp-list li i.fa-circle-check {
    color: var(--accent);
}

/* Pricing - Logical, no gradients */
.pricing {
    padding: 100px 0;
    background: #090a0c;
}

 .booking-badge {
    display: inline-block;
    border: 1px solid var(--border);
    background: rgba(23, 26, 31, 0.35);
    padding: 0.6rem 0.9rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
 }

/* FAQ */
 .faq {
    padding: 100px 0;
 }

 .faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
 }

 .faq-item {
    border: 1px solid var(--border);
    background: rgba(23, 26, 31, 0.35);
    padding: 2rem;
 }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.price-card {
    border: 1px solid var(--border);
    padding: 3rem;
    background: var(--bg);
}

.price-card.featured {
    border-color: var(--text-muted);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Lean shadow */
}

.price-amount {
    font-size: 3rem;
    font-weight: 900;
    margin: 1.5rem 0;
}

.price-amount span {
    font-size: 1rem;
    color: var(--text-muted);
}

.price-features {
    list-style: none;
    margin: 2rem 0;
}

.price-features li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-features li i {
    color: #4ade80;
    font-size: 0.8rem;
}

/* Contact Form - Dark but readable */
.contact {
    padding: 120px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 860px) {
    .results-grid {
        grid-template-columns: 1fr;
    }

    .proof-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.75rem;
    background: #171a1f;
    border: 1px solid var(--border-bright);
    color: var(--text);
    border-radius: 4px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--text);
    color: var(--bg);
    border: none;
    font-weight: 700;
    cursor: pointer;
}

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #22c55e;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.copyright {
    margin-top: 60px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Animations */
.reveal {
    opacity: 0;
    transition: opacity 0.6s ease-out;
    will-change: opacity;
}

.reveal.active {
    opacity: 1;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.fade-in {
    animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Enhancing Interactivity */
.service-card,
.price-card,
.stat-item {
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.service-card:hover,
.price-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.btn {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Form Success State */
.form-success {
    display: none;
    text-align: center;
    padding: 3rem;
    border: 1px solid var(--border);
    background: var(--surface);
}

.form-success i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.form-success p {
    color: var(--text-muted);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    nav .container {
        height: 70px;
    }

    .logo img {
        height: 36px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 2rem 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .price-card {
        padding: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}