:root {
    --bg: #111315;
    --paper: rgba(24, 28, 31, 0.92);
    --paper-soft: rgba(34, 39, 43, 0.88);
    --paper-strong: rgba(18, 22, 25, 0.96);
    --ink: #f3eee6;
    --muted: rgba(228, 220, 208, 0.68);
    --line: rgba(255, 245, 230, 0.09);
    --accent: #9c6b3f;
    --accent-strong: #d8b07a;
    --accent-soft: #b98353;
    --olive: #8f9b7f;
    --night: #171b1e;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --font-sans:
        "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC",
        sans-serif;
    --font-display:
        "IBM Plex Sans Condensed", "PingFang SC", "Hiragino Sans GB",
        "Noto Sans CJK SC", sans-serif;
    --font-serif:
        "IBM Plex Sans Condensed", "PingFang SC", "Hiragino Sans GB",
        "Noto Sans CJK SC", sans-serif;
    --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-sans);
    font-weight: 400;
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    width: min(1600px, calc(100vw - 40px));
    margin: 0 auto;
    padding: 24px 0 72px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: rgba(28, 32, 36, 0.88);
    border: 1px solid rgba(245, 232, 214, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px 18px 10px 18px;
    background: var(--accent-strong);
    color: #171310;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
}

.brand-copy strong {
    display: block;
    font-size: 0.96rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.brand-copy span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: 180ms ease;
}

.nav a:hover,
.nav a.active {
    color: var(--ink);
    background: rgba(216, 176, 122, 0.1);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 52px;
    border-radius: var(--radius-xl);
    background: rgba(23, 27, 30, 0.98);
    color: #f8efe2;
    box-shadow: var(--shadow);
}

.hero::after {
    content: none;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 24px;
    border: 1px solid rgba(255, 245, 232, 0.06);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(390px, 430px);
    gap: 24px;
    align-items: start;
}

.hero-copy,
.page-hero-copy {
    max-width: 690px;
    padding-top: 6px;
}

