:root {
    --bg: #020705;
    --bg-soft: #07110d;
    --panel: rgba(6, 17, 12, 0.78);
    --panel-strong: rgba(4, 12, 9, 0.92);
    --line: rgba(103, 255, 142, 0.18);
    --line-strong: rgba(103, 255, 142, 0.34);
    --text: #eefbf0;
    --muted: #9bb6a4;
    --neon: #67ff8e;
    --neon-strong: #b6ff72;
    --cyan: #7df9ff;
    --shadow: 0 0 40px rgba(103, 255, 142, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(103, 255, 142, 0.1), transparent 26%),
        radial-gradient(circle at bottom left, rgba(125, 249, 255, 0.08), transparent 22%),
        linear-gradient(180deg, #010403 0%, #020705 45%, #010403 100%);
}

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

canvas#matrix-rain {
    position: fixed;
    inset: 0;
    z-index: -4;
    width: 100%;
    height: 100%;
    opacity: 0.18;
}

.page-dim {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background:
        radial-gradient(circle at top, rgba(0, 0, 0, 0.08), transparent 40%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(1, 4, 3, 0.24));
}

.page-noise,
.page-scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.page-noise {
    z-index: -2;
    opacity: 0.035;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2) 0 0.7px, transparent 0.8px),
        radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.16) 0 0.8px, transparent 0.9px),
        radial-gradient(circle at 40% 90%, rgba(255, 255, 255, 0.12) 0 0.6px, transparent 0.8px);
    background-size: 24px 24px, 31px 31px, 17px 17px;
}

.page-scanlines {
    z-index: -1;
    opacity: 0.035;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.025) 0 1px,
        transparent 1px 4px
    );
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 0 1.25rem;
}

.shell-panel {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(8, 21, 15, 0.88), rgba(4, 10, 8, 0.92));
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.shell-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(103, 255, 142, 0.05), transparent 42%);
    pointer-events: none;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto 1rem;
    padding: 1rem 1.25rem;
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-transform: uppercase;
}

