/* ==========================================================================
   ATLAS marketing site
   Grounded product style: neutral surfaces, operational accents, local assets.
   ========================================================================== */

/* ============== LOCAL FONTS ============== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/Inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/JetBrainsMono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #f6f8f8;
    --bg-2: #eef3f2;
    --surface: #ffffff;
    --surface-2: #f9fbfb;
    --ink: #17211f;
    --ink-2: #2c3836;
    --muted: #687574;
    --muted-2: #8b9896;
    --line: #dbe3e1;
    --line-strong: #bccbc8;
    --accent: #1f6f68;
    --accent-2: #315f96;
    --accent-3: #b15d38;
    --accent-soft: #d8ece8;
    --accent-warm-soft: #f4dfd4;
    --warn: #b7791f;
    --ok: #23724a;
    --danger: #b44949;
    --radius: 8px;
    --shadow: 0 18px 45px rgba(31, 52, 49, 0.12);
    --shadow-sm: 0 6px 20px rgba(31, 52, 49, 0.08);
    --maxw: 1180px;
    --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(31, 111, 104, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(49, 95, 150, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 62%);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 62%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0 0 .55em;
}
h1 {
    max-width: 760px;
    font-size: 3.55rem;
    overflow-wrap: anywhere;
}
h2 { font-size: 2.35rem; }
h3 { font-size: 1.16rem; }

p { margin: 0 0 1rem; }
code, pre { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

.muted { color: var(--muted); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
    border-left: 3px solid var(--accent);
    padding-left: .75rem;
    margin-bottom: 1rem;
}

/* ============== BUTTONS ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 42px;
    padding: .78rem 1.1rem;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    font: inherit;
    font-size: .94rem;
    font-weight: 700;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
    white-space: nowrap;
}
.btn--lg { min-height: 48px; padding: .9rem 1.25rem; font-size: 1rem; }
.btn--primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    color: #ffffff;
    background: #195f59;
}
.btn--ghost {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line-strong);
}
.btn--ghost:hover {
    background: #eef5f4;
    color: var(--ink);
    border-color: var(--accent);
}

/* ============== NAV ============== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 248, 248, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 1rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: .58rem;
    font-weight: 850;
    font-size: 1.03rem;
    letter-spacing: 0;
}
.brand__logo {
    display: inline-flex;
    color: var(--accent);
}
.brand__name { color: var(--ink); }

.nav__links {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    margin-left: auto;
}
.nav__links a {
    color: var(--muted);
    font-size: .94rem;
    font-weight: 650;
}
.nav__links a:hover { color: var(--ink); }
.nav__links .btn { padding: .52rem .85rem; min-height: 36px; }

.nav__toggle {
    display: flex;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    cursor: pointer;
}
.nav__toggle span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

@media (min-width: 1061px) {
    .nav__toggle { display: none; }
}

/* ============== HERO ============== */
.hero {
    position: relative;
    padding: 4.8rem 0 4.4rem;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(31, 111, 104, .10), transparent 34%),
        linear-gradient(305deg, rgba(177, 93, 56, .08), transparent 42%);
}
.hero::before {
    content: "";
    position: absolute;
    right: max(0px, calc((100vw - var(--maxw)) / 2 - 68px));
    top: 96px;
    width: 520px;
    height: 380px;
    border: 1px solid rgba(31, 111, 104, .13);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, 0) 62%),
        repeating-linear-gradient(135deg, rgba(49, 95, 150, .12) 0 1px, transparent 1px 28px);
    clip-path: polygon(11% 0, 100% 0, 89% 100%, 0 100%);
    transform: rotate(-2deg);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 7px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2) 45%, var(--accent-3));
    opacity: .75;
}
.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    gap: 4rem;
    align-items: center;
}
.hero__copy .lede {
    color: var(--muted);
    max-width: 650px;
    margin: 1.35rem 0 1.8rem;
    font-size: 1.08rem;
}
.hero__copy h1::after {
    content: "";
    display: block;
    width: min(190px, 46vw);
    height: 6px;
    margin-top: 1.1rem;
    border-radius: 999px;
    background:
        linear-gradient(90deg,
            var(--accent) 0 44%,
            transparent 44% 49%,
            var(--accent-2) 49% 74%,
            transparent 74% 79%,
            var(--accent-3) 79% 100%);
}
.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-bottom: 1.65rem;
}
.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    padding: 0;
    margin: 0;
    list-style: none;
}
.hero__chips li {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 34px;
    padding: .42rem .7rem;
    color: var(--ink-2);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: .88rem;
    font-weight: 650;
}
.hero__chips i {
    color: var(--accent);
    font-size: .98rem;
    line-height: 1;
}
.hero__visual { min-width: 0; }

