:root {
    --bg: #f5f6f1;
    --bg-alt: #e9ece3;
    --surface: #ffffff;
    --ink: #13211a;
    --ink-soft: #4f6258;
    --line: #cad3c8;
    --brand: #0f766e;
    --brand-strong: #0a5f57;
    --accent: #ca8a04;
    --danger: #b91c1c;
    --radius: 16px;
    --shadow: 0 20px 60px rgba(21, 34, 27, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(19, 33, 26, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(19, 33, 26, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 12% 12%, rgba(15, 118, 110, 0.16), transparent 35%),
        radial-gradient(circle at 85% 25%, rgba(202, 138, 4, 0.2), transparent 36%);
    background-size: 34px 34px, 34px 34px, 100% 100%, 100% 100%;
    z-index: -1;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(19, 33, 26, 0.08);
    backdrop-filter: blur(10px);
    background: rgba(245, 246, 241, 0.88);
}

.nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.brand-text {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--ink);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    padding: 0.7rem 1.1rem;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--brand);
    color: #f8fffd;
    border: 1px solid var(--brand);
}

.btn-primary:hover {
    background: var(--brand-strong);
}

.btn-outline {
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--surface);
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: start;
    padding-top: 4.5rem;
    padding-bottom: 2.5rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.75rem;
    color: var(--brand-strong);
    font-weight: 700;
    margin-bottom: 0.7rem;
}

h1,
h2,
h3 {
    line-height: 1.15;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.35rem);
    margin-bottom: 1rem;
    max-width: 14ch;
}

.hero-copy {
    max-width: 58ch;
    color: var(--ink-soft);
    margin-bottom: 1.4rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.badge-row img {
    height: 20px;
}

.quick-command {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem;
}

.quick-command code {
    display: block;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    color: #113b37;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.2rem 0.4rem;
}

.hero-panel {
    background: linear-gradient(180deg, #f0f5ef 0%, #ffffff 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.terminal {
    border-radius: 12px;
    overflow: hidden;
    background: #0f1c16;
    border: 1px solid #213b31;
}

.terminal-head {
    display: flex;
    gap: 0.45rem;
    padding: 0.65rem;
    background: #152722;
}

.terminal-head span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-head span:nth-child(1) {
    background: #ef4444;
}

.terminal-head span:nth-child(2) {
    background: #f59e0b;
}

.terminal-head span:nth-child(3) {
    background: #22c55e;
}

.terminal-body {
    margin: 0;
    padding: 1rem;
}

.terminal-body code {
    color: #d8f3e9;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    line-height: 1.55;
}

.stats-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.stats-grid article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.8rem;
}

.stats-grid strong {
    display: block;
    color: var(--brand-strong);
    font-size: 1rem;
}

.stats-grid span {
    color: var(--ink-soft);
    font-size: 0.86rem;
}

.section {
    padding: 3.6rem 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid rgba(19, 33, 26, 0.08);
    border-bottom: 1px solid rgba(19, 33, 26, 0.08);
}

.section-head {
    margin-bottom: 1.3rem;
}

h2 {
    font-size: clamp(1.55rem, 3.7vw, 2.35rem);
    max-width: 20ch;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem;
}

.card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
}

.card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
    align-items: start;
}

.tier-list {
    display: grid;
    gap: 0.85rem;
}

.tier-list article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 6px solid var(--brand);
    border-radius: 12px;
    padding: 0.9rem;
}

.tier-list h3 {
    font-size: 1rem;
}

.tier-list p {
    font-weight: 600;
    margin: 0.25rem 0;
}

.tier-list span {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.rule-table-wrap {
    margin-top: 1.1rem;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.rule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.rule-table th,
.rule-table td {
    text-align: left;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid rgba(19, 33, 26, 0.08);
}

.rule-table th {
    background: #edf2ea;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rule-table td:nth-child(4) {
    color: var(--danger);
    font-weight: 700;
}

.pipeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.pipeline-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem;
}

.pipeline-item span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #d2ece7;
    color: #0b4a45;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.pipeline-item p {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
}

.command-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8faf6;
    padding: 0.9rem;
}

.command-card h3 {
    margin-bottom: 0.4rem;
}

.command-card pre {
    margin: 0;
    border: 1px solid #d6ddd1;
    border-radius: 10px;
    background: #f0f4ec;
    padding: 0.8rem;
    overflow-x: auto;
}

.command-card code {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: #15322d;
}

