/* ═══════════════════════════════════════════════════════════════
   MARVIN JARVIS DESIGN SYSTEM v2
   Deep Navy · Glass · Neon Blue · Modern Typography
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap');

:root {
    --navy-deep: #060b1a;
    --navy: #0a0e27;
    --navy-mid: #0d1333;
    --navy-light: #131a42;
    --navy-surface: #161d4a;
    --glass: rgba(10, 14, 39, 0.65);
    --glass-light: rgba(19, 26, 66, 0.45);
    --glass-border: rgba(0, 212, 255, 0.1);
    --glass-border-bright: rgba(0, 212, 255, 0.25);
    --cyan: #00d4ff;
    --cyan-dim: rgba(0, 212, 255, 0.35);
    --cyan-faint: rgba(0, 212, 255, 0.06);
    --blue: #0066ff;
    --purple: #6366f1;
    --teal: #00ffc8;
    --amber: #f59e0b;
    --red: #ef4444;
    --green: #22c55e;
    --text-1: #e8edf5;
    --text-2: rgba(232, 237, 245, 0.55);
    --text-3: rgba(232, 237, 245, 0.3);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-xl: 30px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --glow: 0 0 20px rgba(0, 212, 255, 0.12), 0 0 60px rgba(0, 212, 255, 0.04);
    --glow-hi: 0 0 30px rgba(0, 212, 255, 0.25), 0 0 80px rgba(0, 212, 255, 0.08);
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-t: env(safe-area-inset-top, 0px);
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background: var(--navy-deep);
    color: var(--text-1);
    height: 100%;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.01em;
    font-weight: 400;
}

#app {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: transparent;
}

#authGate {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at 25% 20%, rgba(0, 212, 255, 0.08), rgba(6, 11, 26, 0.94) 50%, rgba(6, 11, 26, 0.98) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.auth-open #authGate {
    display: flex;
}

body.auth-open #app {
    display: none;
}

.auth-card {
    width: min(420px, 100%);
    border-radius: var(--r-lg);
    border: 1px solid var(--glass-border-bright);
    background: linear-gradient(160deg, rgba(10, 14, 39, 0.95), rgba(19, 26, 66, 0.86));
    box-shadow: var(--glow-hi);
    padding: 24px;
}

.auth-title {
    font-family: var(--font-display);
    letter-spacing: 2px;
    font-size: 20px;
    color: var(--cyan);
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--text-2);
    font-size: 13px;
    margin-bottom: 16px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.auth-tab {
    border: 1px solid var(--glass-border);
    background: var(--glass-light);
    color: var(--text-2);
    border-radius: var(--r-sm);
    padding: 8px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.8px;
}

.auth-tab.active {
    color: var(--text-1);
    border-color: var(--cyan-dim);
    box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.35);
}

.auth-grid {
    display: grid;
    gap: 10px;
}

.auth-input {
    width: 100%;
    border: 1px solid var(--glass-border);
    background: rgba(10, 14, 39, 0.7);
    color: var(--text-1);
    border-radius: var(--r-sm);
    padding: 11px 12px;
    font-size: 14px;
    outline: none;
}

.auth-input:focus {
    border-color: var(--cyan);
}

.auth-actions {
    margin-top: 14px;
}

.auth-btn {
    width: 100%;
    border: 1px solid var(--cyan-dim);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 102, 255, 0.2));
    color: var(--text-1);
    border-radius: var(--r-sm);
    padding: 11px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-status {
    min-height: 18px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-2);
}

#particleCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

.scanline-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 212, 255, 0.008) 3px, rgba(0, 212, 255, 0.008) 6px);
}

/* ═══ ICONS (SVG-based, replacing emoji) ═══ */
.ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ico svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ═══ HEADER ═══ */
.jarvis-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--safe-t) + 12px) 18px 12px;
    background: linear-gradient(180deg, rgba(6, 11, 26, 0.85) 0%, rgba(6, 11, 26, 0.4) 70%, transparent 100%);
    pointer-events: none;
}

.jarvis-header>* {
    pointer-events: auto;
    position: relative;
    z-index: 1001;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    animation: softPulse 4s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--cyan);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    box-shadow: 0 0 10px var(--cyan);
}

.hamburger-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

.header-brand {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-1);
    text-shadow: 0 0 12px var(--cyan-dim);
}

.header-stats-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    font-size: 10px;
    font-family: var(--font-sans);
    color: var(--text-2);
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-val {
    color: var(--text-1);
    font-weight: 500;
}

.stat-icon {
    font-size: 11px;
}

/* ═══ MENU DRAWER ═══ */
.menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 270px;
    height: 100%;
    z-index: 200;
    background: linear-gradient(160deg, rgba(6, 11, 26, 0.97), rgba(13, 19, 51, 0.97));
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-right: 1px solid var(--glass-border-bright);
    transform: translateX(-100%);
    transition: transform 0.35s var(--ease);
    padding: calc(var(--safe-t) + 24px) 20px calc(var(--safe-b, 0px) + 20px);
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.menu-drawer.open {
    transform: translateX(0);
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.menu-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.menu-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0 20px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 8px;
}

.menu-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cyan) 0%, var(--navy) 70%);
    box-shadow: var(--glow-hi);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--navy-deep);
}

.menu-logo-text {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--cyan);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 16px;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    border: 1px solid transparent;
}

.menu-item:hover,
.menu-item.active {
    background: var(--cyan-faint);
    border-color: var(--glass-border);
    color: var(--text-1);
}

.menu-item.active {
    border-color: var(--glass-border-bright);
    color: var(--cyan);
}

.menu-item-icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
    opacity: 0.8;
}

.menu-coin-badge {
    margin-top: auto;
    padding: 18px;
    background: var(--glass);
    border: 1px solid var(--glass-border-bright);
    border-radius: var(--r-lg);
    text-align: center;
}

.menu-coin-balance {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: 0 0 24px var(--cyan-dim);
}

.menu-coin-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 300;
    color: var(--text-3);
    letter-spacing: 2px;
    margin-top: 4px;
}

.menu-topup-btn {
    margin-top: 14px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--cyan);
    background: transparent;
    color: var(--cyan);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    letter-spacing: 1px;
}

.menu-topup-btn:hover {
    background: rgba(0, 212, 255, 0.08);
    box-shadow: var(--glow);
}

/* ═══ SURFACES ═══ */
.surface {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    position: relative;
    z-index: 2;
    padding-top: calc(var(--safe-t) + 56px);
}

.surface.active {
    display: flex;
}

/* ═══ ARC REACTOR CORE ═══ */
.reactor-zone {
    position: relative;
    height: 40%;
    min-height: 180px;
    flex-shrink: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.reactor-core {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 50%, rgba(0, 212, 255, 0.2) 60%, rgba(0, 212, 255, 0.5) 65%, rgba(0, 212, 255, 0.2) 70%, transparent 80%);
    box-shadow: inset 0 0 50px rgba(0, 212, 255, 0.1), 0 0 50px rgba(0, 212, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: corePulse 3s ease-in-out infinite;
}

.reactor-center {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.4) 0%, rgba(0, 212, 255, 0.1) 60%, transparent 80%);
    box-shadow: inset 0 0 40px rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.soundwave-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 8px var(--cyan));
}

/* ═══ THOUGHT STREAM ═══ */
.thought-stream-zone {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.thought-stream-zone::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 11, 26, 0.4) 40%, rgba(6, 11, 26, 0.9) 100%);
    z-index: 10;
    pointer-events: none;
}

