/* =================================================================
   Solara Processing Unit
   Identity: mint #2CE1AB on near-black #090E0A, ambient video.
   Voice: GPU telemetry. Mint is scarce — reserved for live data,
   primary CTA, active nav, section index marks. Everything else
   is ink (off-white tinted toward the brand hue).
   ================================================================= */

:root {
    /* Brand identity — preserved */
    --primary-color: #2CE1AB;
    --primary-hover: #3DEDB8;
    --background-color: #090E0A;

    /* Ink scale — neutrals tinted toward mint hue */
    --ink-100: oklch(0.97 0.005 165);
    /* Heading ink: paler, slightly cooler — reads as "silver-light green" without gradient text */
    --ink-heading: oklch(0.92 0.022 168);
    --ink-90:  oklch(0.97 0.005 165 / 0.90);
    --ink-70:  oklch(0.97 0.005 165 / 0.70);
    --ink-55:  oklch(0.97 0.005 165 / 0.55);
    --ink-40:  oklch(0.97 0.005 165 / 0.40);
    --ink-25:  oklch(0.97 0.005 165 / 0.25);
    --ink-12:  oklch(0.97 0.005 165 / 0.12);
    --ink-06:  oklch(0.97 0.005 165 / 0.06);

    /* Mint alpha mixes — for scarce highlights only */
    --mint-strong:  rgba(44, 225, 171, 1);
    --mint-soft:    rgba(44, 225, 171, 0.55);
    --mint-faint:   rgba(44, 225, 171, 0.18);
    --mint-ghost:   rgba(44, 225, 171, 0.06);

    /* Compat references kept for any inline-script consumers */
    --text-color: var(--ink-100);
    --heading-accent: var(--ink-100);
    --nav-blur-bg: rgba(9, 14, 10, 0.72);
    --focus-ring: 0 0 0 2px var(--background-color), 0 0 0 4px var(--primary-color);

    /* Rules + radii */
    --rule: var(--ink-12);
    --rule-strong: var(--ink-25);
    --radius-sm: 4px;
    --radius-md: 6px;

    /* Type */
    --font-sans: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    /* Layout */
    --container: 1440px;
    --gutter-x: clamp(1.5rem, 1rem + 2vw, 4rem);

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

/* =================================================================
   Reset + base
   ================================================================= */

*, *::before, *::after { box-sizing: border-box; }

* {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    overflow-x: hidden;
    background: var(--background-color);
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--background-color);
    color: var(--ink-70);
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'ss01', 'ss02';
    position: relative;
}

/* Ambient vignette — single subtle wash, not the old gradient soup */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(44, 225, 171, 0.025), transparent 70%),
        radial-gradient(ellipse 60% 60% at 100% 100%, rgba(44, 225, 171, 0.018), transparent 70%);
}

img { max-width: 100%; display: block; }

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

/* Tabular numerals utility (consumed via class on data spans) */
.mono,
.hero-metric-value,
.hero-contract-value,
.token-data,
.status-stat-value,
.step-number,
.benefit-number,
.section-index,
.hero-eyebrow {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums slashed-zero;
    letter-spacing: 0;
}

/* =================================================================
   Navigation
   ================================================================= */

nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.125rem var(--gutter-x);
    background: var(--nav-blur-bg);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--ink-06);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo { display: flex; align-items: center; }
.logo img { height: 2.2rem; }

.nav-links {
    display: flex;
    gap: 1.75rem;
}

.nav-links a {
    color: var(--ink-55);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    transition: color 0.2s var(--ease-out);
    position: relative;
    padding: 0.4rem 0;
    line-height: 1;
}

.nav-links a:hover { color: var(--ink-100); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--primary-color); }

.nav-icons {
    display: flex;
    gap: 0.375rem;
    align-items: center;
}

.nav-icons .icon {
    color: var(--ink-55);
    font-size: 0.95rem;
    transition: all 0.2s var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
}

.nav-icons .dex-icon {
    width: 0.95rem;
    height: 0.95rem;
    filter: brightness(0) invert(0.65);
    transition: all 0.2s var(--ease-out);
}

.nav-icons .icon:hover {
    color: var(--primary-color);
    background: var(--mint-faint);
}

.nav-icons .icon:hover .dex-icon {
    filter: brightness(0) saturate(100%) invert(88%) sepia(19%) saturate(1095%) hue-rotate(113deg) brightness(97%) contrast(88%);
}

/* Mobile social cluster lives inside the toggle overlay; hidden on desktop. */
.nav-links-social { display: none; }

/* Dedicated close button inside the overlay; hidden on desktop. */
.nav-links-close { display: none; }

/* Hamburger
   44x44 hit target with the visual 24x18 lines centered via padding.
   order:99 pushes the button past .nav-icons in the flex flow so it
   lands on the far right whenever it's visible. */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 44px;
    padding: 13px 10px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    order: 99;
}

.menu-toggle span {
    width: 100%;
    height: 1.5px;
    background: var(--ink-100);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

@media (max-width: 860px) {
    nav { padding: 0.875rem var(--gutter-x); }
    .nav-container { gap: 0.5rem; }
    .logo img { height: 1.9rem; }

    .menu-toggle { display: flex; }
    .menu-toggle.active span:first-child { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .menu-toggle.active span:last-child { transform: translateY(-8px) rotate(-45deg); }

    /* Toggle owns navigation on mobile; nav bar reduces to logo + hamburger. */
    .nav-icons { display: none; }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--background-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.4s var(--ease-out);
        z-index: 999;
        visibility: hidden;
        pointer-events: none;
    }
    .nav-links.active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--background-color);
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }
    .nav-links a { font-size: 1.25rem; padding: 0.5rem 1rem; }

    .nav-links-close {
        position: absolute;
        top: 0.625rem;
        right: var(--gutter-x);
        width: 44px;
        height: 44px;
        padding: 10px;
        background: none;
        border: none;
        border-radius: var(--radius-sm);
        color: var(--ink-70);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
        transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
    }
    .nav-links-close:hover { color: var(--ink-100); background: var(--ink-06); }
    .nav-links-close .iglyph { font-size: 1.5rem; }

    .nav-links-social {
        display: flex;
        gap: 0.625rem;
        margin-top: 1.25rem;
        padding-top: 2rem;
        border-top: 1px solid var(--ink-12);
        width: min(280px, 70%);
        justify-content: center;
    }
    .nav-links-social .icon {
        color: var(--ink-70);
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--ink-12);
        transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
    }
    .nav-links-social .icon:hover {
        color: var(--primary-color);
        background: var(--mint-faint);
        border-color: transparent;
    }
    .nav-links-social .dex-icon {
        width: 1rem;
        height: 1rem;
        filter: brightness(0) invert(0.78);
        transition: filter 0.2s var(--ease-out);
    }
    .nav-links-social .icon:hover .dex-icon {
        filter: brightness(0) saturate(100%) invert(88%) sepia(19%) saturate(1095%) hue-rotate(113deg) brightness(97%) contrast(88%);
    }
}

@media (max-width: 480px) {
    nav { padding: 0.625rem var(--gutter-x); }
    .logo img { height: 1.7rem; }
}

body.menu-open { overflow: hidden; }

/* =================================================================
   Hero
   ================================================================= */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 8rem var(--gutter-x) 5rem;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(9, 14, 10, 0.50) 0%,
            rgba(9, 14, 10, 0.72) 55%,
            rgba(9, 14, 10, 0.96) 100%),
        radial-gradient(ellipse 80% 50% at 50% 30%, transparent 0%, rgba(9, 14, 10, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    text-align: left;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: var(--ink-55);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 2rem;
    padding: 0.375rem 0.75rem 0.375rem 0.625rem;
    border: 1px solid var(--ink-12);
    border-radius: 100px;
    background: rgba(9, 14, 10, 0.4);
}

.hero-eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--mint-soft);
    animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(2.75rem, 1rem + 6vw, 6.25rem);
    line-height: 0.94;
    letter-spacing: -0.045em;
    font-weight: 600;
    color: var(--ink-heading);
    margin-bottom: 1.75rem;
    max-width: 16ch;
    /* Letterpress depth: dark drop + faint mint-silver highlight above */
    text-shadow:
        0 1px 0 rgba(9, 14, 10, 0.65),
        0 2px 8px rgba(9, 14, 10, 0.4),
        0 -1px 0 rgba(196, 240, 220, 0.08);
}

.hero h1 span {
    color: var(--ink-heading);
    background: none;
    font-weight: 600;
    -webkit-text-fill-color: var(--ink-heading);
    /* span inherits parent text-shadow */
}

.hero p {
    font-size: clamp(1.0625rem, 0.85rem + 0.7vw, 1.375rem);
    line-height: 1.45;
    color: var(--ink-70);
    margin-bottom: 2.75rem;
    max-width: 54ch;
    letter-spacing: -0.01em;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 4.5rem;
    align-items: center;
}

.primary-btn, .secondary-btn {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1;
    padding: 0.95rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    touch-action: manipulation;
}

.primary-btn {
    background: var(--primary-color);
    color: var(--background-color);
    font-weight: 600;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 24px -10px rgba(44, 225, 171, 0.5);
}

.primary-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 14px 28px -10px rgba(44, 225, 171, 0.55);
}

.secondary-btn {
    background: transparent;
    border-color: var(--ink-25);
    color: var(--ink-100);
}

.secondary-btn:hover {
    border-color: var(--ink-40);
    background: var(--ink-06);
}

/* Hero metrics row */
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, auto);
    column-gap: 2.75rem;
    row-gap: 1.25rem;
    margin-bottom: 1.25rem;
    max-width: 720px;
}

.hero-metric {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.hero-metric-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--ink-40);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.hero-metric-value {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 1.125rem;
    color: var(--ink-100);
    letter-spacing: -0.01em;
}

/* Hero contract */
.hero-contract {
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-40);
}

.hero-contract-label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-40);
    font-size: 0.6875rem;
}

