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

/* ═══════════════════════════════════════════════════════════════
   GRAM-VOICE — SWISS BRUTALISM PREMIUM (10/10 UPGRADE)
   Background: #050505 | Text: #FFFFFF | Accent: #4CC9F0
   Fonts: Syncopate (headings) + Space Grotesk (body)
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Core Palette */
    --bg: #050505;
    --bg-elevated: #0a0a0a;
    --bg-glass: rgba(5, 5, 5, 0.7);
    --text: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-dim: rgba(255, 255, 255, 0.35);
    
    /* Premium Accent */
    --accent: #4CC9F0;
    --accent-glow: rgba(76, 201, 240, 0.4);
    --accent-dim: rgba(76, 201, 240, 0.1);
    
    /* Borders & Depth */
    --border: rgba(255, 255, 255, 0.08); /* More subtle */
    --border-hover: rgba(255, 255, 255, 0.2);
    --border-active: var(--accent);
    
    /* Measurements */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Fonts */
    --font-display: 'Syncopate', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

/* Light Mode */
body.light-mode {
    --bg: #f2f2f2;
    --bg-elevated: #ffffff;
    --bg-glass: rgba(242, 242, 242, 0.85);
    --text: #050505;
    --text-muted: rgba(5, 5, 5, 0.65);
    --text-dim: rgba(5, 5, 5, 0.4);
    --border: rgba(5, 5, 5, 0.08);
    --border-hover: rgba(5, 5, 5, 0.2);
    --accent: #005f7a; /* Darker accent for light mode */
}

/* ═══════════════════════════════════════════════════════════════
   RESET & SMOOTHNESS
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default; /* Default cursor for everything */
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Custom Selection */
::selection {
    background: var(--accent);
    color: var(--bg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

a, button, select, input, textarea {
    cursor: pointer; /* Pointer only for interactive */
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ═══════════════════════════════════════════════════════════════
   PREMIUM EFFECTS
   ═══════════════════════════════════════════════════════════════ */

/* Film Grain (High Quality) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* Animated Grid Background */
.wireframe-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    perspective: 1000px;
    opacity: 0.6;
}

/* Ambient Glow */
.hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    filter: blur(100px);
    animation: glow-pulse 10s ease-in-out infinite;
}
@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

.wireframe-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    left: -50%;
    top: -50%;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px; /* Tighter grid */
    transform: rotateX(60deg) rotateZ(-45deg);
    animation: grid-drift 40s linear infinite;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

@keyframes grid-drift {
    0% { transform: rotateX(60deg) rotateZ(-45deg) translateY(0); }
    100% { transform: rotateX(60deg) rotateZ(-45deg) translateY(60px); }
}

/* Glassmorphism Ultra */
.glass {
    background: rgba(5, 5, 5, 0.4); /* More transparency */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.glass-strong {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY — PRECISE & BALANCED
   ═══════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6, .heading {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em; /* Tightened */
    line-height: 1.1;
    color: var(--text);
}

.display-hero {
    font-size: clamp(3rem, 12vw, 8rem);
    letter-spacing: -0.02em; /* Negative spacing for large impact */
    line-height: 0.9;
}

.display-lg {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: -0.01em;
}

.display-md {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0;
}

.text-outline {
    -webkit-text-stroke: 1px var(--text-muted);
    color: transparent;
    transition: all 0.3s ease;
}

.hero-title:hover .text-outline {
    color: var(--accent); /* Fill on hover */
    -webkit-text-stroke: 0;
}

.label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.text-accent { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand { display: flex; align-items: center; gap: var(--space-sm); transition: opacity 0.2s; }
.brand:hover { opacity: 0.8; }
.brand-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    font-size: 0.9rem;
}
.brand-text {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

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

/* ═══════════════════════════════════════════════════════════════
   BUTTONS (MAGNETIC & INTERACTIVE)
   ═══════════════════════════════════════════════════════════════ */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

/* BUTTON PRIMARY */
.btn-primary {
    padding: 0.875rem 1.75rem;
    background: var(--accent);
    color: var(--bg);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(100%);
    transition: transform 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 201, 240, 0.3);
}

.btn-primary:hover::before { transform: translateY(0); }

/* BUTTON OUTLINE */
.btn-outline {
    padding: 0.875rem 1.75rem;
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

/* BUTTON GHOST */
.btn-ghost {
    padding: 0.625rem var(--space-md);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
}
.btn-ghost:hover { color: var(--text); }

/* BUTTON ICON */
.btn-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.2s ease;
}
.btn-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-2px);
}
.btn-icon.sm { width: 36px; height: 36px; }
.btn-icon.xs { width: 32px; height: 32px; font-size: 0.85rem; }

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: 80px;
}
.hero-content { position: relative; z-index: 1; }
.hero-title { margin-bottom: var(--space-xl); }
.hero-title span { display: block; }

