:root {
    --deep: #0B5D3B;
    --forest: #147A4E;
    --deep-ink: #041F14;
    --deep-mid: #0A4A30;
    --ivory: #F7F4EC;
    --ivory-2: #FBF9F3;
    --parchment: #EBE4D4;
    --gold: #C6A75E;
    --gold-bright: #D9C07A;
    --ink: #15201B;
    --muted: #5A6A62;
    --line: rgba(11, 93, 59, 0.14);
    --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
    --font-ui: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-ui);
    font-weight: 450;
    font-size: 17px;
    line-height: 1.6;
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

a { color: var(--deep); }
code {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.86em;
    background: rgba(11, 93, 59, 0.08);
    padding: 0.12em 0.4em;
    border-radius: 4px;
}

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--deep); color: #fff; padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

/* —— Nav —— */
.site-nav {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem clamp(1.25rem, 4vw, 2.75rem);
    color: var(--ivory);
}

.site-nav.is-solid {
    position: sticky;
    background: rgba(247, 244, 236, 0.92);
    backdrop-filter: blur(16px);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.nav-brand { text-decoration: none; color: inherit; }
.nav-brand-mark {
    display: block;
    font-family: var(--font-display);
    font-weight: 650;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}
.nav-brand-sub {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.65rem;
    font-weight: 650;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}
.nav-links a {
    text-decoration: none;
    color: inherit;
    font-size: 0.88rem;
    font-weight: 550;
    opacity: 0.9;
}
.nav-links a:hover { opacity: 1; color: var(--gold-bright); }
.site-nav.is-solid .nav-links a:hover { color: var(--deep); }

.nav-cta {
    background: var(--gold) !important;
    color: var(--deep-ink) !important;
    padding: 0.55rem 1.05rem !important;
    border-radius: 999px;
    opacity: 1 !important;
    font-weight: 650 !important;
}
.nav-cta:hover { filter: brightness(1.05); color: var(--deep-ink) !important; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid rgba(247, 244, 236, 0.35);
    border-radius: 10px;
    background: transparent;
    padding: 12px 10px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
.site-nav.is-solid .nav-toggle { border-color: var(--line); }
.nav-toggle span { display: block; height: 1.5px; background: currentColor; }

/* —— Hero (full-bleed) —— */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: var(--ivory);
    background: var(--deep-ink);
}

.hero-visual {
    position: absolute;
    inset: 0;
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 75% 20%, rgba(198, 167, 94, 0.22), transparent 50%),
        radial-gradient(ellipse 70% 60% at 15% 90%, rgba(20, 122, 78, 0.55), transparent 55%),
        linear-gradient(165deg, #041F14 0%, #0B5D3B 42%, #083D28 100%);
}

.hero-atmosphere::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(247, 244, 236, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 244, 236, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 75% 65% at 60% 40%, #000 10%, transparent 70%);
}

.hero-atmosphere::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 31, 20, 0.15) 0%, rgba(4, 31, 20, 0.55) 55%, rgba(4, 31, 20, 0.92) 100%);
}

.hero-transcript {
    position: absolute;
    right: clamp(1rem, 6vw, 5rem);
    top: 18%;
    bottom: 22%;
    width: min(420px, 38vw);
    border: 1px solid rgba(198, 167, 94, 0.28);
    background: rgba(4, 31, 20, 0.4);
    backdrop-filter: blur(10px);
    padding: 1.6rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    animation: riseIn 1.15s var(--ease) 0.15s both;
}

.ht-chrome {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-bright);
}
.ht-live {
    width: 0.5rem; height: 0.5rem; border-radius: 50%;
    background: #e07060;
    animation: livePulse 1.6s ease-out infinite;
}

.ht-lines { display: flex; flex-direction: column; gap: 1.15rem; flex: 1; justify-content: center; }
.ht-line {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.4;
    opacity: 0;
    transform: translateY(14px);
    animation: lineIn 0.75s var(--ease) forwards;
}
.ht-line:nth-child(1) { animation-delay: 0.45s; }
.ht-line:nth-child(2) { animation-delay: 0.85s; }
.ht-line:nth-child(3) { animation-delay: 1.2s; }
.ht-line:nth-child(4) { animation-delay: 1.55s; }
.ht-line::before {
    content: attr(data-speaker);
    display: block;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.3rem;
}
.ht-interim { color: rgba(247, 244, 236, 0.7); font-style: italic; }
.ht-interim span {
    border-right: 2px solid var(--gold);
    padding-right: 2px;
    animation: caret 0.95s steps(1) infinite;
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding: 0 clamp(1.25rem, 5vw, 3.5rem) clamp(3.5rem, 8vh, 5.5rem);
    max-width: 720px;
    animation: fadeUp 1s var(--ease) both;
}

.hero-brand {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
}
.hero-org {
    margin: 0.7rem 0 1.75rem;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}