.thought-stream-chat {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    margin: 16px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border-bright);
    border-radius: var(--r-xl);
    box-shadow: var(--glow);
    scroll-behavior: smooth;
    mask-image: none;
    -webkit-mask-image: none;
}

.thought-stream-chat::-webkit-scrollbar {
    width: 2px;
}

.thought-stream-chat::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 2px;
}

/* Messages — tighter, cleaner */
.msg {
    max-width: 100%;
    padding: 0;
    border-radius: 0;
    font-size: 15px;
    line-height: 1.5;
    background: none;
    border: none;
    backdrop-filter: none;
    word-break: break-word;
    animation: slideIn 0.25s ease-out;
}

.msg-user {
    align-self: flex-start;
    color: var(--text-2);
}

.msg-bot {
    align-self: flex-start;
    color: var(--text-1);
    text-shadow: 0 0 8px var(--cyan-dim);
}

.msg-system {
    align-self: flex-start;
    font-size: 12px;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-weight: 300;
    background: none;
    padding: 0;
}

/* Entity Cards */
.entity-card {
    background: linear-gradient(135deg, var(--glass), rgba(0, 212, 255, 0.02));
    border: 1px solid var(--glass-border-bright);
    border-radius: var(--r-lg);
    padding: 14px;
    margin: 2px 0;
    box-shadow: var(--glow);
    animation: slideIn 0.3s ease-out;
}

.entity-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--cyan);
    text-transform: uppercase;
}

.entity-card-body {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.55;
}

.entity-card-cta {
    margin-top: 10px;
    padding: 9px 18px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 102, 255, 0.06));
    border: 1px solid var(--cyan);
    border-radius: var(--r-md);
    color: var(--cyan);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-align: center;
    letter-spacing: 0.5px;
}

.entity-card-cta:hover {
    background: rgba(0, 212, 255, 0.15);
    box-shadow: var(--glow-hi);
}

/* Thinking */
.thinking-indicator {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 12px;
    font-family: var(--font-mono);
    font-weight: 300;
    color: var(--text-3);
}

.thinking-dots {
    display: flex;
    gap: 3px;
}

.thinking-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan);
    animation: bounce 1.4s ease-in-out infinite;
    box-shadow: 0 0 6px var(--cyan-dim);
}

.thinking-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.thinking-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

/* ═══ INPUT BAR ═══ */
.input-bar {
    position: relative;
    z-index: 50;
    display: flex;
    flex-direction: column;
    padding: 6px 8px 4px;
    margin: 4px 8px calc(var(--safe-b) + 4px);
    background: var(--glass);
    border: 1px solid var(--glass-border-bright);
    border-radius: 16px;
    box-shadow: var(--glow);
    transition: border-color 0.2s ease;
}

.input-bar.drag-over {
    border-color: var(--cyan);
    box-shadow: var(--glow-hi), inset 0 0 20px rgba(0, 232, 255, 0.06);
}

.input-text {
    width: 100%;
    background: transparent;
    border: none;
    padding: 2px 0 4px;
    color: var(--text-1);
    font-family: var(--font-sans);
    font-size: 15px;
    resize: none;
    outline: none;
    max-height: 120px;
    min-height: 24px;
    line-height: 1.4;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.08) transparent;
}

.input-text::-webkit-scrollbar {
    width: 3px;
}

.input-text::-webkit-scrollbar-track {
    background: transparent;
}

.input-text::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
}

.input-text::placeholder {
    color: var(--text-3);
    font-weight: 300;
}

.input-text:focus {
    box-shadow: none;
    border-color: transparent;
}

.input-tools-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 6px;
}

.input-tools-left {
    display: flex;
    align-items: center;
    gap: 2px;
}

.input-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-3);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease);
    flex-shrink: 0;
    padding: 0;
}

.input-action:hover {
    color: var(--cyan);
    background: var(--cyan-faint);
}

.input-send {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease);
    flex-shrink: 0;
    padding: 0;
}

.input-send:hover {
    color: var(--cyan);
}

.input-action.voice-active {
    background: var(--red);
    color: white;
    animation: softPulse 1s ease-in-out infinite;
}

.input-action.active {
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.12);
    box-shadow: 0 0 10px var(--cyan-dim);
}

.reactor-status {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--cyan);
    opacity: 0.7;
    margin-top: 8px;
    text-transform: uppercase;
}

/* ═══ CAMERA ═══ */
.camera-module {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 60;
    background: var(--navy-deep);
    flex-direction: column;
}

.camera-module.active {
    display: flex;
}

.camera-feed {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
}

.camera-feed video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 12px;
    padding: 16px;
    margin: 16px 16px calc(var(--safe-b) + 16px);
    background: var(--glass);
    border: 1px solid var(--glass-border-bright);
    border-radius: var(--r-xl);
    box-shadow: var(--glow);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.cam-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border-bright);
    background: transparent;
    color: var(--text-2);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cam-btn:hover {
    color: var(--cyan);
    background: var(--cyan-faint);
}

.cam-btn.capture-btn {
    width: 64px;
    height: 64px;
    border: 1px solid rgba(239, 68, 68, 0.5);
    background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
    color: var(--red);
    font-size: 24px;
}

/* ═══ ONBOARDING ═══ */
.onboarding-pager {
    flex: 1;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.onboarding-pager::-webkit-scrollbar {
    display: none;
}

.ob-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 28px calc(var(--safe-b) + 72px);
    text-align: center;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    transform: translateX(40px);
}

.ob-screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.ob-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--cyan);
    text-shadow: 0 0 30px var(--cyan-dim);
    margin-bottom: 12px;
}

.ob-subtitle {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-2);
    max-width: 300px;
    line-height: 1.65;
    margin-bottom: 28px;
}

.ob-input {
    width: 100%;
    max-width: 280px;
    padding: 14px 18px;
    background: var(--glass);
    border: 1px solid var(--glass-border-bright);
    border-radius: var(--r-lg);
    color: var(--text-1);
    font-family: var(--font-sans);
    font-size: 18px;
    text-align: center;
    outline: none;
    transition: all 0.2s var(--ease);
}

.ob-input:focus {
    border-color: var(--cyan);
    box-shadow: var(--glow);
}

.ob-input.ob-input-error {
    border-color: var(--red) !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
    animation: inputShake 0.3s ease-out;
}

@keyframes inputShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.ob-input::placeholder {
    color: var(--text-3);
    font-weight: 300;
}

.ob-toggle-group {
    display: flex;
    gap: 14px;
    margin: 20px 0;
}

.ob-toggle-btn {
    padding: 16px 32px;
    border-radius: var(--r-lg);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text-2);
}

.ob-toggle-btn.yes {
    border-color: rgba(34, 197, 94, 0.4);
    color: var(--green);
}

.ob-toggle-btn.yes:hover,
.ob-toggle-btn.yes.selected {
    background: rgba(34, 197, 94, 0.1);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.15);
}

.ob-toggle-btn.no {
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--red);
}

.ob-toggle-btn.no:hover,
.ob-toggle-btn.no.selected {
    background: rgba(239, 68, 68, 0.1);
}

.ob-cta {
    padding: 14px 36px;
    border: 1px solid var(--cyan);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(0, 102, 255, 0.04));
    color: var(--cyan);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: var(--r-lg);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-transform: uppercase;
    margin-top: 20px;
}

.ob-cta:hover {
    background: rgba(0, 212, 255, 0.15);
    box-shadow: var(--glow-hi);
    transform: translateY(-1px);
}

.ob-skip {
    position: absolute;
    top: calc(var(--safe-t) + 14px);
    right: 14px;
    background: none;
    border: none;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 2px;
    cursor: pointer;
    padding: 8px;
}