.hero-subtitle {
    max-width: 500px;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
}

.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.hero-meta {
    display: flex; gap: var(--space-3xl);
    margin-top: var(--space-4xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
}
.hero-meta-item {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.scroll-indicator {
    position: absolute; bottom: var(--space-xl); left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center;
    gap: var(--space-sm);
}
.scroll-indicator span {
    font-size: 0.65rem; letter-spacing: 0.1em;
    color: var(--text-dim); text-transform: uppercase;
}
.scroll-indicator::after {
    content: ''; width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
    0%, 100% { height: 40px; opacity: 0.3; }
    50% { height: 60px; opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES DECK
   ═══════════════════════════════════════════════════════════════ */

.section-header { margin-bottom: var(--space-3xl); }
.section-header .label { margin-bottom: var(--space-sm); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.feature-card {
    padding: var(--space-xl);
    background: var(--bg);
    transition: background 0.2s ease;
    height: 100%;
}
.feature-card:hover { background: var(--bg-elevated); }

.feature-number {
    font-family: var(--font-display);
    font-size: 0.7rem; letter-spacing: 0.05em;
    color: var(--accent); margin-bottom: var(--space-lg);
}
.feature-title {
    font-family: var(--font-display);
    font-size: 0.9rem; font-weight: 700;
    letter-spacing: 0.02em; text-transform: uppercase;
    margin-bottom: var(--space-sm);
}
.feature-desc {
    font-size: 0.9rem; color: var(--text-muted);
}
/* Marquee */
.marquee-container {
    padding: var(--space-xl) 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    margin-top: var(--space-4xl);
}

.marquee-content {
    display: flex;
    gap: var(--space-2xl);
    width: max-content;
    animation: scroll-left 60s linear infinite;
}

.marquee-item {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════════
   APP UI COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

.app-container {
    display: grid; grid-template-columns: 1fr;
    min-height: 100vh; padding-top: 70px;
}
@media (min-width: 1100px) { .app-container { grid-template-columns: 1fr; } }

.main-panel {
    padding: var(--space-xl);
    display: flex; flex-direction: column; gap: var(--space-xl);
}

/* Tabs */
.mode-switcher { display: flex; justify-content: center; }
.mode-tabs {
    display: inline-flex; border: 1px solid var(--border);
    background: var(--bg);
}
.mode-tab {
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-display);
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.03em; text-transform: uppercase;
    color: var(--text-muted);
    transition: all 0.2s ease;
}
.mode-tab:hover { color: var(--text); background: var(--bg-elevated); }
.mode-tab.active { background: var(--accent); color: var(--bg); }

/* Language Selectors */
.lang-controls {
    display: flex; align-items: center; justify-content: center;
    gap: var(--space-lg); flex-wrap: wrap;
}
.lang-select-wrapper { display: flex; flex-direction: column; gap: var(--space-xs); }
.lang-label {
    font-size: 0.65rem; font-weight: 600;
    letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--text-dim);
}
.lang-select {
    min-width: 160px;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.lang-select:hover { border-color: var(--text-muted); }
.lang-select:focus { border-color: var(--accent); outline: none; }
.lang-select option { background: var(--bg-elevated); }

.swap-btn {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.2s ease;
}
.swap-btn:hover {
    border-color: var(--accent); color: var(--accent);
    transform: rotate(180deg);
}

/* Inputs */
.text-panels {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
@media (max-width: 800px) { .text-panels { grid-template-columns: 1fr; } }

.text-panel {
    display: flex; flex-direction: column;
    background: var(--bg);
    min-height: 250px;
    padding: var(--space-lg);
    transition: background 0.2s;
}
.text-panel:focus-within { background: var(--bg-elevated); }

.panel-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: var(--space-md);
}
.panel-label {
    font-size: 0.65rem; font-weight: 600;
    letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--text-dim);
}
.panel-actions { display: flex; gap: var(--space-xs); }

.text-input {
    flex: 1; width: 100%;
    background: transparent; border: none;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.1rem; line-height: 1.6;
    resize: none;
}
.text-input:focus { outline: none; }
.text-input::placeholder { color: var(--text-dim); }

/* Mic Button (Centerpiece) */
.voice-controls {
    display: flex; flex-direction: column; align-items: center;
    gap: var(--space-xl); padding: var(--space-xl) 0;
}
.mic-btn {
    width: 100px; height: 100px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 2.5rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mic-btn::before {
    content: ''; position: absolute; inset: -10px;
    border: 1px solid var(--border);
    opacity: 0; transition: all 0.3s;
}
.mic-btn:hover {
    background: var(--accent); color: var(--bg);
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--accent-glow);
}
.mic-btn:hover::before { opacity: 1; inset: -15px; }

.mic-btn.listening {
    background: var(--accent); color: var(--bg);
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 201, 240, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 30px transparent; }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 transparent; }
}

.mic-status {
    font-family: var(--font-display);
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--text-dim);
}
.mic-status.active { color: var(--accent); }

/* Sidebar */
/* Sidebar (Universal Drawer) */
.history-sidebar {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 380px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column;
    padding-top: 0;
    box-shadow: -10px 0 50px rgba(0,0,0,0.5);
}

.history-sidebar.open {
    transform: translateX(0);
}

.sidebar-close {
    display: flex;
    align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all 0.2s ease;
}
.sidebar-close:hover { color: var(--accent); border-color: var(--accent); transform: rotate(90deg); }

.sidebar-header {
    padding: var(--space-lg);
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border);
}
.sidebar-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700; letter-spacing: 0.04em;
}

