:root {
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --secondary: #ec4899;
    --bg-dark: #0a0a0f;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* ─── BACKGROUND EFFECTS ─── */
.bg-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.glow-1 {
    top: -10vw;
    right: -10vw;
    background: var(--primary);
}

.glow-2 {
    bottom: -10vw;
    left: -10vw;
    background: var(--secondary);
}

/* ─── NAVIGATION ─── */
.glass-nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 100px);
    max-width: 900px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    z-index: 100;
    display: flex;
    justify-content: center;
}

.nav-content {
    width: 100%;
    max-width: 820px;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 20px var(--primary-glow);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
}

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

.lang-switcher {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 44px;
    height: 28px;
    background: var(--primary);
    border-radius: 9px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.lang-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 44px;
    height: 28px;
    cursor: pointer;
    font-weight: 700;
    font-size: 11px;
    transition: all 0.2s;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lang-btn.active {
    color: #fff;
}

/* Ensure no conflicts with slider */
.lang-switcher button {
    width: 44px;
    padding: 0;
}

/* ─── HERO SECTION ─── */
.hero {
    min-height: 100vh;
    padding: 130px 8% 80px;
    display: flex;
    align-items: center;
    gap: 150px;
    max-width: 1440px;
    margin: 0 auto;
}

.hero-content {
    flex: 1.2;
    max-width: 1100px;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.8rem;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 30px;
}

.hero-title span {
    display: block;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .gradient-text, .hero-title .highlight {
    background: linear-gradient(to right, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-content > p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 1000px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
}

.play-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #000;
    color: #fff;
    padding: 10px 22px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 170px;
}

.play-store-badge svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.play-store-badge:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.badge-sub {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-bottom: -2px;
}

.badge-main {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.2px;
    white-space: nowrap;
    line-height: 1.2;
}

.disabled-badge {
    opacity: 0.4;
    cursor: not-allowed !important;
    filter: grayscale(1);
    pointer-events: none;
}

.disabled-badge:hover {
    transform: none !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.user-avatars {
    display: flex;
}

.user-avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    margin-left: -10px;
}

.user-avatars img:first-child { margin-left: 0; }

/* ─── HERO VISUAL (ANIMATION) ─── */
.hero-visual {
    flex: 1.2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 600px;
    height: 700px;
    margin-top: 40px;
}

.ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.ring-1 { width: 400px; height: 400px; animation: rotate 20s linear infinite; }
.ring-2 { width: 520px; height: 520px; animation: rotate 30s linear infinite reverse; }
.ring-3 { width: 640px; height: 640px; animation: rotate 40s linear infinite; }

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

.orb {
    position: relative;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 60px var(--primary-glow);
    animation: pulse 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.2); }
}

