/* ==========================================================================
   PorkiCoder landing page — modernized Matrix theme
   Self-contained stylesheet for index.html (other pages use styles.css)
   ========================================================================== */

:root {
    --bg: #05080b;
    --bg-raise: #070c0f;
    --surface: #0a1013;
    --surface-2: #0d1518;

    --text: #e9f3ee;
    --text-2: #9db4ab;
    --text-3: #64786f;

    /* One green family keyed to the Matrix signature; every tint/glow derives from the *-rgb tokens. */
    --green: #00ff41;
    --green-rgb: 0, 255, 65;
    --green-2: var(--mint);
    --mint: #8dffb3;
    --mint-rgb: 141, 255, 179;
    --green-deep: #00a32a;
    --green-deep-rgb: 0, 163, 42;
    --ink-on-green: #03130a;
    --matrix: var(--green);
    --glow: rgba(var(--green-rgb), 0.2);

    --line: rgba(var(--green-rgb), 0.1);
    --line-2: rgba(var(--green-rgb), 0.2);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 32px 64px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 40px rgba(var(--green-rgb), 0.12);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    /* raised band: the one recipe every alternate section uses */
    --band-bg: radial-gradient(ellipse 55% 60% at 88% 15%, rgba(var(--green-rgb), 0.07), transparent 60%), var(--bg-raise);
    --card-bg: var(--surface);
    --card-hover-border: rgba(var(--green-rgb), 0.45);
    --card-hover-shadow: var(--shadow-md), 0 0 24px rgba(var(--green-rgb), 0.1);
    --card-highlight-bg: linear-gradient(160deg, rgba(var(--green-rgb), 0.08), transparent 60%), var(--surface);
    --card-highlight-border: rgba(var(--green-rgb), 0.35);
    --header-h: 68px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text-2);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

::selection {
    background: rgba(var(--green-rgb), 0.28);
    color: #eafff5;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: #1a2a23;
    border-radius: 6px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
    background: #24463a;
}

*:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 4px;
}

img, video, canvas, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--green);
    text-decoration: none;
}

code, kbd {
    font-family: var(--font-mono);
    font-size: 0.86em;
    color: var(--green-2);
    background: rgba(var(--green-rgb), 0.09);
    border: 1px solid rgba(var(--green-rgb), 0.14);
    border-radius: 6px;
    padding: 0.1em 0.4em;
    white-space: nowrap;
}

kbd {
    color: var(--text);
    background: var(--surface-2);
    border-color: var(--line-2);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

/* ---------- Background layers ---------- */
#circuit-board {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--green-rgb), 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--green-rgb), 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.8;
    mask-image: linear-gradient(180deg, black 0%, black 82%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, black 0%, black 82%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse 70% 45% at 50% -10%, rgba(var(--green-rgb), 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 45% 35% at 92% 55%, rgba(var(--green-rgb), 0.05) 0%, transparent 55%),
        radial-gradient(ellipse 45% 35% at 6% 85%, rgba(var(--green-rgb), 0.04) 0%, transparent 55%);
    pointer-events: none;
    z-index: -3;
}

/* ---------- Layout ---------- */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    position: relative;
    padding: clamp(68px, 8.5vw, 104px) 0;
}

.section + .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 48px));
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}

/* ---------- Shared typography ---------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--green);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.eyebrow code {
    font-size: 0.92em;
}

.eyebrow-chip {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-on-green);
    background: var(--green);
    border-radius: 999px;
    padding: 3px 10px;
}

.section-title {
    font-size: clamp(1.9rem, 3.6vw, 2.75rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: var(--text);
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-2);
    max-width: 640px;
}

.section-head {
    max-width: 760px;
    margin-bottom: clamp(44px, 6vw, 64px);
}

.section-head-split {
    max-width: none;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: end;
}

.section-head-split .section-sub {
    justify-self: end;
}

/* Accent words: solid mint, brutalist stamp, exposed sparking wire.
   Only the spark moves (transform + opacity on one small pseudo-element per
   word) and the word hum is opacity-only, so there are no filters and no
   animated shadows to repaint. */
.title-accent {
    position: relative;
    display: inline-block;
    color: var(--mint);
    font-weight: 800;
    letter-spacing: -0.05em;
    text-shadow:
        2px 2px 0 var(--green-deep),
        4px 4px 0 rgba(var(--green-deep-rgb), 0.32);
    animation: accent-hum 9s steps(1, end) infinite;
}

