/* ============================================================
   GiM Operations — Titanium & Glass V6.0
   Sovereign Infrastructure Design System
   ============================================================ */

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
    /* Palette: Titanium & Glass */
    --void-black: #000000;
    --titanium-dark: #121212;
    /* Deep matte grey background */
    --titanium-mid: #1E1E1E;
    /* Cards / lighter surfaces */
    --off-white: #F5F5F7;
    /* Primary Text */
    --steel-grey: #86868B;
    /* Secondary Text */
    --charcoal: #1D1D1F;
    --charcoal-soft: #2C2C2E;
    --mid-grey: #86868B;

    /* Accents */
    --signal-green: #30D158;
    /* System Status / Success */
    --signal-amber: #FF9F0A;
    /* Warnings / Index */
    --signal-cyan: #64D2FF;
    /* Data Streams */
    --emerald: #30D158;
    --emerald-soft: rgba(48, 209, 88, 0.12);

    /* Glassmorphism */
    --glass-surface: rgba(30, 30, 30, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-light: rgba(255, 255, 255, 0.5);
    --glass-shine: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(20px);
    --glass-bg: rgba(255, 255, 255, 0.65);

    /* Shadows & Glows */
    --shadow-subtle: 0 4px 24px rgba(0, 0, 0, 0.2);
    --shadow-deep: 0 24px 48px rgba(0, 0, 0, 0.4);
    --glow-text: 0 0 20px rgba(245, 245, 247, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.12);

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Roboto", sans-serif;
    --font-mono: "SF Mono", "Fira Code", monospace;

    /* Animation */
    --ease-physics: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-hover: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-smooth: cubic-bezier(0.33, 1, 0.68, 1);

    /* Layout */
    --nav-height: 60px;
    --max-width: 1200px;
    --page-pad: clamp(24px, 5vw, 64px);
    --border-light: rgba(0, 0, 0, 0.08);
    --border-dark: rgba(255, 255, 255, 0.12);
}

/* ── RESET ────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--titanium-dark);
    color: var(--off-white);
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

input,
select,
textarea {
    font-family: inherit;
}

/* ── UTILITIES ────────────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--page-pad);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.fade-in {
    animation: fadeIn 0.8s var(--ease-physics) forwards;
    opacity: 0;
    transform: translateY(10px);
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ══════════════════════════════════════════════════════════════
   INDEX PAGE — CONTROL STRIP, HERO, BIFURCATION, MISSION
   ══════════════════════════════════════════════════════════════ */



/* ── SECTION 2: HERO (The Universal Adapter) ──────────────── */
.hero-section {
    min-height: 90vh;
    /* Takes up most of the viewport */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 24px 80px;
    position: relative;
    overflow: hidden;
}

/* 3D Wireframe Node Placeholder */
.node-container {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: 0;
    /* Behind content */
    opacity: 0.15;
}

.wireframe-cube {
    width: 100%;
    height: 100%;
    border: 1px solid var(--off-white);
    border-radius: 50%;
    position: relative;
    animation: pulseRotate 20s linear infinite;
}

@keyframes pulseRotate {
    0% {
        transform: rotate(0deg) scale(0.95);
        opacity: 0.5;
    }

    50% {
        transform: rotate(180deg) scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: rotate(360deg) scale(0.95);
        opacity: 0.5;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-headline {
    font-size: clamp(3rem, 7vw, 6rem);
    /* Massive typography */
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    color: var(--off-white);
    /* Solid color visibility */
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.15);
}

.hero-subhead {
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: var(--steel-grey);
    max-width: 640px;
    margin: 0 auto 56px;
    font-weight: 400;
    line-height: 1.5;
}


/* ── SECTION 3: THE BIFURCATION (The Choice) ──────────────── */
.bifurcation-section {
    padding: 20px 24px 120px;
    display: flex;
    justify-content: center;
}

.cards-container {
    display: flex;
    gap: 32px;
    max-width: 1200px;
    width: 100%;
    /* Taking up ~50% screen height visually, enforced by padding/content */
}

.card {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s var(--ease-physics);
    border: 1px solid var(--glass-border);
    background: var(--titanium-mid);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Content pushed to bottom */
    padding: 56px 48px;
    min-height: 500px;
}

/* Card Backgrounds */
.card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: transform 0.6s var(--ease-physics);
    opacity: 0.25;
    /* Darkened */
    background-size: cover;
    background-position: center;
}

