/* ═══════════════════════════════════════════════════
   VOICEVOX-読み上げさん — V3 Immersive UI
   Custom cursor, Spotlight, 3D tilt, Sound waves,
   Neon glow, Marquee, Particles, Bento grid
   ═══════════════════════════════════════════════════ */

/* ─── Reset & Variables ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

:root {
    --bg: #030014;
    --bg-surface: rgba(10, 8, 32, 0.65);
    --bg-surface-hover: rgba(18, 14, 50, 0.8);
    --border: rgba(120, 100, 255, 0.07);
    --border-hover: rgba(120, 100, 255, 0.2);
    --text: #f0eef8;
    --text-dim: #9390b0;
    --text-muted: #8583a8;
    --accent-1: #7c5cff;
    --accent-2: #00d4ff;
    --accent-3: #ff6bca;
    --accent-4: #34d399;
    --gradient: linear-gradient(135deg, #7c5cff, #00d4ff, #ff6bca);
    --gradient-neon: linear-gradient(135deg, #7c5cff 0%, #00d4ff 40%, #ff6bca 100%);
    --radius: 20px;
    --radius-sm: 12px;
    --font: 'Inter', 'Noto Sans JP', -apple-system, sans-serif;
    --nav-h: 72px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none;
}

a { color: inherit; text-decoration: none; cursor: none; }
img { display: block; max-width: 100%; }
code {
    background: rgba(124,92,255,0.15);
    padding: 2px 8px; border-radius: 6px;
    font-size: 0.85em;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    color: var(--accent-2);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* ─── Noise Overlay ─── */
.noise-overlay {
    position: fixed; inset: 0; z-index: 9999; pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* ─── Custom Cursor ─── */
.cursor-dot {
    position: fixed; top: 0; left: 0; z-index: 10001; pointer-events: none;
    width: 8px; height: 8px; border-radius: 50%;
    background: #fff;
    will-change: transform;
    transition: width 0.2s var(--ease-spring), height 0.2s var(--ease-spring), background 0.2s;
    mix-blend-mode: difference;
}
.cursor-ring {
    position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.4);
    will-change: transform;
    transition: width 0.35s var(--ease-spring), height 0.35s var(--ease-spring), border-color 0.3s, opacity 0.3s;
    mix-blend-mode: difference;
}
body.cursor-hover .cursor-dot { width: 14px; height: 14px; background: var(--accent-2); }
body.cursor-hover .cursor-ring { width: 60px; height: 60px; border-color: var(--accent-2); opacity: 0.5; }

/* ─── Mouse Spotlight ─── */
.mouse-spotlight {
    position: fixed; z-index: 0; pointer-events: none;
    left: 0; top: 0;
    width: 800px; height: 800px; border-radius: 50%;
    background: radial-gradient(circle, rgba(124,92,255,0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.5s;
    opacity: 0;
    will-change: transform;
    contain: layout style;
}
.mouse-spotlight.active { opacity: 1; }

/* ─── Scroll Progress ─── */
.scroll-progress {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
    height: 3px;
    background: var(--gradient-neon);
    transform-origin: left;
    transform: scaleX(0);
    will-change: transform;
    box-shadow: 0 0 10px rgba(124,92,255,0.5), 0 0 30px rgba(0,212,255,0.3);
}

/* ─── Text shimmer (gradient text) ─── */
.text-shimmer {
    background: linear-gradient(90deg, var(--accent-1) 0%, var(--accent-2) 40%, var(--accent-3) 60%, var(--accent-1) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: -100% center; }
}

/* ─── Hero CSS-only animation (no JS dependency for LCP) ─── */
.hero-reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: hero-appear 0.7s var(--ease-out-expo) forwards;
}
@keyframes hero-appear {
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Reveal Animation ─── */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════
   Navbar
   ═══════════════════ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--nav-h);
    background: rgba(3, 0, 20, 0.3);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transition: all 0.4s;
}
.navbar.scrolled {
    background: rgba(3, 0, 20, 0.9);
    box-shadow: 0 4px 40px rgba(124,92,255,0.08);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; white-space: nowrap; overflow: hidden; min-width: 0; }