.hero-contract-value {
    color: var(--ink-55);
    overflow-wrap: anywhere;
    min-width: 0;
}

@media (max-width: 860px) {
    .hero { padding: 7rem var(--gutter-x) 4rem; }
    .hero h1 { max-width: 100%; }
    .hero p { max-width: 100%; }
    .cta-buttons {
        flex-direction: row;
        align-items: center;
        gap: 0.625rem;
        margin-bottom: 3rem;
        flex-wrap: wrap;
    }
    .primary-btn, .secondary-btn {
        padding: 0.875rem 1.25rem;
        text-align: center;
        white-space: nowrap;
    }
    .hero-metrics {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 1.5rem;
        row-gap: 1.125rem;
        max-width: 100%;
    }
    .hero-contract { flex-wrap: wrap; row-gap: 0.25rem; }
}

@media (max-width: 480px) {
    .hero { padding: 6rem var(--gutter-x) 3rem; }
    .hero-eyebrow { margin-bottom: 1.25rem; }
    .hero-metrics { column-gap: 1rem; row-gap: 0.875rem; margin-bottom: 1rem; }
    .hero-metric-value { font-size: 1rem; }
    .hero-contract-value { font-size: 0.6875rem; line-height: 1.5; }
}

/* =================================================================
   Section frame
   ================================================================= */

section { position: relative; }

.features-content,
.how-it-works-content,
.what-you-get-content,
.join-ecosystem-content,
.capability-content {
    max-width: var(--container);
    margin: 0 auto;
}

/* Token section wraps heading + content as a single framed card */
.what-you-get-content {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    padding: clamp(2rem, 1.5rem + 2vw, 4rem);
}

/* Flickering grid canvas — back layer */
.what-you-get-content > .flickering-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 100%);
            mask-image: radial-gradient(ellipse at center, #000 55%, transparent 100%);
}

/* Overlay — sits above the grid, below the content, to soften the field
   and keep text/visualizations readable */
.what-you-get-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(9, 14, 10, 0.3) 0%, rgba(9, 14, 10, 0.75) 60%, rgba(9, 14, 10, 0.95) 100%),
        linear-gradient(180deg, rgba(9, 14, 10, 0.4) 0%, rgba(9, 14, 10, 0.6) 100%);
}

.what-you-get-content > .section-header,
.what-you-get-content > .benefits-horizontal {
    position: relative;
    z-index: 2;
}

/* All sections after hero share rhythm controls + a top hairline */
.features,
.how-it-works,
.what-you-get,
.join-ecosystem,
.capability {
    position: relative;
    padding: clamp(5rem, 4rem + 4vw, 8rem) var(--gutter-x);
}

.features::before,
.how-it-works::before,
.what-you-get::before,
.join-ecosystem::before {
    content: none;
}

/* Section header */
.section-header {
    margin-bottom: clamp(3rem, 2rem + 3vw, 5.5rem);
    text-align: left;
    max-width: 56rem;
}

/* Center the header in Network and Flow sections */
.features .section-header,
.how-it-works .section-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: none;
}

.features .section-header h2,
.how-it-works .section-header h2 {
    margin-left: auto;
    margin-right: auto;
    max-width: none;
}

.section-index {
    font-size: 0.6875rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 1.25rem;
    display: inline-block;
}

.features h2,
.how-it-works h2,
.what-you-get h2,
.join-ecosystem h2,
.capability h2 {
    font-size: clamp(2rem, 1rem + 3vw, 3.75rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 600;
    color: var(--ink-heading);
    margin-bottom: 1rem;
    max-width: 22ch;
    /* Letterpress depth: dark drop + faint mint-silver highlight above */
    text-shadow:
        0 1px 0 rgba(9, 14, 10, 0.7),
        0 2px 6px rgba(9, 14, 10, 0.45),
        0 -1px 0 rgba(196, 240, 220, 0.07);
}

.features h2 span,
.how-it-works h2 span,
.what-you-get h2 span,
.join-ecosystem h2 span,
.capability h2 span {
    color: var(--ink-heading);
    -webkit-text-fill-color: var(--ink-heading);
    background: none;
    font-weight: 600;
    /* span inherits parent text-shadow */
}

.features h3,
.what-you-get h3,
.join-ecosystem h3 {
    font-size: clamp(1.0625rem, 0.9rem + 0.5vw, 1.25rem);
    color: var(--ink-55);
    font-weight: 400;
    line-height: 1.45;
    max-width: 52ch;
    letter-spacing: -0.005em;
}

.hero span {
    background: none;
    -webkit-text-fill-color: inherit;
}

/* =================================================================
   Network section (.features) — two bordered panels side by side.
   ================================================================= */

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 1rem + 3vw, 4rem);
    position: relative;
}

/* =================================================================
   Network panel — single bordered card per column.
   Wraps eyebrow + node-card visual + text content.
   ================================================================= */

.network-panel {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.panel-corner {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
}
.panel-corner--tl { top: 14px; left: 14px; }
.panel-corner--tr { top: 14px; right: 14px; }
.panel-corner--bl { bottom: 14px; left: 14px; }
.panel-corner--br { bottom: 14px; right: 14px; }

.panel-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    line-height: 1;
    margin-bottom: 4px;
}

.panel-content h3 {
    font-family: var(--font-sans);
    font-size: clamp(1.5rem, 1rem + 1.4vw, 2.125rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 600;
    color: var(--ink-100);
    max-width: none;
    margin: 0;
}

.panel-content p {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink-70);
    max-width: 52ch;
    letter-spacing: -0.005em;
    margin: 0;
}

.panel-bullets {
    list-style: none;
    margin: 8px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.panel-bullets li {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--ink-70);
    line-height: 1.5;
    padding-left: 18px;
    position: relative;
    letter-spacing: 0;
}

.panel-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 0.6em;
    height: 1px;
    background: var(--ink-40);
}

@media (max-width: 860px) {
    .network-panel { padding: 24px; }
}

/* =================================================================
   Card stack — lives inside each .panel-visual.
   Hero sits at base; middle + back fan up-and-right behind it.
   ================================================================= */

.card-stack {
    position: relative;
    width: 100%;
}

.stack-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 2px;
    padding: 12px 14px;
    font-family: var(--font-mono);
}

.stack-card--back,
.stack-card--middle {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.stack-card--back {
    transform: translate(28px, -32px) scale(0.85);
    transform-origin: top right;
    opacity: 0.28;
    z-index: 1;
}

.stack-card--middle {
    transform: translate(14px, -16px) scale(0.92);
    transform-origin: top right;
    opacity: 0.55;
    z-index: 2;
}

.stack-card--hero {
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
}

/* card inner typography */
.card-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--ink-40);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 6px;
    line-height: 1;
}

.card-title {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--ink-100);
    font-weight: 500;
    letter-spacing: 0;
    margin: 0 0 8px;
    line-height: 1.2;
    word-break: break-all;
}

.card-status {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--primary-color);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1;
}

.card-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 10px 0;
    padding-top: 10px;
    border-top: 1px solid var(--rule);
}

.card-metrics > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.card-metrics dt {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    color: var(--ink-40);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
}

.card-metrics dd {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--ink-100);
    letter-spacing: 0;
    margin: 0;
    line-height: 1.2;
    word-break: break-word;
}

.card-status-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 9px;
    border-top: 1px solid var(--rule);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    line-height: 1;
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--mint-soft);
    flex-shrink: 0;
    animation: pulse 2.2s ease-in-out infinite;
}

.card-status-row .status-label {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.card-status-row .status-meta {
    color: var(--ink-55);
    margin-left: auto;
    text-transform: none;
    letter-spacing: 0.02em;
}

/* live signal — chip-style label in the top-right of .panel-visual */
.live-signal {
    position: absolute;
    top: clamp(14px, 1.6vw, 20px);
    right: clamp(14px, 1.6vw, 20px);
    z-index: 2;

    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--primary-color);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1;
}

.live-signal::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 6px var(--mint-soft);
    animation: pulse 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

