:root {
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.4);
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* --- Global Reset --- */
html {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100%; /* Allow body to grow */
    margin: 0;
    
    /* NUCLEAR OPTION: Restore native scrolling */
    overflow-x: hidden;
    overflow-y: auto !important; 
    position: relative;
}

/* --- Navigation Bar --- */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.95); /* Slightly more opaque */
    position: sticky;
    top: 0;
    z-index: 1000; /* High z-index */
    backdrop-filter: blur(10px);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.lang-select {
    background: #334155;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Mobile Nav Adjustments */
@media (max-width: 600px) {
    .nav-links {
        display: none; 
    }
    .lang-select {
        margin-left: auto;
    }
}


/* --- Views Management --- */
/* We remove internal scrolling and let the body scroll */
.view {
    display: none;
    width: 100%;
    flex-direction: column;
    /* Native scroll behavior */
    min-height: 100vh; 
}

.view.active {
    display: flex;
}

/* --- Landing Page --- */
.landing-content {
    padding: 2rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 6rem;
    position: relative;
    z-index: 10;
}

.hero-img {
    width: 100%;
    max-width: 280px;
    margin: 2rem auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* --- App Interface --- */
.app-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.status-badge {
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #64748b;
}

.status-dot.active {
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* --- Visualizer --- */
.visualizer-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
}

.circle-outer {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid rgba(56, 189, 248, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

.circle-inner {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56,189,248,0.2) 0%, rgba(15,23,42,0) 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.1);
    transition: transform 0.1s;
}

.status-icon {
    font-size: 4rem;
    opacity: 0.8;
    position: relative;
    display: inline-block;
}

/* --- Controls --- */
.controls-area {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
}

.btn-main {
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
    transition: transform 0.2s, background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-main:active {
    transform: scale(0.98);
}

.btn-main.active {
    background: var(--danger);
    box-shadow: 0 10px 20px -5px rgba(239, 68, 68, 0.4);
}

.stats-row {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

.listening-pulse {
    animation: pulse 2s infinite ease-in-out;
}

/* --- Added Landing Styles --- */
.social-proof {
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin: 2rem 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #38bdf8;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.section-dark {
    padding: 4rem 1rem;
    background: #1e293b;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section-black {
    text-align: center;
    padding: 4rem 1rem;
    background: #0f172a;
}