.title-accent::before {
    content: '';
    position: absolute;
    left: 0.04em;
    right: 0.04em;
    bottom: -0.09em;
    height: 0.06em;
    min-height: 2px;
    border-radius: 1px;
    background: repeating-linear-gradient(
        90deg,
        var(--mint) 0 0.9em,
        rgba(var(--mint-rgb), 0.22) 0.9em 1.12em
    );
    box-shadow: 0 0 8px rgba(var(--mint-rgb), 0.35);
}

.title-accent::after {
    content: '';
    position: absolute;
    left: 0.04em;
    bottom: calc(-0.09em - 3px);
    width: calc(100% - 0.08em);
    height: 8px;
    background: radial-gradient(circle at 4px 4px, #f4fff9 0 1.6px, rgba(var(--mint-rgb), 0.9) 2.4px, rgba(var(--mint-rgb), 0.35) 3.2px, transparent 4px) 0 0 / 8px 8px no-repeat;
    opacity: 0;
    animation: accent-spark 3.4s steps(26, end) infinite;
}

[data-hero-line="1"] .title-accent::after {
    animation-duration: 4.1s;
    animation-delay: -1.3s;
}

#consult-title .title-accent::after {
    animation-delay: -2.2s;
}

#philosophy-title .title-accent:last-of-type::after {
    animation-duration: 3.9s;
    animation-delay: -1.7s;
}

@keyframes accent-spark {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    3% {
        opacity: 1;
    }

    27% {
        opacity: 0.35;
    }

    29% {
        opacity: 1;
    }

    52% {
        opacity: 0.3;
    }

    54% {
        opacity: 1;
    }

    70% {
        transform: translateX(calc(100% - 8px));
        opacity: 1;
    }

    74% {
        opacity: 0;
    }

    100% {
        transform: translateX(calc(100% - 8px));
        opacity: 0;
    }
}

@keyframes accent-hum {
    0%, 100% {
        opacity: 1;
    }

    41% {
        opacity: 0.84;
    }

    41.6% {
        opacity: 1;
    }

    73% {
        opacity: 0.9;
    }

    73.4% {
        opacity: 1;
    }
}

.nowrap {
    white-space: nowrap;
}

.hl {
    color: var(--green-2);
    font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
                background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--green);
    color: var(--ink-on-green);
    border-color: var(--green);
    box-shadow: 3px 3px 0 var(--green-deep), 0 0 24px rgba(var(--green-rgb), 0.18);
}

.btn-primary:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--green-deep), 0 0 32px rgba(var(--green-rgb), 0.28);
}

.btn-primary:active {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 var(--green-deep);
}

.btn-ghost {
    background: rgba(var(--green-rgb), 0.04);
    border-color: rgba(var(--green-rgb), 0.35);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: rgba(var(--green-rgb), 0.45);
    background: rgba(var(--green-rgb), 0.09);
    transform: translateY(-2px);
}

.btn-lg {
    font-size: 1.02rem;
    padding: 16px 30px;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 8, 11, 0.6);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
    background: rgba(5, 8, 11, 0.88);
    border-bottom-color: var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 144px;
    height: 36px;
    color: var(--text);
    z-index: 1002;
    flex-shrink: 0;
}

/* The coil: two SVG layers so the wire passes behind and in front of the letters. */
.brand-coil {
    position: absolute;
    inset: 0;
    width: 144px;
    height: 36px;
    overflow: visible;
    pointer-events: none;
}

.brand-coil-back { z-index: 0; }
.brand-coil-front { z-index: 2; }

.brand-coil .coil {
    fill: none;
    stroke: var(--green);
    stroke-width: 2.2;
    stroke-linecap: round;
}

/* dark under-stroke: makes the front arcs read as passing over the letters */
.brand-coil .coil-under {
    fill: none;
    stroke: var(--bg);
    stroke-width: 4;
    stroke-linecap: round;
}

.brand-coil-back .coil-under {
    stroke: none;
}

.brand-coil .coil-glow {
    fill: none;
    stroke: rgba(var(--green-rgb), 0.22);
    stroke-width: 5;
    stroke-linecap: round;
}

