/* ===== DESIGN SYSTEM - Kraken Control (Cluster 10 — Spark Pixel reference) ===== */
:root {
    /* Backgrounds — warm neutral grays (Spark Pixel) */
    --bg-primary: #1A1A1A;
    --bg-secondary: #212121;
    --bg-card: #242424;
    --bg-card-hover: #2C2C2C;
    --bg-card-elevated: #2E2E2E;
    --bg-abyss: #1A1A1A;
    --sidebar-bg: #212121;

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #6B6B6B;

    /* Accent — Kraken teal */
    --accent-primary: #0FA3B1;
    --accent-teal: #0FA3B1;
    --accent-secondary: #0D8E9B;
    --accent-gradient: linear-gradient(135deg, #0FA3B1 0%, #0D8E9B 100%);
    --accent-glow: rgba(15, 163, 177, 0.25);
    --accent-teal-dim: rgba(15, 163, 177, 0.12);

    /* Semantic */
    --accent-red: #FF3B30;
    --accent-red-dim: rgba(255, 59, 48, 0.12);
    --accent-amber: #FF9500;
    --accent-amber-dim: rgba(255, 149, 0, 0.12);
    --accent-green: #34C759;
    --accent-green-dim: rgba(52, 199, 89, 0.15);
    --accent-gold: #F59E0B;
    --accent-purple: #7B61FF;

    /* Compat aliases */
    --blue-primary: #0FA3B1;
    --blue-hover: #0D8E9B;
    --success: #34C759;
    --error: #FF3B30;

    /* Spacing — 8px grid */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;
    --pad-card: 22px;
    --gap-cards: 14px;
    --row-height: 56px;

    /* Typography — Inter for body, Inter Tight for headings */
    --font-heading: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    /* Kraken palette reference */
    --kraken-mint: #A2E3D4;
    --kraken-neon: #0FA3B1;
    --kraken-steel: #84A9C0;
    --kraken-abyss: #1A1A1A;
    --kraken-lavender: #E8B4D1;

    /* Borders & Shadows */
    --border: #333333;
    --border-color: #333333;
    --border-subtle: 1px solid #2A2A2A;
    --bg-sidebar: #212121;
    --sidebar-border: rgba(110,243,214,0.12);
    --border-card: 1px solid #333333;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(15, 163, 177, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-card: 12px;
}

/* ===== LIGHT MODE ===== */
body.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-card-elevated: #ffffff;
    --bg-abyss: #e2e8f0;
    --sidebar-bg: #1e293b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-teal: #059669;
    --accent-primary: #059669;
    --accent-secondary: #047857;
    --accent-gradient: linear-gradient(135deg, #059669 0%, #047857 100%);
    --accent-glow: rgba(5, 150, 105, 0.2);
    --accent-teal-dim: rgba(5, 150, 105, 0.08);
    --accent-red: #dc2626;
    --accent-red-dim: rgba(220, 38, 38, 0.08);
    --accent-amber: #d97706;
    --accent-amber-dim: rgba(217, 119, 6, 0.08);
    --accent-green: #16a34a;
    --accent-green-dim: rgba(22, 163, 74, 0.1);
    --accent-gold: #d97706;
    --accent-purple: #7c3aed;
    --success: #059669;
    --error: #dc2626;
    --blue-primary: #059669;
    --kraken-neon: #059669;
    --border: #e2e8f0;
    --border-color: #e2e8f0;
    --border-subtle: 1px solid rgba(5, 150, 105, 0.1);
    --bg-sidebar: #f1f5f9;
    --sidebar-border: rgba(0,0,0,0.08);
    --border-card: 1px solid #e2e8f0;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 20px rgba(5, 150, 105, 0.1);
}

/* --- BLOOMBERG / OPERATIONAL DENSITY OVERRIDES --- */

/* Reduce card padding for high-stakes view */
.kraken-card {
    padding: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    border-radius: 4px !important;
}

/* Decrease table font size for more data rows */
.mock-table th, .mock-table td {
    padding: 5px 8px !important;
    font-size: 0.8rem !important;
    line-height: 1.15 !important;
}

/* Ticker-tape System Status Bar */
.system-status-bar {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1rem;
    background: rgba(27, 34, 44, 0.6);
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(110, 243, 214, 0.25);
    border-radius: 3px;
    overflow-x: auto;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.75rem;
    border-right: 1px solid rgba(110, 243, 214, 0.15);
    white-space: nowrap;
}

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

.status-value {
    font-size: 0.85rem;
    color: var(--accent-teal);
    font-weight: 700;
}

.status-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}