/* ============== CONTEXT BOARD ============== */
.context-board {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(249, 251, 251, .98)),
        var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(31, 52, 49, .16), 0 2px 0 rgba(255, 255, 255, .9) inset;
}
.context-board::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-2), var(--accent-3));
}
.context-board::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(31, 111, 104, .11), transparent 28%),
        linear-gradient(290deg, rgba(177, 93, 56, .10), transparent 24%);
    pointer-events: none;
    mix-blend-mode: multiply;
}
.context-board__top,
.context-board__project,
.context-board__grid,
.context-board__flow {
    position: relative;
    z-index: 1;
    margin-left: 6px;
}
.context-board__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(216, 236, 232, .92), rgba(255, 255, 255, .5));
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: .78rem;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: .2rem .55rem;
    background: #edf6f4;
    border: 1px solid #c4dbd7;
    border-radius: 999px;
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    font-size: .76rem;
    font-weight: 750;
}
.context-board__project {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .1rem 1rem;
    padding: 1.15rem 1.1rem;
    border-bottom: 1px solid var(--line);
}
.context-board__project span {
    color: var(--muted);
    font-size: .84rem;
    font-weight: 700;
    text-transform: uppercase;
}
.context-board__project strong {
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
}
.context-board__project small {
    grid-column: 2;
    color: var(--muted);
    font-size: .86rem;
}
.context-board__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
}
.metric {
    min-width: 0;
    padding: 1rem .85rem;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, .58);
}
.metric:last-child { border-right: 0; }
.metric span {
    display: block;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.2;
}
.metric strong {
    display: block;
    margin-top: .35rem;
    color: var(--ink);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.35rem;
    line-height: 1;
}
.metric:nth-child(1) strong { color: var(--accent); }
.metric:nth-child(2) strong { color: var(--accent-2); }
.metric:nth-child(3) strong { color: var(--accent-3); }
.metric:nth-child(4) strong { color: var(--ok); }
.context-board__flow {
    display: flex;
    flex-direction: column;
}
.flow-row {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: .8rem;
    align-items: start;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
}
.flow-row:last-child { border-bottom: 0; }
.flow-row__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: linear-gradient(145deg, #ffffff, #eef6f5);
    color: var(--accent-2);
    border: 1px solid var(--line);
}
.flow-row:nth-child(2) .flow-row__icon {
    background: linear-gradient(145deg, #ffffff, #eef2f8);
    color: var(--accent-2);
}
.flow-row:nth-child(3) .flow-row__icon {
    background: linear-gradient(145deg, #ffffff, #fbf0ea);
    color: var(--accent-3);
}
.flow-row strong {
    display: block;
    color: var(--ink);
    font-size: .95rem;
    line-height: 1.25;
}
.flow-row span:not(.flow-row__icon) {
    display: block;
    margin-top: .22rem;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.45;
}

/* ============== TRUST BAR ============== */
.trust {
    padding: 2.35rem 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.trust__label {
    margin: 0 0 1rem;
    color: var(--muted);
    text-align: center;
    font-size: .8rem;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: uppercase;
}
.trust__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
}
.trust__row span {
    padding: .46rem .7rem;
    color: var(--ink-2);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 700;
}

/* ============== SECTIONS ============== */
.section { padding: 5.4rem 0; }
.section--alt {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-2) 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.section__hd {
    max-width: 740px;
    margin: 0 auto 3rem;
    text-align: center;
}
.section__hd .eyebrow {
    border-left: 0;
    border-bottom: 3px solid var(--accent);
    padding: 0 0 .34rem;
}
.section__hd h2 { margin-bottom: 0; }

/* ============== COMPARE ============== */
.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.compare__col {
    min-width: 0;
    padding: 1.45rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.compare__col--bad { border-top: 4px solid var(--danger); }
.compare__col--good { border-top: 4px solid var(--ok); }
.compare__col h3 {
    margin: 0 0 1rem;
    font-size: 1.04rem;
}
.compare__col--bad h3 { color: var(--danger); }
.compare__col--good h3 { color: var(--ok); }
.compare__col ul {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    padding: 0;
    margin: 0;
    list-style: none;
}
.compare__col li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    color: var(--ink-2);
    font-size: .96rem;
    line-height: 1.45;
    overflow-wrap: break-word;
}
.compare__col li > span:first-child {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    font-size: .74rem;
    font-weight: 850;
}
.compare__col--bad li > span:first-child {
    background: #fff1f1;
    color: var(--danger);
}
.compare__col--good li > span:first-child {
    background: #eef8f1;
    color: var(--ok);
}
.compare__col li > span:last-child {
    flex: 1;
    min-width: 0;
}

/* ============== FEATURES ============== */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.feature {
    min-width: 0;
    padding: 1.35rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.feature:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}
.feature__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: .9rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f1f6f5;
    color: var(--accent);
    font-size: 1.25rem;
    line-height: 1;
}
.feature:nth-child(3n+2) .feature__ico {
    background: #f1f4f9;
    color: var(--accent-2);
}
.feature:nth-child(3n) .feature__ico {
    background: #fbf2ee;
    color: var(--accent-3);
}
.feature h3 {
    margin-bottom: .45rem;
    font-size: 1.05rem;
}
.feature p {
    margin: 0;
    color: var(--muted);
    font-size: .94rem;
}
.feature code,
.faq code,
.step code {
    padding: .08rem .32rem;
    border-radius: 4px;
    background: #eef5f4;
    color: var(--accent);
    font-size: .88em;
}

/* ============== STEPS ============== */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
}
.step {
    min-width: 0;
    padding: 1.35rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.step__num {
    margin-bottom: 1rem;
    color: var(--accent-2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.85rem;
    font-weight: 650;
    line-height: 1;
}
.step h3 {
    margin-bottom: .45rem;
    font-size: 1.03rem;
}
.step p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

/* ============== STATS ============== */
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.stat {
    min-width: 0;
    padding: 1.35rem;
    background: rgba(255, 255, 255, .74);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.stat__num {
    margin-bottom: .7rem;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.1rem;
    font-weight: 650;
    line-height: 1;
}
.stat:nth-child(2) .stat__num { color: var(--accent-2); }
.stat:nth-child(3) .stat__num { color: var(--accent-3); }
.stat:nth-child(4) .stat__num { color: var(--ok); }
.stat__lbl {
    color: var(--ink-2);
    font-size: .94rem;
    font-weight: 650;
    line-height: 1.35;
}

/* ============== FAQ ============== */
.faq__list {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    max-width: 860px;
    margin: 0 auto;
}
.faq__item {
    padding: 1rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.faq__item[open] { border-color: var(--line-strong); }
.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    list-style: none;
    cursor: pointer;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 750;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: '+';
    color: var(--accent);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1;
    transition: transform .2s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
    margin: .75rem 0 0;
    color: var(--muted);
}

/* ============== CTA ============== */
.cta {
    background: #172826;
    color: #eef6f4;
    border-top: 1px solid #0f1d1b;
    border-bottom: 1px solid #0f1d1b;
}
.cta .eyebrow {
    color: #9bd3ca;
    border-left-color: #9bd3ca;
}
.cta__card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
    gap: 2rem;
    align-items: center;
}
.cta__copy p {
    max-width: 680px;
    color: #c8d7d4;
    font-size: 1.02rem;
}
.cta__actions {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}
.cta .btn--ghost {
    background: transparent;
    color: #eef6f4;
    border-color: rgba(238, 246, 244, .35);
}
.cta .btn--ghost:hover {
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
    border-color: rgba(238, 246, 244, .7);
}

/* ============== FOOTER ============== */
.footer {
    background: #111817;
    color: #e9f0ef;
    border-top: 1px solid #0f1414;
    padding-top: 3.8rem;
}
.footer .brand__name { color: #ffffff; }
.footer .brand__logo { color: #9bd3ca; }
.footer .muted { color: #99aaa6; }
.footer__grid {
    display: grid;
    grid-template-columns: 1.25fr .8fr 1fr 1.55fr;
    gap: 2.2rem;
    padding-bottom: 3rem;
}
.footer__brand p {
    margin-top: 1rem;
    font-size: .92rem;
}
.footer__col h4 {
    margin: 0 0 .9rem;
    color: #9bd3ca;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}
.footer__col a {
    display: block;
    margin-bottom: .5rem;
    color: #c6d1ce;
    font-size: .94rem;
}
.footer__col a:hover { color: #ffffff; }
.footer__col--wide address {
    color: #c6d1ce;
    font-style: normal;
    font-size: .9rem;
    line-height: 1.7;
}
.footer__col--wide address strong { color: #ffffff; }
.footer__col--wide a { display: inline; }
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 1.2rem 0;
    color: #99aaa6;
    font-size: .85rem;
}
.footer__bottom .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ============== MODAL ============== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(17, 24, 23, .62);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.modal {
    position: fixed;
    inset: 0;
    z-index: 101;
    width: min(480px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    margin: auto;
    padding: 0;
    overflow: hidden;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.modal[open] {
    display: flex;
    flex-direction: column;
}
.modal::backdrop { display: none; }
.modal__hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--line);
}
.modal__title {
    margin: 0;
    font-size: 1.08rem;
}
.modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
}
.modal__close:hover {
    color: var(--ink);
    border-color: var(--line-strong);
}
.modal__body {
    display: flex;
    flex-direction: column;
    gap: .95rem;
    padding: 1.25rem;
}
.modal__icon {
    color: var(--accent);
    font-size: 2rem;
    line-height: 1;
}
.modal__body p {
    color: var(--muted);
    margin: 0;
}
.modal__hint {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem .8rem;
    color: var(--ink-2) !important;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: .88rem;
}
.modal__hint i {
    color: var(--accent-2);
    flex-shrink: 0;
}
.modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: .7rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--line);
}

/* ============== LANGUAGE SWITCHER ============== */
.lang-switch {
    display: inline-flex;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
}
.lang-switch__btn {
    min-width: 38px;
    padding: .36rem .58rem;
    color: var(--muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
}
.lang-switch__btn:hover { color: var(--ink); }
.lang-switch__btn.is-active {
    color: #ffffff;
    background: var(--accent);
}

/* ============== LEGAL / PRIVACY PAGE ============== */
.legal { padding-top: 5.5rem; }
.legal__inner { max-width: 850px; }
.legal h1 { margin-bottom: 1.4rem; }
.legal h2 {
    margin-top: 2.3rem;
    font-size: 1.45rem;
}
.legal h3 {
    margin-top: 1.4rem;
    color: var(--ink-2);
    font-size: 1.08rem;
}
.legal p { color: var(--muted); }
.legal a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal__back {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--muted);
    font-size: .92rem;
    text-decoration: none !important;
}
.legal__address {
    padding: 1rem 1.1rem;
    margin: 1rem 0;
    color: var(--ink-2);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-style: normal;
}
.legal__list {
    color: var(--muted);
    padding-left: 1.25rem;
}
.legal__list li { margin: .25rem 0; }
.legal__updated {
    margin-top: 3rem;
    font-size: .85rem;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1060px) {
    h1 { font-size: 2.85rem; }
    h2 { font-size: 2.05rem; }
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 2.6rem;
    }
    .hero__copy .lede { max-width: 760px; }
    .context-board { max-width: 720px; }
    .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .nav__links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .75rem 24px 1rem;
        background: rgba(246, 248, 248, .98);
        border-bottom: 1px solid var(--line);
    }
    .nav__links.is-open { display: flex; }
    .nav__links a {
        width: 100%;
        padding: .85rem 0;
        border-bottom: 1px solid var(--line);
    }
    .nav__links .btn {
        margin-top: .75rem;
        padding: .65rem .9rem;
        justify-content: center;
    }
}

@media (max-width: 820px) {
    .hero { padding: 3.6rem 0 3.4rem; }
    .section { padding: 4.2rem 0; }
    .compare { grid-template-columns: 1fr; }
    .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta__card {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .cta__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 620px) {
    .container { padding: 0 18px; }
    h1 {
        max-width: 100%;
        font-size: 2.08rem;
        line-height: 1.16;
    }
    h2 { font-size: 1.75rem; }
    .hero__cta .btn,
    .cta__actions .btn {
        width: 100%;
        white-space: normal;
    }
    .hero__chips li { width: 100%; }
    .context-board__top {
        align-items: flex-start;
        flex-direction: column;
        gap: .55rem;
    }
    .context-board__project {
        grid-template-columns: 1fr;
    }
    .context-board__project small { grid-column: 1; }
    .context-board__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .metric:nth-child(2n) { border-right: 0; }
    .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .grid-cards,
    .steps,
    .stats__grid,
    .footer__grid {
        grid-template-columns: 1fr;
    }
    .flow-row {
        grid-template-columns: 34px 1fr;
        padding: .9rem;
    }
    .flow-row__icon {
        width: 34px;
        height: 34px;
    }
    .modal__footer {
        flex-direction: column-reverse;
    }
    .modal__footer .btn { width: 100%; }
}
