/* Accessibility: Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

:root {
    /* --- Palette (System Aesthetic) --- */
    --bg-body: #050505;
    --bg-panel: rgba(20, 20, 20, 0.6);

    --border-dim: rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.2);
    --border-accent: rgba(99, 102, 241, 0.5);

    --text-primary: #F3F4F6;
    --text-secondary: #D1D5DB;
    --text-tertiary: #6B7280;

    --accent-primary: #6366F1;
    --accent-glow: rgba(99, 102, 241, 0.5);

    /* --- Type --- */
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* --- Spacing --- */
    --space-2: 8px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-24: 96px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Canvas Background --- */
#synapse-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-8);
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 60ch;
    line-height: 1.7;
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: var(--space-4);
    display: inline-block;
    border: 1px solid var(--border-dim);
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.1);
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    position: relative;
    z-index: 2;
}

section {
    padding: var(--space-24) 0;
    position: relative;
}

/* --- Concept 2: The Prism Styles (Zen Iteration) --- */
.prism-container {
    position: relative;
    /* Ensure z-index context for beam interaction */
    z-index: 2;
}

/* NEW: Chaose-to-Order Convergence Zone */
.convergence-zone {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.chaos-line {
    position: absolute;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.4), #fff);
    transform-origin: bottom center;
    opacity: 0.5;
}

/* 5 Lines converging to center */
.cl-1 {
    left: 20%;
    height: 100px;
    bottom: 0;
    transform: rotate(15deg);
    animation: chaos-flow-1 3s infinite;
}

.cl-2 {
    left: 35%;
    height: 120px;
    bottom: 0;
    transform: rotate(7deg);
    animation: chaos-flow-2 4s infinite;
}

.cl-3 {
    left: 50%;
    height: 140px;
    bottom: 0;
    transform: rotate(0deg);
    animation: chaos-flow-3 3.5s infinite;
    background: linear-gradient(180deg, transparent, #fff);
    width: 1px;
}

.cl-4 {
    left: 65%;
    height: 120px;
    bottom: 0;
    transform: rotate(-7deg);
    animation: chaos-flow-2 4.2s infinite;
}

.cl-5 {
    left: 80%;
    height: 100px;
    bottom: 0;
    transform: rotate(-15deg);
    animation: chaos-flow-1 3.8s infinite;
}

@keyframes chaos-flow-1 {
    0% {
        opacity: 0.1;
        height: 80px;
    }

    50% {
        opacity: 0.6;
        height: 100px;
    }

    100% {
        opacity: 0.1;
        height: 80px;
    }
}

@keyframes chaos-flow-2 {
    0% {
        opacity: 0.2;
        height: 100px;
    }

    50% {
        opacity: 0.7;
        height: 120px;
    }

    100% {
        opacity: 0.2;
        height: 100px;
    }
}

@keyframes chaos-flow-3 {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.3;
    }
}

.laser-beam {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    /* Slightly thicker */
    /* Dynamic texture via background-size & animation */
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(99, 102, 241, 0.6) 10%,
            #fff 50%,
            rgba(99, 102, 241, 0.6) 90%,
            transparent 100%);
    background-size: 100% 200%;
    animation: beam-pulse 3s linear infinite;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6), 0 0 40px rgba(99, 102, 241, 0.2);
    z-index: 10;
    transform: translateX(-50%);
    /* "Repulsor" field visualized */
}

@keyframes beam-pulse {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 200%;
    }
}

/* Ambient Glow (The "Zen" Focus) */
.zen-focus-glow {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 100px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9;
}

/* Refraction Lines for Solution */
.prism-hub {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 10px;
    height: 10px;
    background: #fff;
    transform: translate(-50%, 0) rotate(45deg);
    box-shadow: 0 0 20px #fff;
    z-index: 5;
}

.refract-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
    top: 25px;
    width: 50%;
    opacity: 0.5;
}

.rl-left {
    right: 50%;
    transform-origin: right;
    transform: rotate(-15deg);
}

.rl-right {
    left: 50%;
    transform-origin: left;
    transform: rotate(15deg);
}

