/* ============================================
   RESET & VARIABLES
   ============================================ */

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

/* Dark theme (default) */
:root {
    --bg:            #0e0e0c;
    --bg-alt:        #131311;
    --bg-card:       transparent;
    --bg-elevated:   #1e1e1c;
    --border:        #2a2a27;
    --border-light:  #3a3a36;
    --text:          #f0ede8;
    --text-secondary:#b8b3ab;
    --text-tertiary: #7a756e;
    --accent:        #e8702a;
    --accent-hover:  #f28038;
    --accent-dim:    rgba(232, 112, 42, 0.1);
    --accent-border: rgba(232, 112, 42, 0.25);
    --shadow:        rgba(0,0,0,0.4);
    --shadow-glow:   rgba(232,112,42,0.03);
    --nav-bg:        rgba(14, 14, 12, 0.85);
    --font:          'SF Mono', SFMono-Regular, ui-monospace, 'Menlo', 'Consolas', monospace;
    --radius:        10px;
    --radius-lg:     16px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================
   LAYOUT
   ============================================ */

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

em { font-style: italic; color: var(--accent); }

p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.75;
}

.tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    border: 1px solid var(--accent-border);
    background: var(--accent-dim);
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.85rem 0;
    transition: all 0.3s ease;
}

.nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(232,112,42,0.3), var(--accent));
    background-size: 200% 100%;
    transition: width 0.8s ease;
    animation: none;
}

.nav.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 0.6rem 0;
}

.nav.scrolled::after {
    width: 100%;
    animation: electricFlow 2s linear infinite;
}

@keyframes electricFlow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.nav-inner {
    max-width: none;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text);
}

.logo-o {
    display: inline-block;
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    text-indent: -9999px;
    overflow: hidden;
    vertical-align: 0.05em;
    margin: 0 0.02em 0 0.12em;
    border: 2px solid var(--accent);
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled .logo-o {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(232, 112, 42, 0.4);
}

.footer .logo-o {
    background: var(--accent);
    border-color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-links a {
    font-size: 1.05rem;
    color: var(--text);
    transition: color 0.2s ease;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-cta {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 1.3rem;
    background: var(--accent);
    color: #fff;
    border-radius: 100px;
    transition: background 0.2s ease;
}

.nav-cta:hover { background: var(--accent-hover); }

/* Mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.3s ease;
}

.nav-toggle.active span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle.active span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.open { opacity: 1; pointer-events: auto; }

.mobile-menu a {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.mobile-menu a:hover { color: var(--text); }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.7rem 1.8rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover { border-color: var(--text-tertiary); color: var(--text); }
.btn-lg { padding: 0.85rem 2.2rem; font-size: 0.92rem; }

/* ============================================
   HERO — Mistral-style
   Text top, image bottom, gradient between
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

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

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-img-clean {
    background-image: url('../assets/hero-clean.jpg');
}

.hero-img-glitch {
    background-image: url('../assets/glitch3.png');
    opacity: 0;
    animation: heroGlitchIntro 1.2s ease-out forwards, heroGlitch 8s ease-in-out 1.5s infinite;
}

.hero-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0,0,0,0.08) 2px,
        rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: scanlineIntro 1.2s ease-out forwards, scanlinePulse 8s ease-in-out 1.5s infinite;
}

/* Intro glitch burst on page load */
@keyframes heroGlitchIntro {
    0% { opacity: 1; transform: translate(8px, -3px); }
    5% { opacity: 0; transform: translate(0); }
    10% { opacity: 1; transform: translate(-6px, 2px); }
    15% { opacity: 0.7; transform: translate(4px, 0); }
    20% { opacity: 1; transform: translate(-3px, -2px); }
    25% { opacity: 0; transform: translate(0); }
    30% { opacity: 1; transform: translate(5px, 1px); }
    35% { opacity: 0.8; transform: translate(-7px, 0); }
    40% { opacity: 1; transform: translate(3px, -1px); }
    45% { opacity: 0; transform: translate(0); }
    50% { opacity: 0.9; transform: translate(-4px, 2px); }
    55% { opacity: 1; transform: translate(6px, 0); }
    60% { opacity: 0; transform: translate(0); }
    65% { opacity: 0.6; transform: translate(-2px, 1px); }
    70% { opacity: 0; transform: translate(0); }
    80% { opacity: 0.3; transform: translate(2px, 0); }
    90% { opacity: 0; transform: translate(0); }
    100% { opacity: 0; transform: translate(0); }
}

@keyframes scanlineIntro {
    0% { opacity: 0.7; }
    30% { opacity: 0.5; }
    60% { opacity: 0.3; }
    100% { opacity: 0; }
}

/* Ongoing periodic glitch */
@keyframes heroGlitch {
    0%, 42% { opacity: 0; }
    43% { opacity: 1; transform: translate(-3px, 0); }
    44% { opacity: 0; transform: translate(0); }
    45% { opacity: 1; transform: translate(5px, -1px); }
    46% { opacity: 0; transform: translate(0); }
    47% { opacity: 0.8; transform: translate(-2px, 1px); }
    48% { opacity: 1; transform: translate(4px, 0); }
    49% { opacity: 0.6; transform: translate(-1px, -2px); }
    50% { opacity: 0; transform: translate(0); }
    75%, 76% { opacity: 0; }
    76.5% { opacity: 1; transform: translate(3px, 0); }
    77% { opacity: 0; transform: translate(0); }
    77.5% { opacity: 0.7; transform: translate(-4px, 1px); }
    78% { opacity: 0; transform: translate(0); }
    100% { opacity: 0; }
}

@keyframes scanlinePulse {
    0%, 42% { opacity: 0; }
    43% { opacity: 0.5; }
    50% { opacity: 0; }
    75% { opacity: 0; }
    76.5% { opacity: 0.4; }
    78% { opacity: 0; }
    100% { opacity: 0; }
}


.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            var(--bg) 0%,
            color-mix(in srgb, var(--bg) 65%, transparent) 12%,
            color-mix(in srgb, var(--bg) 40%, transparent) 22%,
            color-mix(in srgb, var(--bg) 18%, transparent) 32%,
            color-mix(in srgb, var(--bg) 5%, transparent) 42%,
            transparent 55%,
            transparent 70%,
            color-mix(in srgb, var(--bg) 8%, transparent) 78%,
            color-mix(in srgb, var(--bg) 30%, transparent) 86%,
            color-mix(in srgb, var(--bg) 65%, transparent) 93%,
            var(--bg) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hero-content .container {
    max-width: none;
    width: 100%;
    padding-left: clamp(2rem, 8vw, 8rem);
}

.hero-left {
    text-align: left;
    color: #fff;
    text-shadow: 0 2px 30px rgba(0,0,0,0.4);
    max-width: 550px;
}

/* ============================================
   TILES (Anthropic-style)
   ============================================ */

.tiles-section {
    padding: 3.5rem 0;
}

.tiles-heading {
    margin-bottom: 2rem;
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.tile:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow);
}

.tile-top {
    margin-bottom: 2rem;
}

.tile-top h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
    line-height: 1.35;
    text-align: center;
}

.tile-top p {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.65;
    color: var(--text);
}

.tile-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.tile-bottom p {
    font-weight: 700;
}

.tile-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.tile-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
}