.btn-primary-xs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: var(--accent-teal);
    color: var(--kraken-abyss);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}

/* ===== RESET & BASE ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Vignette overlay - draw focus toward center (RESN look) */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(ellipse 80% 70% at 50% 40%, transparent 40%, rgba(0,0,0,0.5) 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-full {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-logo-icon {
    height: 38px;
    width: 38px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(162, 227, 212, 0.2);
}

.nav-logo-icon.nav-logo-minimal,
.nav-logo-icon.nav-logo-primary {
    border-radius: 0;
    border: none;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

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

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--accent-primary);
    color: var(--kraken-abyss);
    font-size: 1rem;
    font-weight: 700;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(110, 243, 214, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(110, 243, 214, 0.4);
    color: var(--kraken-abyss);
    background: var(--accent-secondary);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(162, 227, 212, 0.25);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: background 0.2s, border-color 0.2s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(162, 227, 212, 0.08);
    border-color: rgba(162, 227, 212, 0.4);
}

.btn-install {
    font-size: 1.1rem;
    padding: var(--space-sm) var(--space-md);
    animation: btn-kraken-pulse 4s ease-in-out infinite;
}

/* Magnetic button - uses transform from JS; preserve box-shadow from pulse */
.magnetic-btn {
    transition: transform 0.15s ease-out, box-shadow 0.2s;
}

/* Nav "Get Started" button */
.nav-links .btn-primary {
    background: var(--accent-secondary);
    color: var(--kraken-abyss);
    box-shadow: 0 4px 16px rgba(110, 243, 214, 0.2);
    animation: none;
}

.nav-links .btn-primary:hover {
    background: #5ae0c3;
    box-shadow: 0 6px 24px rgba(110, 243, 214, 0.35);
}

@keyframes btn-kraken-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(110,243,214,0.2); }
    30% { box-shadow: 0 4px 36px rgba(110,243,214,0.4), 0 0 16px rgba(162,227,212,0.2); }
    50% { box-shadow: 0 4px 20px rgba(110,243,214,0.2); }
    75% { box-shadow: 0 4px 30px rgba(162,227,212,0.35), 0 0 12px rgba(110,243,214,0.2); }
}

.chrome-icon {
    margin-right: 4px;
}

/* ===== HERO SECTION - 1fr 2fr Grid ===== */
.hero {
    min-height: calc(100vh - 70px);
    padding: var(--space-md) var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 72px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    align-items: start;
}

/* Left column - Copy (1/3) — centered vertically + horizontally */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    text-align: center;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Electrified full tagline shimmer — slow nuclear glow */
.hero-headline.electrified {
    overflow: visible;
}

.headline-zone {
    position: relative;
    display: inline-block;
}

.electrified-text {
    background: linear-gradient(135deg, #A2E3D4 0%, #6EF3D6 30%, #84A9C0 60%, #6EF3D6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    position: relative;
    display: inline;
    animation: kraken-glow 5s ease-in-out infinite, kraken-shift 8s ease-in-out infinite;
}

/* Kraken deep-sea glow — bioluminescent pulse */
@keyframes kraken-glow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 1px rgba(110,243,214,0.06)); }
    20% { filter: brightness(1.12) drop-shadow(0 0 7px rgba(110,243,214,0.18)); }
    35% { filter: brightness(1.25) drop-shadow(0 0 12px rgba(162,227,212,0.24)); }
    50% { filter: brightness(1.08) drop-shadow(0 0 5px rgba(132,169,192,0.12)); }
    70% { filter: brightness(1.2) drop-shadow(0 0 10px rgba(110,243,214,0.21)); }
    85% { filter: brightness(1.03) drop-shadow(0 0 2px rgba(162,227,212,0.09)); }
}