.rl-center {
    left: 50%;
    width: 2px;
    height: 100px;
    background: #fff;
    transform: translateX(-50%);
}

.prism-card {
    background: rgba(10, 10, 15, 0.1);
    /* Lower opacity for glass effect */
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    position: relative;
    backdrop-filter: blur(12px);
    /* The Bokeh Shift */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: visible;
    z-index: 20;
}

/* Animated Blue Corner Brackets */
.prism-card::before,
.prism-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-primary);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Top-left bracket */
.prism-card::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
    transform: translate(-8px, -8px) scale(0.8);
}

/* Bottom-right bracket */
.prism-card::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
    transform: translate(8px, 8px) scale(0.8);
}

.prism-card:hover {
    border-color: var(--accent-primary);
    background: rgba(20, 20, 30, 0.3);
    box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.5);
    transform: translateY(-5px);
}

.prism-card:hover::before,
.prism-card:hover::after {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Interaction State: "Focus" managed by JS */
/* Interaction State: "Focus" via CSS :has (Modern) or Fallback */
.prism-container:hover .prism-card {
    opacity: 0.6;
    filter: blur(0.5px);
    transition: all 0.4s ease;
}

.prism-container .prism-card:hover {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.02) translateY(-5px);
    z-index: 30;
    background: rgba(20, 20, 30, 0.4);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.6);
}

/* Timeline Lenses */
.prism-timeline {
    position: relative;
    padding: var(--space-12) 0;
}

.lens-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scale(1);
    width: 16px;
    height: 16px;
    background: #050505;
    border: 2px solid #666;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.5s ease;
    box-shadow: 0 0 0 rgba(99, 102, 241, 0);
}

.timeline-step.active .lens-node {
    transform: translateX(-50%) scale(1.8);
    border-color: #fff;
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

.timeline-step.active .lens-node::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

.timeline-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    position: relative;
    margin-bottom: var(--space-12);
    align-items: center;
    opacity: 0.4;
    /* Dim inactive steps */
    filter: blur(0.5px);
    transition: all 0.6s ease;
    /* Smooth flow */
}

.timeline-step.active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.02);
}

.timeline-step:nth-child(even) {
    direction: rtl;
    /* Flip layout */
}

.timeline-step:nth-child(even) .step-content {
    direction: ltr;
    /* Reset text direction */
    text-align: left;
}

.step-content {
    padding: var(--space-6);
    border: 1px solid var(--border-dim);
    background: rgba(5, 5, 5, 0.8);
}

@media (max-width: 900px) {
    .laser-beam {
        left: 20px;
    }

    .timeline-step {
        grid-template-columns: 1fr;
        padding-left: 50px;
    }

    .timeline-step:nth-child(even) {
        direction: ltr;
    }

    .lens-node {
        left: 20px;
    }

    .prism-hub {
        left: 20px;
    }

    .rl-left,
    .rl-right {
        display: none;
    }

    /* Hide complex refraction on mobile */
}

.row-id {
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    font-size: 0.8rem;
    padding-top: 4px;
}

.row-title h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
}

.row-content p {
    font-size: 1rem;
    max-width: 40ch;
    margin-bottom: 0;
}

/* --- Components: Chaos List (Problem) --- */
.chaos-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.chaos-item {
    position: relative;
    padding: var(--space-4) var(--space-6);
    padding-left: calc(var(--space-6) + 12px);

    /* Unified Glassmorphism (Matching .prism-card) */
    background: rgba(10, 10, 15, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Match Prism border */
    border-radius: 0px;
    /* Match Prism sharp edges */
    backdrop-filter: blur(12px);
    /* Match Prism blur */

    /* The Bokeh Shift Transition */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.chaos-item:hover,
.chaos-item.active {
    transform: translateY(-5px);
    /* Match Prism lift */
    border-color: #EF4444;
    /* Keep Red for Problem context */
    background: rgba(20, 20, 30, 0.3);
    /* Match Prism Hover BG */
    box-shadow: 0 10px 40px -10px rgba(239, 68, 68, 0.3);
    /* Red glow, Prism style */
}

.chaos-item::before {
    content: '×';
    position: absolute;
    left: 12px;
    /* Adjusted for padding */
    top: var(--space-4);
    /* Align with text */
    color: #EF4444;
    /* Red for problem */
    font-family: var(--font-mono);
    font-size: 1.2rem;
    line-height: 1;
}

.chaos-item h4 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FCA5A5;
    /* Light red */
    margin-bottom: var(--space-2);
}

.chaos-item p {
    font-size: 0.95rem;
    /* Standardized size */
    margin: 0;
    color: var(--text-secondary);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-dim);
}