/* mobile: dial the fan offsets down so the hero stays readable */
@media (max-width: 860px) {
    .stack-card--back {
        transform: translate(18px, -22px) scale(0.88);
    }
    .stack-card--middle {
        transform: translate(9px, -11px) scale(0.94);
    }
    .card-metrics {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .card-metrics {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* =================================================================
   Node card — Provider Dashboard component, lives in each network panel.
   Designed to read as a screenshot from a different product surface:
   cool-gray surface, soft radius, gradient border, no mono font,
   no corner dots — the panel's decoration language stops at the frame.
   ================================================================= */

@property --nc-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.node-card {
    --nc-divider: rgba(255, 255, 255, 0.07);
    --nc-text-1:  oklch(0.965 0 0);
    --nc-text-2:  oklch(0.72 0 0);
    --nc-text-3:  oklch(0.52 0 0);
    --nc-border-width: 1px;

    position: relative;
    isolation: isolate;
    width: 100%;
    font-family: var(--font-sans);
    color: var(--nc-text-2);
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0;

    background: linear-gradient(165deg, #1c1c1c 0%, #161616 55%, #101010 100%);
    border-radius: 8px;
    box-shadow: 0 14px 36px -18px rgba(0, 0, 0, 0.75);
}

.node-card::before {
    content: '';
    position: absolute;
    inset: calc(var(--nc-border-width) * -3);
    z-index: -1;
    border-radius: inherit;
    padding: calc(var(--nc-border-width) * 3);
    background: conic-gradient(
        from var(--nc-angle),
        transparent 0%,
        transparent 70%,
        rgba(44, 225, 171, 0.55) 85%,
        rgba(44, 225, 171, 0.22) 95%,
        transparent 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
            mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    filter: blur(2.5px);
    animation: nc-border-rotate 5s linear infinite;
    pointer-events: none;
    will-change: filter;
}

@keyframes nc-border-rotate {
    to { --nc-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
    .node-card::before { animation: none; }
}

/* Zone 1: status bar (full-bleed, own padding, divider below) */
.node-card-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    border-bottom: 1px solid var(--nc-divider);
}

.title-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--nc-text-1);
    border: 1px solid var(--nc-divider);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.title-icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

.node-card-meta {
    color: var(--nc-text-3);
    font-size: 11px;
    line-height: 1;
}

/* Zone 2: title block */
.node-card-title {
    padding: 18px 22px 4px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.node-card-title-text {
    flex: 1;
    min-width: 0;
}

.node-card-model {
    color: var(--nc-text-1);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.node-card-driver {
    color: var(--nc-text-3);
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.3;
}

/* Zone 3: metrics row (three equal columns, tabular figures) */
.node-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 18px 22px 18px;
}

.node-card-metric {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.node-card-metric dt {
    color: var(--nc-text-3);
    font-size: 9.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
}

.node-card-metric dd {
    margin: 0;
    color: var(--nc-text-1);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

/* Zone 4 + 5: footer (metadata left, action link right) */
.node-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 22px 14px;
    border-top: 1px solid var(--nc-divider);
}

.node-card-uptime {
    color: var(--nc-text-3);
    font-size: 11px;
    line-height: 1.2;
}

.node-card-action {
    color: var(--nc-text-2);
    font-size: 11px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s var(--ease-out);
    line-height: 1;
    white-space: nowrap;
}

.node-card-action:hover {
    color: var(--nc-text-1);
}

.node-card-action span {
    display: inline-block;
    transition: transform 0.2s var(--ease-out);
}

.node-card-action:hover span {
    transform: translateX(2px);
}

@media (max-width: 640px) {
    .node-card { font-size: 12px; }
    .node-card-title { padding: 16px 18px 4px; }
    .node-card-metrics { padding: 16px 18px; gap: 10px; }
    .node-card-footer { padding: 11px 18px 13px; }
    .node-card-model { font-size: 17px; }
    .node-card-metric dd { font-size: 14px; }
}

/* CTA link inside network panel-content */
.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: 8px;
    padding: 4px 0;

    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: -0.005em;
    line-height: 1.2;
    text-decoration: none;

    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease-out);
}

.cta-link:hover {
    border-bottom-color: var(--primary-color);
}

.cta-link span {
    display: inline-block;
    transition: transform 0.2s var(--ease-out);
}

.cta-link:hover span {
    transform: translateX(2px);
}

@media (max-width: 860px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.feature-item {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 clamp(1rem, 0.5rem + 1vw, 2.5rem);
    transition: none;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.feature-item:hover {
    transform: none;
    box-shadow: none;
    border: none;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-content h3 {
    font-family: var(--font-sans);
    font-size: clamp(1.5rem, 1rem + 1.4vw, 2.125rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 600;
    color: var(--ink-100);
    max-width: 16ch;
}

.feature-content p {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink-70);
    max-width: 44ch;
    letter-spacing: -0.005em;
}

.feature-list {
    list-style: none;
    margin-top: 0.5rem;

    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.feature-list li {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--ink-70);
    line-height: 1.5;
    padding-left: 1.25rem;
    position: relative;
    letter-spacing: 0;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 0.6em;
    height: 1px;
    background: var(--ink-40);
}

@media (max-width: 860px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .feature-item {
        padding: 0;
        padding-bottom: 2.5rem;
        border-bottom: 1px solid var(--rule);
    }
    .feature-item:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }
}

/* =================================================================
   Flow section (.how-it-works)
   Three image cards. Image placeholder on top, content below.
   ================================================================= */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 0.5rem + 1.5vw, 2rem);
    position: relative;
}

.step-item {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    padding: 0;
    min-height: 0;
    transition: none;
    transform: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    isolation: auto;
}

/* Override the existing conic-gradient spin pseudo-elements */
.step-item::before,
.step-item::after {
    content: none;
}

.step-item:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.08);
}
.step-item:hover .inner-content { background: transparent; }
.step-item:hover .step-number { color: var(--ink-40); }
.step-item:hover h3 { color: var(--ink-100); }
.step-item:hover p { color: var(--ink-55); }

.step-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.step-image-label {
    position: relative;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-25);
}

.step-item .inner-content {
    background: transparent;
    border-radius: 0;
    padding: clamp(1.25rem, 0.75rem + 1vw, 1.75rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: none;
    gap: 0.5rem;
}

/* Override the existing circle pill */
.step-number {
    background: transparent;
    color: var(--ink-40);
    width: auto;
    height: auto;
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.25rem;
    line-height: 1;
    display: block;
}

.step-item h3 {
    font-family: var(--font-sans);
    font-size: clamp(1.125rem, 0.9rem + 0.5vw, 1.375rem);
    color: var(--ink-100);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    text-align: left;
    max-width: 14ch;
}

.step-item p {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--ink-55);
    max-width: 30ch;
    text-align: left;
    margin: 0;
    letter-spacing: -0.005em;
}

@media (max-width: 860px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .step-image {
        aspect-ratio: 16 / 9;
    }
}

/* Shared dark + glow + fade-to-description treatment for all flow step graphics */
.step-image--wallet::after,
.step-image--terminal::after,
.step-image--cashflow::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    background:
    radial-gradient(ellipse 110% 70% at 50% 20%, oklch(0.86 0.18 165 / 0.15), transparent 75%),
    radial-gradient(ellipse 0% 120% at 50% 50%, oklch(0.72 0.10 165 / 0.06), transparent 90%);
    filter: blur(50px);
}

.step-image--wallet::before,
.step-image--terminal::before,
.step-image--cashflow::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(180deg,
        transparent 0%,
        #0d120e 100%);
    pointer-events: none;
    z-index: 3;
}

/* Step 01 — wallet orbit composition (Figma node 36:398) */
.step-image--wallet {
    overflow: hidden;
}

.wallet-orbit {
    position: relative;
    height: 100%;
    aspect-ratio: 672 / 547;
    max-width: 100%;
    
    container-type: inline-size;
}

.wallet-orbit-rings {
    position: absolute;
    inset: 0;
    -webkit-mask-image: radial-gradient(ellipse 45% 65% at 50% 50%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
            mask-image: radial-gradient(ellipse 45% 65% at 50% 50%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
}

.wallet-orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    aspect-ratio: 1;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg,
        rgba(44, 225, 171, 0.55) 0%,
        rgba(44, 225, 171, 0.18) 50%,
        rgba(44, 225, 171, 0.02) 100%);
    padding: 1px;
}

.wallet-orbit-ring::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: #090e0ab8;
}

.wallet-orbit-ring--inner {
    width: 36%;
    background: linear-gradient(180deg,
        oklch(0.92 0.18 165 / 0.80) 0%,
        oklch(0.85 0.16 165 / 0.24) 55%,
        oklch(0.85 0.16 165 / 0.04) 100%);
}

.wallet-orbit-ring--mid {
    width: 47%;
    background: linear-gradient(180deg,
        oklch(0.85 0.16 165 / 0.55) 0%,
        oklch(0.85 0.16 165 / 0.18) 55%,
        oklch(0.85 0.16 165 / 0.02) 100%);
}

.wallet-orbit-ring--outer {
    width: 60%;
    background: linear-gradient(180deg,
        oklch(0.78 0.10 165 / 0.32) 0%,
        oklch(0.78 0.08 165 / 0.10) 60%,
        oklch(0.78 0.06 165 / 0.01) 100%);
}

.wallet-orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 27.7%;
    aspect-ratio: 1;
    border-radius: 999px;
    background: linear-gradient(180deg, #25b78b 0%, #10382a 100%);
    border: 2px solid #134d3a;
    box-shadow: 0 0 25.6px rgba(44, 225, 171, 0.5);
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
}

.wallet-orbit-core :is(i, svg) {
    font-size: 13cqi;
    color: #0c231a;
    line-height: 1;
}

.wallet-orbit-icon {
    position: absolute;
    width: 11.5%;
    aspect-ratio: 77 / 79;
    border-radius: 999px;
    background: linear-gradient(180deg,
        rgba(44, 225, 171, 0.85) 0%,
        rgba(30, 141, 107, 0.95) 45%,
        rgba(30, 141, 107, 0.35) 100%);
    box-shadow: 0 0 14px rgba(4, 28, 21, 0.5);
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    color: #25b78b;
    overflow: hidden;
}

.wallet-orbit-icon::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: #10382a;
    z-index: 0;
}

.wallet-orbit-icon > * {
    position: relative;
    z-index: 1;
}

.wallet-orbit-icon i {
    font-size: 5.5cqi;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(44, 225, 171, 0.45));
}

.wallet-orbit-svg {
    width: 96%;
    height: auto;
    display: block;
}

.wallet-orbit-glyph {
    font-family: var(--font-sans);
    font-weight: 700;
    color: #25b78b;
    text-align: center;
    line-height: 1;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 0 6px rgba(44, 225, 171, 0.45));
}

.wallet-orbit-icon--solflare .wallet-orbit-glyph {
    font-size: 7.5cqi;
}

.wallet-orbit-glyph--stacked {
    font-size: 2.4cqi;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

/* Position percentages map to the 672×547 Figma frame */
.wallet-orbit-icon--phantom { top: 25.3%; left: 26.7%; }
.wallet-orbit-icon--solflare { top: 50%;   left: 80.3%; }
.wallet-orbit-icon--metamask { top: 71%;   left: 26.9%; }

/* Step 02 — terminal install card (Figma node 45:684) */
.step-image--terminal {
    display: block;
    padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
    container-type: inline-size;
    font-family: var(--font-mono);
}

.terminal-panel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 3.2cqi;
    align-items: stretch;
}

.terminal-panel,
.terminal-panel * {
    font-family: var(--font-mono);
}

.terminal-rate,
.terminal-rate * {
    font-family: var(--font-sans);
}

.terminal-card {
    position: relative;
    flex: 1 1 auto;
    background: #0e0e11;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.3cqi;
    box-shadow: 0 8cqi 16cqi -4cqi rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.terminal-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: radial-gradient(ellipse 60% 100% at 50% 50%,
        oklch(0.88 0.005 165 / 0.95) 0%,
        oklch(0.88 0.005 165 / 0.3) 35%,
        transparent 70%);
    pointer-events: none;
    z-index: 2;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 1.6cqi;
    padding: 3.4cqi 3.9cqi;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex: 0 0 auto;
}