.orb-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* ─── NOTIFICATIONS (FLOATING) ─── */
.notif {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #fff;
    width: max-content;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: sequenceFade 40s ease-in-out infinite;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes sequenceFade {
    0%, 9%, 100% { opacity: 0; transform: translateY(15px) scale(0.95); pointer-events: none; }
    1.5%, 7.5% { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
}

/* Zig-Zag Sequence (UP -> DOWN -> UP -> DOWN) */
.notif-1 { top: 22%; right: 5%; animation-delay: 0s; }    /* UP-R */
.notif-4 { bottom: 8%; left: 0%; animation-delay: 4s; }   /* DOWN-L */
.notif-2 { top: 25%; left: -12%; animation-delay: 8s; }   /* UP-L */
.notif-3 { bottom: 18%; right: -15%; animation-delay: 12s; } /* DOWN-R */

.notif-icon { font-size: 20px; }
.notif-text { display: flex; flex-direction: column; }
.notif-text strong { color: var(--secondary); font-size: 14px; }

/* ─── QUIZ SNIPPETS (FLOATING) ─── */
.quiz-snippet {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px;
    border-radius: 20px;
    width: 160px;
    font-size: 12px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: sequenceFade 40s ease-in-out infinite;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

@keyframes floatQuiz {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
}

.qs-q { font-weight: 700; margin-bottom: 8px; color: var(--text-muted); }
.qs-opt {
    background: rgba(255,255,255,0.05);
    padding: 6px 10px;
    border-radius: 8px;
    margin-bottom: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}
.qs-opt.correct {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

/* Snippet Positioning & Zig-Zag Sequence */
.qs-1 { top: 18%; left: -25%; animation-delay: 16s; }     /* UP-L */
.qs-6 { bottom: 10%; right: 12%; animation-delay: 20s; }  /* DOWN-R */
.qs-5 { top: 15%; right: 18%; animation-delay: 24s; }     /* UP-R */
.qs-3 { bottom: 32%; left: -22%; animation-delay: 28s; }  /* DOWN-L */
.qs-2 { top: 35%; right: -28%; animation-delay: 32s; }    /* UP-R-Far */
.qs-4 { top: 70%; right: -5%; animation-delay: 36s; width: 180px; } /* DOWN-R */

/* ─── PARTICLES ─── */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(1px);
    animation: floatParticle 10s linear infinite;
}

@keyframes floatParticle {
    0% { transform: translate(0, 0); opacity: 0; }
    20% { opacity: 0.3; }
    80% { opacity: 0.3; }
    100% { transform: translate(100px, -100px); opacity: 0; }
}

.p1 { top: 20%; left: 20%; width: 6px; height: 6px; animation-duration: 12s; }
.p2 { top: 40%; left: 80%; animation-delay: 2s; }
.p3 { top: 80%; left: 30%; width: 3px; height: 3px; animation-duration: 8s; }
.p4 { top: 10%; left: 70%; animation-delay: 5s; }
.p5 { top: 60%; left: 10%; animation-duration: 15s; }
.p6 { top: 30%; left: 50%; opacity: 0.1; }
.p7 { top: 70%; left: 90%; animation-delay: 3s; }
.p8 { top: 50%; left: 5%; animation-duration: 9s; }
.p9 { top: 15%; left: 45%; width: 5px; height: 5px; }
.p10 { top: 85%; left: 65%; animation-delay: 4s; }

/* NOTIF POSITION FIXES (DEPRECATED - MOVED TO TOP) */

/* ─── FEATURES SECTION ─── */
.features {
    padding: 100px 8%;
    max-width: 1440px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 40px 32px;
    transition: all 0.4s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-4px);
}

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

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── FOOTER ─── */
.site-footer {
    padding: 60px 20px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 500;
}

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

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

/* ─── LEGAL OVERLAY ─── */
.legal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0f;
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding-top: 80px;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.legal-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    padding: 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    margin-right: 30px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

#legalTitle {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.legal-content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    scroll-behavior: smooth;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 16px;
}

.legal-content h1, .legal-content h2, .legal-content h3 { color: white; margin: 40px 0 20px 0; }
.legal-content h1 { font-size: 32px; text-align: center; margin-bottom: 60px; }
.legal-content h2 { font-size: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 10px; }
.legal-content p { margin-bottom: 20px; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 30px 0; background: rgba(255, 255, 255, 0.02); border-radius: 12px; overflow: hidden; }
.legal-content th, .legal-content td { padding: 15px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.legal-content th { background: rgba(255, 255, 255, 0.05); color: var(--primary); font-weight: 600; }
.legal-content ul { margin-bottom: 30px; padding-left: 20px; }
.legal-content li { margin-bottom: 10px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; padding: 140px 6% 40px; gap: 0; }
    .hero-content { max-width: 100%; order: 1; }
    .hero-content > p { margin: 0 auto 40px; }
    .social-proof { justify-content: center; }
    .cta-buttons { justify-content: center; }
    .hero-visual { order: 2; min-width: unset; width: 100%; height: 420px; }
    .ring-1 { width: 300px; height: 300px; }
    .ring-2 { width: 380px; height: 380px; }
    .ring-3 { width: 460px; height: 460px; }
    .orb { width: 130px; height: 130px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .nav-content { padding: 15px 20px; }
    .glass-nav { top: 20px; width: calc(100% - 40px); }
    .features-grid { grid-template-columns: 1fr; }
    .legal-header { padding: 0 20px; }
    .back-btn span { display: none; }
    .footer-links { gap: 15px; }
    .footer-links a { font-size: 12px; }
    .legal-content-wrapper { padding: 20px; }
}