.btn:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-body);
    border-color: var(--text-primary);
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 25px rgba(99, 102, 241, 0.6);
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: var(--space-4) var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Removed mix-blend-mode: exclusion for background visibility */
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dim);
}

.nav-logo {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-links a {
    margin-left: var(--space-6);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #888;
}

.nav-links a:hover {
    color: #fff;
}

/* --- Process (Timeline) --- */
.timeline {
    border-left: 1px solid var(--border-dim);
    padding-left: var(--space-8);
    margin-left: var(--space-4);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-12);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(var(--space-8) * -1 - 5px);
    top: 6px;
    width: 9px;
    height: 9px;
    background: var(--bg-body);
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
}

.timeline-item:last-child {
    border-left: 2px solid var(--bg-body);
    margin-left: -2px;
}

/* Hack to hide line end */

/* --- New Section Styles --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
}

.grid-2-col-dense {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.prism-container .grid-2-col-dense {
    grid-template-columns: repeat(3, 1fr);
}

.bg-darker {
    background-color: rgba(20, 20, 20, 0.4);
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
}

.bg-tint {
    background-color: rgba(99, 102, 241, 0.03);
}

.comparison-col,
.audience-col {
    padding: var(--space-6);
    border-left: 1px solid var(--border-dim);
}

.comparison-col.bad,
.audience-col.not-for {
    border-left: 2px solid #EF4444;
}

.comparison-col.good,
.audience-col.for {
    border-left: 2px solid var(--accent-primary);
}

.check-list li,
.cross-list li {
    list-style: none;
    margin-bottom: var(--space-2);
    padding-left: var(--space-6);
    position: relative;
    color: var(--text-secondary);
}

/* Glass Ribbon Interaction Styles - v2 (Bigger, Bolder) */
.check-list-container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-8) 0;
}

.check-list li {
    position: relative;
    padding: 32px var(--space-6);
    /* Standard padding */
    margin-bottom: 0;
    /* Removed margin, let padding handle spacing */
    border-radius: 8px;
    transition: all 0.4s ease;
    opacity: 0.5;
    filter: blur(0.5px);
    list-style: none;
    padding-left: 60px;
    /* Space for check */
    font-size: 1.25rem;
    /* Clean size */
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-secondary);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    /* Center check vertically */
    color: var(--accent-primary);
    opacity: 0.5;
    transition: all 0.4s;
    font-size: 1.5rem;
}

.check-list li.active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.05);
    /* Subtle scale */
    color: #fff;
}

.check-list li.active::before {
    opacity: 1;
    text-shadow: 0 0 15px var(--accent-primary);
    transform: translateY(-50%) scale(1.2);
}

#glass-ribbon-highlight {
    position: absolute;
    left: -20px;
    right: -20px;
    /* Tighter fit for new layout */
    height: 100px;
    background: linear-gradient(90deg,
            rgba(99, 102, 241, 0),
            rgba(99, 102, 241, 0.1) 15%,
            rgba(99, 102, 241, 0.1) 85%,
            rgba(99, 102, 241, 0));
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    pointer-events: none;
    transition: top 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.3s ease, opacity 0.3s ease;
    z-index: 1;
    opacity: 0;
    backdrop-filter: blur(0px);
    /* Removed blur on ribbon to keep text crisp */
}

.cross-list li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: #EF4444;
}

.stat-block {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border-dim);
}

.stat-block h3 {
    color: var(--accent-primary);
    font-size: 1.1rem;
    margin-bottom: var(--space-2);
    font-family: var(--font-mono);
}

.audience-col h3,
.comparison-col h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
}

