:root {
    --ink: #18202f;
    --muted: #607086;
    --paper: #f7f4ec;
    --white: #ffffff;
    --line: #d9dfdf;
    --blue: #2563eb;
    --green: #1d7f63;
    --gold: #c48419;
    --night: #0d1420;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.94em;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px clamp(18px, 4vw, 52px);
    color: white;
    background: rgba(13, 20, 32, 0.86);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--green);
    color: white;
    letter-spacing: 0;
}

nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}

nav a {
    color: rgba(255,255,255,0.86);
    text-decoration: none;
}

.nav-download {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 8px;
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: var(--night);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.72;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13,20,32,0.98) 0%, rgba(13,20,32,0.78) 42%, rgba(13,20,32,0.28) 100%);
}

.hero-content {
    position: relative;
    width: min(760px, calc(100% - 36px));
    margin: 0 0 clamp(64px, 9vh, 104px) clamp(18px, 7vw, 96px);
    color: white;
}

.script-shed,
.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 14px;
    font-size: clamp(48px, 8vw, 104px);
    line-height: 0.9;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.03;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    font-size: 19px;
    letter-spacing: 0;
}

.lede {
    max-width: 650px;
    color: rgba(255,255,255,0.88);
    font-size: clamp(19px, 2.3vw, 25px);
}

.hero-actions,
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
}

.button.primary {
    background: var(--green);
    color: white;
}

.button.secondary {
    color: white;
    border-color: rgba(255,255,255,0.32);
}

.quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 22px 0 0;
    list-style: none;
}

.quick-facts li {
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 8px;
    color: rgba(255,255,255,0.86);
    background: rgba(255,255,255,0.06);
}

.section-inner {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(58px, 8vw, 104px) 0;
}

.band {
    background: var(--paper);
    border-block: 1px solid var(--line);
}

.split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(24px, 5vw, 72px);
    align-items: start;
}

.split p:last-child {
    color: var(--muted);
    font-size: 21px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.feature-grid article {
    min-height: 218px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.feature-number {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--green);
    font-weight: 900;
}

.feature-grid p,
.download-note {
    color: var(--muted);
}

.use-case-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.use-case-list p {
    margin: 0;
    padding: 14px;
    border-left: 4px solid var(--green);
    background: var(--white);
    border-radius: 0 8px 8px 0;
    font-weight: 750;
}

.install {
    max-width: 980px;
}

.steps {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 28px 0 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: white;
    background: var(--blue);
    font-weight: 900;
}

.steps strong,
.steps span {
    grid-column: 2;
}

.steps strong {
    font-size: 20px;
}

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

.code-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(24px, 5vw, 64px);
    align-items: start;
}

pre {
    margin: 0;
    padding: 18px;
    overflow-x: auto;
    color: #f3f7fb;
    background: var(--night);
    border-radius: 8px;
    font-size: 14px;
}

.faq {
    display: grid;
    gap: 10px;
}

details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px 18px;
}

summary {
    cursor: pointer;
    font-weight: 850;
}

details p {
    margin: 12px 0 0;
    color: var(--muted);
}

.download {
    text-align: center;
}

.download p {
    max-width: 690px;
    margin-inline: auto;
    color: var(--muted);
}

.download .button {
    margin: 8px 0 18px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 26px clamp(18px, 4vw, 52px);
    color: white;
    background: var(--night);
}

.site-footer a {
    color: white;
}

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 3px;
}

@media (max-width: 860px) {
    .site-header {
        position: absolute;
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        overflow-x: auto;
    }

    .hero {
        min-height: 94vh;
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(13,20,32,0.62) 0%, rgba(13,20,32,0.96) 64%);
    }

    .hero-content {
        margin: 0 auto 44px;
    }

    .split,
    .feature-grid,
    .use-case-list,
    .code-section {
        grid-template-columns: 1fr;
    }

    .feature-grid article {
        min-height: 0;
    }

    .steps li {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .site-footer {
        flex-direction: column;
    }
}