.card#network .card-bg {
    background-image: url('network_assets/blast_door.jpg');
    /* POS Terminal / Industrial Arm replacement */
    filter: grayscale(100%) contrast(1.2);
}

.card#index .card-bg {
    background-image: url('network_assets/world_data.jpg');
    /* Abstract Data Stream */
    filter: sepia(100%) hue-rotate(320deg) saturate(0.5);
    /* Amber tint hint */
}

/* Hover Physics: Scale up 2% and glow */
.card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.08);
    /* Glow */
    border-color: rgba(255, 255, 255, 0.25);
    z-index: 10;
}

.card:hover .card-bg {
    transform: scale(1.05);
    /* Parallax effect */
    opacity: 0.4;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--steel-grey);
    margin-bottom: 20px;
    display: block;
}

.card-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--off-white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.0;
}

.card-copy {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 380px;
}

.btn-card {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--off-white);
    backdrop-filter: blur(4px);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-card:hover {
    background: var(--off-white);
    color: var(--void-black);
    border-color: var(--off-white);
}


/* ── SECTION 4: STRATEGIC PARTNERS ────────────────────────── */
.partners-strip {
    text-align: center;
    padding: 0 24px 120px;
    background: transparent;
    border-top: none;
    margin-top: 0;
}

.partners-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mid-grey);
    margin-bottom: 32px;
    opacity: 0.6;
}

.partner-img {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    opacity: 1;
    filter: none;
    transition: transform 0.3s var(--ease-hover);
}

.partner-img:hover {
    transform: scale(1.02);
}


/* ── SECTION 5: THE MISSION (Footer Anchor) ──────────────── */
.mission-section {
    padding: 80px 24px 140px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(180deg, var(--titanium-dark) 0%, #000 100%);
}

.mission-headline {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--off-white);
}

.mission-copy {
    color: var(--steel-grey);
    max-width: 600px;
    margin: 0 auto 32px;
    font-size: 1rem;
    line-height: 1.6;
}

.link-doctrine {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--off-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 4px;
    transition: border-color 0.3s;
    font-weight: 500;
}

.link-doctrine:hover {
    border-color: var(--off-white);
}


/* ── SECTION 5: SYSTEM STATUS (Micro-Footer) ─────────────── */
.system-status {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    z-index: 1000;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: right;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── MOBILE RESPONSIVENESS ────────────────────────────────── */
@media (max-width: 1024px) {
    .control-strip {
        width: 90%;
        min-width: auto;
        padding: 10px 16px;
    }

    .cards-container {
        flex-direction: column;
        /* Stack Vertically */
    }

    .card {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .control-strip {
        top: 16px;
        flex-direction: row;
        gap: 12px;
        padding: 12px;
    }

    .nav-links {
        display: none;
    }

    .hero-headline {
        font-size: 3rem;
    }

    .hero-section {
        padding-top: 120px;
    }

    .system-status {
        bottom: 12px;
        right: 12px;
        font-size: 0.6rem;
    }
}

/* ── HAMBURGER MENU ───────────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
    background: transparent;
    border: none;
    margin-left: 8px;
}

.nav-hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all 0.3s var(--ease-physics);
    transform-origin: center;
}

.page-dark .nav-hamburger span {
    background: var(--off-white);
}

.nav-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer overlay */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(18, 18, 18, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s var(--ease-physics);
}

.mobile-nav-drawer.is-open {
    display: flex;
    opacity: 1;
}

.mobile-nav-drawer a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--off-white);
    opacity: 0.5;
    letter-spacing: -0.04em;
    padding: 12px 24px;
    transition: opacity 0.2s;
}

.mobile-nav-drawer a:hover,
.mobile-nav-drawer a.active {
    opacity: 1;
}

.mobile-nav-close {
    position: absolute;
    top: 28px;
    right: 28px;
    font-size: 1.5rem;
    color: var(--off-white);
    cursor: pointer;
    opacity: 0.5;
    background: none;
    border: none;
    line-height: 1;
    transition: opacity 0.2s;
}

.mobile-nav-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }
}


/* ══════════════════════════════════════════════════════════════
   SHARED STYLES — SURVIVING SUB-PAGE COMPONENTS
   (From original style.css, lines 1195+)
   ══════════════════════════════════════════════════════════════ */

/* ── GLOBAL NAVIGATION (Glass Pill — Sub-Pages) ──────────── */
.site-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 8px 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    transition: all 0.4s var(--ease-physics);
    width: max-content;
    max-width: 90vw;
}

.site-nav:hover {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
    transform: translateX(-50%) translateY(-2px);
}