.ob-dots {
    position: absolute;
    bottom: calc(var(--safe-b) + 28px);
    display: flex;
    gap: 8px;
}

.ob-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transition: all 0.3s var(--ease);
}

.ob-dot.active {
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan-dim);
    width: 20px;
    border-radius: 3px;
}

.ob-slider-group {
    width: 100%;
    max-width: 280px;
    margin: 10px 0;
    text-align: left;
}

.ob-slider-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 1.5px;
    color: var(--text-3);
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.ob-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    outline: none;
}

.ob-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan-dim);
    cursor: pointer;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 260px;
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}

.toggle-row-label {
    font-size: 14px;
    color: var(--text-2);
    font-weight: 400;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--navy-surface);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.toggle-switch.on {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--cyan);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-3);
    transition: all 0.2s var(--ease);
}

.toggle-switch.on::after {
    left: 22px;
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan-dim);
}

/* ═══ DATA CENTER ═══ */
.surf-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    color: var(--cyan);
    letter-spacing: 2px;
    text-align: center;
    margin: 20px 16px;
    text-shadow: 0 0 16px var(--cyan-dim);
}

.datacenter-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding-bottom: calc(var(--safe-b) + 48px);
    align-content: start;
}

.datacenter-scroll::-webkit-scrollbar {
    width: 2px;
}

.datacenter-scroll::-webkit-scrollbar-thumb {
    background: var(--glass-border);
}

/* Settings and MyDash reuse datacenter-scroll but need normal block layout */
#surfSettings .datacenter-scroll,
#surfMydash .datacenter-scroll,
#surfNotifications .datacenter-scroll {
    display: block;
    grid-template-columns: none;
}

/* Ensure inactive surfaces are fully hidden */
.surface:not(.active) {
    display: none !important;
}

/* Opaque background on active surfaces to prevent bleed-through */
.surface.active {
    background: var(--bg-0, #060b1a);
}

#surfNotifications.active,
#surfMydash.active,
#surfSettings.active {
    background: transparent;
}

.dc-module {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 120 135' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='g'%3E%3CfeDropShadow dx='0' dy='0' stdDeviation='3' flood-color='%2300d4ff' flood-opacity='0.8'/%3E%3C/filter%3E%3C/defs%3E%3Cpolygon points='50,2 98,28 98,87 50,113 2,87 2,28' fill='none' stroke='%2300d4ff' stroke-width='0.6' filter='url(%23g)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    cursor: pointer;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 24px 16px;
    transition: all 0.2s var(--ease);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1.15;
}

.dc-module:hover {
    filter: brightness(1.2);
}

/* Collapsed: hex card preview */
.dc-module-body {
    display: none;
}

.dc-module.expanded {
    grid-column: 1 / -1;
    background: var(--glass);
    border: 1px solid var(--glass-border-bright);
    border-radius: var(--r-xl);
    aspect-ratio: auto;
    padding: 20px;
    box-shadow: var(--glow);
    display: block;
}

.dc-module.expanded .dc-module-body {
    display: block;
    animation: slideIn 0.2s ease-out;
}

.dc-module-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.dc-module.expanded .dc-module-header {
    flex-direction: row;
    text-align: left;
    margin-bottom: 12px;
}

.dc-module-title {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan), 0 0 20px var(--cyan-dim);
    text-transform: uppercase;
    text-align: center;
}

.dc-module.expanded .dc-module-title {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hex-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.hex-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--cyan);
    filter: drop-shadow(0 0 6px var(--cyan)) drop-shadow(0 0 12px var(--cyan-dim));
}

.dc-module.expanded .hex-icon {
    margin-bottom: 0;
}

.dc-module-subtitle {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 300;
    color: var(--text-3);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.dc-module.expanded .dc-module-subtitle {
    display: none;
}

.dc-module-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 400;
    padding: 3px 10px;
    border-radius: 16px;
    border: 1px solid;
    letter-spacing: 1px;
}

.dc-badge-secure {
    border-color: var(--green);
    color: var(--green);
}

.dc-badge-active {
    border-color: var(--cyan);
    color: var(--cyan);
}

.dc-badge-pending {
    border-color: var(--amber);
    color: var(--amber);
}

.fact-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
}

.fact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: var(--r-md);
    border: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 13px;
}

.fact-cat {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 400;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--cyan-faint);
    color: var(--cyan);
    letter-spacing: 0.5px;
}

.fact-actions {
    display: flex;
    gap: 4px;
}

.fact-action-btn {
    background: none;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    font-size: 13px;
    padding: 3px;
    transition: color 0.2s;
}

.fact-action-btn:hover {
    color: var(--cyan);
}

.fact-action-btn.delete:hover {
    color: var(--red);
}

.cat-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 6px 0;
}

.cat-chip {
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 300;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-3);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.cat-chip.active,
.cat-chip:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: var(--cyan-faint);
}

.dc-input {
    width: 100%;
    padding: 9px 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    color: var(--text-1);
    font-family: var(--font-sans);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.dc-input:focus {
    border-color: var(--cyan);
}

.dc-input::placeholder {
    color: var(--text-3);
    font-weight: 300;
}

.dc-btn {
    padding: 8px 16px;
    border-radius: var(--r-md);
    border: 1px solid var(--glass-border-bright);
    background: var(--glass);
    color: var(--cyan);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.dc-btn:hover {
    background: rgba(0, 212, 255, 0.08);
    box-shadow: var(--glow);
}

.dc-btn.danger {
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--red);
}

.dc-btn.danger:hover {
    background: rgba(239, 68, 68, 0.08);
}

.dc-progress {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 2px;
    overflow: hidden;
    margin: 6px 0;
}

.dc-progress-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 0 6px var(--cyan-dim);
    transition: width 0.5s ease;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 50px;
    padding: 3px 0;
}

.mini-bar {
    flex: 1;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(180deg, var(--cyan), rgba(0, 102, 255, 0.4));
    box-shadow: 0 0 3px var(--cyan-dim);
    min-height: 3px;
    transition: height 0.3s ease;
}

/* ═══ DASHBOARD ═══ */
.dash-tabs {
    display: flex;
    overflow-x: auto;
    gap: 1px;
    padding: 6px 10px;
    background: rgba(6, 11, 26, 0.75);
    border-bottom: 1px solid var(--glass-border);
    -webkit-overflow-scrolling: touch;
}

.dash-tabs::-webkit-scrollbar {
    display: none;
}

.dash-tab {
    padding: 7px 14px;
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.5px;
    white-space: nowrap;
    cursor: pointer;
    color: var(--text-3);
    transition: all 0.2s var(--ease);
    border: 1px solid transparent;
}

.dash-tab:hover {
    color: var(--text-2);
    background: var(--cyan-faint);
}

.dash-tab.active {
    color: var(--cyan);
    border-color: var(--glass-border-bright);
    background: rgba(0, 212, 255, 0.04);
}

.dash-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    padding-bottom: calc(var(--safe-b) + 48px);
}

.dash-content::-webkit-scrollbar {
    width: 2px;
}

.dash-content::-webkit-scrollbar-thumb {
    background: var(--glass-border);
}

