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

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #e63946;
    --accent-glow: rgba(230, 57, 70, 0.4);
    --gold: #f4a100;
    --gold-glow: rgba(244, 161, 0, 0.3);
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    text-align: center;
}

.section-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 48px;
    text-align: center;
    line-height: 1.8;
}

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

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo-img {
    display: block;
    width: auto;
    height: 34px;
}

.logo-bar {
    color: var(--text-primary);
}

.logo-for {
    color: var(--accent);
    margin: 0 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

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

/* Nav user area */
.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #8b1a24);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: box-shadow 0.3s;
    margin-left: 16px;
}

.nav-avatar:hover {
    box-shadow: 0 0 15px var(--accent-glow);
}

.nav-login-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    margin-left: 16px;
}

.nav-login-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Nav user info (signed in state) */
.nav-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 16px;
}

.nav-avatar-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(230, 57, 70, 0.5);
    transition: border-color 0.3s, box-shadow 0.3s;
    flex-shrink: 0;
}

.nav-avatar-img:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.nav-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nav-user-name {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-signout-btn {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-signout-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Profile avatar with photo */
.profile-avatar-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.profile-avatar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-email {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 2px;
    opacity: 0.7;
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -100px;
    left: -100px;
    opacity: 0.15;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: var(--gold);
    bottom: -50px;
    right: -50px;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 6px;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 8px;
    margin-bottom: 28px;
}

.title-bar {
    color: var(--text-primary);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.title-for {
    color: var(--accent);
    text-shadow: 0 0 60px var(--accent-glow);
    display: inline-block;
    margin: 0 8px;
    font-size: 0.6em;
    vertical-align: middle;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-subtitle strong {
    color: var(--gold);
}

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

.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-primary);
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: transparent;
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-multiplayer {
    background: linear-gradient(135deg, var(--gold), #c78d00);
    color: #0a0a0a;
    border: 2px solid var(--gold);
    font-weight: 700;
}

.btn-multiplayer:hover {
    background: transparent;
    color: var(--gold);
    box-shadow: 0 0 30px var(--gold-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 30px var(--gold-glow);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--gold);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Equalizer Visualizer */
.hero-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 80px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.eq-bar {
    width: 6px;
    border-radius: 3px;
    background: linear-gradient(to top, var(--accent), var(--gold));
    animation: eq-bounce 1.2s ease-in-out infinite alternate;
    animation-delay: var(--delay);
    height: var(--height);
    opacity: 0.7;
}

@keyframes eq-bounce {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

/* === MODES OVERVIEW === */
.modes-overview {
    background:
        radial-gradient(circle at top, rgba(244, 161, 0, 0.08), transparent 38%),
        linear-gradient(180deg, #0b0b0b 0%, #101010 100%);
}

.modes-kicker {
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.modes-intro {
    max-width: 720px;
    margin-bottom: 52px;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.mode-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 32px 28px;
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
        var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.mode-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 161, 0, 0.3);
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

.mode-card-featured {
    border-color: rgba(230, 57, 70, 0.28);
    box-shadow: 0 18px 38px rgba(230, 57, 70, 0.08);
}

.mode-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mode-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(230, 57, 70, 0.14);
    border: 1px solid rgba(230, 57, 70, 0.3);
    color: #ffb0b5;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.mode-pill-gold {
    background: rgba(244, 161, 0, 0.12);
    border-color: rgba(244, 161, 0, 0.28);
    color: #ffd78c;
}

.mode-pill-purple {
    background: rgba(124, 77, 255, 0.12);
    border-color: rgba(124, 77, 255, 0.28);
    color: #c8b5ff;
}

.mode-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.mode-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.1;
}

.mode-card-copy {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.96rem;
}

.mode-points {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mode-points li {
    position: relative;
    padding-left: 18px;
    color: var(--text-primary);
    line-height: 1.65;
    font-size: 0.92rem;
}

.mode-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 14px rgba(244, 161, 0, 0.35);
}

.mode-card-meta {
    margin-top: auto;
    padding-top: 4px;
    color: rgba(255,255,255,0.68);
    font-size: 0.84rem;
    line-height: 1.6;
}

.mode-card-cta {
    width: fit-content;
    margin-top: 4px;
}

.modes-note {
    margin-top: 28px;
    padding: 18px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === ABOUT === */
.about {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d0d0d 100%);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    transition: transform 0.3s, border-color 0.3s;
}

.stat:hover {
    transform: translateY(-4px);
    border-color: rgba(230, 57, 70, 0.3);
}

.stat-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.stat-label {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === HOW IT WORKS === */
.how-it-works {
    background: #0d0d0d;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.step {
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    transition: transform 0.3s, border-color 0.3s;
}

.step:hover {
    transform: translateY(-4px);
    border-color: rgba(230, 57, 70, 0.3);
}

.step-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.4;
    margin-bottom: 16px;
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* === EMENIMU === */
.emenimu {
    background: linear-gradient(180deg, #0d0d0d 0%, var(--bg-dark) 100%);
}

.emenimu-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: center;
}

.emenimu-visual {
    display: flex;
    justify-content: center;
}

.ai-avatar {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--accent);
    opacity: 0.3;
    animation: ring-spin 8s linear infinite;
}

@keyframes ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar-inner {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #8b1a24);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px var(--accent-glow);
}

.avatar-letter {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: white;
}

.avatar-pulse {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0;
    animation: avatar-pulse 3s ease-out infinite;
}

@keyframes avatar-pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0; }
}

.emenimu-info .section-title {
    text-align: left;
}

.emenimu-info .section-text {
    text-align: left;
    margin: 0 0 32px;
}

.voice-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
}

.voice-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.voice-feature h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    color: var(--gold);
}

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

/* === FEATURES === */
.features {
    background: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(230, 57, 70, 0.3);
    background: var(--bg-card-hover);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

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

/* === FOOTER === */
.footer {
    text-align: center;
    padding: 60px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #080808;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 32px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

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

.footer-copy {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* === HAMBURGER MENU === */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
    }

    .nav-logo-img {
        height: 30px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 36px;
        z-index: 100;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.4rem;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .title-for {
        display: block;
        font-size: 0.5em;
        margin: 4px 0;
    }

    .emenimu-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .emenimu-info .section-title,
    .emenimu-info .section-text {
        text-align: center;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .modes-grid {
        grid-template-columns: 1fr;
    }

    .mode-card {
        padding: 26px 22px;
    }

    .mode-card-top {
        align-items: flex-start;
    }

    .mode-card-cta {
        width: 100%;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav-user-name {
        display: none;
    }

    .nav-user-info {
        gap: 6px;
        margin-left: 8px;
    }
}