.site-nav .nav-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
}

.site-nav .nav-logo {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.04em;
    padding-right: 20px;
    padding-left: 8px;
    white-space: nowrap;
    color: var(--charcoal);
}

.site-nav .nav-links {
    display: flex;
    gap: 4px;
}

.site-nav .nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    opacity: 0.6;
    transition: all 0.25s var(--ease-smooth);
    white-space: nowrap;
    color: var(--charcoal);
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a.active {
    opacity: 1;
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    /* Raised active state */
    color: var(--charcoal);
}

/* Dark variant nav */
.page-dark .site-nav {
    background: rgba(29, 29, 31, 0.82);
    border-color: rgba(255, 255, 255, 0.1);
}

.page-dark .site-nav .nav-logo,
.page-dark .site-nav .nav-links a {
    color: var(--off-white);
}

.page-dark .site-nav .nav-links a:hover,
.page-dark .site-nav .nav-links a.active {
    background: rgba(255, 255, 255, 0.08);
}


/* ── SUB-PAGE HEADINGS ────────────────────────────────────── */
.headline-massive {
    font-size: clamp(3rem, 8vw, 7.5rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.9;
    background: linear-gradient(180deg, var(--charcoal) 0%, #48484A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.headline-large {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.0;
}

.subhead {
    font-size: clamp(1.05rem, 2vw, 1.65rem);
    color: var(--mid-grey);
    font-weight: 420;
    letter-spacing: -0.015em;
    line-height: 1.4;
    max-width: 680px;
}

/* Light versions (for dark backgrounds) */
.headline-massive.light {
    background: linear-gradient(180deg, #F5F5F7 0%, #A1A1A6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.headline-large.light,
.headline-medium.light {
    color: var(--off-white);
}

.subhead.light {
    color: #86868B;
}


/* ── HERO (THE HUB variant) ───────────────────────────────── */
.hero-hub {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px var(--page-pad) 80px;
    position: relative;
    overflow: hidden;
}

/* 3D Wireframe Node (Hub Variant) */
.wireframe-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 420px;
    height: 420px;
    opacity: 0.06;
    pointer-events: none;
}

.wireframe-node {
    width: 100%;
    height: 100%;
    position: relative;
    transform: rotateY(35deg) rotateX(15deg);
    transform-style: preserve-3d;
    perspective: 800px;
    /* animation: wireframeSpin 40s linear infinite; REMOVED per user edit */
}

.wireframe-face {
    position: absolute;
    border: 1px solid var(--charcoal);
    border-radius: 4px;
}

.wireframe-face.f1 {
    width: 200px;
    height: 200px;
    top: 110px;
    left: 110px;
    transform: rotateX(45deg) rotateZ(45deg);
}

.wireframe-face.f2 {
    width: 260px;
    height: 160px;
    top: 130px;
    left: 80px;
    transform: rotateY(35deg) rotateZ(-15deg);
}

.wireframe-face.f3 {
    width: 180px;
    height: 240px;
    top: 90px;
    left: 120px;
    transform: rotateX(-25deg) rotateY(50deg);
}

.wireframe-face.f4 {
    width: 300px;
    height: 120px;
    top: 150px;
    left: 60px;
    transform: rotateX(60deg) rotateZ(30deg);
    border-style: dashed;
}


/* ── BIFURCATION (Sub-Page Variant) ───────────────────────── */
/* Used possibly on index_market or legacy pages */
.bifurcation-card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px;
    border: 1px solid var(--border-light);
    transition: transform 0.5s var(--ease-physics), box-shadow 0.5s var(--ease-physics);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.bifurcation-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: linear-gradient(135deg, transparent 60%, rgba(0, 0, 0, 0.02) 100%);
    transition: opacity 0.3s;
    opacity: 0;
}

.bifurcation-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.12);
}

.bifurcation-card:hover::before {
    opacity: 1;
}

.card-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mid-grey);
    margin-bottom: 20px;
}

.card-desc {
    font-size: 1.05rem;
    color: var(--mid-grey);
    line-height: 1.5;
    max-width: 360px;
}

.card-arrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s var(--ease-physics);
}

.bifurcation-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(4px);
}


/* ── SECTION LAYOUT ───────────────────────────────────────── */
.section {
    padding: 140px var(--page-pad);
}

.section-dark {
    background: var(--charcoal);
    color: var(--off-white);
}

.section-header {
    max-width: var(--max-width);
    margin: 0 auto 80px;
}

.section-header .subhead {
    margin-top: 20px;
}