.brand-coil-back .coil {
    stroke: rgba(var(--green-rgb), 0.55);
    stroke-width: 1.5;
}

.brand-coil-back .coil-glow {
    stroke: rgba(var(--green-rgb), 0.1);
}

.brand-spark-core { fill: #f4fff9; }
.brand-spark-halo { fill: rgba(var(--mint-rgb), 0.4); }
/* Lightning bolt (replaces the smooth coil): angular strokes, white core,
   a second jittered bolt that flashes in, blinking tips. All opacity-only. */
.brand-coil .bolt {
    fill: none;
    stroke: rgba(var(--green-rgb), 1);
    stroke-width: 2.2;
    stroke-linejoin: miter;
    stroke-miterlimit: 8;
    stroke-linecap: square;
}

.brand-coil .bolt-core {
    fill: none;
    stroke: #f4fff9;
    stroke-width: 0.9;
    stroke-linejoin: miter;
    stroke-miterlimit: 8;
    stroke-linecap: square;
    opacity: 0.9;
}

.brand-coil .coil-under {
    stroke: var(--bg);
    stroke-width: 4.2;
    stroke-linejoin: miter;
    stroke-miterlimit: 8;
    stroke-linecap: square;
}

.brand-coil-back .bolt {
    stroke: rgba(var(--green-rgb), 0.55);
    stroke-width: 1.8;
}

.brand-coil-back .bolt-core {
    opacity: 0.4;
}

.bolt-tip {
    fill: #f4fff9;
    opacity: 0;
}

.bolt-b {
    opacity: 0;
    animation: bolt-flash-b 2.3s steps(1, end) infinite;
}

.bolt-a {
    animation: bolt-flash-a 2.3s steps(1, end) infinite;
}

@keyframes bolt-flash-b {
    0%, 100% { opacity: 0; }
    31%, 34% { opacity: 1; }
    57%, 59% { opacity: 1; }
    60.5%, 62% { opacity: 1; }
    84%, 86% { opacity: 1; }
}

@keyframes bolt-flash-a {
    0%, 100% { opacity: 1; }
    31%, 34% { opacity: 0; }
    57%, 59% { opacity: 0; }
    60.5%, 62% { opacity: 0; }
    84%, 86% { opacity: 0; }
}


.brand-text {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--text);
    text-shadow: 0 0 2px var(--bg), 0 0 2px var(--bg);
    transition: color 0.2s var(--ease);
}

.brand:hover .brand-text { color: var(--mint); }

/* The "o" in Coder is HOGSPHERE. */
.brand-hog {
    display: inline-block;
    width: 1.06em;
    height: 1.06em;
    margin: 0 0.01em;
    background: url('/assets/brand/hogbot.png') center / contain no-repeat;
    border-radius: 50%;
    box-shadow: 0 0 0 1.5px rgba(var(--green-rgb), 0.85), 0 0 8px rgba(var(--green-rgb), 0.35);
    transform: translateY(-0.5px);
}

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

.site-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-2);
    transition: color 0.2s var(--ease);
    position: relative;
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 1px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}

.site-nav a:hover {
    color: var(--text);
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.site-nav .nav-cta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green);
    border: 1px solid rgba(var(--green-rgb), 0.35);
    border-radius: 999px;
    padding: 7px 16px;
    transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}

.site-nav .nav-cta::after {
    display: none;
}

.site-nav .nav-cta:hover {
    background: rgba(var(--green-rgb), 0.12);
    box-shadow: 0 0 20px rgba(var(--green-rgb), 0.15);
    color: var(--green-2);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-16px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    padding: calc(var(--header-h) + clamp(48px, 8vh, 88px)) 0 clamp(56px, 7vw, 84px);
    text-align: center;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.release-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-2);
    background: rgba(var(--green-rgb), 0.05);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 7px 16px 7px 8px;
    margin-bottom: 34px;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.release-pill:hover {
    border-color: rgba(var(--green-rgb), 0.45);
    background: rgba(var(--green-rgb), 0.09);
    transform: translateY(-1px);
}

.release-pill-badge {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-on-green);
    background: var(--green);
    border-radius: 999px;
    padding: 4px 10px;
}

.release-pill-text strong {
    color: var(--text);
    font-weight: 600;
}

.release-pill-cta {
    color: var(--green);
    font-weight: 600;
    white-space: nowrap;
}

