/* ============================================
   Chatura AI — Website Styles
   Senior design-system pass (Sprint 094 refinement)
   Based on Brand Guidelines v1
   ============================================ */

/* --- Design Tokens --- */
:root {
    /* Brand color */
    --deep-navy: #0B1D20;
    --electric-blue: #0066FF;
    --cyan: #0D04FF;
    --violet: #8B5CF6;
    --white: #FFFFFF;
    --ice-white: #F8FAFC;
    --slate: #1E293B;
    --cool-gray: #64748B;
    --gradient-primary: linear-gradient(135deg, #0066FF, #0D04FF);
    --gradient-dark: linear-gradient(180deg, #0B1D20, #1E293B);

    /* Text-on-dark roles (tuned for AA contrast on navy) */
    --on-dark-strong: #FFFFFF;     /* headings */
    --on-dark-body: #C2CEDC;       /* body copy (~7:1 on navy) */
    --on-dark-muted: #94A3B8;      /* labels / captions (~4.7:1) */

    /* Content measure — one coherent system.
       --measure: prose column (~66ch) shared by heading + lead + body
       --measure-wide: centered hero/CTA copy
       --content-max: outer container */
    --content-max: 1120px;
    --measure: 46rem;        /* ~64–70ch of Inter at our body size */
    --measure-wide: 52rem;

    /* Spacing scale (8px base) */
    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 2.5rem;
    --space-7: 3.5rem;
    --space-8: 5rem;
    --space-9: 6.5rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Section rhythm */
    --section-pad: 6.5rem;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--white);
    background-color: var(--deep-navy);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

::selection { background: rgba(0, 102, 255, 0.28); color: #fff; }

:focus-visible {
    outline: 2px solid var(--electric-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Layout --- */
.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 24px;
}

.center-text { text-align: center; }

/* A centered section's prose should still be measured, not full-bleed */
.center-text .section-body,
.center-text .lead-text {
    margin-left: auto;
    margin-right: auto;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 22, 40, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 102, 255, 0.14);
}

.nav-container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    font-size: 19px;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex: 0 0 auto;
}

.nav-logo-img {
    height: 30px;
    width: auto;
    margin-right: 10px;
}

.nav-logo-accent {
    color: var(--electric-blue);
    font-weight: 600;
    margin-left: 0.3ch;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.nav-link:hover { color: var(--white); }

.nav-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--electric-blue);
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid rgba(0, 102, 255, 0.7);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--electric-blue);
    color: var(--white);
    border-color: var(--electric-blue);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn + .btn { margin-left: 12px; }

.btn-primary {
    background: var(--electric-blue);
    color: var(--white);
    border-color: var(--electric-blue);
}

.btn-primary:hover {
    background: #1E78FF;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 102, 255, 0.35);
}

.btn-large {
    font-size: 17px;
    padding: 16px 34px;
}

.btn-white {
    background: #fff;
    color: var(--electric-blue);
    border-color: #fff;
}

.btn-white:hover {
    background: #EAF1FF;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

/* Ghost button on light sections needs dark ink */
.section-light .btn-ghost {
    color: var(--electric-blue);
    border-color: rgba(0, 102, 255, 0.45);
}
.section-light .btn-ghost:hover {
    border-color: var(--electric-blue);
    background: rgba(0, 102, 255, 0.06);
}

/* --- Home Hero --- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 24px 96px;
    overflow: hidden;
}

.hero-container {
    max-width: 860px;
    position: relative;
    z-index: 2;
}

.hero-tagline {
    font-size: clamp(13px, 2.5vw, 15px);
    font-weight: 700;
    color: var(--electric-blue);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.hero-title {
    font-size: clamp(38px, 6vw, 66px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
    color: var(--white);
    text-wrap: balance;
}

.hero-subtitle {
    font-size: clamp(17px, 2.2vw, 20px);
    font-weight: 400;
    color: var(--on-dark-body);
    line-height: 1.6;
    margin: 0 auto 40px;
    max-width: 40rem;
    text-wrap: pretty;
}

.hero-gradient {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(820px, 110vw);
    height: min(820px, 110vw);
    background: radial-gradient(circle, rgba(0, 102, 255, 0.20) 0%, rgba(13, 4, 255, 0.07) 38%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* --- Sections --- */
.section {
    padding: var(--section-pad) 0;
}

.section-dark {
    background: var(--deep-navy);
    color: var(--white);
}

.section-light {
    background: var(--ice-white);
    color: var(--slate);
}

.section-gradient {
    background: linear-gradient(180deg, var(--deep-navy) 0%, #0F2440 100%);
    color: var(--white);
}

/* Hairline between consecutive dark sections for rhythm */
.section-dark + .section-dark { border-top: 1px solid rgba(255, 255, 255, 0.06); }

/* --- Eyebrow / label --- */
.eyebrow,
.page-eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--electric-blue);
    margin-bottom: 14px;
}
.section-dark .eyebrow,
.page-eyebrow { color: var(--cyan); }
.section-light .eyebrow { color: var(--electric-blue); }

/* --- Headings & prose (the shared measure) ---
   Headings, lead, and body all cap at --measure so a left-aligned
   heading never extends past the paragraph beneath it. */
.section-title {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    max-width: var(--measure);
    text-wrap: balance;
}

.section-title.dark-text { color: var(--deep-navy); }

.section-body {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    max-width: var(--measure);
    margin-bottom: 18px;
    text-wrap: pretty;
}
.section-body:last-child { margin-bottom: 0; }

.section-dark .section-body { color: var(--on-dark-body); }
.section-light .section-body { color: var(--cool-gray); }

.lead-text {
    font-size: 1.2rem;
    line-height: 1.65;
    color: var(--on-dark-body);
    max-width: var(--measure);
    text-wrap: pretty;
}
.section-light .lead-text { color: var(--slate); }

.accent-text {
    color: var(--electric-blue) !important;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Centered sections widen the measure slightly and center it */
.center-text .section-title { max-width: var(--measure-wide); margin-left: auto; margin-right: auto; }

/* --- Stat Highlight --- */
.stat-highlight {
    font-size: clamp(56px, 9vw, 92px);
    font-weight: 800;
    color: var(--electric-blue);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 14px;
}

/* --- Pillars (What We Do) --- */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 36px;
    margin-top: 56px;
}

.pillar {
    text-align: center;
    padding: 32px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.section-light .pillar:hover {
    border-color: #E2E8F0;
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.section-dark .pillar:hover {
    border-color: rgba(0, 102, 255, 0.3);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-3px);
}

.pillar-icon {
    margin-bottom: 22px;
    display: flex;
    justify-content: center;
}

.pillar-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 12px;
}
.section-dark .pillar-title { color: var(--white); }

.pillar-text {
    font-size: 1rem;
    color: var(--cool-gray);
    line-height: 1.6;
}
.section-dark .pillar-text { color: var(--on-dark-body); }

/* When pillars sit under a left-aligned heading/body, lift the measure cap */
.pillars { max-width: none; }

/* A centered action row following a grid/pillars block needs breathing room */
.pillars + .center-text,
.grid + .center-text,
.check-list + .center-text { margin-top: 48px; }

/* --- Footer --- */
.footer {
    background: #060E1A;
    padding: 56px 0 36px;
    border-top: 1px solid rgba(0, 102, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo-img { height: 26px; width: auto; }

.footer-tagline {
    font-size: 14px;
    color: var(--on-dark-muted);
    font-weight: 500;
}

.footer-contact a {
    font-size: 14px;
    color: var(--electric-blue);
    text-decoration: none;
}
.footer-contact a:hover { text-decoration: underline; }

.footer-bottom {
    border-top: 1px solid rgba(100, 116, 139, 0.2);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-sanskrit {
    font-size: 13px;
    color: var(--on-dark-muted);
    font-style: italic;
}

.footer-copyright {
    font-size: 13px;
    color: var(--on-dark-muted);
    line-height: 1.9;
}
.footer-copyright a {
    color: var(--on-dark-muted);
    text-decoration: none;
    transition: color 0.18s ease;
}
.footer-copyright a:hover { color: var(--electric-blue); }

/* ============================================
   Inner pages & expanded components
   ============================================ */

/* Inner-page hero */
.page-hero {
    padding: 168px 0 80px;
    text-align: center;
    position: relative;
    background: var(--gradient-dark);
    overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }

.page-hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 auto 20px;
    max-width: 20ch;
    text-wrap: balance;
}

.page-hero .lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--on-dark-body);
    max-width: 44rem;
    margin: 0 auto;
    text-wrap: pretty;
}

.page-hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(58% 80% at 50% 0%, rgba(0, 102, 255, 0.30), transparent 68%);
    z-index: 1;
    pointer-events: none;
}