/* ── NETWORK PAGE: GHOST MODE ─────────────────────────────── */
.ghost-section {
    padding: 160px var(--page-pad) 120px;
}

.ghost-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ghost-visual {
    aspect-ratio: 1;
    background: var(--charcoal);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ghost-scan-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #2C2C2E 0%, #1D1D1F 100%);
}

.ghost-grid-lines {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.ghost-scan-beam {
    position: absolute;
    top: 0;
    left: 35%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(48, 209, 88, 0.8) 50%, transparent 100%);
    box-shadow: 0 0 25px var(--emerald);
}

.ghost-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.ghost-label {
    position: absolute;
    bottom: 24px;
    left: 24px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.ghost-copy {
    max-width: 520px;
}

.ghost-copy p {
    font-size: 1.15rem;
    color: var(--mid-grey);
    line-height: 1.7;
    margin-bottom: 20px;
}


/* ── PHYSICAL LAYER (ROC + K6) ────────────────────────────── */
.physical-layer {
    padding: 120px var(--page-pad);
    background: #FAFAFA;
}

.physical-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.asset-card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 56px 48px;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transition: transform 0.5s var(--ease-physics);
}

.asset-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 0, 0, 0.1);
}

.asset-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    font-size: 1.8rem;
}

.asset-icon.roc {
    background: linear-gradient(135deg, #2C2C2E, #1D1D1F);
    color: var(--off-white);
}

.asset-icon.k6 {
    background: linear-gradient(135deg, #D63031, #B71C1C);
    color: white;
}

.asset-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.asset-card p {
    font-size: 1.05rem;
    color: var(--mid-grey);
    line-height: 1.6;
}

.asset-specs {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spec-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--off-white);
    color: var(--mid-grey);
}


/* ── STICKY ACTION BAR ────────────────────────────────────── */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: rgba(29, 29, 31, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px var(--page-pad);
}

.sticky-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sticky-bar-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    font-weight: 500;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--off-white);
    color: var(--charcoal);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 999px;
    transition: all 0.3s var(--ease-physics);
    letter-spacing: -0.01em;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary.emerald {
    background: var(--emerald);
    color: #fff;
}

.btn-primary.emerald:hover {
    box-shadow: 0 8px 32px rgba(48, 209, 88, 0.3);
}


/* ── INDEX MARKET: TERMINAL TICKER ────────────────────────── */
.page-dark {
    background: var(--charcoal);
    color: var(--off-white);
    min-height: 100vh;
}

.terminal-hero {
    padding: 180px var(--page-pad) 80px;
    text-align: center;
}

.terminal-hero .subhead {
    margin: 24px auto 0;
}

.stream-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--page-pad) 160px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

@media (max-width: 1200px) {
    .stream-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stream-cell {
    background: var(--charcoal-soft);
    padding: 40px 36px;
    position: relative;
    transition: background 0.3s var(--ease-smooth);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.stream-cell:hover {
    background: #3A3A3C;
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.stream-id {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--signal-amber);
    margin-bottom: 6px;
}

.stream-name {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    color: var(--off-white);
}

.stream-desc {
    font-size: 0.95rem;
    color: #86868B;
    line-height: 1.5;
}

.stream-index {
    position: absolute;
    top: 36px;
    right: 36px;
    font-family: var(--font-mono);
    font-size: 2.8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
}


/* ── SOVEREIGNTY PAGE ─────────────────────────────────────── */
.sovereignty-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px var(--page-pad);
    position: relative;
}

.sovereignty-hero .subhead {
    margin: 28px auto 0;
    max-width: 640px;
}

.sovereignty-divider {
    width: 48px;
    height: 1px;
    background: var(--mid-grey);
    margin: 80px auto;
    opacity: 0.3;
}

.sovereignty-blocks {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--page-pad) 160px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.sovereignty-block h3 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.sovereignty-block p {
    font-size: 1.1rem;
    color: var(--mid-grey);
    line-height: 1.7;
}

.sovereignty-block .block-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--emerald);
    margin-bottom: 16px;
}

.shield-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 48px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1D3D2B, #0F2A1C);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.shield-icon::after {
    content: '◆';
    color: var(--emerald);
    font-size: 1.8rem;
}


/* ── PARTNER FORM (Typeform Style) ────────────────────────── */
.form-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 160px var(--page-pad) 120px;
}

.form-container {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
}

.form-header {
    margin-bottom: 64px;
}

