:root {
    color-scheme: dark;
    --bg: #07110d;
    --surface: #101c16;
    --surface-2: #16241c;
    --green: #72ff8f;
    --green-2: #24c968;
    --red: #ff4858;
    --text: #f2fff6;
    --muted: #9cb4a5;
    --border: rgba(114, 255, 143, 0.14);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 5%, rgba(36, 201, 104, 0.15), transparent 28rem),
        radial-gradient(circle at 92% 12%, rgba(255, 72, 88, 0.10), transparent 25rem),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

.site-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 17, 13, 0.86);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand__mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(114, 255, 143, 0.35);
    border-radius: 13px;
    color: var(--green);
    background: linear-gradient(145deg, rgba(114, 255, 143, 0.18), rgba(255, 72, 88, 0.08));
    box-shadow: 0 0 30px rgba(114, 255, 143, 0.12);
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 0.94rem;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--green);
}

.hero {
    display: grid;
    min-height: calc(100vh - 150px);
    align-items: center;
    padding: 74px 0 92px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 8px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--green);
    background: rgba(16, 28, 22, 0.72);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 18px var(--green);
    content: "";
}

.hero h1 {
    max-width: 900px;
    margin: 24px 0 20px;
    font-size: clamp(2.7rem, 8vw, 6.7rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.hero h1 span {
    color: transparent;
    background: linear-gradient(105deg, var(--green), #c7ffd3 48%, var(--red));
    background-clip: text;
    -webkit-background-clip: text;
}

.hero__lead {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    background: var(--surface);
    font-weight: 750;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button--primary {
    border-color: transparent;
    color: #041008;
    background: linear-gradient(105deg, var(--green), #baffc8);
    box-shadow: 0 14px 35px rgba(114, 255, 143, 0.18);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(114, 255, 143, 0.45);
}

.foundation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 52px;
}

.foundation-card {
    min-height: 150px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(22, 36, 28, 0.94), rgba(12, 24, 17, 0.82));
    box-shadow: var(--shadow);
}

.foundation-card__number {
    display: block;
    margin-bottom: 26px;
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.foundation-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.02rem;
}

.foundation-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer {
    padding: 26px 0 38px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.88rem;
}

.error-page {
    display: grid;
    min-height: calc(100vh - 160px);
    place-items: center;
    padding: 60px 0;
    text-align: center;
}

.error-page__code {
    margin: 0;
    color: var(--red);
    font-size: clamp(5rem, 18vw, 11rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
}

.error-page h1 {
    margin: 24px 0 10px;
}

.error-page p {
    max-width: 600px;
    color: var(--muted);
}

@media (max-width: 900px) {
    .foundation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(100% - 28px, 1180px);
    }

    .site-header__inner {
        min-height: 64px;
    }

    .nav a:not(:last-child) {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 64px 0 72px;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