/* Section helpers */
.section-narrow { max-width: var(--measure-wide); }

/* Card grid */
.grid {
    display: grid;
    gap: 24px;
    margin-top: 48px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 102, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
}
.section-light .card {
    background: #fff;
    border-color: #E6EBF2;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.section-light .card:hover {
    border-color: rgba(0, 102, 255, 0.4);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

/* Cards used as links */
a.card { text-decoration: none; color: inherit; }

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 255, 0.12);
    margin-bottom: 18px;
    font-size: 1.4rem;
    flex: 0 0 auto;
}
.section-light .card-icon { background: rgba(0, 102, 255, 0.08); }

.card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
    color: var(--white);
}
.section-light .card h3 { color: var(--deep-navy); }

.card p {
    color: var(--on-dark-body);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 0;
}
.card p + p { margin-top: 10px; }
.section-light .card p { color: var(--cool-gray); }

/* Push card links/lists to a consistent bottom alignment */
.card .check-list { margin-top: 16px; margin-bottom: 4px; }
.card > p:last-child { margin-top: auto; }
.card .accent-text { font-size: 0.98rem; }
.card .card-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--electric-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}
.card .card-link:hover { text-decoration: underline; }
.card .btn { margin-top: 18px; align-self: flex-start; }

/* Product module rows (alternating) */
.module {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.section-light .module { border-color: #E2E8F0; }
.module:first-of-type { border-top: none; padding-top: 8px; }

.module .module-visual {
    border-radius: var(--radius-lg);
    min-height: 260px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.4rem;
    color: #fff;
    box-shadow: 0 24px 50px rgba(0, 102, 255, 0.22);
}

.module-num {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--electric-blue);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.module h3 {
    font-size: clamp(1.5rem, 2.4vw, 1.8rem);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--deep-navy);
}
.section-dark .module h3 { color: var(--white); }

.module p {
    color: var(--cool-gray);
    margin-bottom: 12px;
    line-height: 1.65;
}
.section-dark .module p { color: var(--on-dark-body); }

.module ul { list-style: none; margin-top: 16px; }
.module ul li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 10px;
    color: var(--slate);
    line-height: 1.5;
}
.section-dark .module ul li { color: var(--on-dark-body); }
.module ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--electric-blue);
    font-weight: 700;
}