.hero-headline {
    margin: 0 0 0.9rem;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    line-height: 1.3;
    max-width: 18ch;
    color: rgba(247, 244, 236, 0.95);
}
.hero-support {
    margin: 0 0 1.85rem;
    font-size: 1.05rem;
    color: rgba(247, 244, 236, 0.78);
    max-width: 38ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-weight: 650;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: transform 0.18s var(--ease), background 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-ivory { background: var(--ivory); color: var(--deep); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(247, 244, 236, 0.4); }
.btn-deep { background: var(--deep); color: #fff; }
.btn-gold { background: var(--gold); color: var(--deep-ink); }
.btn-outline-deep { background: transparent; color: var(--deep); border-color: rgba(11, 93, 59, 0.45); }
.text-link { font-weight: 650; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 1.25rem; position: relative; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-inner.narrow { max-width: 680px; }

.eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.section h2,
.page-hero h1 {
    margin: 0 0 1.1rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--deep);
}

.lead {
    margin: 0;
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 58ch;
}
.section-lead { margin-bottom: 2.75rem; }

.section-story {
    background:
        radial-gradient(700px 320px at 0% 0%, rgba(198, 167, 94, 0.14), transparent 55%),
        linear-gradient(180deg, var(--ivory-2), var(--ivory));
}

.section-how {
    background:
        linear-gradient(180deg, var(--parchment) 0%, var(--ivory) 100%);
}

.flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem 1.5rem;
}
.flow li {
    padding-top: 1.15rem;
    border-top: 1.5px solid var(--gold);
}
.flow-num {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--gold);
    margin-bottom: 0.7rem;
}
.flow h3 {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--deep);
}
.flow p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.section-roles {
    background:
        radial-gradient(800px 400px at 80% 0%, rgba(198, 167, 94, 0.12), transparent 50%),
        var(--deep-ink);
    color: var(--ivory);
}
.section-roles h2 { color: var(--ivory); }
.section-roles .lead { color: rgba(247, 244, 236, 0.68); }

.roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2.5rem;
}
.roles-grid h3 {
    margin: 0 0 0.55rem;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold);
}
.roles-grid p { margin: 0; color: rgba(247, 244, 236, 0.78); }

.section-security {
    background:
        radial-gradient(520px 280px at 100% 20%, rgba(11, 93, 59, 0.1), transparent 55%),
        var(--ivory);
}
.split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: start;
}
.security-list {
    margin: 0; padding: 0; list-style: none;
    display: grid; gap: 0;
}
.security-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-weight: 550;
}

.section-cta {
    background:
        linear-gradient(135deg, #E8DFC8 0%, var(--ivory) 55%, #F3EFE4 100%);
}
.cta-band { text-align: center; }
.cta-band p {
    margin: 0 auto 1.75rem;
    color: var(--muted);
    max-width: 40ch;
}
.cta-band .hero-cta { justify-content: center; }

/* Downloads */
.page-hero {
    padding: clamp(6.5rem, 12vw, 8.5rem) 1.25rem 2rem;
    background:
        radial-gradient(800px 360px at 15% 0%, rgba(11, 93, 59, 0.14), transparent 55%),
        radial-gradient(500px 240px at 90% 30%, rgba(198, 167, 94, 0.16), transparent 50%),
        var(--ivory);
}
.page-hero .eyebrow { margin-top: 0; }

.downloads-list {
    display: grid;
    gap: 1.25rem;
    max-width: 820px;
}
.download-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 1.85rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(247, 244, 236, 0.9));
    box-shadow: 0 18px 50px rgba(11, 93, 59, 0.07);
}
.download-item h2 {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.55rem;
    color: var(--deep);
}
.download-label { margin: 0 0 0.85rem; color: var(--muted); }
.download-meta ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.92rem;
}
.install-steps {
    margin: 0 0 1.25rem;
    padding-left: 1.2rem;
    color: var(--muted);
}
.install-steps li { margin-bottom: 0.7rem; }
.fineprint { font-size: 0.9rem; color: var(--muted); }

/* Footer */
.site-footer {
    padding: 3rem 1.25rem 2.25rem;
    background: var(--deep-ink);
    color: rgba(247, 244, 236, 0.72);
}
.footer-inner {
    max-width: var(--max);
    margin: 0 auto 1.75rem;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-brand {
    margin: 0 0 0.4rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--ivory);
}
.footer-tag { margin: 0; max-width: 34ch; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
    color: var(--gold-bright);
    text-decoration: none;
    font-weight: 550;
}
.footer-copy {
    max-width: var(--max);
    margin: 0 auto;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(247, 244, 236, 0.1);
    font-size: 0.8rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@keyframes riseIn {
    from { opacity: 0; transform: translateY(28px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}
@keyframes lineIn { to { opacity: 1; transform: none; } }
@keyframes livePulse {
    70% { box-shadow: 0 0 0 12px rgba(224, 112, 96, 0); }
    100% { box-shadow: 0 0 0 0 rgba(224, 112, 96, 0); }
}
@keyframes caret { 50% { border-color: transparent; } }

@media (max-width: 980px) {
    .hero-transcript {
        width: min(360px, 46vw);
        top: 16%;
        bottom: 28%;
    }
    .flow { grid-template-columns: 1fr 1fr; }
    .roles-grid, .split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .site-nav { position: absolute; }
    .nav-toggle { display: flex; color: var(--ivory); }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.25rem 1.35rem;
        background: rgba(4, 31, 20, 0.96);
        gap: 0.9rem;
        border-bottom: 1px solid rgba(198, 167, 94, 0.2);
    }
    .site-nav.is-open .nav-links { display: flex; }
    .hero-transcript { display: none; }
    .hero-copy { padding-top: 7.5rem; max-width: none; }
    .hero-headline { max-width: none; }
    .flow { grid-template-columns: 1fr; }
    .download-item { flex-direction: column; align-items: flex-start; }
    .page-hero { padding-top: 7rem; }
}
