:root {
    --bg: #06080b;
    --bg-soft: #0f141a;
    --panel: #111821;
    --text: #f0f2f3;
    --muted: #8f99a2;
    --teal: #2dd4bf;
    --teal-bright: #67f7e4;
    --orange: #f97316;
    --orange-bright: #ffa14f;
    --border: rgb(128 154 176 / 14%);
    --container: 68rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 8%, rgb(31 54 69 / 42%), transparent 45%),
        linear-gradient(170deg, #090c10 0%, #070b10 48%, #111924 100%);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    line-height: 1.65;
    position: relative;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image:
        radial-gradient(circle at 20% 20%, rgb(255 255 255 / 14%) 0.6px, transparent 0.8px),
        radial-gradient(circle at 80% 80%, rgb(255 255 255 / 10%) 0.6px, transparent 0.8px);
    background-size: 3px 3px, 4px 4px;
    mix-blend-mode: soft-light;
    animation: grainShift 16s steps(8) infinite;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: color 150ms ease, text-shadow 150ms ease;
}

a:hover,
a:focus-visible {
    color: var(--teal-bright);
    text-shadow: 0 0 10px rgb(45 212 191 / 28%);
}

.skip-link {
    position: absolute;
    top: -3rem;
    left: 1rem;
    z-index: 20;
    background: var(--teal);
    color: var(--bg);
    padding: 0.5rem 0.7rem;
    border-radius: 0.4rem;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus-visible {
    top: 1rem;
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(6px);
    background: rgb(13 15 16 / 80%);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.brand {
    margin: 0;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
}

.nav-list a {
    text-decoration: none;
    color: var(--muted);
    display: inline-block;
    transition: color 130ms ease, transform 130ms ease, text-shadow 130ms ease;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
    transform: scale(1.03);
    color: var(--teal-bright);
}

.section {
    padding: 3.5rem 0;
}

.stack > * {
    margin: 0;
}

.stack > * + * {
    margin-top: 1rem;
}

.hero {
    padding-top: 5.2rem;
    padding-bottom: 4.4rem;
}

.kicker {
    margin: 0;
    color: var(--teal);
    font-size: 0.94rem;
    letter-spacing: 0.06em;
    text-transform: lowercase;
}

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

h1 {
    margin-top: 0.55rem;
    font-size: clamp(2.6rem, 15vw, 7.6rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    position: relative;
    isolation: isolate;
    text-shadow: 0 0 18px rgb(45 212 191 / 12%), 0 0 24px rgb(249 115 22 / 9%);
}

h1::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -8%;
    right: -8%;
    top: 20%;
    bottom: 8%;
    background:
        radial-gradient(circle at 22% 60%, rgb(45 212 191 / 24%), transparent 55%),
        radial-gradient(circle at 78% 38%, rgb(249 115 22 / 18%), transparent 55%);
    filter: blur(22px);
    opacity: 0.38;
    animation: heroGlow 12s ease-in-out infinite alternate;
}

h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: var(--orange-bright);
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px rgb(249 115 22 / 24%);
}

h2::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    margin-top: 0.35rem;
    background: linear-gradient(90deg, rgb(249 115 22 / 75%), rgb(45 212 191 / 0%));
    transform-origin: left center;
    animation: headingPulse 3.6s ease-in-out infinite;
}

h3 {
    font-size: 1.05rem;
    color: var(--teal-bright);
}

p {
    max-width: 65ch;
}

.hero-body {
    margin-top: 1rem;
    color: var(--text);
    font-size: 1.05rem;
}

main .section .stack {
    padding: 1.1rem;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    background: linear-gradient(165deg, rgb(255 255 255 / 4%), rgb(255 255 255 / 1%));
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.64rem 1.05rem;
    border: 1px solid var(--border);
    border-radius: 0.52rem;
    color: var(--text);
    text-decoration: none;
    transition: border-color 120ms ease, color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.button:hover,
.button:focus-visible {
    border-color: var(--teal-bright);
    color: var(--teal-bright);
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 0 16px rgb(45 212 191 / 22%), 0 0 20px rgb(249 115 22 / 16%);
}

.button-primary {
    margin-top: 1.3rem;
    background: linear-gradient(90deg, rgb(45 212 191 / 22%), rgb(249 115 22 / 18%));
    border-color: #2e4f57;
}

.feature-grid {
    display: grid;
    gap: 0.9rem;
}

.card {
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    background: linear-gradient(165deg, rgb(255 255 255 / 4%), rgb(255 255 255 / 1%));
    padding: 1rem;
}

.card p {
    margin-top: 0.5rem;
    color: var(--muted);
}

.site-footer a {
    display: inline-block;
    transition: color 130ms ease, transform 130ms ease, text-shadow 130ms ease;
}

.motion-enabled .section {
    opacity: 0;
    transform: translateY(var(--reveal-distance, 28px));
    transition: opacity 500ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-enabled .section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

.footer-inner {
    text-align: center;
    color: var(--muted);
    padding: 2rem 0 2.4rem;
}

.footer-inner p {
    margin: 0;
}

.footer-inner p + p {
    margin-top: 0.5rem;
}

.footer-links {
    display: inline-flex;
    gap: 0.8rem;
    align-items: center;
}

@media (min-width: 42rem) {
    .section {
        padding: 5rem 0;
    }

    main .section .stack {
        padding: 1.4rem;
    }

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

    .hero {
        min-height: 70vh;
        display: grid;
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

@keyframes heroGlow {
    from {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }

    to {
        transform: translate3d(2%, 1%, 0) scale(1.04);
    }
}

@keyframes headingPulse {
    0%,
    100% {
        opacity: 0.7;
        transform: scaleX(0.98);
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes grainShift {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(1%, -1%);
    }

    50% {
        transform: translate(-1%, 1%);
    }

    75% {
        transform: translate(0.6%, 0.4%);
    }

    100% {
        transform: translate(0, 0);
    }
}