.dash-section {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.dash-section.active {
    display: flex;
}

.dash-panel {
    background: linear-gradient(135deg, var(--glass), rgba(0, 212, 255, 0.015));
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.dash-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0.3;
}

.dash-panel-title {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.big-number {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: 0 0 30px var(--cyan-dim);
    letter-spacing: 1px;
}

.big-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 300;
    color: var(--text-3);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 3px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th {
    text-align: left;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: var(--text-3);
    text-transform: uppercase;
    padding: 6px 8px;
    border-bottom: 1px solid var(--glass-border);
}

.data-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    color: var(--text-2);
    font-weight: 400;
}

.data-table tr:hover td {
    background: var(--cyan-faint);
}

.role-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 400;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

.role-superadmin {
    background: rgba(0, 212, 255, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.color-picker-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--glass-border-bright);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.color-swatch:hover {
    transform: scale(1.1);
    box-shadow: var(--glow);
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 16px;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.06);
}

.surface-shell-header {
    position: sticky;
    top: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 10px;
    border-bottom: none;
    background: linear-gradient(180deg, rgba(6, 11, 26, 0.88) 0%, rgba(6, 11, 26, 0.52) 72%, transparent 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-shrink: 0;
}

.surface-shell-menu {
    animation: none;
    padding: 6px 4px;
    position: relative;
    z-index: 7;
    flex-shrink: 0;
}

.surface-shell-title {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--cyan);
    position: relative;
    z-index: 7;
}

.surface-shell-meta {
    margin-left: auto;
    color: var(--text-3);
    font-size: 10px;
    position: relative;
    z-index: 7;
}

.surface-shell-action {
    margin-left: auto;
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--cyan);
    padding: 6px 12px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 7;
}

.surface-shell-action+.surface-shell-meta {
    margin-left: 0;
}

#surfNotifications,
#surfMydash,
#surfSettings {
    overflow: hidden;
    background: transparent;
}

#surfNotifications .datacenter-scroll,
#surfMydash .datacenter-scroll,
#surfSettings .datacenter-scroll {
    /* Match the working surfaces: scroll inside the content pane, not on the surface itself. */
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-height: 0;
    padding-top: 0;
}

/* ═══ BOTTOM NAV ═══ */
.bottom-nav {
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 4px 0 calc(var(--safe-b) + 2px);
    background: rgba(6, 11, 26, 0.94);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    height: 40px;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 20px;
    border: none;
    background: none;
    color: var(--text-3);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.nav-btn .nav-icon {
    display: flex;
    align-items: center;
}

.nav-btn:hover {
    color: var(--text-2);
}

.nav-btn.active {
    color: var(--cyan);
}

.nav-btn.active .nav-icon {
    filter: drop-shadow(0 0 6px var(--cyan-dim));
}

.qr-container {
    background: white;
    padding: 10px;
    border-radius: var(--r-md);
    display: inline-flex;
    margin: 10px 0;
}



.datacenter-svg {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin: 20px auto;
    display: block;
}

.datacenter-svg .server-rack {
    fill: var(--glass-border);
    stroke: var(--glass-border-bright);
    stroke-width: 0.5;
}

.datacenter-svg .server-light {
    fill: var(--cyan);
    opacity: 0.7;
    animation: softPulse 2s infinite ease-in-out;
}

.datacenter-svg .cable {
    stroke: var(--text-3);
    stroke-width: 0.7;
    fill: none;
}

/* (End of file, previously missing bottom padding if nav removed) */
/* ═══ ANIMATIONS ═══ */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes corePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.65;
        transform: scale(0.94);
    }
}

@keyframes softPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}

@keyframes labelFade {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes orbitDot1 {
    0% {
        transform: rotate(0deg) translateX(80px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(80px) rotate(-360deg);
    }
}

@keyframes orbitDot2 {
    0% {
        transform: rotate(0deg) translateX(66px) rotate(0deg);
    }

    100% {
        transform: rotate(-360deg) translateX(66px) rotate(360deg);
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET & DESKTOP (≥768px)
   Data Center = persistent left sidebar
   Active surface (Voice / Dashboard) = right main panel
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {

    /* ── App: side-by-side layout ── */
    #app {
        --desktop-header-offset: calc(var(--safe-t) + 74px);
        flex-direction: row;
        align-items: stretch;
        max-width: 1440px;
        margin: 0 auto;
        padding-top: var(--desktop-header-offset);
    }

    /* ── Header: full width, spans both panels ── */
    .jarvis-header {
        left: 50%;
        right: auto;
        width: min(100%, 1440px);
        transform: translateX(-50%);
        margin: 0;
        z-index: 1000;
        background: rgba(6, 11, 26, 0.98);
        border-bottom: 1px solid rgba(94, 234, 212, 0.08);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    /* ── Menu drawer: above header ── */
    .menu-backdrop,
    .menu-drawer {
        z-index: 1100;
    }

    /* ── Data Center: persistent left sidebar ── */
    #surfDatacenter {
        display: flex !important;
        flex-direction: column;
        width: 320px;
        min-width: 320px;
        max-width: 320px;
        height: 100%;
        border-right: 1px solid var(--glass-border);
        overflow-y: auto;
        flex-shrink: 0;
        padding-top: 0;
    }

    /* ── Data Center grid: 2-column uniform hexagons ── */
    #surfDatacenter .datacenter-scroll {
        grid-template-columns: repeat(2, 1fr);
        padding: 12px;
        gap: 0;
    }

    /* ── Settings/MyDash/Notifications: block layout in right panel ── */
    #surfSettings .datacenter-scroll,
    #surfMydash .datacenter-scroll,
    #surfNotifications .datacenter-scroll {
        display: block;
        grid-template-columns: none;
    }

    .dc-module {
        aspect-ratio: 1 / 1.15;
        padding: 16px 12px;
    }

    /* ── Active surface: fills the right side ── */
    .surface {
        flex: 1;
        min-width: 0;
        height: 100%;
        padding-top: 0;
    }

    /* ── Voice surface: stack reactor above chat ── */
    #surfVoice {
        flex-direction: column;
        overflow: hidden;
    }

    /* ── Reactor: compact bar at top of right panel ── */
    .reactor-zone {
        height: auto;
        padding: 20px;
        flex-shrink: 0;
    }

    .reactor-core {
        width: 120px;
        height: 120px;
    }

    .reactor-center {
        width: 80px;
        height: 80px;
    }

    .soundwave-icon {
        width: 40px;
        height: 40px;
    }

    /* ── Chat: fills remaining space ── */
    .thought-stream-zone {
        flex: 1;
        height: auto;
    }

    .thought-stream-chat {
        margin: 0 16px;
        border-radius: var(--r-xl);
    }

    /* ── Input bar: full width of chat panel ── */
    .input-bar {
        max-width: none;
        margin-left: 16px;
        margin-right: 16px;
    }

    /* ── Septagon hover: scale + glow ── */
    .dc-module {
        transition: all 0.3s var(--ease), transform 0.3s var(--ease);
    }

    .dc-module:hover {
        transform: scale(1.04);
        filter: brightness(1.3);
    }

    .dc-module:hover .dc-module-title {
        text-shadow: 0 0 16px var(--cyan), 0 0 32px var(--cyan-dim);
    }

    .dc-module:hover .hex-icon svg {
        filter: drop-shadow(0 0 10px var(--cyan)) drop-shadow(0 0 20px var(--cyan));
    }

    /* ── Onboarding: bigger text ── */
    .ob-title {
        font-size: 28px;
    }

    .ob-subtitle {
        font-size: 17px;
        max-width: 420px;
    }

    .big-number {
        font-size: 42px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (≥1024px)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {

    /* ── Wider sidebar with 2-col hex grid ── */
    #surfDatacenter {
        width: 380px;
        min-width: 380px;
        max-width: 380px;
    }

    #surfDatacenter .datacenter-scroll {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px;
    }

    .dc-module {
        aspect-ratio: 1 / 1.15;
    }

    /* ── Reactor: slightly larger ── */
    .reactor-core {
        width: 160px;
        height: 160px;
    }

    .reactor-center {
        width: 105px;
        height: 105px;
    }

    .soundwave-icon {
        width: 55px;
        height: 55px;
    }

    /* ── Chat: comfortable reading ── */
    .thought-stream-chat {
        padding: 28px;
    }

    .msg {
        font-size: 16px;
        line-height: 1.6;
    }

    .input-text {
        font-size: 16px;
    }

    .input-bar {
        max-width: none;
        padding: 8px 12px 6px;
    }

    /* ── Header ── */
    .jarvis-header {
        padding-left: 32px;
        padding-right: 32px;
    }

    .header-brand {
        font-size: 18px;
        letter-spacing: 1.5px;
    }

    .header-stats-stack {
        font-size: 11px;
    }

    /* ── Menu drawer: wider ── */
    .menu-drawer {
        width: 340px;
    }

    /* ── Keyboard shortcut badges ── */
    .menu-item[data-shortcut]::after {
        content: attr(data-shortcut);
        font-family: var(--font-mono);
        font-size: 9px;
        color: var(--text-3);
        margin-left: auto;
        padding: 2px 6px;
        border: 1px solid var(--glass-border);
        border-radius: 4px;
        opacity: 0.6;
    }

    /* ── Dashboard: responsive grid ── */
    #surfDashboard .dash-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — ULTRAWIDE (≥1440px)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 1440px) {

    #app {
        border-radius: var(--r-xl);
        margin-top: 16px;
        margin-bottom: 16px;
        height: calc(100% - 32px);
        box-shadow: 0 0 60px rgba(0, 212, 255, 0.05);
        border: 1px solid var(--glass-border);
    }

    #surfDatacenter {
        width: 420px;
        min-width: 420px;
        max-width: 420px;
    }

    .reactor-core {
        width: 200px;
        height: 200px;
    }

    .reactor-center {
        width: 130px;
        height: 130px;
    }

    .soundwave-icon {
        width: 65px;
        height: 65px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   VIEW TRANSITIONS
   ═══════════════════════════════════════════════════════════════ */
::view-transition-old(surface-transition),
::view-transition-new(surface-transition) {
    animation-duration: 0.3s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(surface-transition) {
    animation-name: fadeSlideOut;
}

::view-transition-new(surface-transition) {
    animation-name: fadeSlideIn;
}

@keyframes fadeSlideOut {
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
}

/* ═══ MARKETING HERO ═══ */
#heroSection {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: linear-gradient(135deg, #060b1a 0%, #0a1628 40%, #0d1f3c 100%);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Hero Nav (pre-login landing page) */
.hero-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 11, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.hero-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
}

.hero-nav-brand {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--cyan);
    text-decoration: none;
    text-shadow: 0 0 20px var(--cyan-dim);
}