.tile-value {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
}

.tile-btn {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 100px;
    margin-top: 0.25rem;
    width: fit-content;
    transition: border-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.tile-btn:hover {
    border-color: var(--text-tertiary);
    color: var(--accent);
}

.tile-img-wrap {
    margin-top: 1rem;
}

.tile-img {
    width: 100%;
    display: block;
    transform: scale(1.15);
    transform-origin: top center;
}

.tile-source {
    font-size: 0.6rem;
    color: var(--text-tertiary);
    margin-top: 0.3rem;
    display: block;
}

/* Metrics text tile */
.tile-metrics-text,
.tile-centered {
    text-align: center;
}

.tile-metrics-text {
    display: flex;
    flex-direction: column;
}

.tile-centered .tile-top {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tile-centered .tile-top h3 {
    margin-bottom: 0;
}

.tile-centered .tile-top p {
    flex: 1;
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.75;
}

.tile-centered .tile-bottom {
    margin-top: auto;
}

.tile-metrics-text .tile-top {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tile-metrics-text .tile-top h3 {
    margin-bottom: 0;
}

.tile-metrics-text .tile-top .tile-body-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tile-metrics-text .tile-top p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.75;
}

.tile-metrics-text .tile-top p:last-child {
    margin-bottom: 0;
}

.metric-highlight {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.05em;
}

/* ============================================
   SPLIT LAYOUT
   ============================================ */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.split-text .tag { margin-bottom: 1.25rem; }

.split-text p {
    margin-bottom: 1rem;
    line-height: 1.85;
}

.split-text p:last-of-type { margin-bottom: 0; }

.image-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* ============================================
   STATEMENT
   ============================================ */

.statement-section {
    padding: 3.5rem 0;
}

.statement {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1.3;
    text-align: center;
    margin: 0 auto;
}

/* ============================================
   SECTION HEADER
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p { margin: 0 auto; text-align: center; }

/* ============================================
   BROWSER FRAME
   ============================================ */

.browser-frame {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 20px 60px var(--shadow),
        0 0 100px var(--shadow-glow);
}

.browser-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.browser-url {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    background: var(--bg);
    padding: 0.3rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.browser-body { display: flex; min-height: 380px; }

.dash-sidebar {
    width: 170px;
    border-right: 1px solid var(--border);
    padding: 0.75rem 0;
    flex-shrink: 0;
}

.dash-nav {
    padding: 0.55rem 1.2rem;
    font-size: 0.78rem;
    color: var(--text-tertiary);
    cursor: default;
}

.dash-nav.active {
    color: var(--accent);
    background: var(--accent-dim);
    border-right: 2px solid var(--accent);
}

.dash-content {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dash-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.dash-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.dash-card-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
}

.dash-card-val {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.dash-card-val small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-tertiary);
}

.val-ok { color: #28c840; font-size: 1.05rem; }

.dash-chart-block {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.dash-chart-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}

.dash-legend {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    color: var(--text-tertiary);
}

.leg-line {
    width: 14px; height: 2px;
    background: var(--accent);
    display: inline-block;
    margin-left: 0.6rem;
}

.leg-dash {
    width: 14px; height: 2px;
    display: inline-block;
    margin-left: 0.6rem;
    background: repeating-linear-gradient(90deg, var(--accent) 0px, var(--accent) 3px, transparent 3px, transparent 6px);
}

.dash-svg { width: 100%; flex: 1; min-height: 100px; }

.dash-x-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-tertiary);
    padding-top: 0.4rem;
}

/* ============================================
   FEATURE CARDS
   ============================================ */

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    border-color: var(--border-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--shadow);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
    line-height: 1;
}