.hero-panel,
.page-note {
    position: relative;
    padding: 18px;
    border-radius: 22px 22px 22px 8px;
    background: rgba(255, 250, 243, 0.06);
    border: 1px solid rgba(255, 244, 228, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel-label {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(233, 184, 127, 0.12);
    color: #f1d4af;
    font-size: 0.76rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.panel-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.panel-id,
.split-id,
.problem-code {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-id {
    color: rgba(241, 212, 175, 0.8);
}

.signal-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.signal-strip span {
    padding: 8px 10px;
    border-radius: 999px 999px 999px 10px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(247, 239, 226, 0.68);
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.stack-track {
    position: relative;
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.track-line {
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 16px;
    width: 1px;
    background: rgba(241, 212, 175, 0.18);
}

.stack-node {
    position: relative;
    margin-left: 24px;
    padding: 12px 12px 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stack-node::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 19px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f1d4af;
    box-shadow: 0 0 0 6px rgba(241, 212, 175, 0.08);
}

.stack-node-primary {
    background: rgba(255, 255, 255, 0.05);
}

.stack-node-secondary {
    background: rgba(216, 176, 122, 0.08);
}

.stack-node span,
.signal-name {
    display: block;
    margin-bottom: 6px;
    color: rgba(247, 239, 226, 0.64);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.node-index {
    margin-bottom: 8px;
    color: rgba(241, 212, 175, 0.88);
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.stack-node strong,
.page-note strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.stack-node p,
.page-note p {
    margin: 0;
    color: rgba(247, 239, 226, 0.74);
    line-height: 1.6;
    font-size: 0.92rem;
}

.stack-arrow {
    display: grid;
    place-items: center;
    padding: 10px 0;
    color: #f3d2a4;
    font-family: var(--font-mono);
}

.panel-foot {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-foot > div {
    padding: 10px 11px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.panel-foot strong {
    display: block;
    color: #fff5e7;
}

.eyebrow {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px 999px 999px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.hero h1,
.page-hero h1 {
    margin: 14px 0 16px;
    max-width: 13.2ch;
    font-family: var(--font-display);
    font-size: clamp(3rem, 6.2vw, 5.4rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: none;
}

.hero h1 {
    max-width: 16.4ch;
    margin-bottom: 18px;
    line-height: 1.02;
}

.hero h1 span,
.page-hero h1 span {
    display: block;
}

.hero h1 span {
    white-space: nowrap;
}

.hero p,
.page-hero p {
    margin: 0;
    max-width: 600px;
    color: rgba(247, 239, 226, 0.84);
    font-size: 1.06rem;
    line-height: 1.8;
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-actions {
    margin-top: 100px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px 999px 999px 12px;
    border: 1px solid transparent;
    transition: 180ms ease;
}

.button.primary {
    background: var(--accent-strong);
    color: #1a120d;
}

.button.primary:hover {
    background: #c39b65;
}

.button.secondary {
    color: #f7efe2;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.button.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.button.light {
    color: var(--ink);
    border-color: rgba(245, 232, 214, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.button.light:hover {
    background: rgba(255, 255, 255, 0.1);
}

.section {
    margin-top: 26px;
    padding: 34px;
    border-radius: var(--radius-lg);
    background: var(--paper);
    border: 1px solid rgba(245, 232, 214, 0.06);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: var(--accent);
    opacity: 0.85;
}

.section-title {
    margin: 0 0 8px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-strong);
    font-family: var(--font-mono);
}

.section h2 {
    margin: 0 0 14px;
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.025em;
}

.section > p,
.section-intro {
    max-width: 780px;
    color: var(--muted);
    line-height: 1.75;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    padding: 24px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.card::after {
    content: none;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.card p,
.card li {
    color: var(--muted);
    line-height: 1.7;
}

.flow-card {
    background: rgba(255, 255, 255, 0.05);
}

.ops-card {
    background: rgba(216, 176, 122, 0.08);
}

.stack-card {
    min-height: 192px;
}

.accent-card {
    background: rgba(61, 52, 43, 0.96);
    color: #f8efe2;
}

.accent-card h3,
.accent-card p,
.accent-card .pill {
    color: inherit;
}

.accent-card .pill {
    background: rgba(255, 255, 255, 0.1);
}

.problem-matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.problem-card {
    padding: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.problem-card h3 {
    margin: 10px 0 8px;
    font-size: 1.18rem;
}

.problem-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.problem-card-accent {
    background: rgba(61, 52, 43, 0.98);
    color: #f8efe2;
}

.problem-card-accent p,
.problem-card-accent .problem-code {
    color: rgba(248, 239, 226, 0.82);
}

.stack-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
    gap: 18px;
    margin-top: 20px;
    align-items: stretch;
}

.split-panel {
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--line);
}

.split-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.split-divider {
    display: grid;
    place-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.split-divider span:nth-child(2) {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(156, 107, 63, 0.12);
}

.pill {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px 999px 999px 10px;
    background: rgba(216, 176, 122, 0.08);
    color: var(--accent-strong);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.list {
    margin: 14px 0 0;
    padding-left: 18px;
}

.list li + li {
    margin-top: 8px;
}

.comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.comparison .side {
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    position: relative;
}

.comparison .side strong {
    display: block;
    margin-bottom: 12px;
    font-size: 1rem;
}

.diagram {
    margin-top: 18px;
    padding: 24px;
    border-radius: var(--radius-md);
    background: #1a1f23;
    color: #f7ebdb;
    overflow-x: auto;
}

.deployment-visual {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 18px;
    margin-top: 20px;
}

.deployment-core {
    padding: 24px;
    border-radius: 22px;
    background: rgba(25, 30, 34, 0.99);
    color: #f7ebdb;
}

.deployment-core h3 {
    margin: 12px 0 8px;
    font-size: 1.9rem;
    font-family: var(--font-serif);
}

.deployment-core p {
    margin: 0;
    color: rgba(247, 235, 219, 0.8);
    line-height: 1.7;
}

.deployment-flow {
    margin-top: 18px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.7;
}

.customer-lanes {
    display: grid;
    gap: 14px;
}

.customer-lane {
    padding: 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.lane-name {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px 999px 999px 10px;
    background: rgba(156, 107, 63, 0.08);
    color: var(--accent-strong);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.customer-lane p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.deployment-notes {
    margin-top: 18px;
}

.diagram pre {
    margin: 0;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.96rem;
    line-height: 1.6;
}

.cta-band {
    margin-top: 26px;
    padding: 28px 32px;
    border-radius: var(--radius-lg) 10px var(--radius-lg) var(--radius-lg);
    background: rgba(38, 44, 49, 0.96);
    color: #fff4ea;
    box-shadow: var(--shadow);
}

.cta-band h3 {
    margin: 0 0 10px;
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.cta-band p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 244, 234, 0.86);
    line-height: 1.7;
}

.footer {
    margin-top: 28px;
    padding: 18px 4px 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.page-hero {
    padding: 42px 48px 46px;
    border-radius: var(--radius-xl);
    background: rgba(24, 28, 31, 0.96);
    border: 1px solid rgba(245, 232, 214, 0.06);
    box-shadow: var(--shadow);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.26fr) minmax(420px, 460px);
    gap: 28px;
    align-items: start;
}

.page-hero h1 {
    max-width: 16.2ch;
    color: var(--ink);
}

.page-hero p {
    color: var(--muted);
}

.mini-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.mini-meta span {
    padding: 8px 12px;
    border-radius: 999px 999px 999px 10px;
    background: rgba(240, 191, 127, 0.09);
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-family: var(--font-mono);
}

.page-note {
    background: rgba(28, 32, 36, 0.98);
    color: #f8efe2;
    border-radius: 18px 18px 18px 8px;
}

.page-note .panel-label {
    background: rgba(233, 184, 127, 0.1);
}

.page-note strong {
    margin-top: 10px;
    font-size: 0.96rem;
}

@media (min-width: 1280px) {
    .topbar {
        padding: 18px 24px;
    }

    .hero {
        padding: 42px 48px 46px;
    }

    .hero-grid,
    .page-hero-grid {
        grid-template-columns: minmax(0, 1.32fr) minmax(390px, 430px);
        gap: 24px;
    }

    .hero-copy,
    .page-hero-copy {
        max-width: 690px;
        padding-top: 6px;
    }

    .hero h1 {
        margin-top: 14px;
        max-width: 16.2ch;
    }

    .hero p,
    .page-hero p {
        max-width: 600px;
    }

    .hero-panel,
    .page-note {
        justify-self: end;
        width: 100%;
        max-width: 430px;
    }

    .hero-panel,
    .page-note {
        padding: 18px;
    }

    .section,
    .cta-band {
        padding: 42px;
    }

    .section > p,
    .section-intro {
        max-width: 920px;
    }

    .problem-matrix {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .stack-split {
        grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
    }

    .deployment-visual {
        grid-template-columns: 1.12fr 0.88fr;
    }

    .page-hero {
        padding: 42px 48px 46px;
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .page-hero-grid,
    .problem-matrix,
    .stack-split,
    .deployment-visual,
    .grid.two,
    .grid.three,
    .comparison {
        grid-template-columns: 1fr;
    }

    .hero,
    .page-hero,
    .section,
    .cta-band {
        padding: 28px 22px;
    }

    .topbar {
        align-items: flex-start;
        border-radius: 26px;
    }

    .nav {
        justify-content: flex-start;
    }

    .panel-foot {
        grid-template-columns: 1fr;
    }

    .split-divider {
        grid-template-columns: repeat(3, auto);
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(100vw - 20px, 1600px);
        padding-top: 12px;
    }

    .topbar {
        flex-direction: column;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(2.4rem, 12vw, 4rem);
    }
}