.hero-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #8899bb;
    text-decoration: none;
    transition: color 0.2s;
}

.hero-nav-link:hover {
    color: var(--cyan);
}

.hero-nav-signin {
    padding: 8px 20px;
    border: 1px solid var(--cyan);
    background: rgba(0, 212, 255, 0.08);
    color: var(--cyan);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.hero-nav-signin:hover {
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 16px var(--cyan-dim);
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 100vw);
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 6px;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: #8899bb;
    margin-bottom: 8px;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.8vw, 1.6rem);
    color: #c0d0e8;
    margin-bottom: 32px;
}

.hero-accent {
    color: #00d4ff;
    font-weight: 700;
}

.hero-cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-cta-btn {
    padding: 14px 32px;
    border-radius: 12px;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #00d4ff, #0088ff);
    color: #fff;
    transition: all 0.3s;
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
}

.hero-cta-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.hero-cta-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 56px;
}

.hero-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: 12px;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #a0b4d0;
    transition: all 0.3s;
}

.hero-feature-card:hover {
    background: rgba(0, 212, 255, 0.06);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-3px);
}

.hero-feature-icon {
    font-size: 1.6rem;
}

/* Pricing Grid */
.hero-pricing-title {
    font-size: 2rem;
    color: #e0eaf4;
    margin-bottom: 8px;
}

.hero-pricing-sub {
    color: #7a90b0;
    font-size: 1rem;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto 48px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pricing-popular {
    border-color: rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(0, 255, 136, 0.03));
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    color: #060b1a;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.pricing-card h3 {
    color: #e0eaf4;
    font-size: 1.2rem;
    margin: 8px 0 12px;
}

.pricing-price {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.pricing-price span {
    font-size: 0.9rem;
    color: #7a90b0;
    font-weight: 400;
}

.pricing-coins {
    color: #00d4ff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

/* .pricing-burn removed — burn rate no longer shown */

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    text-align: left;
}

.pricing-card li {
    color: #8899bb;
    font-size: 0.85rem;
    padding: 3px 0;
}

.pricing-card li::before {
    content: '✓ ';
    color: #00d4ff;
}

.pricing-cta {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.08);
    color: #00d4ff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.pricing-cta:hover {
    background: rgba(0, 212, 255, 0.15);
}

.pricing-cta-popular {
    background: linear-gradient(135deg, #00d4ff, #0088ff);
    color: #fff;
    border: none;
}

.pricing-cta-popular:hover {
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

/* Buy Coins Hero */
.buy-coins-hero {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    margin: 0 auto;
}

.buy-coins-title {
    color: #00d4ff;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.buy-coins-sub {
    color: #8899bb;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.buy-coins-compare {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.buy-coins-example {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.buy-coins-plan {
    color: #7a90b0;
    font-size: 0.8rem;
}

.buy-coins-amount {
    color: #e0eaf4;
    font-size: 1.1rem;
    font-weight: 700;
}

.buy-coins-highlight {
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.buy-coins-highlight .buy-coins-amount {
    color: #00d4ff;
}

.buy-coins-arrow {
    color: #00d4ff;
    font-size: 1.4rem;
}

.hero-footer {
    margin-top: 40px;
}

.hero-footer p {
    color: #5a708c;
    font-size: 0.85rem;
}

/* ═══ E-COMMERCE / MY SITES SURFACE ═══ */
.ecom-tab-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--glass-border);
}

.ecom-tab-bar::-webkit-scrollbar {
    display: none;
}

.ecom-tab {
    padding: 8px 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.8px;
    color: var(--text-3);
    cursor: pointer;
    border-radius: var(--r-sm) var(--r-sm) 0 0;
    border: 1px solid transparent;
    border-bottom: none;
    transition: all 0.2s var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}

.ecom-tab:hover {
    color: var(--text-2);
    background: var(--cyan-faint);
}

.ecom-tab.active {
    color: var(--cyan);
    background: var(--glass);
    border-color: var(--glass-border-bright);
    box-shadow: 0 2px 0 var(--navy-deep);
    position: relative;
}

.ecom-section {
    display: none;
    animation: slideIn 0.2s ease-out;
}

.ecom-section.active {
    display: block;
}

.ecom-stat-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    padding: 14px;
    text-align: center;
    transition: border-color 0.2s var(--ease);
}

.ecom-stat-card:hover {
    border-color: var(--glass-border-bright);
}

.ecom-stat-number {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ecom-stat-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-3);
}

.ecom-order-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 13px;
    transition: background 0.15s;
}

.ecom-order-row:hover {
    background: var(--cyan-faint);
}

.ecom-orders-header {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 12px;
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-3);
    border-bottom: 1px solid var(--glass-border-bright);
}

.ecom-status-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.ecom-status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--amber);
}