.copy-btn {
    margin-top: 0.6rem;
    border: 1px solid #b7c4ba;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    background: #ffffff;
    color: #1f3a33;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}

.copy-btn:hover {
    background: #ebf4f1;
    border-color: #8eb6ac;
}

.list-block {
    display: grid;
    gap: 0.85rem;
}

.list-block article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.9rem;
}

.list-block p {
    color: var(--ink-soft);
    margin: 0.35rem 0 0.45rem;
}

.list-block a {
    color: var(--brand-strong);
    font-weight: 600;
    text-decoration: none;
}

.list-block a:hover {
    text-decoration: underline;
}

.release-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
}

.release-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem;
}

.release-card h3 {
    margin-bottom: 0.5rem;
}

.release-card p {
    color: var(--ink-soft);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.site-footer {
    border-top: 1px solid rgba(19, 33, 26, 0.12);
    background: #f0f3ec;
}

.footer-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.footer-links {
    display: flex;
    gap: 0.95rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--ink);
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .hero,
    .split {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 3.25rem;
        gap: 1.25rem;
    }

    h1 {
        max-width: 18ch;
    }

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

    .command-grid {
        grid-template-columns: 1fr;
    }

    .release-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .site-header {
        backdrop-filter: blur(6px);
        background: rgba(245, 246, 241, 0.95);
    }

    .container {
        padding: 0 1rem;
    }

    .nav {
        min-height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
        padding: 0.85rem 0;
    }

    .nav-links {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.55rem;
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links li {
        flex: 0 0 auto;
    }

    .nav-links a {
        display: inline-flex;
        align-items: center;
        height: 35px;
        padding: 0 0.75rem;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.78);
        font-size: 0.84rem;
    }

    .nav-links .btn-outline {
        padding: 0 0.95rem;
    }

    .card-grid,
    .pipeline,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 2.35rem;
        padding-bottom: 1.65rem;
        gap: 1rem;
    }

    h1 {
        font-size: clamp(1.8rem, 7.3vw, 2.35rem);
        max-width: none;
    }

    .hero-copy {
        font-size: 0.98rem;
        margin-bottom: 1rem;
    }

    .hero-actions {
        width: 100%;
        gap: 0.55rem;
    }

    .hero-actions .btn {
        width: 100%;
        height: 44px;
    }

    .badge-row {
        margin-bottom: 0.7rem;
    }

    .hero-panel {
        padding: 0.75rem;
        border-radius: 14px;
    }

    .terminal-body {
        padding: 0.8rem;
    }

    .terminal-body code {
        font-size: 0.73rem;
        line-height: 1.45;
        word-break: break-word;
        white-space: pre-wrap;
    }

    .quick-command {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .quick-command code {
        white-space: pre-wrap;
        word-break: break-word;
        font-size: 0.75rem;
    }

    .copy-btn {
        width: 100%;
        height: 40px;
        margin-top: 0;
    }

    .section {
        padding: 2.35rem 0;
    }

    .section-head {
        margin-bottom: 0.95rem;
    }

    h2 {
        max-width: none;
        font-size: clamp(1.4rem, 6vw, 1.95rem);
    }

    .card,
    .pipeline-item,
    .command-card,
    .release-card,
    .list-block article,
    .tier-list article {
        padding: 0.85rem;
        border-radius: 12px;
    }

    .command-card pre {
        padding: 0.65rem;
    }

    .command-card code {
        font-size: 0.74rem;
    }

    .rule-table-wrap {
        border-radius: 12px;
        margin-top: 0.8rem;
    }

    .rule-table {
        min-width: 620px;
    }

    .rule-table th,
    .rule-table td {
        padding: 0.62rem 0.68rem;
        font-size: 0.82rem;
    }

    .footer-inner {
        padding: 0.8rem 0;
        min-height: auto;
    }

    .footer-links {
        width: 100%;
        justify-content: space-between;
        gap: 0.4rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.85rem;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
    }

    .brand-text {
        font-size: 0.94rem;
        letter-spacing: 0.07em;
    }

    .eyebrow {
        font-size: 0.69rem;
        letter-spacing: 0.12em;
    }

    .stats-grid article {
        padding: 0.72rem;
    }

    .stats-grid strong {
        font-size: 0.92rem;
    }

    .stats-grid span {
        font-size: 0.79rem;
    }

    .badge-row img {
        height: 18px;
    }

    .section {
        padding: 2.05rem 0;
    }

    .rule-table {
        min-width: 560px;
    }

    .footer-inner {
        font-size: 0.84rem;
    }

    .footer-links a {
        font-size: 0.83rem;
    }
}