.module.reverse .module-text { order: 2; }
.module.reverse .module-visual { order: 1; }

/* Stat band */
.stat-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
    margin-top: 48px;
}
.stat-band .stat {
    padding: 24px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.section-light .stat-band .stat { border-color: #E2E8F0; background: #fff; }
.stat-band .stat .num {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--cyan);
    letter-spacing: -0.03em;
    line-height: 1;
}
.section-light .stat-band .stat .num { color: var(--electric-blue); }
.stat-band .stat .label {
    color: var(--on-dark-body);
    font-size: 0.92rem;
    margin-top: 10px;
    line-height: 1.4;
}
.section-light .stat-band .stat .label { color: var(--cool-gray); }

/* Steps (journey) */
.steps { counter-reset: step; margin-top: 40px; max-width: var(--measure-wide); }
.step {
    display: flex;
    gap: 22px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.step:last-child { border-bottom: none; }
.section-light .step { border-color: #E2E8F0; }
.step .step-num {
    flex: 0 0 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.28);
}
.step h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--white);
}
.section-light .step h4 { color: var(--deep-navy); }
.step p { color: var(--on-dark-body); line-height: 1.6; }
.section-light .step p { color: var(--cool-gray); }

/* CTA band */
.cta-band {
    text-align: center;
    padding: 84px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}