.hero-title {
    font-size: clamp(2.7rem, 6.6vw, 4.9rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.04;
    color: var(--text);
    margin-bottom: 26px;
}

.hero-title-swap {
    display: grid;
}

.hero-title-line {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(16px);
    filter: blur(8px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
    pointer-events: none;
}

.hero-title-line.is-on {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    pointer-events: auto;
}

.hero-lead {
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    line-height: 1.7;
    color: var(--text-2);
    max-width: 660px;
    margin-bottom: 36px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 22px;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-3);
    margin-bottom: clamp(48px, 6vw, 72px);
}

.meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-3);
}

/* ---------- Terminal window component ---------- */
.term-window {
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.2), var(--shadow-glow);
    text-align: left;
}

.term-titlebar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid var(--line);
}

.term-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}

.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #febc2e; }
.term-dot.g { background: #28c840; }

.term-titlebar-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-3);
    margin-left: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.term-body {
    background: #060a0c;
    position: relative;
}

.term-body img,
.term-body video {
    width: 100%;
    height: auto;
}

/* ---------- Hero console (video + stepper) ---------- */
.hero-console {
    width: 100%;
    max-width: 960px;
    margin-bottom: clamp(40px, 5vw, 56px);
}

.hero-demo-frame {
    aspect-ratio: 16 / 9;
}

.hero-demo-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-demo-toggle {
    position: absolute;
    right: 14px;
    bottom: 14px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text);
    background: rgba(5, 8, 11, 0.72);
    border: 1px solid var(--line-2);
    border-radius: 8px;
    padding: 7px 14px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.hero-demo-toggle:hover {
    border-color: rgba(var(--green-rgb), 0.5);
    color: var(--green-2);
}

.hero-chapters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.hero-chapter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-2);
    background: rgba(var(--green-rgb), 0.03);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 15px;
    cursor: pointer;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
                background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.hero-chapter .chapter-num {
    font-size: 0.68rem;
    color: var(--text-3);
    transition: color 0.2s var(--ease);
}

.hero-chapter:hover {
    color: var(--text);
    border-color: var(--line-2);
}

.hero-chapter.is-active {
    color: var(--green-2);
    background: rgba(var(--green-rgb), 0.1);
    border-color: rgba(var(--green-rgb), 0.45);
    box-shadow: 0 0 18px rgba(var(--green-rgb), 0.12);
}

.hero-chapter.is-active .chapter-num {
    color: var(--green);
}

.hero-chapter-panels {
    margin-top: 18px;
}

.stepper-slide {
    max-width: 720px;
    margin: 0 auto;
}

.stepper-detail {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-2);
}

.stepper-detail strong {
    color: var(--text);
    font-weight: 600;
}

.stepper-slide.is-active .stepper-detail {
    animation: slideFade 0.45s var(--ease) both;
}

@keyframes slideFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Hero stats ---------- */
.hero-stats {
    width: 100%;
    max-width: 960px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.hero-stat {
    padding: 26px 18px;
    text-align: center;
}

.hero-stat + .hero-stat {
    border-left: 1px solid var(--line);
}

.hero-stat dt {
    font-family: var(--font-mono);
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--green);
    margin-bottom: 6px;
    text-shadow: 0 0 24px rgba(var(--green-rgb), 0.35);
}

.hero-stat dd {
    font-size: 0.8rem;
    color: var(--text-3);
    line-height: 1.45;
}

/* ---------- Features: primary grid ---------- */
.primary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.p-card {
    position: relative;
    background: linear-gradient(180deg, rgba(var(--green-rgb), 0.035), transparent 40%), var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.p-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--green-rgb), 0.35);
    box-shadow: var(--shadow-md), 0 0 32px rgba(var(--green-rgb), 0.08);
}

.p-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
}

.p-card-num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-3);
}

.p-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    background: rgba(var(--green-rgb), 0.08);
    border: 1px solid rgba(var(--green-rgb), 0.18);
    border-radius: 12px;
}

.p-card-icon svg {
    width: 22px;
    height: 22px;
}

.p-card h3 {
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 10px;
}

.p-card p {
    font-size: 0.94rem;
    line-height: 1.7;
}