.terminal-dot {
    width: 3.2cqi;
    height: 3.2cqi;
    border-radius: 999px;
}
.terminal-dot--red    { background: rgba(251, 44, 54, 0.6); }
.terminal-dot--yellow { background: rgba(240, 177, 0, 0.6); }
.terminal-dot--green  { background: rgba(0, 188, 125, 0.6); margin-right: 4.5cqi; }

.terminal-title {
    font-size: 2cqi;
    color: #4a5565;
    line-height: 1;
}

.terminal-body {
    flex: 1 1 auto;
    padding: 3.9cqi;
    display: flex;
    flex-direction: column;
    gap: 1.2cqi;
    font-size: 2.3cqi;
    line-height: 1.5;
    min-height: 0;
}

.terminal-line {
    display: flex;
    gap: 2.6cqi;
    align-items: baseline;
}

.terminal-line--output {
    padding-left: 5.2cqi;
}

.terminal-prompt { color: oklch(0.78 0.15 165); }
.terminal-cmd    { color: var(--ink-90); }
.terminal-output { color: var(--ink-40); }
.terminal-output-accent { color: oklch(0.86 0.18 165); }
.terminal-bar-fill  { color: oklch(0.82 0.17 165); letter-spacing: -0.05em; }
.terminal-bar-empty { color: var(--ink-12); letter-spacing: -0.05em; }

.terminal-rate {
    flex: 0 0 auto;
    background: #1c1c22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.3cqi;
    padding: 2.8cqi 4cqi;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-rate-label {
    display: flex;
    align-items: center;
    gap: 2cqi;
    color: #d1d5dc;
    font-size: 2.6cqi;
    line-height: 1;
}

.terminal-rate-icon {
    width: 3.6cqi;
    height: 3.6cqi;
    display: block;
}

.terminal-rate-value {
    display: flex;
    align-items: center;
    gap: 2cqi;
    color: #ffffff;
    font-weight: 600;
    font-size: 2.6cqi;
    line-height: 1;
}

.terminal-rate-pulse {
    width: 1.95cqi;
    height: 1.95cqi;
    border-radius: 999px;
    background: #00bc7d;
    box-shadow: 0 0 1.95cqi #10b981;
}

/* Step 03 — cashflow chart card */
.step-image--cashflow {
    display: block;
    padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
    container-type: inline-size;
}

.cashflow-card {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3cqi;
    overflow: visible;
}

.cashflow-title {
    font-family: var(--font-sans);
    font-size: 4.2cqi;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1;
}

.cashflow-chart {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2cqi;
    min-height: 0;
}

.cashflow-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: var(--font-sans);
    font-size: 2.4cqi;
    color: var(--ink-40);
    text-align: right;
    line-height: 1;
    padding-bottom: 5cqi;
}

.cashflow-plot {
    position: relative;
    display: flex;
    flex-direction: column;
}

.cashflow-svg {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    display: block;
    min-height: 0;
}

.cashflow-x-axis {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-sans);
    font-size: 2.6cqi;
    color: var(--ink-40);
    margin-top: 1.5cqi;
    line-height: 1;
}

.cashflow-x-axis .active {
    color: var(--ink-100);
    font-weight: 500;
}

.cashflow-tooltip {
    position: absolute;
    left: 30%;
    top: 18%;
    background: linear-gradient(180deg, oklch(0.22 0.012 165) 0%, oklch(0.17 0.010 165) 100%);
    border: 1px solid var(--ink-12);
    border-radius: 2.2cqi;
    padding: 2.2cqi 2.8cqi;
    display: flex;
    flex-direction: column;
    gap: 1.2cqi;
    font-family: var(--font-sans);
    box-shadow: 0 4cqi 8cqi -2cqi oklch(0 0 0 / 0.5);
    min-width: 28cqi;
}

.cashflow-tooltip-date {
    font-size: 2.8cqi;
    font-weight: 600;
    color: var(--ink-100);
    line-height: 1;
    margin-bottom: 0.6cqi;
}

.cashflow-tooltip-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.4cqi;
    font-size: 2.6cqi;
    line-height: 1;
}

.cashflow-tooltip-mark {
    width: 0.6cqi;
    height: 2.4cqi;
    border-radius: 999px;
}
.cashflow-tooltip-mark--income { background: oklch(0.82 0.17 165); }

.cashflow-tooltip-label {
    color: var(--ink-70);
}

.cashflow-tooltip-value {
    color: var(--ink-100);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Flow tabs — Provide / Rent */
.flow-tabs {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-items: stretch;
    gap: 0;
    width: max-content;
    max-width: 100%;
    margin: 0 auto clamp(2rem, 1.25rem + 2vw, 3rem);
    padding: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    isolation: isolate;
}

.flow-tab {
    position: relative;
    z-index: 1;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    border-radius: 5px;
    padding: 0.6rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: var(--ink-55);
    cursor: pointer;
    transition: color 200ms ease;
    text-align: center;
    min-width: clamp(11rem, 8rem + 12vw, 15rem);
}

.flow-tab:hover { color: var(--ink-90); }

.flow-tab.is-active {
    color: var(--ink-100);
}

.flow-tab-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: inherit;
    opacity: 0.55;
    line-height: 1;
}

.flow-tab.is-active .flow-tab-eyebrow {
    color: var(--primary-color);
    opacity: 1;
}

.flow-tab-label {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.flow-tabs-indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.flow-tabs:has(.flow-tab:nth-child(2).is-active) .flow-tabs-indicator {
    transform: translateX(100%);
}

.flow-tab:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.flow-panel {
    display: block;
}

.flow-panel[hidden] {
    display: none;
}

.flow-panel.is-switching-in .steps-grid > .step-item {
    animation: flow-panel-step-in 480ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.flow-panel.is-switching-in .steps-grid > .step-item:nth-child(2) { animation-delay: 70ms; }
.flow-panel.is-switching-in .steps-grid > .step-item:nth-child(3) { animation-delay: 140ms; }

@keyframes flow-panel-step-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .flow-tabs-indicator { transition: none; }
    .flow-panel.is-switching-in .steps-grid > .step-item { animation: none; }
}

/* Rent · Step 02 — GPU picker */
.step-image--picker {
    display: block;
    padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
    container-type: inline-size;
}

.gpu-picker {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 3.2cqi;
}

.gpu-picker,
.gpu-picker * {
    font-family: var(--font-sans);
}

.gpu-picker-card {
    flex: 1 1 auto;
    background: #0e0e11;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.3cqi;
    box-shadow: 0 8cqi 16cqi -4cqi rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    position: relative;
}

.gpu-picker-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: radial-gradient(ellipse 60% 100% at 50% 50%,
        oklch(0.88 0.005 165 / 0.95) 0%,
        oklch(0.88 0.005 165 / 0.3) 35%,
        transparent 70%);
    pointer-events: none;
}

.gpu-picker-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3.4cqi 3.9cqi;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gpu-picker-title {
    font-size: 2.6cqi;
    font-weight: 600;
    color: var(--ink-100);
    letter-spacing: -0.01em;
    line-height: 1;
}

.gpu-picker-badge {
    display: inline-flex;
    align-items: center;
    gap: 1.4cqi;
    font-family: var(--font-mono);
    font-size: 2cqi;
    color: var(--ink-55);
    letter-spacing: 0.04em;
    line-height: 1;
}

.gpu-picker-dot {
    width: 1.5cqi;
    height: 1.5cqi;
    border-radius: 999px;
    background: #00bc7d;
    box-shadow: 0 0 1.6cqi #10b981;
}

.gpu-picker-list {
    list-style: none;
    margin: 0;
    padding: 1.6cqi;
    display: flex;
    flex-direction: column;
    gap: 1.2cqi;
    flex: 1 1 auto;
    min-height: 0;
}

.gpu-picker-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    column-gap: 3.2cqi;
    align-items: center;
    padding: 2.4cqi 2.8cqi;
    border-radius: 1cqi;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.015);
    color: var(--ink-70);
    font-size: 2.4cqi;
    line-height: 1;
    transition: background 200ms ease;
}

.gpu-picker-row.is-active {
    background: rgba(44, 225, 171, 0.08);
    border-color: rgba(44, 225, 171, 0.35);
    color: var(--ink-100);
    box-shadow: 0 0 0 1px rgba(44, 225, 171, 0.18) inset;
}

.gpu-picker-name {
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--ink-100);
}

.gpu-picker-name i {
    font-style: normal;
    color: var(--ink-55);
    font-weight: 400;
    margin-left: 0.6cqi;
}

.gpu-picker-meta {
    font-family: var(--font-mono);
    font-size: 2cqi;
    color: var(--ink-40);
    letter-spacing: 0.04em;
}

.gpu-picker-price {
    font-family: var(--font-mono);
    font-size: 2.4cqi;
    color: var(--ink-100);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.gpu-picker-row.is-active .gpu-picker-price {
    color: oklch(0.86 0.18 165);
}

.gpu-picker-price i {
    font-style: normal;
    color: var(--ink-40);
    font-weight: 400;
    margin-left: 0.4cqi;
}

.gpu-picker-templates {
    flex: 0 0 auto;
    background: #1c1c22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.3cqi;
    padding: 2.4cqi 3cqi;
    display: flex;
    align-items: center;
    gap: 2.4cqi;
}

.gpu-picker-templates-label {
    font-family: var(--font-mono);
    font-size: 2cqi;
    color: var(--ink-55);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex: 0 0 auto;
}

.gpu-picker-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4cqi;
}

.gpu-picker-chip {
    font-size: 2.2cqi;
    line-height: 1;
    padding: 1.6cqi 2.2cqi;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--ink-70);
}