.cta-band h2 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    color: #fff;
    text-wrap: balance;
}
.cta-band p {
    color: rgba(255, 255, 255, 0.92);
    max-width: 40rem;
    margin: 0 auto 30px;
    font-size: 1.125rem;
    line-height: 1.6;
    text-wrap: pretty;
}
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.cta-band .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    max-width: var(--measure-wide);
}
.section-light .faq-item { border-color: #E2E8F0; }
.faq-item h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: var(--white); }
.section-light .faq-item h4 { color: var(--deep-navy); }
.faq-item p { color: var(--on-dark-body); line-height: 1.6; }
.section-light .faq-item p { color: var(--cool-gray); }

/* Value / checklist list */
.check-list { list-style: none; margin-top: 22px; max-width: var(--measure); }
.check-list li {
    padding-left: 32px;
    position: relative;
    margin-bottom: 14px;
    color: var(--on-dark-body);
    line-height: 1.6;
}
.section-light .check-list li { color: var(--slate); }
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.12);
    background-image: none;
}
.check-list li::after {
    content: "✓";
    position: absolute;
    left: 5px;
    top: 0.1em;
    color: var(--electric-blue);
    font-weight: 700;
    font-size: 0.8rem;
}
/* Lists inside cards stay compact */
.card .check-list li { margin-bottom: 8px; font-size: 0.95rem; }

/* Leadership / team (anonymized) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 44px;
}
.team-card {
    text-align: center;
    padding: 30px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.team-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-3px);
}
.section-light .team-card { border-color: #E2E8F0; }
.section-light .team-card:hover { background: #fff; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06); }
.team-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(0, 102, 255, 0.22);
}
.team-card .role { font-weight: 700; margin-bottom: 8px; color: var(--white); font-size: 1.02rem; }
.section-light .team-card .role { color: var(--deep-navy); }
.team-card p { color: var(--on-dark-body); font-size: 0.95rem; line-height: 1.55; }
.section-light .team-card p { color: var(--cool-gray); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    :root { --section-pad: 5rem; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .nav-container { flex-wrap: wrap; gap: 12px 18px; }
    .nav-links { gap: 14px 18px; width: 100%; justify-content: flex-start; }
    .nav-link { font-size: 0.9rem; }
    .nav-cta { padding: 7px 14px; }

    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stat-band { grid-template-columns: repeat(2, 1fr); }

    .module {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 44px 0;
    }
    .module .module-visual { min-height: 200px; order: 0 !important; }
    .module-text { order: 0 !important; }
    .module .module-visual { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    :root { --section-pad: 4rem; }

    .hero {
        min-height: auto;
        padding: 128px 20px 72px;
    }

    .footer-content { flex-direction: column; align-items: flex-start; }
    .footer-bottom { flex-direction: column; }

    .stat-highlight { font-size: 56px; }

    .btn + .btn { margin-left: 0; }

    .page-hero { padding: 132px 0 64px; }
}

@media (max-width: 560px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stat-band { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .pillars { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 480px) {
    .nav-container { padding: 12px 16px; }
    .nav-logo { font-size: 17px; }
    .container { padding: 0 18px; }
    .btn-large { font-size: 16px; padding: 14px 26px; }
    .stat-band { grid-template-columns: 1fr; }
}