/* ---------- Features: divider + secondary grid ---------- */
.features-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: clamp(40px, 5vw, 56px) 0 28px;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.features-divider::before,
.features-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.secondary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.s-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.s-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--green-rgb), 0.3);
    box-shadow: var(--shadow-md);
}

.s-card-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    background: rgba(var(--green-rgb), 0.07);
    border: 1px solid rgba(var(--green-rgb), 0.15);
    border-radius: 10px;
    margin-bottom: 18px;
}

.s-card-icon svg {
    width: 19px;
    height: 19px;
}

.s-card h3 {
    font-size: 1.02rem;
    font-weight: 650;
    letter-spacing: -0.015em;
    color: var(--text);
    margin-bottom: 8px;
}

.s-card p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-2);
}

.tag-beta {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-2);
    border: 1px solid rgba(var(--green-rgb), 0.3);
    border-radius: 999px;
    padding: 2px 8px;
    vertical-align: middle;
}

.s-card-docs {
    color: inherit;
    border-color: rgba(var(--green-rgb), 0.22);
    background: linear-gradient(160deg, rgba(var(--green-rgb), 0.07), transparent 55%), var(--surface);
}

.s-card-docs .s-card-cta {
    margin-top: auto;
    padding-top: 16px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--green);
}

.s-card-docs:hover .s-card-cta {
    color: var(--green-2);
}

/* ---------- Showcase rows ---------- */
.showcase-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(36px, 5vw, 64px);
    align-items: center;
}

.showcase-grid-flip {
    grid-template-columns: 7fr 5fr;
}

.showcase-grid-flip .showcase-copy {
    order: 2;
}

.showcase-grid-flip .showcase-media {
    order: 1;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin-top: 24px;
}

.chip-row li {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--green-2);
    background: rgba(var(--green-rgb), 0.07);
    border: 1px solid rgba(var(--green-rgb), 0.2);
    border-radius: 999px;
    padding: 6px 13px;
}

.showcase-media figcaption {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    line-height: 1.6;
    color: var(--text-3);
    margin-top: 14px;
}

/* ---------- PorkiConsult ---------- */
.consult-grid {
    display: grid;
    grid-template-columns: 6fr 6fr;
    gap: clamp(36px, 5vw, 64px);
    align-items: center;
}

.consult-bound {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-2);
    border-left: 2px solid rgba(var(--green-rgb), 0.4);
    padding-left: 18px;
    margin-top: 22px;
}

.consult-bound strong {
    color: var(--text);
}

.check-list {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-2);
}

.check-list li::before {
    content: '▸';
    position: absolute;
    left: 4px;
    top: 0;
    color: var(--green);
    font-family: var(--font-mono);
}

.consult-term-body {
    padding: 22px 22px 26px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.7;
}

.consult-term-body p {
    margin: 0;
}

.ct-head {
    color: var(--text);
    font-weight: 600;
}

.ct-sub {
    color: var(--text-3);
    font-size: 0.74rem;
    margin-bottom: 18px;
}

.ct-row {
    color: var(--text-2);
}

.ct-gap {
    margin-top: 14px;
}

.ct-prompt {
    color: var(--green);
    font-weight: 700;
}

.ct-user {
    color: var(--text);
}

.ct-dot {
    color: var(--green);
    font-size: 0.7rem;
}

.ct-status {
    color: var(--green-2);
}

.ct-dim {
    color: var(--text-3);
    padding-left: 18px;
    font-size: 0.74rem;
}

.ct-answer {
    color: var(--text-2);
}

.ct-meta {
    color: var(--text-3);
    font-size: 0.74rem;
    margin-top: 10px;
    padding-left: 18px;
}

.ct-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    margin-left: 6px;
    vertical-align: text-bottom;
    background: var(--green);
    animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
    to {
        visibility: hidden;
    }
}

/* ---------- Research ---------- */
.research {
    background: var(--band-bg);
}

.research-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}

.research-bound {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-3);
    border-left: 2px solid var(--line-2);
    padding-left: 18px;
    margin-top: 22px;
}

.research-bound strong {
    color: var(--text-2);
}

.research-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.research-evidence {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.evidence-row {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.evidence-row:hover {
    border-color: rgba(var(--green-rgb), 0.3);
    transform: translateX(4px);
}

.evidence-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}

.evidence-row strong {
    font-family: var(--font-mono);
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--green);
}