.gpu-picker-chip.is-active {
    background: rgba(44, 225, 171, 0.12);
    border-color: rgba(44, 225, 171, 0.4);
    color: oklch(0.92 0.18 165);
}

/* Rent · Step 03 — SSH terminal variant */
.step-image--ssh .terminal-cmd--cursor {
    color: oklch(0.86 0.18 165);
    animation: ssh-cursor-blink 1s steps(2, end) infinite;
}

@keyframes ssh-cursor-blink {
    50% { opacity: 0; }
}

.terminal-rate--ssh .terminal-rate-label {
    color: var(--ink-55);
}

.terminal-rate--ssh .terminal-rate-value {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    color: oklch(0.86 0.18 165);
}

.terminal-rate--ssh .terminal-rate-pulse {
    animation: ssh-pulse 1.6s ease-in-out infinite;
}

@keyframes ssh-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.85); }
}

@media (max-width: 540px) {
    .flow-tab {
        min-width: 0;
        padding: 0.55rem 1rem;
    }
    .flow-tab-label { font-size: 0.9375rem; }
}

/* =================================================================
   Token section (.what-you-get)
   Three benefit cards as wide ledger rows. Definition lists.
   ================================================================= */

.benefits-horizontal {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
}

.benefit-card {
    display: block;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}

.benefit-number {
    font-family: var(--font-mono);
    font-size: clamp(1.75rem, 1rem + 1.8vw, 2.75rem);
    font-weight: 400;
    color: var(--primary-color);
    opacity: 1;
    letter-spacing: -0.03em;
    line-height: 1;
    min-width: 0;
    transition: none;
}

.benefit-card:hover .benefit-number {
    opacity: 1;
    transform: none;
}

.benefit-details { flex: 1; min-width: 0; }

.benefit-card h3 {
    font-family: var(--font-sans);
    font-size: clamp(1.25rem, 1rem + 0.7vw, 1.625rem);
    color: var(--ink-100);
    font-weight: 600;
    margin-bottom: 1.75rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-align: left;
    transition: none;
}

.benefit-card:hover h3 { color: var(--ink-100); }

.benefit-card p {
    font-family: var(--font-sans);
    color: var(--ink-70);
    transition: none;
    text-align: left;
}
.benefit-card:hover p { color: var(--ink-70); }

/* token data lists */
.token-data {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 32rem;
}

.token-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 1.25rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--ink-06);
}

.token-row:last-child { border-bottom: none; }

.token-row dt {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--ink-55);
    font-weight: 400;
    letter-spacing: -0.005em;
}

.token-row dd {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums slashed-zero;
    font-size: 0.9375rem;
    color: var(--ink-100);
    font-weight: 500;
    letter-spacing: -0.005em;
    text-align: right;
}

/* =================================================================
   Token visualizations — three calm row-specific data widgets
   ================================================================= */

/* Supply + Allocation share a horizontal row. Asymmetric split honors data
   density: Allocation has more rows of legend than Supply has stats. */
.benefit-row {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 0;
}

.benefit-row > .benefit-card:not(:last-child) {
    border-right: 1px solid var(--rule);
    padding-right: clamp(1.5rem, 1rem + 2vw, 3rem);
}

.benefit-row > .benefit-card:not(:first-child) {
    padding-left: clamp(1.5rem, 1rem + 2vw, 3rem);
}

/* In side-by-side layout the allocation legend has less horizontal room */
.benefit-row .token-legend {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 860px) {
    .benefit-row {
        grid-template-columns: 1fr;
    }
    .benefit-row > .benefit-card:not(:last-child) {
        border-right: none;
        padding-right: 0;
    }
    .benefit-row > .benefit-card:not(:first-child) {
        padding-left: 0;
    }
}

.token-viz {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Shared stat tile (used in supply + staking meta) */
.token-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.token-stat-label {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--ink-55);
    letter-spacing: -0.005em;
    line-height: 1.2;
}

.token-stat-value {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums slashed-zero;
    font-size: 1.0625rem;
    color: var(--ink-100);
    letter-spacing: -0.01em;
    line-height: 1.1;
    font-weight: 500;
}

.token-stat--accent .token-stat-value {
    color: var(--primary-color);
}

/* --- Supply: vertical-bar tally + big percentage --- */
.token-viz--supply {
    gap: 0.875rem;
}

.supply-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.supply-bars {
    flex: 1;
    display: flex;
    gap: 4px;
    height: 64px;
    align-items: stretch;
    min-width: 0;
}

.supply-bars > span {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 1px;
    min-width: 2px;
}

.supply-bars > span:nth-child(-n+6) {
    background: var(--primary-color);
    opacity: 1;
}

.supply-caption {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--ink-55);
    line-height: 1.35;
    text-align: right;
    max-width: 14ch;
    letter-spacing: -0.005em;
    flex-shrink: 0;
}

.supply-percentage {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: clamp(1.75rem, 1rem + 2vw, 2.75rem);
    line-height: 1;
    color: var(--ink-100);
    letter-spacing: -0.035em;
    font-weight: 500;
    margin-top: 0.25rem;
}

.supply-percent-glyph {
    color: var(--primary-color);
    margin-left: 2px;
    font-weight: 400;
}

@media (max-width: 540px) {
    .supply-bars { height: 48px; }
}

/* --- Allocation: stacked horizontal bar + legend grid --- */
.token-viz--allocation .token-stack {
    display: flex;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.token-stack-seg {
    height: 100%;
    background: var(--primary-color);
    min-width: 0;
}

.token-stack-seg[data-tier="1"] { opacity: 0.85; }
.token-stack-seg[data-tier="2"] { opacity: 0.65; }
.token-stack-seg[data-tier="3"] { opacity: 0.50; }
.token-stack-seg[data-tier="4"] { opacity: 0.38; }
.token-stack-seg[data-tier="5"] { opacity: 0.28; }
.token-stack-seg[data-tier="6"] { opacity: 0.20; }

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

.legend-row {
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
    min-width: 0;
}

.legend-swatch {
    display: inline-block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 1px;
    background: var(--primary-color);
    transform: translateY(1px);
}

.legend-swatch[data-tier="1"] { opacity: 0.85; }
.legend-swatch[data-tier="2"] { opacity: 0.65; }
.legend-swatch[data-tier="3"] { opacity: 0.50; }
.legend-swatch[data-tier="4"] { opacity: 0.38; }
.legend-swatch[data-tier="5"] { opacity: 0.28; }
.legend-swatch[data-tier="6"] { opacity: 0.20; }

.legend-label {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--ink-70);
    letter-spacing: -0.005em;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.legend-value {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 0.8125rem;
    color: var(--ink-100);
    letter-spacing: -0.005em;
    line-height: 1.3;
}

/* --- Staking: APY ring + meta rows --- */
.token-viz--staking {
    flex-direction: row;
    align-items: center;
    gap: 2.25rem;
    flex-wrap: wrap;
}

.token-ring {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.token-ring svg { display: block; }

.token-ring-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.token-ring-number {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ink-100);
    letter-spacing: -0.02em;
    line-height: 1;
}

.token-ring-percent {
    color: var(--primary-color);
    margin-left: 1px;
    font-weight: 500;
}

.token-ring-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--ink-55);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    line-height: 1;
}

.token-staking-meta {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    flex: 1 1 180px;
    min-width: 0;
}

@media (max-width: 720px) {
    .token-viz--supply .token-stats { grid-template-columns: 1fr 1fr; }
    .token-legend { grid-template-columns: 1fr 1fr; }
    .token-viz--staking { gap: 1.5rem; }
    .token-ring { width: 104px; height: 104px; }
    .token-ring-number { font-size: 1.3125rem; }
}

@media (max-width: 460px) {
    .token-legend { grid-template-columns: 1fr; }
}

/* Token trailing resources */
.token-resources {
    margin-top: clamp(3rem, 2rem + 3vw, 5rem);
    padding-top: clamp(2rem, 1rem + 2vw, 3rem);
    border-top: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.token-resources-contract {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--ink-55);
}

.token-resources-links {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.token-resources-links a {
    color: var(--ink-100);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s var(--ease-out);
}

.token-resources-links a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.token-resources-links a span {
    transition: transform 0.2s var(--ease-out);
}

.token-resources-links a:hover span {
    transform: translate(2px, -2px);
}

@media (max-width: 720px) {
    .benefit-card {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    .benefit-number { font-size: 1.5rem; }
    .token-row { gap: 1rem; }
}

/* =================================================================
   Network status (.join-ecosystem)
   Big numerals up top, trust-signal row below as plain prose
   with hairline separators (no cards).
   ================================================================= */

.status-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    margin-bottom: clamp(3rem, 2rem + 3vw, 5rem);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.status-stat {
    padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem) clamp(1rem, 0.5rem + 1vw, 2rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    border-right: 1px solid var(--rule);
    position: relative;
}

.status-stat:last-child { border-right: none; }

.status-stat-value {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums slashed-zero;
    font-size: clamp(2.25rem, 1.25rem + 2.5vw, 3.5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.035em;
    color: var(--ink-100);
}

.status-stat-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.status-stat-label::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 1px;
    background: var(--primary-color);
    margin-right: 0.625rem;
    vertical-align: middle;
}

@media (max-width: 860px) {
    .status-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .status-stat {
        border-right: 1px solid var(--rule);
        border-bottom: 1px solid var(--rule);
    }
    .status-stat:nth-child(2n) { border-right: none; }
    .status-stat:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 460px) {
    .status-stats {
        grid-template-columns: 1fr;
    }
    .status-stat {
        border-right: none;
        border-bottom: 1px solid var(--rule);
    }
    .status-stat:last-child { border-bottom: none; }
}

/* Override .benefits-grid heavy card chrome for status section only */
#network-status .benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 0;
}

#network-status .benefit-item {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    min-height: 0;
    transition: none;
    transform: none;
    isolation: auto;
}

#network-status .benefit-item:not(:first-child) {
    border-left: 1px solid var(--rule);
}

#network-status .benefit-item::before,
#network-status .benefit-item::after {
    content: none;
}