.feature-card h3 { color: var(--text); }

.feature-card p {
    font-size: 0.88rem;
    line-height: 1.7;
    flex: 1;
}

.feature-link {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 1.25rem;
    transition: opacity 0.2s ease;
}

.feature-link:hover { opacity: 0.75; }

/* ============================================
   STEPS
   ============================================ */

.steps { margin-top: 2.5rem; }

.step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.step:first-child { border-top: 1px solid var(--border); }

.step-num {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.04em;
    flex-shrink: 0;
    width: 32px;
    padding-top: 0.15rem;
}

.step-body h3 { color: var(--text); }
.step-body p { font-size: 0.9rem; }

/* ============================================
   CTA
   ============================================ */

.section-cta { padding: 5rem 0; }

.cta-box {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 4rem 2.5rem;
}

.cta-box h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    margin-bottom: 0.75rem;
}

.cta-box p {
    max-width: 420px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 2rem;
}

.footer .container {
    max-width: none;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text);
    margin-top: 0.5rem;
}

.footer-tagline a {
    color: var(--text);
    transition: color 0.2s ease;
}

.footer-tagline a:hover {
    color: var(--accent);
}

.footer-cols { display: flex; gap: 4rem; }

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

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

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.footer-bottom p { font-size: 0.75rem; color: var(--text); }

/* ============================================
   INTERCONNECTOR MAP
   ============================================ */

.interconnector-section {
    background: var(--bg);
}

.interconnector-wrap {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    overflow: hidden;
}

.interconnector-map {
    width: 100%;
    height: auto;
    max-height: 600px;
    display: block;
    margin: 0 auto;
}

/* Nodes */
.node {
    fill: var(--accent);
    transition: r 0.2s ease;
}

.node-label {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    fill: var(--text);
}

.node-data {
    font-family: var(--font);
    font-size: 9px;
    fill: var(--text-tertiary);
}

.node-pulse {
    animation: pulse 3s ease-in-out infinite;
}

.node-pulse:nth-child(2) { animation-delay: 0.5s; }
.node-pulse:nth-child(3) { animation-delay: 1s; }
.node-pulse:nth-child(4) { animation-delay: 1.5s; }
.node-pulse:nth-child(5) { animation-delay: 2s; }
.node-pulse:nth-child(6) { animation-delay: 2.5s; }

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.3); }
}

/* Flow lines */
.flow-line {
    stroke: var(--accent);
    stroke-linecap: round;
    opacity: 0.8;
}

/* Legend */
.interconnector-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-tertiary);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.legend-flow {
    width: 20px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.8;
}

.legend-capacity {
    width: 20px;
    height: 1.5px;
    background: var(--border-light);
}

@media (max-width: 768px) {
    .interconnector-wrap { padding: 1rem; }
    .interconnector-legend { flex-direction: column; align-items: center; gap: 0.75rem; }
    .node-label { font-size: 10px; }
    .node-data { font-size: 8px; }
}

/* ============================================
   MARKET VISUALISATION
   ============================================ */

.market-viz-section { background: var(--bg); }

.split-viz {
    grid-template-columns: 0.6fr 1.4fr;
    gap: 2.5rem;
    align-items: center;
}