.ecom-status-paid,
.ecom-status-completed {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
}

.ecom-status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
}

.ecom-product-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all 0.2s var(--ease);
    cursor: pointer;
}

.ecom-product-card:hover {
    border-color: var(--glass-border-bright);
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.ecom-product-img {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: var(--navy-mid);
}

.ecom-product-info {
    padding: 12px;
}

.ecom-product-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-1);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ecom-product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-3);
    margin-bottom: 6px;
}

.ecom-product-layer {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--text-3);
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--cyan-faint);
    display: inline-block;
}

.ecom-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ecom-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-3);
    text-transform: uppercase;
}

.ecom-input {
    width: 100%;
    border: 1px solid var(--glass-border);
    background: rgba(10, 14, 39, 0.7);
    color: var(--text-1);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    font-size: 13px;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.2s;
}

.ecom-input:focus {
    border-color: var(--cyan);
}

.ecom-input::placeholder {
    color: var(--text-3);
}

.ecom-color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.ecom-color-swatch:hover {
    transform: scale(1.1);
}

.ecom-color-swatch.active {
    border-color: white;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.ecom-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 102, 255, 0.15));
    border: 1px solid var(--cyan);
    border-radius: var(--r-sm);
    color: var(--cyan);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    letter-spacing: 0.5px;
}

.ecom-btn-primary:hover {
    background: rgba(0, 212, 255, 0.15);
    box-shadow: var(--glow-hi);
}

.ecom-pricing-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    padding: 16px;
}

.ecom-pricing-title {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--cyan);
    margin-bottom: 12px;
}

.ecom-pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--glass-border);
}

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

/* ═══ MOBILE OVERFLOW PREVENTION ═══ */
@media (max-width: 480px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-container {
        padding: 40px 16px 60px;
    }

    .hero-cta-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .pricing-card {
        padding: 20px 16px;
    }

    .hero-nav-inner {
        padding: 10px 12px;
    }

    .hero-nav-brand {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .hero-nav-links {
        gap: 10px;
    }

    .hero-nav-link {
        font-size: 12px;
    }

    .hero-nav-signin {
        padding: 6px 12px;
        font-size: 11px;
    }

    .hero-title {
        letter-spacing: 3px;
    }
}

/* ═══ ZERO-STATE STARTER PROMPT CARDS ═══ */
.starter-prompts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 480px;
    margin: 4px 0 0;
    animation: slideIn 0.4s ease-out;
}

.starter-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.04), rgba(0, 102, 255, 0.03));
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--r-md);
    color: var(--text-2);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    text-align: left;
    line-height: 1.3;
}

.starter-card:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 102, 255, 0.06));
    border-color: rgba(0, 212, 255, 0.35);
    color: var(--text-1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    transform: translateY(-1px);
}

.starter-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.starter-label {
    flex: 1;
}

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

/* ═══ COMPANION STATUS INDICATOR ═══ */
.companion-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.05);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-2);
    letter-spacing: 0.5px;
    animation: softPulse 3s ease-in-out infinite;
}

.companion-status:hover {
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.1);
    color: var(--cyan);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.15);
}

.companion-status .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 6px var(--amber);
}

.companion-status.connected .status-dot {
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}

/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE V2 — Premium Enterprise Styles
   ═══════════════════════════════════════════════════════════════ */

/* ── Scroll Container ── */
#heroSection {
    position: fixed;
    inset: 0;
    z-index: 8500;
    background: var(--navy-deep);
    overflow: hidden;
}

.hero-scroll-container {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(0,212,255,0.25) transparent;
}
/* WebKit (Chrome, Edge, Safari) */
.hero-scroll-container::-webkit-scrollbar {
    width: 6px;
}
.hero-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}
.hero-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0,212,255,0.3), rgba(99,102,241,0.25));
    border-radius: 10px;
    border: 1px solid rgba(0,212,255,0.08);
}
.hero-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0,212,255,0.55), rgba(99,102,241,0.45));
    box-shadow: 0 0 8px rgba(0,212,255,0.3);
}

/* ── Nav brand icon ── */
.hero-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-nav-brand-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cyan) 0%, var(--navy) 70%);
    box-shadow: 0 0 16px var(--cyan-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    color: var(--navy-deep);
}

/* ── Mobile menu ── */
.hero-mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.hero-mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cyan);
    border-radius: 2px;
}

.hero-mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px 24px 16px;
    background: rgba(6, 11, 26, 0.95);
    border-top: 1px solid var(--glass-border);
}
.hero-mobile-menu.open {
    display: flex;
}
.hero-mobile-menu a,
.hero-mobile-menu button {
    color: var(--text-2);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-sans);
}
.hero-mobile-menu a:hover,
.hero-mobile-menu button:hover {
    color: var(--cyan);
}

/* ── Hero Main Section ── */
.hero-section-main {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    text-align: center;
    overflow: hidden;
}

.hero-glow-2 {
    position: absolute;
    bottom: -200px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content-wrapper {
    max-width: 820px;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--cyan);
    margin-bottom: 20px;
    opacity: 0.8;
}

.hero-title-v2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-1);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title-accent {
    background: linear-gradient(135deg, #00d4ff 0%, #00ffc8 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle-v2 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Hero CTAs ── */
.hero-cta-row-v2 {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 14px;
    border: none;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #00d4ff, #0088ff);
    color: #fff;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 24px rgba(0, 212, 255, 0.25);
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 212, 255, 0.4);
}

.hero-cta-lg {
    padding: 20px 48px;
    font-size: 1.15rem;
}

.hero-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    border-radius: 14px;
    border: 1px solid rgba(0, 212, 255, 0.25);
    background: rgba(0, 212, 255, 0.04);
    color: var(--text-2);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}

.hero-cta-ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.08);
}

/* ── Orbit Chips ── */
.hero-orbit-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
}

.orbit-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 212, 255, 0.03);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    animation: chipReveal 0.5s ease-out forwards;
    animation-delay: var(--delay, 0s);
    transition: all 0.2s;
}

.orbit-chip:hover {
    border-color: var(--cyan-dim);
    background: rgba(0, 212, 255, 0.06);
    color: var(--text-1);
}

@keyframes chipReveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Social Proof Pills ── */
.hero-social-proof {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 48px;
    flex-wrap: wrap;
}

.hero-stat-pill {
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(8px);
}
.hero-stat-pill strong {
    color: var(--cyan);
    font-weight: 700;
}

/* ═══ Section Blocks ═══ */
.hero-section-block {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section-dark {
    max-width: 100%;
    background: linear-gradient(180deg, rgba(6, 11, 26, 0.6) 0%, rgba(13, 19, 51, 0.3) 50%, rgba(6, 11, 26, 0.6) 100%);
}
.hero-section-dark > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--cyan);
    margin-bottom: 16px;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.04);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--text-2);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ═══ Value Cards ═══ */
.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.value-card {
    padding: 32px 28px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: linear-gradient(160deg, rgba(10, 14, 39, 0.7), rgba(19, 26, 66, 0.3));
    transition: all 0.3s var(--ease);
}

.value-card:hover {
    border-color: var(--glass-border-bright);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), var(--glow);
}

.value-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.value-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 12px;
}

.value-desc {
    font-size: 0.95rem;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 16px;
}

.value-capabilities {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--cyan);
    letter-spacing: 0.5px;
    opacity: 0.7;
}

/* ═══ WOW Chain Cards ═══ */
.wow-chain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.wow-chain-card {
    padding: 32px 24px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: linear-gradient(160deg, rgba(10, 14, 39, 0.6), rgba(19, 26, 66, 0.25));
    transition: all 0.3s var(--ease);
}