#network-status .benefit-item:hover { transform: none; box-shadow: none; }
#network-status .benefit-item:hover .inner-content { background: transparent; }
#network-status .benefit-item:hover h3 { color: var(--ink-100); }
#network-status .benefit-item:hover p { color: var(--ink-70); }

#network-status .inner-content {
    background: transparent;
    border-radius: 0;
    padding: 0 clamp(1rem, 0.5rem + 1vw, 2rem);
    align-items: flex-start;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    transition: none;
}

#network-status .benefit-item:first-child .inner-content { padding-left: 0; }
#network-status .benefit-item:last-child .inner-content { padding-right: 0; }

#network-status .benefit-item h3 {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-align: left;
    margin: 0 0 0.5rem;
}

#network-status .benefit-item p {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--ink-70);
    max-width: none;
    margin: 0;
    text-align: left;
    letter-spacing: -0.005em;
}

@media (max-width: 860px) {
    #network-status .benefits-grid {
        grid-template-columns: 1fr;
    }
    #network-status .benefit-item:not(:first-child) {
        border-left: none;
        border-top: 1px solid var(--rule);
        padding-top: 1.75rem;
        margin-top: 1.75rem;
    }
    #network-status .inner-content,
    #network-status .benefit-item:first-child .inner-content,
    #network-status .benefit-item:last-child .inner-content {
        padding: 0;
    }
}

/* =================================================================
   Footer
   ================================================================= */

.footer {
    padding: clamp(4rem, 3rem + 2vw, 6rem) var(--gutter-x) clamp(2rem, 1.5rem + 1vw, 3rem);
    background: var(--background-color);
    position: relative;
}

.footer::before { content: none; }

.footer-content {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 2rem + 2vw, 5rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: clamp(2rem, 1rem + 3vw, 5rem);
    align-items: start;
}

/* Brand column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 26rem;
    min-width: 0;
}

.footer-logo {
    display: inline-flex;
}

.footer-logo img {
    height: 2rem;
    opacity: 0.9;
    transition: opacity 0.2s var(--ease-out);
}

.footer-logo:hover img { opacity: 1; }

.footer-tagline {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--ink-55);
    line-height: 1.5;
    letter-spacing: -0.005em;
    max-width: 34ch;
    margin: 0;
}

.footer-contract {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-mono);
    margin-top: 0.25rem;
}

.footer-contract-label {
    color: var(--ink-40);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.625rem;
    line-height: 1;
}

.footer-contract-value {
    color: var(--ink-70);
    font-size: 0.75rem;
    line-height: 1.35;
    word-break: break-all;
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}

.footer-contract-value:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.footer-social .icon {
    color: var(--ink-55);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 4px;
    background: transparent;
    border: 1px solid var(--ink-12);
}

.footer-social .icon:hover {
    color: var(--primary-color);
    background: var(--mint-faint);
    border-color: var(--mint-soft);
}

/* Link columns */
.footer-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.footer-col-title {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
    margin: 0 0 1.5rem;
    line-height: 1;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    color: var(--ink-70);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    letter-spacing: -0.005em;
    line-height: 1.4;
    transition: color 0.2s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--ink-100);
}

.footer-links a > span {
    color: var(--ink-40);
    font-size: 0.875em;
    transition: transform 0.2s var(--ease-out), color 0.2s var(--ease-out);
    display: inline-block;
}

.footer-links a:hover > span {
    color: var(--primary-color);
    transform: translate(2px, -2px);
}

/* Bottom strip */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding-top: clamp(1.5rem, 1rem + 1vw, 2.5rem);
    border-top: 1px solid var(--rule);
}

.footer-copyright {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--ink-40);
    letter-spacing: -0.005em;
    margin: 0;
}

.footer-disclaimer {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--ink-40);
    letter-spacing: 0.01em;
    line-height: 1.5;
    max-width: 56ch;
    margin: 0;
    text-align: right;
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
    .footer-disclaimer {
        text-align: left;
    }
}

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

/* =================================================================
   Focus rings
   ================================================================= */

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-sm);
}

.nav-links a:focus-visible,
.nav-icons .icon:focus-visible,
.footer-social .icon:focus-visible,
.menu-toggle:focus-visible,
.nav-links-close:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.token-resources-links a:focus-visible {
    box-shadow: var(--focus-ring);
    outline: none;
}

/* =================================================================
   Selection
   ================================================================= */

::selection {
    background: var(--primary-color);
    color: var(--background-color);
}

/* =================================================================
   Features section (.capability) — 2x2 grid of feature cards.
   Visual area on top, title + description below.
   ================================================================= */

.capability-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Features list (Figma node 20:2) — stacked rows: icon + title left, description right */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.feature-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: clamp(1.25rem, 0.75rem + 1.2vw, 1.75rem) clamp(1.25rem, 0.75rem + 1.2vw, 2rem);
    background: oklch(0.16 0.012 165 / 0.22);
    border: 1px solid var(--ink-12);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 oklch(0.97 0.005 165 / 0.04),
        inset 0 -1px 0 oklch(0 0 0 / 0.35);
    transition: border-color 240ms var(--ease-out-soft);
    isolation: isolate;
}

/* Hover wash — sits above the static bg, opacity transition for a soft fade */
.feature-row::after {
    content: "";
    position: absolute;
    inset: 0;
    background: oklch(0.22 0.020 165 / 0.45);
    opacity: 0;
    transition: opacity 320ms var(--ease-out-soft);
    pointer-events: none;
    z-index: -1;
}

.feature-row:hover::after {
    opacity: 1;
}


.feature-row:hover {
    border-color: var(--mint-faint);
}

/* Pulse the icon glow — "rack unit live" */
.feature-icon {
    animation: feature-icon-pulse 2.4s var(--ease-out-soft) infinite;
}

.feature-row:nth-child(1) .feature-icon { animation-delay: 0s; }
.feature-row:nth-child(2) .feature-icon { animation-delay: 0.6s; }
.feature-row:nth-child(3) .feature-icon { animation-delay: 1.2s; }
.feature-row:nth-child(4) .feature-icon { animation-delay: 1.8s; }

.feature-row:hover .feature-icon {
    box-shadow: 0 0 18px rgba(44, 225, 171, 0.5);
}

@keyframes feature-icon-pulse {
    0%, 100% { box-shadow: 0 0 8px  rgba(44, 225, 171, 0.18); }
    50%      { box-shadow: 0 0 18px rgba(44, 225, 171, 0.45); }
}

@media (prefers-reduced-motion: reduce) {
    .feature-icon { animation: none; }
    .feature-row { transition: none; }
}

/* Rack unit ID label (mono) */
.feature-sku {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--mint-soft);
    text-transform: uppercase;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    transition: color 240ms var(--ease-out-soft);
}

.feature-row:hover .feature-sku {
    color: var(--primary-color);
}

/* Decorative vent grille on the right edge */
.feature-vent {
    flex: 0 0 auto;
    width: 1.125rem;
    height: 1.5rem;
    background-image: repeating-linear-gradient(90deg,
        var(--ink-25) 0,
        var(--ink-25) 1px,
        transparent 1px,
        transparent 5px);
    opacity: 0.55;
    transition: opacity 240ms var(--ease-out-soft);
}

.feature-row:hover .feature-vent {
    opacity: 0.85;
}

.feature-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 41px;
    border-radius: 999px;
    background: linear-gradient(180deg, #25b78b 0%, #10382a 100%);
    border: 1px solid #134d3a;
    box-shadow: 0 0 10px rgba(44, 225, 171, 0.15);
    display: grid;
    place-items: center;
    color: #0c231a;
    font-size: 0.9rem;
    overflow: hidden;
}

.feature-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.feature-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink-100);
    line-height: 1.3;
    letter-spacing: -0.005em;
    margin: 0;
    flex: 0 0 auto;
}

.feature-body p {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--ink-55);
    margin: 0;
    text-align: right;
    flex: 0 1 auto;
    max-width: 28rem;
}

@media (max-width: 720px) {
    .feature-row {
        flex-wrap: wrap;
        gap: 0.875rem 1rem;
    }
    .feature-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        order: 3;
        flex: 1 1 100%;
    }
    .feature-body p {
        text-align: left;
    }
    .feature-sku {
        margin-left: auto;
    }
    .feature-vent {
        display: none;
    }
}

.capability-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.capability-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    min-height: 100px;
}

.capability-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.capability-body h3 {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    color: var(--ink-100);
    letter-spacing: -0.015em;
    line-height: 1.25;
    margin: 0;
}

.capability-body p {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--ink-55);
    line-height: 1.5;
    letter-spacing: -0.005em;
    margin: 0;
}

.capability-caption {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-40);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    line-height: 1;
    margin-top: 4px;
}

/* Card 1: price comparison */
.price-compare {
    display: flex;
    align-items: center;
    gap: 14px;
}

.price-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.price-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-40);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    line-height: 1;
}

.price-value {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 1.625rem;
    line-height: 1;
    letter-spacing: -0.025em;
    font-weight: 500;
}

.price-old .price-value {
    color: var(--ink-55);
    text-decoration: line-through;
    text-decoration-color: var(--ink-40);
    text-decoration-thickness: 1px;
}

.price-new .price-value {
    color: var(--primary-color);
}

.price-arrow {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    color: var(--ink-40);
    flex-shrink: 0;
    line-height: 1;
}

/* Card 2: solana settlement */
.solana-symbol {
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1;
    font-weight: 300;
    margin-bottom: 4px;
}

.big-stat-value {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 2rem;
    color: var(--ink-100);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 500;
}

/* Card 3: check list */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-list li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    color: var(--ink-70);
    letter-spacing: 0;
    line-height: 1.3;
}

.check-mark {
    color: var(--primary-color);
    flex-shrink: 0;
    font-weight: 500;
}

/* Card 4: tag row */
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.02);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--ink-70);
    letter-spacing: 0;
    line-height: 1;
}