.audience-col.for h3,
.comparison-col.good h3 {
    color: var(--accent-primary);
}

.audience-col.not-for h3,
.comparison-col.bad h3 {
    color: #EF4444;
}

@media (max-width: 900px) {

    .grid-2-col,
    .grid-2-col-dense {
        grid-template-columns: 1fr;
    }
}

/* --- Revised Proof Grid (Asymmetrical) --- */
.stat-grid-asym {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.stat-card.primary {
    grid-row: 1 /span 2;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--accent-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-8);
}

.stat-card.secondary {
    background: rgba(255, 255, 255, 0.02);
    border-left: 1px solid var(--border-dim);
    padding: var(--space-6);
}

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

/* Stat Cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.stat-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--border-dim);
    padding: var(--space-6);
    border-radius: 2px;
    position: relative;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    opacity: 0.5;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: var(--space-2);
    font-family: var(--font-mono);
    letter-spacing: -2px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 30ch;
}

/* Scoped styles for the Architect Blueprint */
.architect-section {
    padding: var(--space-24) 0;
    position: relative;
    overflow: hidden;
    /* Merged previous architect style */
    border-top: 1px solid var(--border-dim);
    background: linear-gradient(180deg, var(--bg-body) 0%, rgba(20, 20, 20, 0.8) 100%);
}

.blueprint-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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: 40px 40px;
    opacity: 0.5;
    z-index: 0;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-12);
    position: relative;
    z-index: 2;
    align-items: center;
}

.founder-card {
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid var(--border-dim);
    backdrop-filter: blur(12px);
    padding: var(--space-8);
    position: relative;
}

.founder-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 20px;
    height: 20px;
    border-top: 1px solid var(--accent-primary);
    border-left: 1px solid var(--accent-primary);
}

.founder-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    border-bottom: 1px solid var(--accent-primary);
    border-right: 1px solid var(--accent-primary);
}

.founder-image-frame {
    position: relative;
    aspect-ratio: 1;
    border: 1px solid var(--border-dim);
    padding: var(--space-4);
}