.brand-mark {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.brand-sub {
    margin-top: 0.3rem;
    color: var(--neon);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.menu a,
.button {
    transition:
        color 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.menu a:hover,
.menu a:focus-visible {
    color: var(--text);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.35rem;
    border: 1px solid transparent;
    background: linear-gradient(90deg, rgba(103, 255, 142, 0.95), rgba(182, 255, 114, 0.95));
    color: #041108;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 0 24px rgba(103, 255, 142, 0.22);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(103, 255, 142, 0.32);
}

.button-ghost {
    border-color: var(--line);
    background: rgba(5, 14, 10, 0.55);
    color: var(--text);
    box-shadow: none;
}

.button-ghost:hover,
.button-ghost:focus-visible {
    border-color: var(--line-strong);
}

.button-small {
    padding: 0.7rem 1rem;
    font-size: 0.72rem;
}

main {
    position: relative;
    z-index: 1;
}

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4.5rem 1.25rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
    gap: 2rem;
    align-items: start;
    padding-top: 3rem;
}

.hero-copy {
    padding-top: 2rem;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--neon);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.glitch-title {
    position: relative;
    margin: 0;
    font-size: clamp(3rem, 9vw, 6.5rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.glitch-title span {
    display: block;
    position: relative;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0.14;
    pointer-events: none;
    white-space: pre-wrap;
    mix-blend-mode: screen;
}

.glitch-title::before {
    color: var(--cyan);
    transform: translate(2px, -1px);
    animation: glitchShift 6.8s infinite steps(2, end);
}

.glitch-title::after {
    color: var(--neon-strong);
    transform: translate(-2px, 1px);
    animation: glitchShift 8.5s infinite steps(2, end) reverse;
}

.lead {
    max-width: 760px;
    margin: 1.4rem 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

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

.stat-card {
    padding: 1rem;
    border: 1px solid var(--line);
    background: rgba(4, 13, 9, 0.62);
}

.stat-label {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;
    color: var(--neon-strong);
    font-size: 1.18rem;
}

.stat-card p {
    margin: 0.55rem 0 0;
    color: var(--muted);
}

.hero-console {
    min-height: 100%;
    padding: 0;
}

.panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: var(--neon);
    box-shadow: 0 0 12px var(--neon);
}

.console-body {
    padding: 1.2rem;
}

.console-summary {
    margin: 0 0 1rem;
    color: var(--muted);
}

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

.console-grid div {
    padding: 0.9rem;
    border: 1px solid rgba(103, 255, 142, 0.12);
    background: rgba(4, 12, 9, 0.7);
    min-height: 98px;
}

.console-grid span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.console-grid strong {
    font-size: 0.98rem;
}

.overview-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.overview-item {
    padding: 0.95rem 1rem;
    border: 1px solid rgba(103, 255, 142, 0.12);
    background: rgba(4, 12, 9, 0.55);
}

.overview-item strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.98rem;
}

.overview-item p {
    margin: 0;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 2rem;
}

.section-heading h2,
.footer-cta h2 {
    margin: 0.35rem 0 0.85rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.section-heading p:last-child,
.shell-panel p,
.footer-cta p {
    color: var(--muted);
}

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

.align-start {
    align-items: start;
}

.shell-panel h3 {
    margin-top: 0;
    font-size: 1.4rem;
}

.bullet-list {
    margin: 1.25rem 0 0;
    padding-left: 1.15rem;
}

.bullet-list li {
    margin: 0.55rem 0;
    color: var(--muted);
}

.tag-row,
.engine-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.tag-row {
    margin: 1rem 0 1.25rem;
}

.tag-row span,
.engine-grid span {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(103, 255, 142, 0.16);
    background: rgba(7, 18, 12, 0.7);
    color: #cdefd1;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.callout-line {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(103, 255, 142, 0.15);
    color: var(--text) !important;
}

.product-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 2.2rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
    backdrop-filter: blur(12px);
}

.product-img-wrap {
    width: 260px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(180deg, #f0f4f0 0%, #d8e0d8 100%);
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(103, 255, 142, 0.05);
}

.product-img {
    display: block;
    width: 100%;
    height: auto;
}

.product-info h3 {
    margin: 0 0 0.15rem;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
}

.product-subtitle {
    margin: 0 0 1rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
    color: var(--neon);
    letter-spacing: 0.04em;
}

.product-info > p {
    margin: 0 0 1.4rem;
    color: var(--muted);
    line-height: 1.65;
}

.product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.4rem;
    margin: 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
    font-size: 0.85rem;
    color: var(--muted);
}

.product-specs span {
    display: block;
    margin-bottom: 0.1rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    color: var(--neon);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (max-width: 700px) {
    .product-card {
        grid-template-columns: 1fr;
        max-width: 400px;
        padding: 1.4rem;
        text-align: center;
    }

    .product-img-wrap {
        width: 220px;
        justify-self: center;
    }

    .product-specs {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
}

.feature-list,
.module-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.feature-item,
.module-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 1rem;
    border: 1px solid rgba(103, 255, 142, 0.12);
    background: rgba(4, 12, 9, 0.55);
}

.feature-item span,
.module-item span,
.step-number {
    color: var(--neon);
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.14em;
}

.feature-item strong,
.module-item strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.feature-item p,
.module-item p {
    margin: 0;
}

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

.timeline-step {
    min-height: 260px;
}

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

.glossary-card {
    min-height: 240px;
}

.term {
    margin: 0.2rem 0 0.9rem;
    color: var(--neon) !important;
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.stack-panel.wide {
    grid-column: 1 / -1;
}

.engine-grid {
    margin-top: 1.25rem;
}

.quote {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    border-left: 2px solid rgba(103, 255, 142, 0.45);
    color: var(--text) !important;
    font-size: 1.05rem;
}

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

.site-footer {
    padding-top: 1rem;
    padding-bottom: 5rem;
}

.footer-cta {
    padding: 2rem;
}

.footer-note {
    margin: 1.5rem 0 0;
    color: var(--muted);
    text-align: center;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

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

.reveal.visible {
    opacity: 1;
    transform: none;
}

@keyframes glitchShift {
    0%,
    100% {
        clip-path: inset(0 0 0 0);
    }
    10% {
        clip-path: inset(12% 0 71% 0);
    }
    20% {
        clip-path: inset(78% 0 8% 0);
    }
    30% {
        clip-path: inset(48% 0 30% 0);
    }
    40% {
        clip-path: inset(4% 0 83% 0);
    }
    50% {
        clip-path: inset(63% 0 12% 0);
    }
    60% {
        clip-path: inset(28% 0 53% 0);
    }
    70% {
        clip-path: inset(85% 0 3% 0);
    }
    80% {
        clip-path: inset(39% 0 38% 0);
    }
    90% {
        clip-path: inset(7% 0 75% 0);
    }
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spinReverse {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

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

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

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

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

@media (max-width: 720px) {
    .site-header {
        padding: 0 0.75rem;
    }

    .topbar,
    .nav,
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu {
        gap: 0.85rem 1rem;
    }

    .section {
        padding: 3.8rem 1.1rem;
    }

    .hero {
        padding-top: 1rem;
    }

    .hero-copy {
        padding-top: 0.5rem;
    }

    .metric-grid,
    .stack-grid,
    .timeline,
    .console-grid {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .glitch-title::before,
    .glitch-title::after {
        opacity: 0.16;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    canvas#matrix-rain {
        display: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