@media (max-width: 768px) {
    .capability-grid {
        grid-template-columns: 1fr;
    }
    .capability-card {
        min-height: 0;
    }
}

/* =================================================================
   Reduced motion
   ================================================================= */

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

    .hero-video { display: none; }

    .hero-eyebrow .dot { animation: none; }
}

/* =================================================================
   Status dashboard — Solara compute console
   Visual language inherits from .node-card (dark gradient, mint
   accents, JetBrains Mono for IDs/numbers, three-step ink ramp).
   ================================================================= */

#network-status {
    overflow: hidden;
    padding-bottom: 0;
}

.status-dashboard {
    --nc-text-1: oklch(0.965 0 0);
    --nc-text-2: oklch(0.72 0 0);
    --nc-text-3: oklch(0.52 0 0);
    --nc-divider: rgba(255, 255, 255, 0.07);

    position: relative;
    margin-top: clamp(3rem, 2rem + 3vw, 5rem);
    padding: clamp(1.5rem, 0.5rem + 3vw, 4rem) 0 0;
    isolation: isolate;
    max-height: 660px;
}

/* Fade-out overlay along the bottom of the visible dashboard */
.status-dashboard::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(
        180deg,
        rgba(9, 14, 10, 0) 0%,
        rgba(9, 14, 10, 0.55) 45%,
        var(--background-color) 100%
    );
}

/* Ambient on-brand glowing ellipses behind the frame */
.status-dashboard-glow {
    position: absolute;
    inset: -8% -4%;
    z-index: -1;
    pointer-events: none;
    overflow: visible;
    filter: blur(90px) saturate(140%);
}
.status-dashboard-glow .glow {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

/* Primary mint glow — broad halo wrapping the left half of the frame */
.status-dashboard-glow .glow-mint {
    left: -6%;
    top: -4%;
    width: 56%;
    height: 88%;
    opacity: 0.85;
    background: radial-gradient(ellipse at center, rgba(44, 225, 171, 0.85) 0%, rgba(44, 225, 171, 0.35) 35%, transparent 70%);
    animation: glowDrift 18s ease-in-out infinite alternate;
}

/* Secondary mint glow — bright spotlight near the top-center, gives the frame an aura */
.status-dashboard-glow .glow-mint-2 {
    left: 30%;
    top: -14%;
    width: 44%;
    height: 56%;
    opacity: 0.7;
    background: radial-gradient(ellipse at center, rgba(108, 255, 209, 0.7) 0%, rgba(44, 225, 171, 0.25) 45%, transparent 75%);
    animation: glowDrift 22s ease-in-out -6s infinite alternate-reverse;
}

/* Cyan accent — top-right corner halo */
.status-dashboard-glow .glow-cyan {
    right: -8%;
    top: -6%;
    width: 50%;
    height: 78%;
    opacity: 0.7;
    background: radial-gradient(ellipse at center, rgba(96, 200, 230, 0.65) 0%, rgba(96, 200, 230, 0.22) 40%, transparent 72%);
    animation: glowDrift 24s ease-in-out -4s infinite alternate;
}

/* Cyan accent 2 — small bright cyan spot mid-right */
.status-dashboard-glow .glow-cyan-2 {
    right: 14%;
    top: 32%;
    width: 28%;
    height: 40%;
    opacity: 0.55;
    background: radial-gradient(ellipse at center, rgba(140, 220, 245, 0.55) 0%, rgba(96, 200, 230, 0.15) 50%, transparent 75%);
}

/* Violet anchor — bottom-center, gives the lower edge a depth shadow of color */
.status-dashboard-glow .glow-violet {
    left: 22%;
    bottom: -18%;
    width: 56%;
    height: 60%;
    opacity: 0.6;
    background: radial-gradient(ellipse at center, rgba(122, 102, 220, 0.55) 0%, rgba(122, 102, 220, 0.2) 45%, transparent 75%);
    animation: glowDrift 26s ease-in-out -10s infinite alternate;
}

/* Warm amber pinprick — bottom-right, a touch of contrast */
.status-dashboard-glow .glow-amber {
    right: 6%;
    bottom: -10%;
    width: 32%;
    height: 44%;
    opacity: 0.5;
    background: radial-gradient(ellipse at center, rgba(255, 188, 110, 0.5) 0%, rgba(226, 140, 60, 0.15) 50%, transparent 75%);
}

@keyframes glowDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(2%, -1.5%, 0) scale(1.06); }
    100% { transform: translate3d(-1.5%, 1%, 0) scale(0.97); }
}

@media (prefers-reduced-motion: reduce) {
    .status-dashboard-glow .glow { animation: none; }
}

/* Frame: same dark gradient + animated mint border as .node-card */
.status-dashboard-frame {
    --nc-border-width: 1px;
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr;
    height: 900px;
    font-family: var(--font-sans);
    color: var(--nc-text-2);
    font-size: 13px;
    line-height: 1.4;
    background: linear-gradient(165deg, #1c1c1c 0%, #161616 55%, #101010 100%);
    border-radius: 10px;
    box-shadow:
        0 22px 60px -28px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    overflow: hidden;
}
.status-dashboard-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(
        135deg,
        #1ea884 0%,
        #167d63 14%,
        rgba(22, 125, 99, 0) 42%,
        rgba(22, 125, 99, 0) 58%,
        #167d63 86%,
        #1ea884 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
            mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

/* Left rail */
.dash-rail {
    background: rgba(0, 0, 0, 0.25);
    border-right: 1px solid var(--nc-divider);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 0;
    gap: 16px;
    color: var(--nc-text-3);
}
.dash-mark {
    color: var(--primary-color);
    display: inline-flex;
    padding: 6px;
    border-radius: 6px;
    background: rgba(44, 225, 171, 0.08);
}
.dash-util {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
}
.dash-util-ring {
    position: relative;
    width: 40px;
    height: 40px;
}
.dash-util-ring svg {
    width: 100%;
    height: 100%;
    display: block;
}
.dash-util-num {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--nc-text-1);
    letter-spacing: -0.02em;
}
.dash-util-num i {
    font-style: normal;
    font-size: 8px;
    color: var(--nc-text-3);
    margin-left: 1px;
}
.dash-util-label {
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.18em;
    color: var(--nc-text-3);
}
.dash-nav {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    align-items: center;
}
.dash-nav li {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--nc-text-3);
    transition: color 0.2s ease, background 0.2s ease;
}
.dash-nav li.active {
    background: rgba(44, 225, 171, 0.1);
    color: var(--primary-color);
}

/* Main pane */
.dash-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}
.dash-main > .dash-toolbar { flex-shrink: 0; }
.dash-main > .dash-grid { flex: 1; min-height: 0; }

.dash-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--nc-divider);
}
.dash-search {
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 7px 10px;
    color: var(--nc-text-3);
    font-size: 12px;
    min-width: 0;
}
.dash-search svg { flex-shrink: 0; }
.dash-search span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-search kbd {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--nc-text-3);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    padding: 1px 5px;
}
.dash-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--nc-text-2);
    cursor: default;
}

/* =================================================================
   Dashboard grid: 4-column multi-zone layout
   ================================================================= */

.dash-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 12px;
    padding: 14px;
    overflow: hidden;
}

/* Base card */
.dash-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.018);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 7px;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
}
.dash-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dash-card-head h4 {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--nc-text-1);
    letter-spacing: -0.005em;
    line-height: 1.2;
}
.dash-card-sub {
    display: block;
    margin-top: 2px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--nc-text-3);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.dash-card-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--nc-text-3);
    letter-spacing: 0.02em;
}
.dash-card-link {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--nc-text-3);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}
.dash-card-link:hover { color: var(--primary-color); }
.dash-card-link span {
    display: inline-block;
    transition: transform 0.2s var(--ease-out);
}
.dash-card-link:hover span { transform: translateX(2px); }

/* ---------- KPI tiles (row 1) ---------- */
.dash-kpi {
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.018);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 7px;
    min-width: 0;
}
.dash-kpi > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.kpi-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--nc-text-3);
}
.kpi-delta {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    letter-spacing: 0.02em;
}
.kpi-delta.up   { color: var(--primary-color); background: rgba(44, 225, 171, 0.1); }
.kpi-delta.down { color: #e2b04a; background: rgba(226, 176, 74, 0.1); }
.kpi-value {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 500;
    color: var(--nc-text-1);
    letter-spacing: -0.02em;
    line-height: 1;
}
.kpi-value i {
    font-style: normal;
    font-size: 11px;
    color: var(--nc-text-3);
    margin-left: 4px;
    letter-spacing: 0;
}
.kpi-spark {
    margin-top: auto;
    width: 100%;
    height: 22px;
    color: var(--primary-color);
    opacity: 0.85;
}
.kpi-spark.down { color: #e2b04a; opacity: 0.7; }

/* ---------- Chart card (row 3, cols 1-3) ---------- */
.dash-card--chart { grid-row: 3; grid-column: 1 / span 3; }
.dash-tabs { display: inline-flex; gap: 2px; }
.dash-tabs button {
    font-family: var(--font-mono);
    font-size: 10.5px;
    padding: 4px 9px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--nc-text-3);
    letter-spacing: 0.04em;
    cursor: default;
}
.dash-tabs button.active {
    background: rgba(44, 225, 171, 0.1);
    color: var(--primary-color);
}
.dash-chart {
    flex: 1;
    min-height: 0;
    padding: 14px 16px 4px;
    display: flex;
    flex-direction: column;
}
.area-chart {
    flex: 1;
    width: 100%;
    min-height: 0;
}
.dash-chart-x {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--nc-text-3);
    letter-spacing: 0.06em;
}
.dash-card--chart .legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--nc-text-2);
}
.dash-card--chart .legend.dim { color: var(--nc-text-3); }
.dash-card--chart .legend-dot {
    width: 8px; height: 2px; border-radius: 2px;
    background: var(--primary-color);
}
.dash-card--chart .legend-dash {
    width: 8px; height: 2px;
    background: repeating-linear-gradient(90deg, rgba(44,225,171,0.5) 0 2px, transparent 2px 4px);
}
.dash-card--chart .legend-meta { margin-left: auto; }