.founder-image-inner {
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.signature-block {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-dim);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .architect-profile {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .architect-image-box {
        max-width: 200px;
    }

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

    .founder-image-frame {
        max-width: 300px;
        margin: 0 auto;
    }

    .data-row {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }

    .row-id {
        display: none;
    }

    .chaos-list {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    h1 {
        font-size: 2.25rem;
    }
}

/* --- Disconnected Stack (Chaos Visual) --- */
.ecosystem-container.disconnected {
    position: relative;
    min-height: 650px;
    background: radial-gradient(closest-side, rgba(5, 5, 5, 0.95) 40%, rgba(5, 5, 5, 0) 100%);
}

.ecosystem-container.disconnected .tech-node {
    position: absolute;
    border-bottom: 2px solid transparent !important;
    transition: transform 0.1s ease-out;
}

.ecosystem-container.disconnected .tech-node::after {
    display: none;
}

.ecosystem-container.disconnected .tech-node:hover {
    z-index: 10;
}

/* 3 distinct Drift patterns */
@keyframes drift-slow {

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

    33% {
        transform: translate(15px, -20px) rotate(3deg);
    }

    66% {
        transform: translate(-10px, 15px) rotate(-3deg);
    }
}

@keyframes drift-wide {

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

    50% {
        transform: translate(-25px, 10px) rotate(-5deg);
    }
}

@keyframes drift-jitter {

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

    25% {
        transform: translate(5px, 5px) rotate(2deg);
    }

    50% {
        transform: translate(-5px, -5px) rotate(-2deg);
    }

    75% {
        transform: translate(-5px, 5px) rotate(1deg);
    }
}

/* Tech Node Icons Shared Styles */
.tech-node-icon {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(10, 10, 15, 0.1);
    backdrop-filter: blur(8px);
    width: 70px;
    height: 70px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-node-icon img {
    width: 32px;
    height: 32px;
}

.tech-node:hover .tech-node-icon {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(20, 20, 30, 0.3);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.tech-node-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Random Assignment of animations & positions */
.t-1 {
    top: 2%;
    left: 22%;
    animation: drift-slow 7s ease-in-out infinite;
}

.t-2 {
    top: 20%;
    right: 5%;
    animation: drift-wide 9s ease-in-out infinite;
}

.t-3 {
    bottom: 5%;
    right: 25%;
    animation: drift-jitter 6s ease-in-out infinite;
}

.t-4 {
    bottom: 25%;
    left: 2%;
    animation: drift-slow 8s ease-in-out infinite reverse;
}

.t-5 {
    top: 55%;
    left: 10%;
    animation: drift-wide 7.5s ease-in-out infinite reverse;
}

.t-6 {
    top: 10%;
    right: 35%;
    animation: drift-jitter 6.5s ease-in-out infinite;
}

.t-7 {
    top: 80%;
    left: 48%;
    animation: drift-slow 9.5s ease-in-out infinite;
}

.t-8 {
    bottom: 40%;
    right: 10%;
    animation: drift-wide 8.5s ease-in-out infinite;
}

.t-9 {
    top: 35%;
    left: 38%;
    animation: drift-jitter 7.2s ease-in-out infinite;
}

.t-10 {
    bottom: 65%;
    right: 22%;
    animation: drift-slow 8.8s ease-in-out infinite reverse;
}

.t-11 {
    top: 45%;
    right: 48%;
    animation: drift-wide 6.8s ease-in-out infinite;
}

.t-12 {
    bottom: 15%;
    left: 32%;
    animation: drift-jitter 9.2s ease-in-out infinite reverse;
}

.t-13 {
    top: 90%;
    right: 8%;
    animation: drift-slow 7.8s ease-in-out infinite;
}

.t-14 {
    top: 0%;
    left: 65%;
    animation: drift-wide 8.3s ease-in-out infinite reverse;
}

@media (max-width: 900px) {
    .ecosystem-container.disconnected {
        min-height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 40px 20px;
    }

    /* Reset absolute positioning for mobile flow */
    .ecosystem-container.disconnected .tech-node {
        position: static !important;
        animation: none !important;
        /* Stop floating animation to prevent layout thrashing */
        transform: none !important;
    }

    .tech-node-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    .tech-node-label {
        display: block;
        text-align: center;
        font-size: 0.7rem;
    }

    /* Force 1 column for service cards */
    .prism-container .grid-2-col-dense {
        grid-template-columns: 1fr;
    }

    /* Resize huge stats */
    .stat-number {
        font-size: 2.5rem;
    }

    .stat-card.primary {
        padding: var(--space-6);
    }
}

/* Default hidden state for desktop */
.burger-menu,
.mobile-nav-overlay {
    display: none;
}

@media (max-width: 900px) {

    /* Improve Nav on Mobile - Simple Stack */
    nav {
        flex-wrap: wrap;
        padding-bottom: var(--space-2);
    }

    .nav-links {
        display: none;
    }

    /* Burger Menu */
    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 200;
        padding: 0;
        margin-left: auto;
        /* Push to right */
    }

    .burger-menu span {
        width: 100%;
        height: 2px;
        background: var(--text-primary);
        transition: all 0.3s ease;
    }

    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Mobile Overlay */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(10px);
        z-index: 150;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: var(--space-8);
        text-align: center;
    }

    .mobile-link {
        font-family: var(--font-mono);
        color: var(--text-primary);
        font-size: 1.5rem;
        text-decoration: none;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .mobile-nav-overlay.active .mobile-link {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-nav-overlay.active .mobile-link:nth-child(1) {
        transition-delay: 0.1s;
    }

    .mobile-nav-overlay.active .mobile-link:nth-child(2) {
        transition-delay: 0.2s;
    }

    .mobile-nav-overlay.active .mobile-link:nth-child(3) {
        transition-delay: 0.3s;
    }

    .mobile-nav-overlay.active .mobile-link:nth-child(4) {
        transition-delay: 0.4s;
    }

    /* Hide 'How It Works' button on mobile */
    .btn:nth-child(2) {
        display: none;
    }

    /* Increase paragraph spacing */
    p {
        margin-bottom: var(--space-6);
    }
}




/* --- Contact Page Styles --- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    position: relative;
    z-index: 2;
}

/* Contact Form Container */
.contact-form-container {
    padding: var(--space-8);
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-dim);
    border-radius: 4px;
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
}

.mono-label-small {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-dim);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

/* Custom Select Styling wrapper */
.select-wrapper {
    position: relative;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.micro-copy {
    margin-top: var(--space-4);
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

/* FAQ Accordion */
.contact-faq-container {
    padding-top: var(--space-4);
}

.accordion-item {
    border-bottom: 1px solid var(--border-dim);
    margin-bottom: var(--space-4);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    padding: var(--space-4) 0;
    cursor: pointer;
    text-align: left;
}

.accordion-header span:first-child {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.accordion-header .icon {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-tertiary);
    transition: transform 0.3s;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-right: var(--space-6);
}

.accordion-content p {
    padding-bottom: var(--space-4);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Open State */
.accordion-item.active .accordion-content {
    max-height: 300px;
    /* Arbitrary large height */
}

.accordion-item.active .accordion-header .icon {
    color: var(--accent-primary);
}

/* Alternative Contact Box */
.alt-contact-box {
    margin-top: var(--space-12);
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dim);
    border-radius: 4px;
    text-align: center;
}

.alt-links {
    margin-top: var(--space-4);
    font-size: 0.8rem;
    color: var(--text-tertiary);
    display: flex;
    justify-content: center;
    gap: var(--space-2);
}

.alt-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.alt-links a:hover {
    color: #fff;
}

/* Success Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #0A0A0A;
    border: 1px solid var(--accent-primary);
    padding: var(--space-8);
    border-radius: 4px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-backdrop.active .modal-content {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .contact-form-container {
        padding: var(--space-4);
    }
}

/* --- Contact Page Styles --- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    position: relative;
    z-index: 2;
    align-items: stretch;
}

/* Contact Form Container */
.contact-form-container {
    padding: var(--space-8);
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-dim);
    border-radius: 4px;
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
}

.mono-label-small {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-dim);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Specific Dropdown Styling */
.form-group select {
    background-color: rgba(10, 10, 15, 0.8);
    color: var(--text-primary);
}

.form-group select option {
    background-color: #050505;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

/* Custom Select Styling wrapper */
.select-wrapper {
    position: relative;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.micro-copy {
    margin-top: var(--space-4);
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

/* FAQ Accordion Section */
.contact-faq-container {
    padding: var(--space-8);
    background: rgba(10, 10, 15, 0.6);
    /* Match form bg */
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-dim);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.accordion-item {
    border-bottom: 1px solid var(--border-dim);
    margin-bottom: var(--space-4);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    padding: var(--space-4) 0;
    cursor: pointer;
    text-align: left;
}

.accordion-header span:first-child {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.accordion-header .icon {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-tertiary);
    transition: transform 0.3s;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-right: var(--space-6);
}

.accordion-content p {
    padding-bottom: var(--space-4);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Open State */
.accordion-item.active .accordion-content {
    max-height: 300px;
    /* Arbitrary large height */
}

.accordion-item.active .accordion-header .icon {
    color: var(--accent-primary);
}

/* Alternative Contact Box */
.alt-contact-box {
    margin-top: auto;
    /* Push to bottom */
    padding: var(--space-6) 0 0 0;
    /* Remove top padding border */
    background: transparent;
    border: none;
    /* Remove box border as it's now inside the panel */
    text-align: center;
    border-top: 1px solid var(--border-dim);
    /* Separator instead */
}

.alt-links {
    margin-top: var(--space-4);
    font-size: 0.8rem;
    color: var(--text-tertiary);
    display: flex;
    justify-content: center;
    gap: var(--space-2);
}

.alt-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.alt-links a:hover {
    color: #fff;
}

/* Success Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #0A0A0A;
    border: 1px solid var(--accent-primary);
    padding: var(--space-8);
    border-radius: 4px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-backdrop.active .modal-content {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .contact-form-container,
    .contact-faq-container {
        padding: var(--space-4);
    }
}