.history-list {
    flex: 1; overflow-y: auto;
    padding: var(--space-md);
    display: flex; flex-direction: column; gap: var(--space-sm);
}
.history-item {
    padding: var(--space-md);
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.history-item:hover {
    border-color: var(--accent);
    background: var(--bg);
    transform: translateX(-2px);
}
.history-original { font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--space-xs); }
.history-translated { font-size: 0.95rem; font-weight: 500; color: var(--text); }
.history-meta { display: flex; justify-content: space-between; margin-bottom: var(--space-sm); }
.history-time { font-size: 0.65rem; color: var(--text-dim); }

.history-actions {
    display: flex; gap: var(--space-xs);
    margin-top: var(--space-sm); padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
    opacity: 0.5; transition: opacity 0.2s;
}
.history-item:hover .history-actions { opacity: 1; }

.history-action-btn {
    flex: 1; padding: 4px; border: 1px solid var(--border);
    color: var(--text-dim); font-size: 0.65rem;
    text-transform: uppercase; letter-spacing: 0.03em;
    transition: all 0.2s;
}
.history-action-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Overlay & Toast */
.overlay {
    position: fixed; inset: 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1050; opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.overlay.visible { opacity: 1; pointer-events: auto; }

.toast {
    position: fixed; bottom: var(--space-xl); left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 1rem 2rem;
    background: var(--accent); color: var(--bg);
    font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase;
    z-index: 10000; opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   MOBILE FIRST - SUPERBLY IMPRESSIVE (768px and below)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    :root { font-size: 15px; }
    
    /* Container & Spacing */
    .container { padding: 0 var(--space-lg); }
    section { padding: var(--space-2xl) 0; }
    
    /* ═══ NAVBAR MOBILE ═══ */
    .navbar {
        padding: var(--space-md);
        background: rgba(5, 5, 5, 0.95);
    }
    .nav-links {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: 100%;
        max-width: 300px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-xl);
        background: var(--bg);
        border-left: 1px solid var(--border);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links .btn { width: 80%; text-align: center; padding: 1rem 2rem; }
    .nav-links .btn-ghost { font-size: 1rem; color: var(--text); }
    
    /* Hamburger Button */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 36px; height: 36px;
        border: 1px solid var(--border);
        padding: 8px;
        z-index: 1001;
    }
    .menu-toggle span {
        display: block;
        width: 100%; height: 2px;
        background: var(--text);
        transition: all 0.3s ease;
    }
    .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    /* ═══ HERO MOBILE ═══ */
    .hero {
        min-height: 100svh; /* Use svh for mobile */
        padding-top: 100px;
        padding-bottom: var(--space-2xl);
        text-align: center;
    }
    .hero-glow {
        width: 300px; height: 300px;
        filter: blur(60px);
    }
    .hero-content { padding: 0 var(--space-sm); }
    
    .display-hero {
        font-size: clamp(2.5rem, 14vw, 4rem);
        line-height: 1;
        letter-spacing: -0.03em;
    }
    .hero-title { margin-bottom: var(--space-lg); }
    .hero-title span { margin-bottom: var(--space-xs); }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.7;
        margin: 0 auto var(--space-xl);
        max-width: 90%;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--space-md);
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    .hero-actions .btn {
        width: 100%;
        padding: 1.1rem 2rem;
        font-size: 0.8rem;
    }
    
    .hero-meta {
        flex-direction: column;
        gap: var(--space-md);
        margin-top: var(--space-2xl);
        padding-top: var(--space-lg);
        text-align: center;
    }
    .hero-meta-item { font-size: 0.65rem; }
    
    .scroll-indicator { display: none; } /* Hide on mobile */
    
    /* ═══ FEATURES MOBILE ═══ */
    .section-header { 
        text-align: center;
        margin-bottom: var(--space-xl);
    }
    .display-lg { font-size: clamp(1.8rem, 8vw, 2.5rem); }
    
    .features-grid {
        grid-template-columns: 1fr;
        border: none;
        background: transparent;
        gap: var(--space-sm);
    }
    .feature-card {
        border: 1px solid var(--border);
        padding: var(--space-lg);
        text-align: center;
    }
    .feature-number { 
        font-size: 2rem;
        color: var(--accent);
        margin-bottom: var(--space-sm);
    }
    .feature-title { font-size: 1rem; margin-bottom: var(--space-xs); }
    .feature-desc { font-size: 0.9rem; }
    
    /* ═══ MARQUEE MOBILE ═══ */
    .marquee-container {
        margin-top: var(--space-xl);
        padding: var(--space-md) 0;
    }
    .marquee-item { font-size: 0.75rem; }
    
    /* ═══ STATS MOBILE ═══ */
    .stats-row {
        grid-template-columns: 1fr;
        border: 1px solid var(--border);
        margin: var(--space-xl) 0;
    }
    .stat {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: var(--space-lg);
    }
    .stat:last-child { border-bottom: none; }
    .stat-value { font-size: clamp(2.5rem, 12vw, 4rem); }
    .stat-label { font-size: 0.75rem; letter-spacing: 0.15em; }
    
    /* ═══ CTA MOBILE ═══ */
    .footer { padding: var(--space-xl) 0; }
    .footer p { font-size: 0.75rem; }
    
    /* ═══ TOUCH ENHANCEMENTS ═══ */
    .btn-primary:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(76, 201, 240, 0.3);
    }
    .btn-outline:active {
        background: var(--accent-dim);
    }
    .feature-card:active {
        background: var(--bg-elevated);
        border-color: var(--accent);
    }
    
    /* Disable hover effects on touch */
    @media (hover: none) {
        .btn-primary:hover { transform: none; box-shadow: none; }
        .btn-primary:hover::before { transform: translateY(100%); }
        .feature-card:hover { background: var(--bg); }
        .stat:hover { background: transparent; }
        .stat:hover::after { transform: scaleX(0); }
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    :root { font-size: 14px; }
    .display-hero { font-size: 2.2rem; }
    .hero-actions .btn { padding: 1rem 1.5rem; font-size: 0.75rem; }
    .container { padding: 0 var(--space-md); }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ═══════════════════════════════════════════════════════════════
   STATS ROW REDESIGN (10/10)
   ═══════════════════════════════════════════════════════════════ */

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* Connected borders */
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: var(--space-4xl) 0;
    position: relative;
}

.stat {
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    border-right: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    background: transparent;
}

.stat:last-child { border-right: none; }

.stat:hover {
    background: rgba(255, 255, 255, 0.03);
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 0.9;
    color: var(--text);
    margin-bottom: var(--space-md);
    display: block;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* Hover Accent Line */
.stat::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat:hover::after { transform: scaleX(1); }

/* Mobile Stats */
@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr;
        border-bottom: none;
    }
    .stat {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: var(--space-xl) 0;
    }
}