.evidence-note {
    font-size: 0.8rem;
    color: var(--text-3);
}

.evidence-row-conclusion {
    border-color: rgba(var(--green-rgb), 0.35);
    background: linear-gradient(160deg, rgba(var(--green-rgb), 0.08), transparent 60%), var(--surface);
}

/* ---------- Tutorials ---------- */
.guide-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(120deg, rgba(var(--green-rgb), 0.09), rgba(var(--green-rgb), 0.02) 55%), var(--surface);
    border: 1px solid rgba(var(--green-rgb), 0.22);
    border-radius: var(--radius-lg);
    padding: 30px 34px;
    margin-bottom: 18px;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.guide-banner:hover {
    border-color: rgba(var(--green-rgb), 0.4);
    box-shadow: var(--shadow-glow);
}

.guide-banner-copy h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 8px;
}

.guide-banner-copy p:last-child {
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 640px;
}

.guide-banner-link {
    flex-shrink: 0;
}

.tut-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tut-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 26px;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.tut-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--green-rgb), 0.3);
    box-shadow: var(--shadow-md);
}

.tut-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-3);
    margin-bottom: 20px;
}

.tut-num {
    color: var(--green);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.tut-kicker {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--green);
    margin-bottom: 10px;
}

.tut-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 10px;
}

.tut-card p {
    font-size: 0.87rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.tut-link {
    margin-top: auto;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--green);
    transition: color 0.2s var(--ease);
}

.tut-link:hover {
    color: var(--green-2);
}

/* ---------- Blog ---------- */
.blog-feature-card {
    max-width: 780px;
    background: linear-gradient(180deg, rgba(var(--green-rgb), 0.05), transparent 50%), var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    padding: 34px 38px;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.blog-feature-card:hover {
    border-color: rgba(var(--green-rgb), 0.35);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: translateY(-3px);
}

.blog-feature-title {
    font-size: 1.42rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 12px;
}

.blog-feature-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-2);
    margin-bottom: 20px;
}

.blog-feature-link {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--green);
    transition: color 0.2s var(--ease);
}

.blog-feature-link:hover {
    color: var(--green-2);
}

.blog-more {
    margin-top: 22px;
    font-size: 0.9rem;
}

/* ---------- Download ---------- */
.download-grid {
    display: grid;
    grid-template-columns: 6fr 6fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.download-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-2);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 10px 18px;
}

.platform-badge svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.version-text {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-3);
    margin-top: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.new-badge {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-on-green);
    background: var(--green);
    border-radius: 999px;
    padding: 3px 9px;
}

.dot-separator {
    opacity: 0.5;
}

/* ---------- Matrix terminal (easter egg) ---------- */
.matrix-terminal {
    position: relative;
}

.matrix-container {
    width: 100%;
    height: 280px;
    background: #05080a;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.matrix-container:hover {
    box-shadow: inset 0 0 60px rgba(0, 255, 65, 0.06);
}

#matrix-canvas {
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.matrix-container.porcine-mode #matrix-canvas {
    opacity: 0;
}

.snout-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease 0.3s;
    pointer-events: none;
}

.matrix-container.porcine-mode .snout-content {
    opacity: 1;
}

.matrix-caption {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-3);
    text-align: center;
    margin-top: 16px;
}

.porki-text {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--matrix);
    text-align: center;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.4s ease 0.4s, transform 0.4s ease 0.4s;
}

.matrix-terminal.porcine-active .porki-text {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: clamp(48px, 6vw, 72px) 0 36px;
    background: var(--bg-raise);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-3);
    max-width: 320px;
    margin-top: 14px;
}

.footer-links {
    display: flex;
    gap: clamp(48px, 8vw, 96px);
}

.footer-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-group-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 4px;
}

.footer-group a {
    font-size: 0.9rem;
    color: var(--text-2);
    transition: color 0.2s var(--ease);
}

.footer-group a:hover {
    color: var(--green-2);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--text-3);
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 18px;
}

.social-link {
    color: var(--text-2);
    font-size: 1rem;
    transition: color 0.2s var(--ease);
}

.social-link:hover {
    color: var(--green);
}