.nav-logo span { overflow: hidden; text-overflow: ellipsis; }
.nav-logo-img { width: 36px; height: 36px; border-radius: 50%; }
.nav-links { display: flex; gap: 32px; }
.mobile-section-label { display: none; }
.nav-link-icon { display: none; }
.nav-links a {
    font-size: 0.88rem; font-weight: 600; color: var(--text-dim);
    transition: color 0.3s; position: relative; padding: 4px 0;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px;
    background: var(--gradient-neon); border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-btn-outline {
    padding: 8px 16px; border-radius: 10px; font-size: 0.82rem; font-weight: 600;
    border: 1px solid var(--border-hover); color: var(--text-dim);
    display: inline-flex; align-items: center; gap: 6px;
    transition: all 0.3s;
}
.nav-btn-outline:hover { color: var(--text); border-color: rgba(124,92,255,0.4); background: rgba(124,92,255,0.08); }

/* Glowing nav CTA */
.nav-btn-glow {
    position: relative; padding: 8px 20px; border-radius: 10px; font-size: 0.82rem; font-weight: 700;
    color: #fff; overflow: hidden; display: inline-flex; align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.nav-btn-glow::before {
    content: ''; position: absolute; inset: 0;
    background: var(--gradient-neon); border-radius: 10px;
    z-index: 0;
}
.nav-btn-glow::after {
    content: ''; position: absolute; inset: 1px;
    background: linear-gradient(135deg, rgba(124,92,255,0.9), rgba(0,212,255,0.9));
    border-radius: 9px; z-index: 1;
}
.nav-btn-glow span { position: relative; z-index: 2; white-space: nowrap; }
.nav-btn-glow:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(124,92,255,0.4); }

/* Mobile toggle */
.mobile-toggle {
    display: none; background: none; border: none; cursor: pointer; padding: 8px;
    width: 40px; height: 40px; border-radius: 10px;
    align-items: center; justify-content: center;
    color: var(--text-dim); font-size: 1.4rem;
    transition: color 0.3s, background 0.3s;
}
.mobile-toggle:hover { color: var(--text); background: rgba(124,92,255,0.08); }
.mobile-toggle i { transition: transform 0.3s var(--ease-out-expo); }
.mobile-toggle.open i { transform: rotate(90deg); }
.mobile-nav-actions { display: none; }

/* ═══════════════════
   Hero
   ═══════════════════ */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding-top: var(--nav-h); overflow: hidden;
}

/* Particle canvas */
.hero-particles {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
}

/* Sound wave */
.sound-wave {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
    height: 200px; opacity: 0.15; pointer-events: none;
}
.sound-wave svg { width: 100%; height: 100%; }
.wave-path {
    fill: none; stroke-width: 1.5; stroke-linecap: round;
}
.wave-1 { stroke: var(--accent-1); opacity: 0.6; }
.wave-2 { stroke: var(--accent-2); opacity: 0.4; }
.wave-3 { stroke: var(--accent-3); opacity: 0.3; }

.hero-inner {
    position: relative; z-index: 10;
    display: flex; align-items: center; gap: 80px;
    max-width: 1200px; margin: 0 auto; padding: 60px 24px 100px;
    width: 100%;
}
.hero-content { flex: 1; min-width: 0; }

/* Badge */
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(52, 211, 153, 0.06); border: 1px solid rgba(52, 211, 153, 0.18);
    padding: 6px 18px; border-radius: 20px;
    font-size: 0.82rem; font-weight: 600; color: var(--accent-4);
    margin-bottom: 28px;
}
.hero-badge strong { font-weight: 800; }
.live-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent-4);
    box-shadow: 0 0 12px rgba(52,211,153,0.6);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.7)} }