/* Slow gradient position shift for living water effect */
@keyframes kraken-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Sub-tagline under hero headline — styled like header, gradient text */
.hero-sub-tagline {
    display: block;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    background: linear-gradient(135deg, #b0bec5 0%, #F0F4F8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 8px;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.hero-sub-tagline i {
    -webkit-text-fill-color: initial;
    color: var(--accent-primary);
    margin-right: 6px;
    font-size: 0.9em;
}

/* (Corner sparks removed — clean Kraken aesthetic) */

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 420px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.cta-subtext {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Metrics - 3 uniform boxes with icons, centered in left column */
.hero-metrics {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin-top: var(--space-sm);
}

.metric-box {
    background: var(--bg-card);
    border: var(--border-card);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-sm);
    text-align: center;
    flex: 1;
    max-width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.metric-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.metric-icon {
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin-bottom: 6px;
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Right column - Visual (2/3) — stretch to fill */
.hero-visual {
    position: relative;
    min-height: 580px;
    display: flex;
    flex-direction: column;
}

/* Hero dashboard mockup — extension + dashboard (TASK_006) */
.hero-dashboard-mockup {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin-left: auto;
    transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
    animation: heroDashSlide 1s ease-out;
}
@keyframes heroDashSlide {
    from { opacity: 0; transform: perspective(800px) rotateY(-8deg) rotateX(4deg) translateX(40px); }
    to { opacity: 1; transform: perspective(800px) rotateY(-8deg) rotateX(4deg) translateX(0); }
}
.hero-dash-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(ellipse at center, rgba(15,163,177,0.2) 0%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}
.hero-dash-frame {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.hero-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.hero-dash-date { color: var(--text-secondary); font-size: 0.7rem; }
.hero-dash-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.hero-dash-kpi {
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hero-dash-kpi-val {
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
}
.hero-dash-kpi-val.c10-teal { color: var(--accent-teal); }
.hero-dash-kpi-val.map-violations { color: var(--accent-red); transition: color 0.4s; }
.hero-dash-kpi-val.map-clean { color: var(--accent-teal); }
.hero-dash-kpi-lbl {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.hero-dash-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
}
.hero-dash-chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--accent-teal), rgba(15,163,177,0.4));
    border-radius: 4px 4px 0 0;
    min-height: 8px;
    animation: heroBarGrow 0.8s ease-out backwards;
}
.hero-dash-chart-bar:nth-child(1){animation-delay:0.1s}
.hero-dash-chart-bar:nth-child(2){animation-delay:0.15s}
.hero-dash-chart-bar:nth-child(3){animation-delay:0.2s}
.hero-dash-chart-bar:nth-child(4){animation-delay:0.25s}
.hero-dash-chart-bar:nth-child(5){animation-delay:0.3s}
.hero-dash-chart-bar:nth-child(6){animation-delay:0.35s}
.hero-dash-chart-bar:nth-child(7){animation-delay:0.4s}
@keyframes heroBarGrow {
    from { transform: scaleY(0); transform-origin: bottom; }
    to { transform: scaleY(1); transform-origin: bottom; }
}
.hero-ext-popup {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--accent-teal);
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 10;
    animation: heroExtPop 0.6s ease-out 0.5s backwards;
}
@keyframes heroExtPop {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-ext-header {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-teal);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.hero-ext-body { font-size: 0.68rem; color: var(--text-secondary); }
.hero-ext-row { padding: 4px 0; display: flex; align-items: center; gap: 6px; }
.hero-ext-row i { color: var(--accent-teal); width: 14px; }

/* Floating card teaser (TASK_006) */
.hero-floating-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 12px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    animation: heroFloatUp 0.8s ease-out 0.8s backwards;
}
@keyframes heroFloatUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-floating-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-teal);
    animation: heroDotPulse 2s ease-in-out infinite;
}
@keyframes heroDotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(15,163,177,0.4); }
    50% { opacity: 0.8; }
    75% { box-shadow: 0 0 0 8px rgba(15,163,177,0); }
}
.hero-floating-text { font-size: 0.85rem; color: var(--text-secondary); }
.hero-floating-cta { font-size: 0.8rem; font-weight: 600; color: var(--accent-teal); text-decoration: none; }
.hero-floating-cta:hover { text-decoration: underline; }

/* Sandbox section — below fold */
.sandbox-section {
    padding: var(--space-xl) 0;
}
.sandbox-section .hero-visual { min-height: 480px; }
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin: -8px 0 24px;
}

/* Scroll reveal */
.scroll-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .hero-dashboard-mockup { transform: none; margin: 0 auto; }
    .hero-ext-popup { right: 10px; top: -10px; }
}