.footer-version {
    font-family: var(--font-mono);
    font-size: 0.74rem;
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

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

    .showcase-grid,
    .consult-grid,
    .research-grid,
    .download-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .showcase-grid-flip .showcase-copy {
        order: 1;
    }

    .showcase-grid-flip .showcase-media {
        order: 2;
    }

    .section-head-split {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .section-head-split .section-sub {
        justify-self: start;
    }

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

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

    .guide-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        top: var(--header-h);
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        background: rgba(5, 8, 11, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--line);
        padding: 24px;
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
        height: calc(100vh - var(--header-h));
        height: calc(100dvh - var(--header-h));
    }

    .site-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .site-nav a {
        font-size: 1.35rem;
        font-weight: 600;
        letter-spacing: -0.02em;
        color: var(--text);
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid var(--line);
    }

    .site-nav a::after {
        display: none;
    }

    .site-nav .nav-cta {
        font-size: 0.95rem;
        margin-top: 16px;
        padding: 13px 22px;
        border-bottom: 1px solid rgba(var(--green-rgb), 0.35);
        width: auto;
    }

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

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stat:nth-child(3) {
        border-left: none;
    }

    .hero-stat:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .hero-chapters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .hero-chapters::-webkit-scrollbar {
        display: none;
    }

    .hero-chapter {
        flex-shrink: 0;
    }

    .footer-top {
        flex-direction: column;
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

@media (max-width: 560px) {
    .secondary-grid {
        grid-template-columns: 1fr;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .release-pill {
        font-size: 0.74rem;
        gap: 8px;
    }

    .release-pill-cta {
        display: none;
    }

    .download-actions .btn {
        width: 100%;
    }

    .platform-badge {
        width: 100%;
        justify-content: center;
    }

    .blog-feature-card {
        padding: 26px 24px;
    }

    .matrix-container {
        height: 220px;
    }
}

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

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .hero-title-line {
        filter: none;
        transform: none;
    }

    .title-accent {
        animation: none;
    }

    .title-accent::after {
        display: none;
    }

    .scan-sweep {
        display: none;
    }

    .brand-spark {
        visibility: hidden;
    }

    .bolt-a,
    .bolt-b {
        animation: none;
    }

    .bolt-tip {
        display: none;
    }
}

/* ---------- Philosophy ---------- */
.philosophy {
    background: var(--band-bg);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.75fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.philosophy .section-title {
    margin-bottom: 20px;
}

.philosophy-gloss {
    max-width: 600px;
    font-size: 1.12rem;
}

.philosophy-terms {
    display: grid;
    gap: 14px;
    margin: 0;
}

.philosophy-term {
    display: grid;
    gap: 8px;
    padding: 22px 24px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-md);
    background: rgba(10, 16, 19, 0.72);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.philosophy-term:hover {
    border-color: rgba(var(--green-rgb), 0.4);
    box-shadow: var(--shadow-glow);
}

.philosophy-term dt {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}

.philosophy-term dt::before {
    content: '// ';
    color: var(--green);
}

.philosophy-term dd {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 650;
    letter-spacing: -0.015em;
    line-height: 1.35;
    color: var(--text);
}

@media (max-width: 900px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-terms {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .philosophy-terms {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Cohesion layer — one card, one label, one chip, one band rhythm.
   Keeps every section's structure; only aligns radii, borders, type, tints.
   ========================================================================== */

/* CRT scanlines: static, one fixed layer, no animation. */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
    opacity: 0.55;
}

/* Single sweep line: transform-only, one tiny layer. */
.scan-sweep {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    z-index: 1999;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--green-rgb), 0.28) 20%, rgba(var(--green-rgb), 0.45) 50%, rgba(var(--green-rgb), 0.28) 80%, transparent 100%);
    opacity: 0.6;
    transform: translateY(-4px);
    animation: scan-sweep 11s linear infinite;
}

@keyframes scan-sweep {
    0% { transform: translateY(-4px); }
    100% { transform: translateY(100vh); }
}

/* Raised bands on a regular cadence. */
.tutorials,
.download {
    background: var(--band-bg);
}

/* One card recipe. */
.p-card,
.s-card,
.tut-card,
.guide-banner,
.blog-feature-card,
.evidence-row,
.philosophy-term {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: none;
}

.p-card:hover,
.s-card:hover,
.tut-card:hover,
.guide-banner:hover,
.blog-feature-card:hover,
.evidence-row:hover,
.philosophy-term:hover {
    transform: translateY(-3px);
    border-color: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
}

/* Highlighted cards share one tint. */
.guide-banner,
.s-card-docs,
.evidence-row-conclusion {
    background: var(--card-highlight-bg);
    border-color: var(--card-highlight-border);
}

/* Card padding on one scale. */
.p-card { padding: 28px; }
.s-card, .tut-card { padding: 24px; }
.guide-banner { padding: 28px 32px; }
.blog-feature-card { padding: 30px 34px; }
.evidence-row { padding: 18px 22px; }
.philosophy-term { padding: 20px 22px; }

/* Card titles: two sizes only. */
.p-card h3,
.tut-card h3,
.s-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.guide-banner-copy h3,
.blog-feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.philosophy-term dd {
    font-size: 1.12rem;
}

/* Card body: one size. */
.p-card p,
.s-card p,
.tut-card p,
.blog-feature-excerpt,
.guide-banner-copy p:last-child {
    font-size: 0.92rem;
    line-height: 1.68;
}

/* One mono label style for every small caption. */
.p-card-num,
.evidence-label,
.philosophy-term dt,
.tut-card-top,
.tut-kicker,
.footer-group-label,
.features-divider,
.term-titlebar-label,
.matrix-caption,
.showcase-media figcaption,
.version-text,
.hero-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tut-card-top { margin-bottom: 18px; }
.tut-num { color: var(--green); }

/* Icon boxes on the same radius as buttons. */
.p-card-icon,
.s-card-icon {
    border-radius: var(--radius-sm);
    color: var(--green);
    background: rgba(var(--green-rgb), 0.08);
    border: 1px solid rgba(var(--green-rgb), 0.22);
}

/* Chips, badges, tabs: sharp corners, mono caps, one recipe. */
.release-pill,
.hero-chapter,
.chip-row li,
.platform-badge,
.site-nav .nav-cta,
.hero-demo-toggle {
    border-radius: var(--radius-xs);
}

.eyebrow-chip,
.release-pill-badge,
.new-badge,
.tag-beta {
    border-radius: var(--radius-xs);
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow-chip,
.release-pill-badge,
.new-badge {
    color: var(--ink-on-green);
    background: var(--green);
    box-shadow: 2px 2px 0 var(--green-deep);
}

.tag-beta {
    color: var(--green);
    border: 1px solid rgba(var(--green-rgb), 0.4);
}

.chip-row li,
.hero-chapter {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chip-row li {
    color: var(--green);
    background: rgba(var(--green-rgb), 0.06);
    border: 1px solid rgba(var(--green-rgb), 0.28);
}

.hero-chapter.is-active {
    color: var(--ink-on-green);
    background: var(--green);
    border-color: var(--green);
    box-shadow: 2px 2px 0 var(--green-deep);
}

.hero-chapter.is-active .chapter-num {
    color: var(--ink-on-green);
    opacity: 0.7;
}

/* Terminal frames: same radius as cards, neon hairline. */
.term-window {
    border-radius: var(--radius-md);
    border-color: rgba(var(--green-rgb), 0.22);
}

.term-titlebar {
    background: rgba(var(--green-rgb), 0.04);
}

/* Inline code on the same chip recipe. */
code, kbd {
    border-radius: var(--radius-xs);
    color: var(--green);
}

/* Stats: neon, one glow. */
.hero-stat dt,
.evidence-row strong {
    color: var(--green);
    text-shadow: 0 0 18px rgba(var(--green-rgb), 0.35);
}

/* Links + highlights in the same green. */
.hl,
.tut-link,
.blog-feature-link,
.s-card-docs .s-card-cta,
.release-pill-cta {
    color: var(--green);
}

.tut-link:hover,
.blog-feature-link:hover,
.s-card-docs:hover .s-card-cta,
.footer-group a:hover {
    color: var(--mint);
}

/* Easter-egg snout (was unstyled on the landing page). */
.nostrils {
    display: flex;
    gap: 50px;
}
.nostril {
    width: 45px;
    height: 60px;
    background: #ff6b6b;
    border-radius: 50%;
    transform: rotate(15deg);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}
.nostril:last-child {
    transform: rotate(-15deg);
}
.nostrils {
        gap: 35px;
    }
.nostril {
        width: 35px;
        height: 45px;
    }