/* Hero title with per-line animation */
.hero-title { margin-bottom: 24px; }
.title-line {
    display: block;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900; line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero-desc {
    font-size: clamp(0.92rem, 1.8vw, 1.05rem);
    color: var(--text-dim); max-width: 560px; margin-bottom: 32px; line-height: 1.9;
}
.hero-desc strong { color: var(--text); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

/* Neon button */
.btn-neon {
    position: relative; display: inline-flex; align-items: center;
    padding: 15px 32px; border-radius: 14px; overflow: hidden;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.btn-neon-bg {
    position: absolute; inset: 0;
    background: var(--gradient-neon);
    border-radius: 14px;
    transition: opacity 0.3s;
}
.btn-neon::before {
    content: ''; position: absolute; inset: -2px;
    background: var(--gradient-neon);
    border-radius: 16px; z-index: -1;
    filter: blur(12px); opacity: 0.4;
    transition: opacity 0.3s;
}
.btn-neon:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(124,92,255,0.35); }
.btn-neon:hover::before { opacity: 0.7; }
.btn-neon-text {
    position: relative; z-index: 2; font-weight: 700; font-size: 0.95rem;
    color: #fff; display: flex; align-items: center; gap: 8px; white-space: nowrap;
}

/* Glass button */
.btn-glass {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 15px 32px; border-radius: 14px; font-weight: 600; font-size: 0.95rem;
    border: 1px solid var(--border-hover); color: var(--text-dim);
    backdrop-filter: blur(8px);
    transition: all 0.3s;
}
.btn-glass:hover { color: var(--text); border-color: rgba(124,92,255,0.4); background: rgba(124,92,255,0.08); }

/* Hero stat pills */
.hero-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-pill {
    display: flex; flex-direction: column; align-items: center;
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 12px 20px; min-width: 100px;
    transition: all 0.3s;
}
.stat-pill:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.stat-pill-num { font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.stat-pill-label { font-size: 0.68rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-pill-accent { border-color: rgba(124,92,255,0.25); background: rgba(124,92,255,0.06); }
.stat-pill-accent .stat-pill-num { color: var(--accent-2); }

/* 3D Tilt Card */
.hero-visual { flex-shrink: 0; width: 360px; display: flex; justify-content: center; perspective: 1000px; }
.tilt-card {
    position: relative; transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}
.tilt-card-inner {
    position: relative;
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: 24px; padding: 28px;
    backdrop-filter: blur(16px); overflow: hidden;
    transform-style: preserve-3d;
}
.tilt-card-shine {
    position: absolute; inset: 0; z-index: 3;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    border-radius: 24px; opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.tilt-card:hover .tilt-card-shine { opacity: 1; }
.tilt-card-img {
    width: 300px; height: auto; border-radius: 16px;
    position: relative; z-index: 2;
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.4));
    transform: translateZ(30px);
}
.tilt-card-glow {
    position: absolute; inset: -60%; z-index: 0;
    background: radial-gradient(circle at 50% 80%, rgba(124,92,255,0.2), transparent 60%);
    animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse { 0%,100%{opacity:0.5} 50%{opacity:1} }

/* Scroll indicator */
.scroll-indicator {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--text-muted); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    animation: fade-in-up 1s 1.5s both;
}
@keyframes fade-in-up { from{opacity:0;transform:translateX(-50%) translateY(10px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }
.scroll-mouse {
    width: 24px; height: 40px; border: 2px solid rgba(124,92,255,0.25); border-radius: 12px;
    display: flex; justify-content: center; padding-top: 8px;
}
.scroll-wheel {
    width: 3px; height: 10px; background: var(--accent-1); border-radius: 2px;
    animation: scroll-bounce 1.6s ease-in-out infinite;
}
@keyframes scroll-bounce { 0%,100%{transform:translateY(0);opacity:1} 50%{transform:translateY(10px);opacity:0.2} }

/* ═══════════════════
   Marquee
   ═══════════════════ */
.marquee-band {
    padding: 18px 0; overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(124,92,255,0.02);
    position: relative;
}
.marquee-band::before,
.marquee-band::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.marquee-band::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-band::after  { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.section-dark + .marquee-band::before { background: linear-gradient(90deg, rgba(10,8,32,0.5), transparent); }
.section-dark + .marquee-band::after  { background: linear-gradient(270deg, rgba(10,8,32,0.5), transparent); }
.marquee-track {
    display: flex; gap: 40px; align-items: center;
    white-space: nowrap;
    width: max-content;
}
.marquee-track.animate { animation: marquee var(--marquee-duration, 40s) linear infinite; }
.marquee-reverse .marquee-track.animate { animation-direction: reverse; }
.marquee-track span {
    font-size: 0.85rem; font-weight: 700; color: var(--text-dim);
    letter-spacing: 0.04em;
}
.marquee-dot { color: var(--accent-1); font-size: 0.5rem; opacity: 0.3; }

/* Live stat highlights in marquee */
.marquee-stat {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em;
}
.marquee-stat-icon { font-size: 1rem; opacity: 0.7; }
.marquee-stat-val { color: var(--accent-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.marquee-stat-label { color: var(--text-dim); }

@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ═══════════════════
   Sections
   ═══════════════════ */
.section { padding: 120px 0; position: relative; }
.section-dark {
    background: linear-gradient(180deg, rgba(10,8,32,0.5) 0%, rgba(3,0,20,0) 100%);
}
.section-head { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.75rem; font-weight: 700; color: var(--accent-1);
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px;
}
.section-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900;
    line-height: 1.25; margin-bottom: 12px;
}
.section-sub { color: var(--text-dim); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

/* ─── Horizontal Scroll Feature Cards ─── */
.hscroll-wrap {
    width: 100%; overflow-x: auto; overflow-y: hidden;
    padding: 20px 0 40px;
    -ms-overflow-style: none; scrollbar-width: none;
    cursor: grab;
}
.hscroll-wrap::-webkit-scrollbar { display: none; }
.hscroll-wrap:active { cursor: grabbing; }
.hscroll-track {
    display: flex; gap: 24px;
    padding: 0 max(24px, calc((100vw - 1200px)/2 + 24px));
    width: max-content;
}

.feat-card-3d {
    position: relative; width: 340px; flex-shrink: 0;
    border-radius: var(--radius); overflow: hidden;
    perspective: 600px;
    transition: transform 0.4s var(--ease-out-expo);
}
.feat-card-3d:hover { transform: translateY(-8px); }

/* Animated gradient border (composited: conic-gradient + rotate) */
.feat-card-border {
    position: absolute; inset: 0; z-index: 0;
    border-radius: var(--radius);
    padding: 1px;
    overflow: hidden;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.feat-card-border::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
    will-change: transform;
    animation: border-spin 6s linear infinite;
}
@keyframes border-spin {
    to { transform: rotate(360deg); }
}

.feat-card-content {
    position: relative; z-index: 1;
    background: var(--bg-surface);
    border-radius: var(--radius); padding: 36px 28px;
    height: 100%;
    backdrop-filter: blur(12px);
}
.feat-icon-wrap {
    width: 56px; height: 56px; border-radius: 16px;
    background: color-mix(in srgb, var(--c, #7c5cff) 12%, transparent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--c, #7c5cff);
    margin-bottom: 20px;
}
.feat-card-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.feat-card-content p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.8; }

/* ─── Bento Grid ─── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.bento-item {
    position: relative; overflow: hidden;
    display: flex; align-items: flex-start; gap: 16px;
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 24px;
    transition: all 0.4s var(--ease-out-expo);
}
.bento-item:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.bento-wide { grid-column: span 2; }
.bento-glow {
    position: absolute; top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 70% 30%, rgba(124,92,255,0.06), transparent 60%);
    pointer-events: none; transition: opacity 0.4s;
    opacity: 0;
}
.bento-item:hover .bento-glow { opacity: 1; }
.bento-item > i {
    font-size: 1.5rem; flex-shrink: 0;
    width: 48px; height: 48px; border-radius: 14px;
    background: rgba(124,92,255,0.06);
    display: flex; align-items: center; justify-content: center;
}
.bento-text { display: flex; flex-direction: column; }
.bento-text strong { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.bento-text span { font-size: 0.82rem; color: var(--text-dim); line-height: 1.6; }

/* ─── Stats: Glow Cards ─── */
.stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 16px;
    margin-bottom: 28px;
}
.glow-card {
    position: relative; overflow: hidden;
    border-radius: var(--radius); padding: 2px;
    transition: transform 0.4s var(--ease-out-expo);
}
.glow-card:hover { transform: translateY(-4px); }
.glow-card-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--gc) 30%, transparent), color-mix(in srgb, var(--gc) 8%, transparent));
    border-radius: var(--radius);
    opacity: 0.5;
    transition: opacity 0.4s;
}
.glow-card:hover .glow-card-bg { opacity: 1; }
.glow-card-inner {
    position: relative; z-index: 1;
    background: var(--bg-surface);
    border-radius: calc(var(--radius) - 2px);
    padding: 24px; text-align: center;
    backdrop-filter: blur(12px);
    height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.glow-card-inner > i {
    font-size: 1.8rem; color: var(--gc, var(--accent-1));
    margin-bottom: 10px; display: block;
}
.glow-card-num { display: block; font-size: 1.8rem; font-weight: 900; line-height: 1.2; }
.glow-card-label {
    display: block; font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px;
}
.glow-card-sub {
    display: block; font-size: 0.65rem; color: var(--text-muted); opacity: 0.7; margin-top: 2px;
}

/* Charts */
.charts-row {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
    margin-bottom: 24px;
}
.chart-glass {
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: border-color 0.3s;
    backdrop-filter: blur(12px);
}
.chart-glass:hover { border-color: var(--border-hover); }
.chart-glass-header { padding: 18px 24px 0; }
.chart-glass-header h3 {
    font-size: 0.9rem; font-weight: 700;
    display: flex; align-items: center; gap: 8px; color: var(--text-dim);
}
.chart-glass-header h3 i { color: var(--accent-1); }
.chart-glass-body { padding: 12px 18px 18px; position: relative; height: 230px; }
.chart-glass-body canvas { width: 100% !important; height: 100% !important; }

/* Dashboard links */
.dash-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dash-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px 24px;
    transition: all 0.3s; cursor: none;
}
.dash-card:hover { border-color: var(--border-hover); background: var(--bg-surface-hover); transform: translateY(-2px); }
.dash-card-icon {
    width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
    background: color-mix(in srgb, var(--gc, var(--accent-1)) 10%, transparent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--gc, var(--accent-1));
}
.dash-card div { flex: 1; }
.dash-card strong { display: block; font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.dash-card span { display: block; font-size: 0.8rem; color: var(--text-dim); }
.dash-card > i:last-child { font-size: 1.2rem; color: var(--text-muted); transition: color 0.2s; flex-shrink: 0; }
.dash-card:hover > i:last-child { color: var(--accent-1); }

/* ─── Timeline (How it works) ─── */
.timeline {
    position: relative; max-width: 600px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 40px;
}
.timeline-line {
    position: absolute; left: 24px; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(180deg, var(--accent-1), var(--accent-2), var(--accent-3));
    opacity: 0.2;
}
.timeline-step {
    display: flex; align-items: flex-start; gap: 24px;
    position: relative;
}
.timeline-marker {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    background: var(--gradient-neon);
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 2;
    box-shadow: 0 0 20px rgba(124,92,255,0.3);
}
.timeline-marker span { font-size: 1.2rem; font-weight: 900; color: #fff; }
.timeline-content {
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 20px 24px; flex: 1;
    backdrop-filter: blur(12px); transition: all 0.3s;
}
.timeline-content:hover { border-color: var(--border-hover); }
.timeline-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.timeline-content p { color: var(--text-dim); font-size: 0.9rem; }
.steps-hint {
    text-align: center; margin-top: 48px;
    color: var(--text-dim); font-size: 0.92rem;
}

/* ─── Commands ─── */
.cmd-tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 32px; }
.cmd-tab {
    padding: 10px 24px; border-radius: 10px; font-size: 0.85rem; font-weight: 600;
    background: rgba(124,92,255,0.06); border: 1px solid var(--border);
    color: var(--text-dim); cursor: none; display: inline-flex; align-items: center; gap: 6px;
    transition: all 0.3s;
}
.cmd-tab:hover { border-color: var(--border-hover); color: var(--text); }
.cmd-tab.active {
    background: var(--gradient-neon); color: #fff; border-color: transparent;
    box-shadow: 0 4px 20px rgba(124,92,255,0.3);
}
.cmd-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.cmd-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 14px 18px;
    transition: all 0.3s;
    opacity: 0; transform: translateY(16px);
    animation: cmdSlideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--cmd-delay, 0s);
}
.cmd-item:hover { border-color: var(--border-hover); transform: translateX(4px); }
@keyframes cmdSlideIn {
    0%   { opacity: 0; transform: translateY(16px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cmd-item code { flex-shrink: 0; font-size: 0.82rem; padding: 4px 10px; }
.cmd-item span { flex: 1; color: var(--text-dim); font-size: 0.84rem; }
.cmd-copy {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
    background: rgba(124,92,255,0.06); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); cursor: none; font-size: 0.9rem; transition: all 0.2s;
}
.cmd-copy:hover { color: var(--accent-2); border-color: var(--border-hover); }
.cmd-copy.copied { background: var(--accent-4); color: #fff; border-color: var(--accent-4); }

/* ─── FAQ: Morphing Accordion ─── */
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-item.open {
    border-color: rgba(124,92,255,0.35);
    background: rgba(18, 14, 50, 0.8);
    box-shadow: 0 8px 30px rgba(124,92,255,0.08);
}
.faq-trigger {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 20px 24px; cursor: none;
    font-weight: 600; font-size: 0.95rem;
    background: none; border: none; color: var(--text);
    font-family: inherit; text-align: left; line-height: 1.5;
}

/* Custom + / × icon */
.faq-icon {
    position: relative; width: 20px; height: 20px; flex-shrink: 0; margin-left: 16px;
}
.faq-icon span {
    position: absolute; background: var(--text-dim); border-radius: 2px;
    transition: all 0.4s var(--ease-out-expo);
}
.faq-icon span:first-child { width: 20px; height: 2px; top: 9px; left: 0; }
.faq-icon span:last-child { width: 2px; height: 20px; top: 0; left: 9px; }
.faq-item.open .faq-icon span:first-child { background: var(--accent-2); }
.faq-item.open .faq-icon span:last-child {
    transform: rotate(90deg); opacity: 0; background: var(--accent-2);
}

.faq-body {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.5s var(--ease-out-expo), opacity 0.35s ease;
}
.faq-item.open .faq-body { grid-template-rows: 1fr; opacity: 1; }
.faq-body-inner {
    overflow: hidden;
    padding: 0 24px; color: var(--text-dim); font-size: 0.9rem; line-height: 1.8;
    transform: translateY(-6px);
    transition: transform 0.4s var(--ease-out-expo);
}
.faq-item.open .faq-body-inner { padding-bottom: 20px; transform: translateY(0); }
.faq-body-inner a { color: var(--accent-2); text-decoration: underline; }

/* ─── CTA ─── */
.section-cta {
    position: relative; padding: 120px 0; overflow: hidden; text-align: center;
}
.cta-particles {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.cta-inner { position: relative; z-index: 10; }
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 16px; }
.cta-inner p { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════
   Footer (contrast-fixed --text-muted)
   ═══════════════════ */
.footer { border-top: 1px solid var(--border); padding: 48px 0 32px; --text-muted: #9e9cc4; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-icon { width: 40px; height: 40px; border-radius: 10px; }
.footer-brand strong { display: block; font-size: 0.95rem; font-weight: 700; }
.footer-brand span { font-size: 0.75rem; color: var(--text-muted); }
.footer-links-grid { display: flex; gap: 56px; }
.footer-links-grid h3 { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-links-grid a { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 8px; transition: color 0.2s; }
.footer-links-grid a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }
.footer-note { margin-top: 6px; font-size: 0.7rem !important; }

/* ═══════════════════
   Responsive
   ═══════════════════ */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-wide { grid-column: span 2; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .hero-inner { flex-direction: column; text-align: center; gap: 50px; padding-bottom: 80px; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-desc br { display: none; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { width: 280px; }
    .charts-row { grid-template-columns: 1fr; }
    .dash-row { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    /* Disable custom cursor on mobile */
    body { cursor: auto; }
    body * { cursor: auto !important; }
    .cursor-dot, .cursor-ring, .mouse-spotlight { display: none !important; }

    /* ─ Nav ─ */
    .nav-logo { font-size: 0.88rem; gap: 8px; }
    .nav-logo-img { width: 30px; height: 30px; }
    .nav-btn-outline, .nav-btn-glow { display: none; }
    .mobile-toggle { display: flex; }

    /* Mobile menu backdrop */
    .mobile-backdrop {
        position: fixed; inset: 0; top: var(--nav-h);
        background: rgba(3,0,20,0.6);
        backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
        z-index: 998; opacity: 0; visibility: hidden;
        transition: opacity 0.35s, visibility 0.35s;
    }
    .mobile-backdrop.open { opacity: 1; visibility: visible; }

    /* Mobile slide panel */
    .nav-links {
        display: flex; position: fixed; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column;
        background: rgba(6,2,28,0.98);
        padding: 0 20px 24px;
        border-bottom: 1px solid rgba(124,92,255,0.12);
        gap: 0;
        backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
        z-index: 999;
        transform: translateY(-10px);
        opacity: 0; visibility: hidden;
        transition: transform 0.4s var(--ease-out-expo),
                    opacity 0.35s ease,
                    visibility 0.35s;
        max-height: calc(100dvh - var(--nav-h));
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1; visibility: visible;
    }

    /* Section label */
    .mobile-section-label {
        font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
        letter-spacing: 0.1em; color: var(--text-muted);
        padding: 20px 4px 8px;
    }

    /* Nav link items */
    .nav-links a[data-nav] {
        display: flex; align-items: center; gap: 12px;
        padding: 14px 16px; border-radius: 14px;
        font-size: 0.92rem; font-weight: 600;
        color: var(--text-dim);
        transition: all 0.25s;
        transform: translateX(-12px);
        opacity: 0;
        position: relative;
    }
    .nav-links.open a[data-nav] {
        transform: translateX(0); opacity: 1;
    }
    .nav-links a[data-nav]:nth-child(1) { transition-delay: 0.04s; }
    .nav-links a[data-nav]:nth-child(2) { transition-delay: 0.08s; }
    .nav-links a[data-nav]:nth-child(3) { transition-delay: 0.12s; }
    .nav-links a[data-nav]:nth-child(4) { transition-delay: 0.16s; }
    .nav-links a[data-nav]:nth-child(5) { transition-delay: 0.20s; }

    .nav-links a[data-nav] .nav-link-icon {
        display: flex; align-items: center; justify-content: center;
        width: 36px; height: 36px; border-radius: 10px;
        background: rgba(124,92,255,0.06);
        border: 1px solid var(--border);
        font-size: 1.05rem; color: var(--accent-1);
        flex-shrink: 0;
        transition: all 0.25s;
    }
    .nav-links a[data-nav]:active {
        background: rgba(124,92,255,0.08);
        transform: scale(0.98);
    }
    .nav-links a[data-nav]:hover .nav-link-icon,
    .nav-links a[data-nav].active .nav-link-icon {
        background: rgba(124,92,255,0.15);
        border-color: rgba(124,92,255,0.3);
        box-shadow: 0 0 16px rgba(124,92,255,0.15);
    }
    .nav-links a[data-nav].active {
        color: var(--text);
    }
    .nav-links a[data-nav].active::before {
        content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
        width: 3px; height: 20px; border-radius: 3px;
        background: var(--gradient-neon);
    }

    /* Mobile nav bottom actions */
    .mobile-nav-actions {
        display: flex; flex-direction: column; gap: 10px;
        margin-top: 16px; padding-top: 18px;
        border-top: 1px solid rgba(124,92,255,0.1);
        transform: translateY(8px); opacity: 0;
        transition: all 0.4s var(--ease-out-expo) 0.22s;
    }
    .nav-links.open .mobile-nav-actions {
        transform: translateY(0); opacity: 1;
    }
    .mobile-nav-actions a {
        display: flex; align-items: center; justify-content: center; gap: 10px;
        padding: 14px 20px; border-radius: 14px;
        font-size: 0.9rem; font-weight: 600;
        transition: all 0.2s;
    }
    .mobile-nav-actions .mobile-nav-dash {
        background: rgba(124,92,255,0.06);
        border: 1px solid rgba(124,92,255,0.12);
        color: var(--text-dim);
    }
    .mobile-nav-actions .mobile-nav-dash:active {
        background: rgba(124,92,255,0.15);
    }
    .mobile-nav-actions .mobile-nav-add {
        background: var(--gradient-neon); color: #fff;
        box-shadow: 0 4px 20px rgba(124,92,255,0.25);
    }
    .mobile-nav-actions .mobile-nav-add:active {
        transform: scale(0.98);
        box-shadow: 0 2px 12px rgba(124,92,255,0.3);
    }

    /* Body scroll lock */
    body.menu-open { overflow: hidden; }

    /* ─ Hero ─ */
    .hero { min-height: auto; }
    .hero-inner { padding: 40px 20px 60px; gap: 36px; }
    .hero-badge { font-size: 0.78rem; padding: 5px 14px; margin-bottom: 20px; }
    .hero-title .title-line { font-size: clamp(1.7rem, 8vw, 2.2rem); }
    .hero-desc { font-size: 0.9rem; margin-bottom: 24px; line-height: 1.8; }
    .hero-desc br { display: none; }
    .hero-actions { gap: 10px; }
    .btn-neon { padding: 13px 24px; border-radius: 12px; }
    .btn-neon-text { font-size: 0.88rem; }
    .btn-glass { padding: 13px 24px; border-radius: 12px; font-size: 0.88rem; }
    .hero-stats { gap: 6px; }
    .stat-pill { padding: 10px 14px; min-width: 80px; }
    .stat-pill-num { font-size: 1rem; }
    .stat-pill-label { font-size: 0.62rem; }
    .hero-visual { width: 220px; }
    .tilt-card-inner { padding: 20px; }
    .tilt-card-img { width: 180px; }
    .scroll-indicator { display: none; }

    /* ─ Marquee ─ */
    .marquee-band { padding: 14px 0; }
    .marquee-track { gap: 28px; }
    .marquee-track span, .marquee-stat { font-size: 0.78rem; }

    /* ─ Sections ─ */
    .section { padding: 80px 0; }
    .section-head { margin-bottom: 40px; }
    .section-head h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
    .section-sub { font-size: 0.92rem; }
    .container { padding: 0 16px; }

    /* ─ Feature cards ─ */
    .feat-card-3d { width: 280px; }
    .feat-card-content { padding: 28px 22px; }
    .feat-card-content h3 { font-size: 1.05rem; }
    .feat-card-content p { font-size: 0.85rem; }

    /* ─ Bento ─ */
    .bento-grid { grid-template-columns: 1fr; gap: 10px; }
    .bento-wide { grid-column: span 1; }
    .bento-item { padding: 18px; gap: 14px; }
    .bento-item > i { width: 42px; height: 42px; font-size: 1.3rem; border-radius: 12px; }
    .bento-text strong { font-size: 0.9rem; }
    .bento-text span { font-size: 0.8rem; }

    /* ─ Stats grid ─ */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .glow-card-inner { padding: 18px 14px; }
    .glow-card-inner > i { font-size: 1.4rem; margin-bottom: 6px; }
    .glow-card-num { font-size: 1.4rem; }
    .glow-card-label { font-size: 0.65rem; letter-spacing: 0.04em; }

    /* ─ Charts ─ */
    .chart-glass-header { padding: 14px 18px 0; }
    .chart-glass-header h3 { font-size: 0.82rem; }
    .chart-glass-body { height: 200px; padding: 10px 14px 14px; }

    /* ─ Dashboard cards ─ */
    .dash-card { padding: 18px; gap: 12px; }
    .dash-card-icon { width: 42px; height: 42px; }
    .dash-card strong { font-size: 0.92rem; }

    /* ─ Timeline ─ */
    .timeline { gap: 28px; }
    .timeline-marker { width: 40px; height: 40px; }
    .timeline-marker span { font-size: 1rem; }
    .timeline-line { left: 20px; }
    .timeline-content { padding: 16px 18px; }
    .timeline-content h3 { font-size: 0.95rem; }
    .timeline-content p { font-size: 0.85rem; }
    .steps-hint { font-size: 0.85rem; margin-top: 32px; }

    /* ─ Commands ─ */
    .cmd-tabs { gap: 4px; margin-bottom: 24px; }
    .cmd-tab { padding: 9px 16px; font-size: 0.8rem; }
    .cmd-list { grid-template-columns: 1fr; gap: 8px; }
    .cmd-item { padding: 12px 14px; gap: 10px; }
    .cmd-item code { font-size: 0.78rem; padding: 3px 8px; }
    .cmd-item span { font-size: 0.8rem; }
    .cmd-copy { width: 28px; height: 28px; font-size: 0.82rem; }

    /* ─ FAQ ─ */
    .faq-trigger { padding: 16px 18px; font-size: 0.9rem; }
    .faq-body-inner { padding: 0 18px; font-size: 0.85rem; }
    .faq-item.open .faq-body-inner { padding-bottom: 16px; }

    /* ─ CTA ─ */
    .section-cta { padding: 80px 0; }
    .cta-inner h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
    .cta-inner p { font-size: 0.92rem; margin-bottom: 28px; }
    .cta-actions { flex-direction: column; align-items: center; gap: 10px; }
    .cta-actions .btn-neon,
    .cta-actions .btn-glass { width: 100%; max-width: 320px; justify-content: center; }

    /* ─ Footer ─ */
    .footer { padding: 36px 0 24px; }
    .footer-brand { flex-direction: column; text-align: center; gap: 10px; }
    .footer-brand div { display: flex; flex-direction: column; align-items: center; }
    .footer-links-grid {
        flex-direction: row; flex-wrap: wrap; gap: 0;
        justify-content: center;
    }
    .footer-links-grid > div {
        width: 50%; text-align: center; margin-bottom: 20px;
    }
    .footer-links-grid h3 { margin-bottom: 8px; }
    .footer-links-grid a { font-size: 0.82rem; }
}

/* ─── Very small phones ─── */
@media (max-width: 400px) {
    .hero-title .title-line { font-size: 1.55rem; }
    .hero-stats { flex-wrap: wrap; }
    .stat-pill { min-width: 70px; padding: 8px 10px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .glow-card-num { font-size: 1.2rem; }
    .glow-card-inner { padding: 14px 10px; }
    .feat-card-3d { width: 260px; }
    .cmd-item code { font-size: 0.72rem; }
    .section { padding: 60px 0; }
    .section-cta { padding: 60px 0; }
}