.wow-chain-card:hover {
    border-color: var(--cyan-dim);
    box-shadow: var(--glow);
}

.wow-chain-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--cyan);
    margin-bottom: 16px;
}

.wow-chain-prompt {
    font-size: 0.95rem;
    color: var(--text-2);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 24px;
    padding-left: 12px;
    border-left: 2px solid var(--glass-border-bright);
}

.wow-chain-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.chain-step {
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid var(--glass-border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-1);
    white-space: nowrap;
}

.chain-arrow {
    color: var(--cyan);
    font-size: 16px;
    font-weight: 700;
}

/* ═══ Roles Grid ═══ */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.role-card {
    padding: 28px 24px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: linear-gradient(160deg, rgba(10, 14, 39, 0.6), rgba(19, 26, 66, 0.25));
    text-align: center;
    transition: all 0.3s var(--ease);
}

.role-card:hover {
    border-color: var(--glass-border-bright);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.role-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--role-color, var(--cyan));
}

.role-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 10px;
}

.role-card p {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.6;
}

/* ═══ Pricing V2 ═══ */
.pricing-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card-v2 {
    padding: 32px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(160deg, rgba(10, 14, 39, 0.7), rgba(19, 26, 66, 0.3));
    text-align: center;
    position: relative;
    transition: all 0.3s var(--ease);
}

.pricing-card-v2:hover {
    border-color: var(--glass-border-bright);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.pricing-featured {
    border-color: var(--cyan-dim);
    background: linear-gradient(160deg, rgba(0, 212, 255, 0.08), rgba(0, 136, 255, 0.04), rgba(10, 14, 39, 0.7));
    box-shadow: var(--glow);
}

.pricing-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00d4ff, #0088ff);
    color: var(--navy-deep);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 18px;
    border-radius: 100px;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.pricing-tier {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 12px;
}

.pricing-price-v2 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}
.pricing-price-v2 span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-3);
}

.pricing-coins-v2 {
    color: var(--cyan);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}
.pricing-features li {
    color: var(--text-2);
    font-size: 0.85rem;
    padding: 4px 0;
}
.pricing-features li::before {
    content: '✓ ';
    color: var(--cyan);
}

.pricing-cta-v2 {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.25);
    background: rgba(0, 212, 255, 0.06);
    color: var(--cyan);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}
.pricing-cta-v2:hover {
    background: rgba(0, 212, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.15);
}

.pricing-cta-featured {
    background: linear-gradient(135deg, #00d4ff, #0088ff);
    color: #fff;
    border: none;
}
.pricing-cta-featured:hover {
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.4);
}

/* ── Billing Toggle ── */
.billing-toggle {
    display: inline-flex;
    background: var(--glass);
    border-radius: 40px;
    padding: 4px;
    margin-top: 24px;
    border: 1px solid var(--glass-border);
}
.billing-toggle button {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 28px;
    border: none;
    border-radius: 36px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    color: var(--text-3);
    background: transparent;
}
.billing-toggle button.active {
    background: linear-gradient(135deg, var(--cyan), #0088cc);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}
.save-tag {
    display: inline-block;
    font-size: 10px;
    background: var(--green);
    color: #000;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ── Plan Subtitle & Annual Note ── */
.pricing-subtitle {
    font-size: 11px;
    color: var(--text-3);
    margin-bottom: 12px;
    min-height: 16px;
}
.pricing-annual-note {
    font-size: 11px;
    color: var(--text-3);
    margin-bottom: 8px;
    min-height: 14px;
}

/* ── Enterprise Gold Accent ── */
.pricing-enterprise {
    border-color: rgba(255, 193, 7, 0.25);
    background: linear-gradient(160deg, rgba(255, 193, 7, 0.06), rgba(10, 14, 39, 0.7));
}
.pricing-enterprise:hover {
    border-color: var(--gold);
}
.pricing-enterprise .pricing-tier {
    color: var(--gold);
}
.pricing-cta-gold {
    background: linear-gradient(135deg, #ffc107, #ff9800) !important;
    color: #000 !important;
    border: none !important;
}
.pricing-cta-gold:hover {
    box-shadow: 0 6px 24px rgba(255, 193, 7, 0.35) !important;
}

/* ── Compare Section Row Headers ── */
.compare-section-row td {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--cyan) !important;
    padding: 16px 12px 6px !important;
    border-bottom: none !important;
    background: rgba(0, 212, 255, 0.03);
    text-align: left !important;
}

/* ── Comparison Table ── */
.pricing-comparison-toggle {
    max-width: 1100px;
    margin: 40px auto 0;
    text-align: center;
}

.pricing-comparison-toggle summary {
    color: var(--cyan);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 12px;
    list-style: none;
}
.pricing-comparison-toggle summary::-webkit-details-marker { display: none; }
.pricing-comparison-toggle summary::marker { content: ''; }

.pricing-comparison-table-wrap {
    margin-top: 24px;
    overflow-x: auto;
}

.pricing-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: center;
}

.pricing-comparison-table th {
    padding: 12px 16px;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--cyan);
    border-bottom: 1px solid var(--glass-border-bright);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.pricing-comparison-table th:first-child {
    text-align: left;
}

.pricing-comparison-table td {
    padding: 10px 16px;
    color: var(--text-2);
    border-bottom: 1px solid var(--glass-border);
}
.pricing-comparison-table td:first-child {
    text-align: left;
    color: var(--text-1);
    font-weight: 500;
}

.pricing-comparison-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.03);
}

/* ═══ Trust Grid ═══ */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.trust-card {
    padding: 32px 24px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: linear-gradient(160deg, rgba(10, 14, 39, 0.6), rgba(19, 26, 66, 0.25));
    text-align: center;
    transition: all 0.3s var(--ease);
}

.trust-card:hover {
    border-color: var(--glass-border-bright);
    transform: translateY(-3px);
}

.trust-stat {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--cyan);
    text-shadow: 0 0 24px var(--cyan-dim);
    margin-bottom: 8px;
}

.trust-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-1);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.trust-desc {
    font-size: 0.85rem;
    color: var(--text-2);
    line-height: 1.6;
}

/* ═══ Testimonials ═══ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 28px 24px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: linear-gradient(160deg, rgba(10, 14, 39, 0.6), rgba(19, 26, 66, 0.2));
}

.testimonial-quote {
    font-size: 0.95rem;
    color: var(--text-2);
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border-bright);
    flex-shrink: 0;
}

.testimonial-author strong {
    color: var(--text-1);
    font-size: 14px;
}

.testimonial-author span {
    color: var(--text-3);
    font-size: 12px;
}

/* ═══ Final CTA ═══ */
.hero-final-cta {
    text-align: center;
    padding: 120px 24px;
    position: relative;
    overflow: hidden;
}

.hero-final-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-final-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.hero-final-sub {
    font-size: 1.1rem;
    color: var(--text-2);
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.hero-final-footnote {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-3);
    position: relative;
    z-index: 2;
}

/* ═══ Footer V2 ═══ */
.hero-footer-v2 {
    border-top: 1px solid var(--glass-border);
    padding: 40px 24px;
    background: rgba(6, 11, 26, 0.5);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cyan) 0%, var(--navy) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 12px;
    color: var(--navy-deep);
}

.footer-brand-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-1);
}