/* ---------- Regions list (row 3, col 4) ---------- */
.dash-card--list { grid-row: 3; grid-column: 4 / span 1; }
.region-list {
    list-style: none;
    margin: 0;
    padding: 10px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
    overflow: hidden;
}
.region-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 60px 24px;
    align-items: center;
    gap: 10px;
}
.region-code {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--nc-text-2);
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.region-bar {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.region-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, rgba(44, 225, 171, 0.5), var(--primary-color));
    border-radius: inherit;
}
.region-pct {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--nc-text-1);
    text-align: right;
    letter-spacing: -0.01em;
}

/* ---------- Active jobs (row 2, cols 1-2) ---------- */
.dash-card--jobs { grid-row: 2; grid-column: 1 / span 2; }
.dash-jobs {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.dash-job {
    position: relative;
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.dash-job:last-child { border-bottom: none; }
.dash-job.selected {
    background: linear-gradient(90deg, rgba(44, 225, 171, 0.07) 0%, rgba(44, 225, 171, 0) 70%);
}
.dash-job.selected::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}
.job-body {
    min-width: 0;
}
.job-title {
    color: var(--nc-text-1);
    font-size: 12.5px;
    letter-spacing: -0.005em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.job-meta {
    margin-top: 2px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--nc-text-3);
    letter-spacing: 0.02em;
}
.job-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}
.job-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--nc-text-2);
    letter-spacing: 0.02em;
}
.job-badge.mint {
    color: var(--primary-color);
    background: rgba(44, 225, 171, 0.08);
    border-color: rgba(44, 225, 171, 0.22);
}
.job-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--nc-text-1);
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

/* shared chips/trend/progress (reused inside cards) */
.dash-trend {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.02em;
}
.dash-trend.up   { color: var(--primary-color); background: rgba(44, 225, 171, 0.1); }
.dash-inline-note {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--nc-text-3);
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.dash-inline-note.attention {
    color: #e2b04a;
    background: rgba(226, 176, 74, 0.08);
    border-color: rgba(226, 176, 74, 0.22);
}
.dash-progress {
    flex: 1;
    min-width: 0;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.dash-progress-bar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, rgba(44, 225, 171, 0.55), var(--primary-color));
    border-radius: inherit;
}
.dash-progress-label {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--nc-text-3);
    letter-spacing: 0.02em;
}

/* Status dots (used in jobs list and health panel) */
.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.dot.live {
    background: var(--primary-color);
    box-shadow: 0 0 0 0 rgba(44, 225, 171, 0.6);
    animation: dashPulse 1.8s ease-out infinite;
}
.dot.warn { background: #e2b04a; }
.dot.idle { background: rgba(255, 255, 255, 0.25); }
.dot.fail { background: #e25c5c; }

@keyframes dashPulse {
    0%   { box-shadow: 0 0 0 0 rgba(44, 225, 171, 0.55); }
    70%  { box-shadow: 0 0 0 5px rgba(44, 225, 171, 0); }
    100% { box-shadow: 0 0 0 0 rgba(44, 225, 171, 0); }
}

/* ---------- Network health (row 2, col 3) ---------- */
.dash-card--health { grid-row: 2; grid-column: 3 / span 1; }
.health-list {
    list-style: none;
    margin: 0;
    padding: 8px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.health-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 8px;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.health-list li:last-child { border-bottom: none; }
.svc-name {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--nc-text-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.svc-uptime {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--nc-text-3);
    letter-spacing: 0.02em;
}
.svc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.svc-dot.ok   { background: var(--primary-color); }
.svc-dot.warn { background: #e2b04a; }
.svc-dot.fail { background: #e25c5c; }
.health-tag {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
}
.health-tag.ok {
    color: var(--primary-color);
    background: rgba(44, 225, 171, 0.08);
    border-color: rgba(44, 225, 171, 0.22);
}

/* ---------- GPU mix donut (row 2, col 4) ---------- */
.dash-card--donut { grid-row: 2; grid-column: 4 / span 1; }
.donut-wrap {
    position: relative;
    padding: 10px 14px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}
.donut {
    width: 110px;
    height: 110px;
    max-width: 100%;
}
.donut-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
    pointer-events: none;
}
.donut-center strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 500;
    color: var(--nc-text-1);
    letter-spacing: -0.02em;
    line-height: 1;
}
.donut-center span {
    display: block;
    margin-top: 3px;
    font-family: var(--font-mono);
    font-size: 8.5px;
    color: var(--nc-text-3);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.donut-legend {
    list-style: none;
    margin: 0;
    padding: 4px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.donut-legend li {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}
.donut-legend .ldot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: inline-block;
}
.donut-legend li span {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--nc-text-2);
    letter-spacing: 0.02em;
}
.donut-legend li b {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 400;
    color: var(--nc-text-1);
    letter-spacing: -0.01em;
}

/* Responsive */
@media (max-width: 1120px) {
    /* Frame was a fixed 900px on desktop; below this width the stacked grid
       overflows that ceiling and gets clipped by overflow:hidden. Let it grow. */
    .status-dashboard-frame { height: auto; }
    .status-dashboard { max-height: none; }
    .dash-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(5, auto);
    }
    .dash-kpi { grid-row: auto; }
    .dash-card--chart { grid-column: 1 / span 2; grid-row: auto; }
    .dash-card--list,
    .dash-card--jobs,
    .dash-card--health,
    .dash-card--donut { grid-column: auto; grid-row: auto; }
    .dash-card--jobs { grid-column: 1 / span 2; }
}
@media (max-width: 640px) {
    #network-status { overflow: visible; }
    .status-dashboard {
        max-height: none;
    }
    .status-dashboard::after { display: none; }
    .status-dashboard-frame {
        grid-template-columns: 1fr;
        height: auto;
    }
    .dash-rail {
        flex-direction: row;
        justify-content: flex-start;
        border-right: none;
        border-bottom: 1px solid var(--nc-divider);
        padding: 10px 14px;
        gap: 12px;
    }
    .dash-util { flex-direction: row; gap: 8px; }
    .dash-util-ring { width: 28px; height: 28px; }
    .dash-util-num { font-size: 9px; }
    .dash-util-label { display: none; }
    .dash-nav {
        flex-direction: row;
        flex: 1;
        justify-content: flex-end;
        margin: 0;
    }
    .dash-grid {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 10px;
    }
    .dash-card--chart,
    .dash-card--jobs { grid-column: 1; }
    .dash-toolbar .dash-pill { display: none; }

    /* Aggressive mobile trim — the dashboard's job here is a representative
       snapshot, not a full console. Keep rail + one KPI + chart + a few jobs;
       drop the cards whose legibility or density doesn't survive the column. */
    .dash-grid .dash-kpi ~ .dash-kpi,
    .dash-card--list,
    .dash-card--health,
    .dash-card--donut,
    .dash-toolbar { display: none; }

    /* Keep the jobs list short on mobile */
    .dash-jobs > li:nth-child(n+4) { display: none; }
}

/* Smallest phones: tighten the residual dashboard chrome. */
@media (max-width: 420px) {
    .dash-rail { padding: 8px 10px; gap: 8px; }
    .dash-nav li { width: 28px; height: 28px; }
}

/* =================================================================
   Icon glyph utility (drop-in replacement for Font Awesome <i>)
   Inherits parent font-size for 1em sizing, fills with currentColor.
   ================================================================= */
.iglyph {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

/* =================================================================
   Off-screen ambient pause
   IntersectionObserver toggles .is-offscreen on [data-ambient]
   containers; these rules stop continuous CSS animations inside
   them so the page doesn't burn CPU/GPU when scrolled away.
   ================================================================= */
.node-card.is-offscreen::before { animation-play-state: paused; }
.status-dashboard-glow.is-offscreen .glow { animation-play-state: paused; }

/* =================================================================
   Entrance & reveal motion
   -----------------------------------------------------------------
   Hero choreography fires on first paint (pure CSS, no JS gate).
   Section reveal is JS-driven and gated behind html.js — if JS
   never runs, [data-reveal] elements render normally.
   prefers-reduced-motion strips both layers.
   ================================================================= */

/* Nav drop-in */
nav { animation: nav-drop 560ms var(--ease-out) both; }
@keyframes nav-drop {
    from { opacity: 0; transform: translate3d(0, -10px, 0); }
    to   { opacity: 1; transform: none; }
}

/* Hero choreography */
.hero-content > *              { animation: hero-rise 760ms var(--ease-out) both; }
.hero-content > .hero-eyebrow  { animation-delay:  60ms; }
.hero-content > h1             { animation-delay: 180ms; }
.hero-content > p              { animation-delay: 320ms; }
.hero-content > .cta-buttons   { animation-delay: 460ms; }
.hero-content > .hero-metrics  { animation-delay: 600ms; }
.hero-content > .hero-contract { animation-delay: 740ms; }
@keyframes hero-rise {
    from { opacity: 0; transform: translate3d(0, 14px, 0); }
    to   { opacity: 1; transform: none; }
}

/* Section reveal */
html.js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
        opacity 760ms var(--ease-out),
        transform 760ms var(--ease-out);
}
html.js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

/* Stagger direct [data-reveal] children of a stagger container */
[data-reveal-stagger] > [data-reveal]:nth-child(1) { transition-delay:   0ms; }
[data-reveal-stagger] > [data-reveal]:nth-child(2) { transition-delay:  90ms; }
[data-reveal-stagger] > [data-reveal]:nth-child(3) { transition-delay: 180ms; }
[data-reveal-stagger] > [data-reveal]:nth-child(4) { transition-delay: 270ms; }
[data-reveal-stagger] > [data-reveal]:nth-child(5) { transition-delay: 360ms; }
[data-reveal-stagger] > [data-reveal]:nth-child(6) { transition-delay: 450ms; }

@media (prefers-reduced-motion: reduce) {
    nav,
    .hero-content > *,
    html.js [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