/* Sandbox frost layer — sits behind toolbar, fades on first click */
.sandbox-frost {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    background: rgba(27, 34, 44, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.sandbox-frost.dismissed {
    opacity: 0;
    visibility: hidden;
}

.sandbox-frost-cta {
    position: relative;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
}

/* Product bg starts hidden, fades in when frost dismissed */
.sandbox-bg-hidden {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sandbox-bg-hidden.visible {
    opacity: 1;
}

/* Kraken tentacle arms — unfurling from the deep, reaching up to grasp the toolbar */
.tentacle-arms {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 7;
    overflow: hidden;
}

/* Dark abyss — the creature lives below */
.tentacle-abyss {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
    z-index: 0;
}

.tentacle-svg {
    position: absolute;
    bottom: -80px;
    width: 75px;
    height: 115%;
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(110, 243, 214, 0.12))
            drop-shadow(0 0 2px rgba(110, 243, 214, 0.15));
    transform-origin: bottom center;
}

/* Back arms — darker, behind; front arms — lighter, on top */
.tentacle-back { z-index: 1; }
.tentacle-front { z-index: 2; }

/* Bioluminescent suckers — Godzilla charging-up pulse */
.tentacle-suckers {
    animation: sucker-charge 2.8s ease-in-out infinite;
}

@keyframes sucker-charge {
    0%, 100% { opacity: 0.75; }
    50% { opacity: 1; }
}

/* Arm positions — overlap for intertwining; back arms wider spread, front arms clustered center */
.tentacle-arm-1 {
    left: 2%;
    width: 80px;
    animation: tentacle-reach-1 5.5s ease-in-out infinite;
}

.tentacle-arm-2 {
    left: 14%;
    width: 78px;
    animation: tentacle-reach-2 5.2s ease-in-out infinite;
}

.tentacle-arm-3 {
    left: 28%;
    width: 82px;
    animation: tentacle-reach-3 5s ease-in-out infinite;
}

.tentacle-arm-4 {
    left: 50%;
    margin-left: -41px;
    width: 82px;
    animation: tentacle-reach-4 4.8s ease-in-out infinite;
}

.tentacle-arm-5 {
    right: 28%;
    width: 82px;
    animation: tentacle-reach-5 5.1s ease-in-out infinite;
}

.tentacle-arm-6 {
    right: 14%;
    width: 78px;
    animation: tentacle-reach-6 5.3s ease-in-out infinite;
}

.tentacle-arm-7 {
    right: 2%;
    width: 80px;
    animation: tentacle-reach-7 5.6s ease-in-out infinite;
}

/* Heavy underwater animation — skew + scale + translate, transform-origin bottom */
@keyframes tentacle-reach-1 {
    0%, 100% { transform: translateY(0) rotate(-2deg) skewX(0deg) scaleY(1); }
    50% { transform: translateY(-6px) rotate(1deg) skewX(1.5deg) scaleY(1.02); }
}

@keyframes tentacle-reach-2 {
    0%, 100% { transform: translateY(0) rotate(1deg) skewX(0deg) scaleY(1); }
    50% { transform: translateY(-10px) rotate(-2deg) skewX(-1deg) scaleY(1.015); }
}

@keyframes tentacle-reach-3 {
    0%, 100% { transform: translateY(0) skewX(0deg) scaleY(1); }
    50% { transform: translateY(-12px) skewX(2deg) scaleY(1.02); }
}

@keyframes tentacle-reach-4 {
    0%, 100% { transform: translateY(0) skewX(0deg) scaleY(1); }
    50% { transform: translateY(-14px) skewX(-1.5deg) scaleY(1.025); }
}

@keyframes tentacle-reach-5 {
    0%, 100% { transform: translateY(0) skewX(0deg) scaleY(1); }
    50% { transform: translateY(-10px) skewX(1deg) scaleY(1.02); }
}

@keyframes tentacle-reach-6 {
    0%, 100% { transform: translateY(0) rotate(2deg) skewX(0deg) scaleY(1); }
    50% { transform: translateY(-8px) rotate(-1deg) skewX(-1.5deg) scaleY(1.015); }
}

@keyframes tentacle-reach-7 {
    0%, 100% { transform: translateY(0) rotate(-2deg) skewX(0deg) scaleY(1); }
    50% { transform: translateY(-5px) rotate(1deg) skewX(1deg) scaleY(1.01); }
}

.sandbox-cue-text {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.sandbox-cue-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Pulsating toolbar invite border */
.sandbox-toolbar.toolbar-pulse {
    box-shadow: 0 2px 12px rgba(0,0,0,0.12), 0 0 0 0.5px rgba(0,0,0,0.05),
                0 0 0 3px rgba(110, 243, 214, 0.5);
    animation: toolbar-invite 2s ease-in-out infinite;
}

@keyframes toolbar-invite {
    0%, 100% { box-shadow: 0 2px 12px rgba(0,0,0,0.12), 0 0 0 0.5px rgba(0,0,0,0.05),
                           0 0 0 3px rgba(110, 243, 214, 0.45); }
    50% { box-shadow: 0 2px 12px rgba(0,0,0,0.12), 0 0 0 0.5px rgba(0,0,0,0.05),
                      0 0 0 6px rgba(110, 243, 214, 0.2), 0 0 20px rgba(110, 243, 214, 0.15); }
}

@keyframes cue-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Sandbox shell — glassmorphism + floating (Antigravity Hero) */
.browser-shell.sandbox-live {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-card), 0 0 40px var(--accent-glow);
    border-radius: var(--radius-lg);
    position: relative;
    background: rgba(22, 24, 26, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: float-toolbar 5s ease-in-out infinite;
}

@keyframes float-toolbar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* (Spark/lightning animations removed — clean Kraken aesthetic) */

/* ===== BROWSER SHELL (traffic lights, address bar, puzzle icon) ===== */
.browser-shell {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 900px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(0,0,0,0.06);
    overflow: hidden;
    background: var(--bg-card);
}

.browser-shell-chrome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    background: #2c3849;
    border-bottom: 1px solid rgba(162,227,212,0.1);
}

.browser-shell-dots {
    display: flex;
    gap: 6px;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dot-red { background: #ff5f57; }
.browser-dot-yellow { background: #febc2e; }
.browser-dot-green { background: #28c840; }

.browser-shell-address {
    flex: 1;
    max-width: 400px;
    padding: 5px 12px;
    border: 1px solid rgba(162,227,212,0.15);
    border-radius: 6px;
    background: #1B222C;
    font-size: 12px;
    color: var(--text-secondary);
}

.browser-shell-extensions {
    color: var(--text-muted);
    font-size: 14px;
    padding: 4px 8px;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: var(--space-xl) var(--space-md);
    background: var(--bg-secondary);
}

/* Headings - Inter Tight (premium wide-display) */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}
h1 { letter-spacing: -0.02em; }
h2 { letter-spacing: -0.015em; }

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: var(--space-md);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 auto var(--space-sm);
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ===== FEATURES GRID - Bento Box Layout ===== */
.features {
    padding: var(--space-xl) var(--space-md);
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Bento: 3 cols first row, highlight spans full width below (asymmetrical) */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .feature-card.highlight {
        grid-column: span 3;
    }
}

.feature-card {
    background: var(--bg-card);
    border: var(--border-card);
    border-radius: 32px;
    padding: var(--space-lg) var(--space-md);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 0 24px rgba(110,243,214,0.04);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card), 0 0 32px var(--accent-glow);
}

.feature-card.highlight {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

/* Feature visual (img/gif) - hover-to-play: 0.6 default, 1 on hover */
.feature-visual {
    width: 100%;
    max-width: 160px;
    aspect-ratio: 1;
    margin-bottom: var(--space-sm);
    border-radius: 16px;
    overflow: hidden;
}

.feature-visual img,
.feature-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.feature-card:hover .feature-visual img,
.feature-card:hover .feature-visual video {
    opacity: 1;
}

/* Filled circle icon for feature cards — centered, uniform */
.feature-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(110,243,214,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    font-size: 1.4rem;
    color: var(--accent-primary);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Legacy fallback (keeps old class working) */
.feature-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    color: var(--accent-primary);
}

.pro-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--accent-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: var(--space-xl) var(--space-md);
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.testimonial-card {
    background: var(--bg-card);
    border: var(--border-card);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.testimonial-content {
    margin-bottom: var(--space-md);
}

.testimonial-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
}

.testimonial-content p::before {
    content: '"';
    font-size: 2rem;
    color: var(--accent-primary);
    line-height: 0;
    vertical-align: -0.4em;
    margin-right: 4px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* ===== PRICING ===== */
.pricing {
    padding: var(--space-xl) var(--space-md);
    background: var(--bg-primary);
    text-align: center;
}

.pricing-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    margin-top: calc(var(--space-lg) * -1 + var(--space-sm));
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: var(--border-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: left;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.features-list {
    list-style: none;
    margin-bottom: var(--space-md);
}

.features-list li {
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.features-list li.included::before {
    content: "✓ ";
    color: var(--success);
    font-weight: bold;
}

.features-list li.disabled {
    color: var(--text-muted);
}

.features-list li.disabled::before {
    content: "✗ ";
    color: var(--text-muted);
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    width: 100%;
    justify-content: center;
}

.trial-note {
    display: block;
    text-align: center;
    margin-top: var(--space-xs);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Enterprise+ card */
.pricing-card.enterprise {
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, #161618 0%, #121214 100%);
}

.coming-soon-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #232f3e;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.btn-enterprise {
    border-color: #232f3e;
    color: #232f3e;
}

.btn-enterprise:hover {
    background: #232f3e;
    color: white;
}

/* Commander Pro Preview - blurred metrics tease */
.commander-preview {
    position: relative;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.commander-preview-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.commander-preview-grid {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.commander-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.commander-metric .metric-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.commander-metric .metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-primary);
}

.commander-preview-blur {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.15);
    pointer-events: none;
}

/* Join the Elite - tooltip micro-interaction */
.join-elite-wrap {
    position: relative;
}

.btn-join-elite {
    transition: box-shadow 0.2s, transform 0.2s;
}

.btn-join-elite:hover {
    box-shadow: 0 0 20px var(--accent-glow);
}

.elite-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    width: 220px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 10;
    pointer-events: none;
}

.join-elite-wrap:hover .elite-tooltip,
.join-elite-wrap .elite-tooltip.elite-tooltip-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.pricing-note {
    margin-top: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== FAQ ===== */
.faq {
    padding: var(--space-xl) var(--space-md);
    background: var(--bg-secondary);
}

.faq-grid {
    display: grid;
    gap: var(--space-md);
    max-width: 800px;
    margin: var(--space-lg) auto 0;
}

.faq-item {
    background: var(--bg-card);
    border: var(--border-card);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-primary);
    border-top: var(--border-subtle);
    padding: var(--space-lg) var(--space-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(162, 227, 212, 0.15);
    margin-bottom: var(--space-xs);
}

.footer-logo.footer-logo-minimal,
.footer-logo.footer-logo-primary {
    border-radius: 0;
    border: none;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-disclaimer {
    max-width: 800px;
    margin: var(--space-md) auto;
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    text-align: center;
}

.footer-disclaimer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-copyright {
    text-align: center;
    padding-top: var(--space-md);
    border-top: var(--border-subtle);
    margin-top: var(--space-md);
}

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

/* ===== PRICING TIER TAGLINE ===== */
.pricing-tier-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: var(--space-sm);
    margin-top: calc(var(--space-sm) * -1 + 4px);
}

/* ===== KIP CHAT BUBBLE ===== */
.kip-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.kip-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(110, 243, 214, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.kip-trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 30px rgba(110, 243, 214, 0.5);
}

.kip-trigger-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.kip-notification-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: #ef5350;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    animation: kip-dot-pulse 2s ease-in-out infinite;
}

@keyframes kip-dot-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.kip-chat {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid rgba(162, 227, 212, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.kip-chat.kip-chat-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.kip-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(162, 227, 212, 0.1);
    background: rgba(27, 34, 44, 0.6);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.kip-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

.kip-chat-header strong {
    color: var(--text-primary);
    font-size: 0.9375rem;
    display: block;
}

.kip-status {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 500;
}

.kip-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 4px;
    transition: color 0.2s;
}

.kip-close:hover {
    color: var(--text-primary);
}

.kip-chat-body {
    padding: 16px;
}

.kip-message {
    background: rgba(162, 227, 212, 0.08);
    border: 1px solid rgba(162, 227, 212, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 8px;
}

.kip-message p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.kip-message strong {
    color: var(--accent-primary);
}

.kip-message-sub {
    background: transparent;
    border-color: transparent;
    padding: 4px 14px;
}

.kip-message-sub p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}
