@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&display=swap");

:root {
    --bg: #f4f1ea;
    --surface: #fffaf3;
    --surface-soft: rgba(255, 250, 243, 0.82);
    --ink: #18232f;
    --muted: #5b6674;
    --line: #d2c9ba;
    --accent: #215a9b;
    --accent-dark: #173f6d;
    --accent-soft: #d8e5f8;
    --shadow: rgba(60, 49, 30, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 28%),
        linear-gradient(180deg, #efe7db 0%, #f4f1ea 42%, #ebe3d6 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(24, 35, 47, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 35, 47, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 72%);
    pointer-events: none;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 72px;
    position: relative;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 34px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-family: "Space Grotesk", "Segoe UI Variable", "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: 0.01em;
}

.brand:hover {
    text-decoration: none;
}

.brand img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
}

.nav {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    backdrop-filter: blur(10px);
}

.nav a {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.nav a:hover {
    color: var(--ink);
    text-decoration: none;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.85fr);
    gap: 32px;
    padding: 0 0 28px;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.lead {
    margin: 20px 0 0;
    max-width: 56ch;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.68;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.button.primary {
    background: linear-gradient(180deg, #2c69ad 0%, #215a9b 100%);
    border-color: var(--accent-dark);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 14px 24px rgba(33, 90, 155, 0.24);
}

.note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.note code,
.footer-band code {
    padding: 0.14rem 0.42rem;
    border-radius: 7px;
    background: var(--accent-soft);
    color: var(--ink);
    font-family: "Consolas", "Cascadia Mono", monospace;
}

.hero-meta {
    display: grid;
    gap: 14px;
    padding-left: 24px;
    border-left: 1px solid var(--line);
    align-content: start;
}

.meta-row {
    display: grid;
    gap: 4px;
}

.meta-row span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.meta-row strong {
    font-size: 1rem;
    line-height: 1.45;
}

.shot-section,
.feature-section,
.engineering-section,
.footer-band {
    margin-top: 30px;
}

.section-intro {
    margin-bottom: 18px;
}

.section-intro h2,
.engineering-heading h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 2.3rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.shot-frame {
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.52);
    box-shadow: 0 22px 46px var(--shadow);
}

.shot-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(24, 35, 47, 0.14);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
}

.feature-grid section {
    padding-top: 18px;
}

.feature-grid h3,
.footer-band h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.2;
}

.feature-grid ul {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.72;
}

.engineering-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.45fr);
    gap: 28px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
}

.engineering-heading {
    padding-top: 18px;
}

.engineering-copy {
    display: grid;
    gap: 18px;
    padding-top: 18px;
    max-width: 58ch;
}

.engineering-copy p,
.footer-band p {
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
}

.schema-code {
    margin: 22px 0 0;
    padding: 16px 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(242, 237, 229, 0.96), rgba(255, 252, 247, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        inset 0 10px 24px rgba(24, 35, 47, 0.035),
        0 18px 34px var(--shadow);
}

.schema-code code {
    display: block;
    color: var(--ink);
    font-size: 0.96rem;
    line-height: 1.6;
    font-family: "Consolas", "Cascadia Mono", monospace;
    white-space: pre;
}

.schema-lines {
    list-style: none;
    counter-reset: schema-line;
    padding-left: 0;
}

.schema-lines li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: baseline;
    padding: 0 18px;
    counter-increment: schema-line;
}

.schema-lines li::before {
    content: counter(schema-line);
    color: rgba(91, 102, 116, 0.82);
    font: 0.84rem/1.6 "Consolas", "Cascadia Mono", monospace;
    text-align: right;
    padding-right: 14px;
    border-right: 1px solid rgba(210, 201, 186, 0.95);
    margin-right: 14px;
}

.schema-lines li code {
    min-width: 0;
}

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

.guide-panel {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.45);
}

.guide-panel h3 {
    margin: 0;
    font-size: 1.04rem;
}

.guide-panel ul {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.72;
}

.guide-table {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.52);
}

.guide-row {
    display: grid;
    grid-template-columns: minmax(200px, 0.9fr) minmax(0, 1.3fr);
    gap: 18px;
    padding: 14px 18px;
    border-top: 1px solid rgba(210, 201, 186, 0.8);
}

.guide-row:first-child {
    border-top: 0;
}

.guide-head {
    background: rgba(33, 90, 155, 0.08);
}

.guide-row code {
    color: var(--ink);
    font-family: "Consolas", "Cascadia Mono", monospace;
}

.guide-row span,
.guide-note p {
    color: var(--muted);
    line-height: 1.72;
}

.guide-note {
    margin-top: 16px;
    padding-left: 16px;
    border-left: 3px solid var(--line);
}

.guide-note p {
    margin: 0;
}

.footer-band {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
    .hero,
    .feature-grid,
    .guide-grid,
    .engineering-section,
    .footer-band {
        grid-template-columns: 1fr;
    }

    .guide-row {
        grid-template-columns: 1fr;
    }

    .hero-meta {
        padding-left: 0;
        padding-top: 22px;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

}

@media (max-width: 720px) {
    .page {
        width: min(100% - 24px, 1120px);
        padding-top: 18px;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}