.form-group {
    margin-bottom: 40px;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mid-grey);
    margin-bottom: 12px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 18px 0;
    border: none;
    border-bottom: 2px solid var(--border-light);
    background: transparent;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--charcoal);
    outline: none;
    transition: border-color 0.3s var(--ease-smooth);
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-bottom-color: var(--charcoal);
}

.form-select {
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 24px;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
    font-size: 1.1rem;
}

.btn-submit {
    width: 100%;
    padding: 20px;
    border-radius: 16px;
    background: var(--charcoal);
    color: var(--off-white);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: none;
    transition: all 0.4s var(--ease-physics);
    margin-top: 16px;
    cursor: pointer;
}

.btn-submit:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.btn-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-submit.btn-processing {
    background: var(--charcoal-soft);
    position: relative;
    overflow: hidden;
}

.btn-submit.btn-processing::after {
    content: 'Transmitting...';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--emerald);
    animation: fadeIn 0.3s forwards;
}

.btn-submit.submitted {
    cursor: default;
}


/* ── DATA PROTECTION ──────────────────────────────────────── */
/* Page uses existing site classes: .section, .container,     */
/* .card-label, .headline-large, .subhead, .feature-card,     */
/* .grid-3. No custom styles required.                        */


/* ── PARTNERS STRIP ───────────────────────────────────────── */
.partners-strip {
    text-align: center;
    padding: 80px var(--page-pad) 120px;
    border-top: 1px solid var(--border-light);
    margin-top: 120px;
}

.partners-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mid-grey);
    margin-bottom: 48px;
    opacity: 0.6;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
    flex-wrap: wrap;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.partners-grid:hover {
    opacity: 1;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.partner-logo:hover {
    filter: grayscale(0%);
}

.logo-text {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--charcoal);
    line-height: 1;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--mid-grey);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .partners-grid {
        flex-direction: column;
        gap: 48px;
    }
}


/* ── SUB-PAGE FOOTER ──────────────────────────────────────── */
.site-footer {
    padding: 60px var(--page-pad);
    border-top: 1px solid var(--border-light);
}

.site-footer.dark {
    background: #111111;
    border-top-color: rgba(255, 255, 255, 0.04);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--mid-grey);
    font-feature-settings: "tnum";
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 3px var(--emerald-soft);
    animation: pulse 2.5s ease-in-out infinite;
}


/* ── REBATE LOGICGRID ────────────────────────────────────── */
.rebate-logic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logic-step h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--off-white);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.logic-step p {
    font-size: 1rem;
    color: var(--mid-grey);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .rebate-logic {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}


/* ── NETWORK PAGE REBUILD (Split Hero) ────────────────────── */
.feature-section {
    padding: 120px var(--page-pad);
    border-bottom: 1px solid var(--border-light);
}

.split-hero {
    min-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px var(--page-pad) 80px;
    gap: 64px;
}

.split-hero-content {
    max-width: 560px;
}

.split-hero-visual {
    position: relative;
    height: 600px;
    background: var(--charcoal-soft);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
}

.split-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.split-side.left {
    background: #111;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.split-side.right {
    background: radial-gradient(circle at center, #2C2C2E 0%, #1D1D1F 100%);
}

.split-caption {
    position: absolute;
    bottom: 24px;
    left: 24px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    opacity: 0.6;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--off-white);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.dashboard-card {
    background: var(--charcoal-soft);
    padding: 40px 32px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--off-white);
    font-weight: 700;
}

.dashboard-card p {
    font-size: 0.95rem;
    color: var(--mid-grey);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .split-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
        padding-top: 140px;
    }

    .split-hero-content {
        margin: 0 auto;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ── MONOLITHIC PAGE STYLES (Sovereignty) ─────────────────── */
.monolithic-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0 var(--page-pad);
}

.monolithic-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.monolithic-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: contrast(1.4) grayscale(100%);
}

.monolithic-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, #000 90%);
    z-index: 1;
}

.faraday-mesh {
    background-image: linear-gradient(rgba(0, 255, 157, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 157, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid rgba(0, 255, 157, 0.1);
}

.maintenance-cliff {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Terminal Form Styles */
.cursor-block {
    display: inline-block;
    width: 0.6em;
    height: 1.1em;
    background: var(--emerald);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
    margin-left: 4px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-bottom-color: var(--emerald);
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.05);
}

/* FIX: Input Text Color for Dark Mode */
.page-dark .form-input,
.page-dark .form-select,
.page-dark .form-textarea {
    color: var(--off-white);
}

.page-dark .form-input::placeholder {
    color: #555;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}