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

:root {
    --ink: #18312d;
    --muted: #56716a;
    --surface: #f4faf7;
    --surface-strong: #ffffff;
    --line: rgba(11, 79, 58, 0.12);
    --deep: #0b4f3a;
    --deep-2: #083d2d;
    --mint: #4ecba0;
    --mint-2: #d9f4ea;
    --shadow: 0 16px 48px rgba(8, 61, 45, 0.12);
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top right, rgba(78, 203, 160, 0.18), transparent 24%),
        linear-gradient(180deg, #f7fcf9 0%, var(--surface) 100%);
    overflow-x: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 5%;
    background-color: rgba(11, 79, 58, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.logo {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.logo span {
    color: var(--mint);
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.site-nav a {
    color: #d3ece2;
    text-decoration: none;
    font-size: 0.92rem;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background-color 160ms ease, color 160ms ease;
}

.site-nav a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.site-nav .nav-cta {
    color: var(--deep);
    background: var(--mint);
    font-weight: 700;
    padding: 9px 18px;
}

.site-nav .nav-cta:hover {
    color: var(--deep);
    background: #39bc90;
}

.hero {
    position: relative;
    padding: 112px 5% 88px;
    background:
        linear-gradient(135deg, rgba(8, 61, 45, 0.92), rgba(11, 79, 58, 0.84)),
        radial-gradient(circle at center, rgba(78, 203, 160, 0.18), transparent 34%);
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -36% auto;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(78, 203, 160, 0.14);
    filter: blur(8px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.hero-badge,
.section-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-badge {
    color: var(--mint);
    border: 1px solid rgba(78, 203, 160, 0.55);
    background: rgba(78, 203, 160, 0.12);
}

.hero h1 {
    max-width: 13ch;
    font-size: clamp(2.7rem, 6vw, 5rem);
    line-height: 1.05;
    color: #fff;
}

.hero-copy {
    max-width: 64ch;
    margin-top: 22px;
    font-size: 1.08rem;
    line-height: 1.75;
    color: #c0dfd5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn-primary {
    color: var(--deep);
    background: var(--mint);
}

.btn-primary:hover {
    background: #39bc90;
    transform: translateY(-1px);
}

.btn-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--deep-2);
}

.stat-item {
    padding: 26px 16px;
    text-align: center;
    background: var(--deep-2);
}

.number {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--mint);
}

.label {
    margin-top: 6px;
    color: #9ac8b8;
    font-size: 0.88rem;
}

.section {
    padding: 84px 5%;
}

.section-alt {
    background: rgba(255, 255, 255, 0.55);
}

.section-label {
    color: var(--deep);
    background: var(--mint-2);
}

.section-title {
    max-width: 16ch;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    color: #0f362d;
}

.section-sub {
    max-width: 62ch;
    margin-top: 18px;
    color: var(--muted);
    line-height: 1.75;
    font-size: 1.02rem;
}

.section-sub.compact {
    margin-top: 20px;
}

.feature-grid,
.deployment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.feature-card,
.deployment-card,
.structure-panel,
.not-found-shell {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.feature-card,
.deployment-card {
    padding: 22px;
}

.feature-card h3,
.deployment-card h3 {
    margin-bottom: 10px;
    color: #0f362d;
}

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

.structure-panel {
    margin-top: 30px;
    padding: 24px;
}

.structure-panel pre {
    overflow-x: auto;
}

.structure-panel code,
.hero-copy code,
.deployment-card code,
.not-found-copy code {
    font-family: "Courier New", monospace;
    font-size: 0.95em;
}

.api-status-card p {
    min-height: 52px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 28px 5% 40px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--deep);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

.not-found-shell {
    width: min(720px, calc(100% - 2rem));
    margin: 12vh auto;
    padding: 36px;
}

.not-found-shell h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    color: #0f362d;
}

.not-found-copy {
    margin: 18px 0 26px;
    color: var(--muted);
    line-height: 1.75;
}

@media (max-width: 920px) {
    .stats-bar,
    .feature-grid,
    .deployment-grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-header,
    .site-footer {
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    .stats-bar,
    .feature-grid,
    .deployment-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 96px;
    }

    .hero h1,
    .section-title {
        max-width: none;
    }

    .not-found-shell {
        padding: 28px 20px;
    }
}