.market-viz {
    background: #080808;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

/* Overlay stats inside the viz */
.viz-overlay-stats {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    z-index: 2;
    pointer-events: none;
}

.viz-overlay-stat {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.viz-overlay-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    font-family: var(--font);
    min-width: 5em;
}

.viz-overlay-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font);
    letter-spacing: -0.01em;
}

.viz-canvas-wrap {
    padding: 0.75rem;
    position: relative;
}

.viz-svg {
    width: 100%;
    max-height: 550px;
    display: block;
}

.viz-timeline {
    padding: 0 0.75rem 0.6rem;
}

.viz-timeline-bar {
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.viz-timeline-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s linear;
}


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

@media (max-width: 768px) {
    .viz-canvas-wrap { padding: 0.5rem; }
    .viz-stats { gap: 1rem; }
}

/* ============================================
   GRID REVEAL (muted → glow transition)
   ============================================ */

.grid-reveal-section {
    background: var(--bg);
}

.grid-reveal-section .split {
    align-items: center;
    grid-template-columns: 0.65fr 1fr;
    gap: 3rem;
}

.grid-reveal {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.grid-reveal img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.15);
}

.grid-muted {
    position: relative;
}

.grid-glow {
    position: absolute;
    inset: 0;
    mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 calc(var(--glow-reveal, 0%) - 35%),
        rgba(0,0,0,0.6) calc(var(--glow-reveal, 0%) - 20%),
        rgba(0,0,0,0.3) calc(var(--glow-reveal, 0%) - 8%),
        rgba(0,0,0,0.1) var(--glow-reveal, 0%),
        transparent calc(var(--glow-reveal, 0%) + 5%)
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 calc(var(--glow-reveal, 0%) - 35%),
        rgba(0,0,0,0.6) calc(var(--glow-reveal, 0%) - 20%),
        rgba(0,0,0,0.3) calc(var(--glow-reveal, 0%) - 8%),
        rgba(0,0,0,0.1) var(--glow-reveal, 0%),
        transparent calc(var(--glow-reveal, 0%) + 5%)
    );
    filter: brightness(1.4) saturate(1.3);
}

/* Feature blocks (Mistral-style list) */

.split-features {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grid-statement {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    max-width: none;
}

.feature-block {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
}

.feature-block:last-child {
    border-bottom: 1px solid var(--border);
}

.feature-block h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.feature-block p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: none;
}

/* ============================================
   TRANSITIONS (theme switch)
   ============================================ */

.nav, .section-alt, .browser-frame, .browser-bar,
.feature-card, .dash-card, .dash-chart-block,
.cta-box, .footer, .tile, .tag, .btn-outline,
.image-card, .browser-url, .dash-sidebar, .dash-nav.active {
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .dash-cards { grid-template-columns: repeat(2, 1fr); }
    .dash-sidebar { display: none; }
    .split { grid-template-columns: 1fr; gap: 2.5rem; }
    .split-reverse { direction: ltr; }
    .tiles-grid { grid-template-columns: 1fr; }
    .split-viz { grid-template-columns: 1fr; }
    .grid-reveal-section .split { grid-template-columns: 1fr; }
    .grid-reveal img { transform: scale(1.05); transform-origin: center 40%; }
}

@media (max-width: 768px) {
    .section { padding: 5rem 0; }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .mobile-menu { display: flex; }
    .grid-3 { grid-template-columns: 1fr; }

    .stats-row { flex-wrap: wrap; gap: 2rem; }
    .stat-divider { display: none; }
    .stats-row .stat { flex: 0 0 40%; }

    .footer-top { flex-direction: column; gap: 1.5rem; align-items: center; text-align: center; }
    .footer-cols { gap: 2rem; }
    .footer-bottom { text-align: center; }
    .footer-col { align-items: center; }
    .footer .container { padding: 0 1.5rem; }
    .section-cta { padding: 5rem 0; }
    .cta-box { padding: 3rem 1.5rem; }
    .browser-body { min-height: 280px; }
    .dash-chart-top { flex-direction: column; align-items: flex-start; gap: 0.4rem; }

    .nav-right .theme-toggle { display: flex; }
}

@media (max-width: 480px) {
    .container, .container-narrow { padding: 0 1.25rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .dash-cards { grid-template-columns: 1fr; }
    .logo-pill { padding: 0.4rem 0.8rem; font-size: 0.7rem; }
    .logos-row { gap: 0.6rem; }
    .step { gap: 1.25rem; }
}

/* ============================================
   TYPEWRITER
   ============================================ */

.typewriter {
    display: inline;
}

.typewriter.typing::after {
    content: '|';
    display: inline;
    color: var(--accent);
    animation: blink 0.6s step-end infinite;
    margin-left: 2px;
    font-weight: 400;
}

.typewriter.done::after {
    display: none;
}

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

/* AOS */
[data-aos="fade-up"] { transform: translate3d(0, 24px, 0); }