.footer-brand-tag {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-3);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--cyan);
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-3);
}
/* ═══ Scroll-Triggered Entrance Animations ═══ */
@keyframes revealUp {
    from { opacity: 0; transform: translateY(48px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes revealLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes revealRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes revealScale {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
.reveal {
    opacity: 0;
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-up          { transform: translateY(48px); }
.reveal-left        { transform: translateX(-60px); }
.reveal-right       { transform: translateX(60px); }
.reveal-scale       { transform: scale(0.85); }
/* Stagger children */
.reveal-stagger > * { opacity: 0; transform: translateY(32px); transition: all 0.6s var(--ease); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.6s; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ═══ Parallax / Fixed Background Sections ═══ */
.parallax-section {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.parallax-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.35);
    z-index: 0;
}
.parallax-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    padding: 60px 32px;
}
.parallax-overlay h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.parallax-overlay p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 28px;
}
.parallax-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    background: var(--gradient-btn);
    color: #fff;
    transition: all 0.3s var(--ease);
}
.parallax-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,212,255,0.3);
}

/* ═══ Horizontal Scroll Lifestyle Carousel ═══ */
.h-scroll-section {
    padding: 80px 0;
    overflow: hidden;
}
.h-scroll-header {
    text-align: center;
    padding: 0 32px;
    margin-bottom: 40px;
}
.h-scroll-track {
    display: flex;
    gap: 24px;
    padding: 0 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}
.h-scroll-track::-webkit-scrollbar { display: none; }
.h-scroll-card {
    flex: 0 0 420px;
    scroll-snap-align: start;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    transition: all 0.3s var(--ease);
}
.h-scroll-card:hover {
    border-color: var(--glass-border-bright);
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}
.h-scroll-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}
.h-scroll-card-body {
    padding: 24px;
}
.h-scroll-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px;
}
.h-scroll-card-body p {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.6;
}
.h-scroll-card-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(0,212,255,0.08);
    color: var(--cyan);
    border: 1px solid rgba(0,212,255,0.15);
}

/* ═══ Landing Page Mobile Responsive ═══ */

/* ── Hero Visual ── */
.hero-visual-wrap {
    margin-top: 56px;
    position: relative;
    z-index: 2;
    max-width: 740px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), var(--glow);
}
.hero-visual-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── WOW Showcase Grid ── */
.wow-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.wow-showcase-wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.wow-showcase-card {
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: linear-gradient(160deg, rgba(10, 14, 39, 0.7), rgba(19, 26, 66, 0.3));
    overflow: hidden;
    transition: all 0.3s var(--ease);
}
.wow-showcase-card:hover {
    border-color: var(--glass-border-bright);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), var(--glow);
    transform: translateY(-4px);
}
.wow-showcase-img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: rgba(0, 212, 255, 0.03);
}
.wow-showcase-wide .wow-showcase-img-wrap {
    aspect-ratio: auto;
    border-radius: 20px 0 0 20px;
}
.wow-showcase-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.3s, transform 0.5s;
}
.wow-showcase-card:hover .wow-showcase-img-wrap img {
    opacity: 1;
    transform: scale(1.03);
}
.wow-showcase-body {
    padding: 28px 24px;
}
.wow-showcase-proof {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(0, 255, 136, 0.04);
    border: 1px solid rgba(0, 255, 136, 0.15);
    color: #00ff88;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-mono);
}

/* ── 7-Plan Pricing Grid ── */
.pricing-grid-7 {
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 12px !important;
}
.pricing-grid-7 .pricing-card-v2 {
    padding: 24px 16px;
}
.pricing-grid-7 .pricing-tier {
    font-size: 1rem;
}
.pricing-grid-7 .pricing-price-v2 {
    font-size: 1.8rem;
}
.pricing-grid-7 .pricing-features li {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .hero-nav-links { display: none; }
    .hero-mobile-menu-btn { display: flex; }

    .hero-section-main { padding: 100px 20px 50px; min-height: auto; }
    .hero-title-v2 { font-size: clamp(1.6rem, 6vw, 2.6rem); }

    .value-grid { grid-template-columns: 1fr; }
    .wow-showcase-grid { grid-template-columns: 1fr; }
    .wow-showcase-wide { grid-template-columns: 1fr; }
    .wow-showcase-wide .wow-showcase-img-wrap { border-radius: 20px 20px 0 0; }
    .roles-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid-7 { grid-template-columns: repeat(3, 1fr) !important; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: 1fr; }

    .hero-section-block { padding: 60px 20px; }

    .parallax-bg { background-attachment: scroll; }
    .parallax-section { min-height: 380px; }
    .h-scroll-card { flex: 0 0 320px; }
    .hero-visual-wrap { max-width: 100%; margin-top: 36px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
    .pricing-grid-7 { grid-template-columns: 1fr !important; }
    .trust-grid { grid-template-columns: 1fr; }
    .roles-grid { grid-template-columns: 1fr; }

    .hero-cta-row-v2 { flex-direction: column; align-items: stretch; }
    .hero-cta-primary,
    .hero-cta-ghost { width: 100%; justify-content: center; }

    .hero-orbit-chips { gap: 6px; }
    .orbit-chip { font-size: 11px; padding: 6px 12px; }
}

/* ═══════════════════════════════════════════════════════════ */
/* DESKTOP POWER — Premium Device Panel                       */
/* ═══════════════════════════════════════════════════════════ */

/* ─── Header companion badge ──────────────────────────────── */
.companion-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.15);
    font-size: 11px;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    color: var(--text-3);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}
.companion-status:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--cyan);
}
.companion-status.online {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
    color: #22c55e;
}
.companion-status .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-3);
    transition: all 0.3s;
}
.companion-status.online .status-dot {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: dp-pulse 2s infinite;
}
@keyframes dp-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 12px rgba(34, 197, 94, 0.8); }
}

/* ─── Desktop Power Status Card ──────────────────────────── */
.dp-status-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(34, 197, 94, 0.03));
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    transition: border-color 0.3s;
}
.dp-status-card.online {
    border-color: rgba(34, 197, 94, 0.35);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.06), rgba(0, 212, 255, 0.03));
}
.dp-status-card.error {
    border-color: rgba(239, 68, 68, 0.3);
}
.dp-status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.dp-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-3);
    flex-shrink: 0;
    transition: all 0.3s;
}
.dp-status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    animation: dp-pulse 2s infinite;
}
.dp-status-dot.error {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}
.dp-status-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
    font-family: var(--font-mono);
    letter-spacing: 1px;
}
.dp-status-badge {
    margin-left: auto;
    font-size: 10px;
    font-family: var(--font-mono);
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-3);
    transition: all 0.3s;
}
.dp-status-badge.online {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.08);
}
.dp-status-body {
    display: grid;
    gap: 8px;
}
.dp-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}
.dp-status-label {
    font-size: 12px;
    color: var(--text-2);
}
.dp-status-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-1);
    font-family: var(--font-mono);
}

/* ─── Section Labels ─────────────────────────────────────── */
.dp-section-label {
    font-size: 11px;
    font-family: var(--font-mono);
    letter-spacing: 2px;
    color: var(--cyan);
    font-weight: 700;
    margin: 16px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

/* ─── QR Pairing Section ─────────────────────────────────── */
.dp-qr-section {
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    padding: 14px;
}
.dp-qr-hint {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 6px;
}
.dp-pair-input {
    flex: 1;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 10px;
    outline: none;
}
.dp-copy-btn {
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--cyan);
    font-size: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    transition: all 0.2s;
}
.dp-copy-btn:hover {
    background: rgba(0, 212, 255, 0.2);
}
.dp-generate-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(34, 197, 94, 0.08));
    color: var(--cyan);
    border-radius: 10px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
}
.dp-generate-link-btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(34, 197, 94, 0.12));
    border-color: rgba(0, 212, 255, 0.35);
}