:root {
    /* Light Theme (Default) */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-card: #FFFFFF;
    --text-primary: #1A1C1E;
    --text-secondary: #444746;
    --gold: #F59E0B;
    --gold-dark: #D97706;
    --gold-light: #FCD34D;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --border-color: #E0E2E0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);

    /* Animation Gradients - Visible Aurora */
    --aurora-1: rgba(245, 158, 11, 0.40);
    /* Boosted Opacity */
    --aurora-2: rgba(252, 211, 77, 0.35);
    --aurora-3: rgba(100, 116, 139, 0.15);
}

[data-theme="dark"] {
    /* Dark ThemeOverrides */
    --bg-primary: #0F0F0F;
    --bg-secondary: #121212;
    --bg-card: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #AAA;
    --nav-bg: rgba(15, 15, 15, 0.85);
    --border-color: #333333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.4);

    --aurora-1: rgba(245, 158, 11, 0.25);
    --aurora-2: rgba(66, 32, 6, 0.4);
    --aurora-3: rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Aurora Background Animation */
.aurora-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
    perspective: 1000px;
}

/* Ensure content is above aurora but has transparency */
header,
.hero,
section,
footer {
    position: relative;
    z-index: 1;
}

section {
    /* allow aurora to show through sections */
    background: transparent;
}

.aurora-blob {
    position: absolute;
    filter: blur(60px); /* Slightly reduced blur for more defined shapes */
    opacity: 0.85;
    animation: drift 20s infinite alternate, morph 15s infinite alternate;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    will-change: transform, border-radius;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle at center, var(--aurora-1), transparent 70%);
    animation-duration: 25s, 20s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle at center, var(--aurora-2), transparent 70%);
    animation-delay: -5s;
    animation-duration: 30s, 25s;
}

.blob-3 {
    top: 40%;
    left: 20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle at center, var(--aurora-3), transparent 70%);
    animation-delay: -10s;
    animation-duration: 22s, 18s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(50px, 40px) rotate(10deg);
    }
    66% {
        transform: translate(-30px, 60px) rotate(20deg);
    }
    100% {
        transform: translate(20px, -20px) rotate(30deg);
    }
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Headers & Text */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Header & Nav */
header {
    background-color: transparent;
    backdrop-filter: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    z-index: 1001;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease-in-out;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    color: var(--text-primary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    color: var(--gold);
    transform: rotate(20deg);
}

/* Hero Section */
.hero {
    padding: 180px 20px 100px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 20px 40px rgba(245, 158, 11, 0.2);
    letter-spacing: -1px;
    animation: float 6s ease-in-out infinite;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

/* Buttons */
.cta-button {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #000;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease-in-out;
}

.cta-button:hover::after {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.35);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: rgba(245, 158, 11, 0.1);
    transform: translateY(-3px);
}

/* Cards (Features) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.6);
    /* Reduced BG opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    text-align: left;
}

.feature-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
    border-color: var(--gold);
}

[data-theme="dark"] .feature-item {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.2);
}

.feature-item h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Section Spacing */
section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* Footer */
footer {
    background: linear-gradient(to top, var(--bg-secondary) 0%, transparent 100%);
    padding: 6rem 2rem 3rem;
    margin-top: auto;
    border-top: none;
    text-align: center;
    position: relative;
    z-index: 1;
}

footer .logo {
    font-size: 2rem;
    margin-bottom: 2rem;
    filter: none;
    opacity: 1;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

footer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

footer a {
    color: var(--gold);
    font-weight: 500;
}

footer .footer-links {
    margin-bottom: 2rem;
}

footer .footer-links a {
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Utility Animations (Enhanced - Jhey Style) */
.reveal-on-scroll {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(50px) scale(0.9);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

.reveal-on-scroll.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

.feature-item {
    background: rgba(255, 255, 255, 0.6);
    /* Reduced BG opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    text-align: left;
    transform-style: preserve-3d; /* For 3D Tilt */
    perspective: 1000px;
}

/* Maintain compatibility but upgrade effects */
.fade-in-up,
.slide-in-left,
.slide-in-right,
.zoom-in {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible,
.slide-in-left.visible,
.slide-in-right.visible,
.zoom-in.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

/* Stagger delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}


/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: -3rem auto 5rem;
    /* Negative margin pulls it up */
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2rem 4rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    animation: float 6s ease-in-out infinite;
}

/* For Auto-Scroll List */
.rank-list {
  scroll-behavior: smooth;
}

[data-theme="dark"] .stats-bar {
    background: rgba(30, 30, 30, 0.7);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stat-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* Hero Buttons & Image */
.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-image-container {
    margin-top: 2rem;
    max-width: 280px; /* Constrain width */
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
    animation: float 5s ease-in-out infinite reverse;
    perspective: 1000px;
}

.hero-app-preview {
    width: 100%;
    height: auto;
    display: block;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-image-container:hover .hero-app-preview {
    transform: rotateY(0) rotateX(0) scale(1.02);
}

/* CSS App Mockup Removed */
.hero-image-placeholder {
    display: none;
}

/* How It Works - Step Rows */
#how-it-works {
    background: var(--bg-secondary);
    border-radius: 30px;
    margin: 4rem auto;
}

.step-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
    padding: 0 2rem;
    flex-wrap: wrap; /* Added for robustness */
    transition: transform 0.3s ease;
}

.step-row:hover {
    transform: scale(1.02);
}

.step-row.reverse {
    flex-direction: row-reverse;
}

.step-content {
    flex: 1;
    text-align: left;
}

.step-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-icon {
    flex: 1;
    display: flex;
    justify-content: center;
    font-size: 8rem;
    color: var(--gold);
    opacity: 0.8;
    transition: transform 0.5s ease;
}

.step-row:hover .step-icon {
    transform: rotate(10deg) scale(1.1);
}

/* Pro Card */
.pro-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: #fff;
    padding: 4rem;
    border-radius: 30px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid var(--gold);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pro-card:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(245, 158, 11, 0.3);
}

[data-theme="light"] .pro-card {
    background: linear-gradient(135deg, #FFF 0%, #F9FAFB 100%);
    color: #000;
}

.pro-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.pro-features-list {
    list-style: none;
    margin: 3rem auto;
    text-align: left;
    max-width: 500px;
}

.pro-features-list li {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
}

.pro-features-list li i {
    color: var(--gold);
}

/* Contact Box */
.contact-box {
    text-align: center;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 4rem;
}

/* Parallax Wrappers */
.parallax-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    will-change: transform;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 6rem 2rem;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* --- Policy Pages (Privacy & Child Safety) --- */
.policy-hero {
    min-height: auto;
    padding-top: 150px;
    display: block;
    text-align: left;
    margin-bottom: 4rem;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.policy-title {
    text-align: center;
    margin-bottom: 30px;
}

.policy-section {
    padding: 0;
    margin-bottom: 30px;
}

.policy-heading {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.policy-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.policy-list {
    margin-left: 20px;
    margin-top: 10px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.policy-list li {
    margin-bottom: 10px;
}

.policy-contact-link {
    color: var(--gold);
    font-weight: 500;
}

/* --- 404 Error Page --- */
.error-hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.error-hero .fade-in-up {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    max-width: 700px;
    width: 100%;
}

[data-theme="dark"] .error-hero .fade-in-up {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.error-code {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

[data-theme="dark"] .error-code {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.error-message {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.error-description {
    max-width: 500px;
    margin: 0 auto 3rem auto;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Consolidated Responsive Updates --- */
@media (max-width: 900px) {
    /* Navigation */
    .hamburger-menu {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background-color: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding-top: 60px;
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        margin: 1.5rem 0;
    }

    /* Hero */
    .hero {
        padding: 120px 20px 80px; /* Reduced top padding for mobile */
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Stats Bar */
    .stats-bar {
        flex-direction: column;
        gap: 2rem;
        margin: 0 1rem 3rem; /* Fixed margin */
        padding: 2rem;
        text-align: center;
    }

    /* How It Works */
    #how-it-works {
        margin: 2rem auto; /* Reduced margin on mobile */
        border-radius: 20px;
    }

    .step-row,
    .step-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .step-content {
        text-align: center;
        width: 100%; /* Force full width */
    }

    .step-icon {
        font-size: 6rem; /* Reduced size */
        margin-bottom: 1rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 4rem 1.5rem;
    }

    .cta-section h2 {
        font-size: 2.2rem;
    }

    /* Policy & Error Pages */
    .policy-content {
        padding: 25px;
        margin: 0 15px;
    }

    .policy-hero {
        padding-top: 120px;
    }

    .error-code {
        font-size: 4rem;
    }

    .error-message {
        font-size: 1.5rem;
    }

    /* Fix Pro Card Mobile Padding & Width */
    .pro-card {
        padding: 2.5rem 1.5rem; /* Reduced padding for mobile */
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
    }

    .pro-header h2 {
        font-size: 2.2rem;
    }

    /* Convert Rewards Section */
    .convert-section {
        margin: 2rem auto;
        border-radius: 20px;
        padding: 4rem 1.5rem;
    }
}

/* --- Convert Rewards Section --- */
.convert-section {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
    border-radius: 30px;
    margin: 4rem auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.conversion-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 4rem;
}

.flow-step {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2.5rem;
    border-radius: 20px;
    width: 280px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="dark"] .flow-step {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.flow-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
}

.flow-step.highlight {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(255,255,255,0.8) 100%);
}

[data-theme="dark"] .flow-step.highlight {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(30,30,30,0.8) 100%);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--text-secondary);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.icon-circle.gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fff;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.icon-circle.green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.flow-step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.flow-step p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.flow-arrow {
    font-size: 1.5rem;
    color: var(--gold);
    display: flex;
    animation: pulse-flow 2s infinite;
}

.flow-arrow i {
    opacity: 0.5;
    animation: flow-arrow 1.5s infinite ease-in-out;
}

.flow-arrow i:nth-child(1) { animation-delay: 0s; }
.flow-arrow i:nth-child(2) { animation-delay: 0.2s; }
.flow-arrow i:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse-flow {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes flow-arrow {
    0%, 100% { opacity: 0.3; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
}

@media (max-width: 900px) {
    .flow-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}

/* --- Community & Leaderboard Section --- */
.community-section {
    padding: 6rem 2rem;
    overflow: hidden;
}

.community-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.community-text {
    flex: 1;
}

.community-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.community-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.community-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.community-features li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-primary);
}

.community-features li i {
    color: var(--gold);
    width: 24px;
    text-align: center;
}

.community-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-frame {
    width: 300px; /* Adjust based on screenshot ratio */
    border: 12px solid #1a1a1a;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
    background: #000;
}

.phone-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.floating-coin {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.4);
    animation: float 4s ease-in-out infinite;
    z-index: 2;
}

.coin-1 {
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.coin-2 {
    bottom: 40px;
    left: -30px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    animation-delay: 2s;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

@media (max-width: 900px) {
    .community-container {
        flex-direction: column;
        text-align: center;
    }

    .community-features {
        text-align: left;
        max-width: 300px;
        margin: 0 auto 2.5rem;
    }

    .community-image {
        margin-top: 2rem;
    }

    .phone-frame {
        width: 260px;
    }
}
/* --- Mock Leaderboard UI --- */
.leaderboard-ui {
    background-color: var(--bg-primary);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 2;
}

.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-primary) 100%);
    gap: 1rem;
}

.rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.rank .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #757575;
    margin-bottom: 0.5rem;
    border: 3px solid transparent;
}

.rank.first .avatar {
    width: 70px;
    height: 70px;
    border-color: var(--gold);
    color: var(--gold);
    background: #fff8e1;
}

.rank.second .avatar {
    border-color: #C0C0C0; /* Silver */
}

.rank.third .avatar {
    border-color: #CD7F32; /* Bronze */
}

.crown-icon {
    position: absolute;
    top: -20px;
    color: var(--gold);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.rank span {
    font-weight: 600;
    font-size: 0.9rem;
}

.rank small {
    font-size: 0.8rem;
    color: var(--gold-dark);
    font-weight: 700;
}

.rank-list {
    flex: 1;
    background: var(--bg-card);
    padding: 1rem;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.03);
    overflow-y: auto;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: transform 0.2s;
}

.list-item:hover {
    transform: translateX(5px);
}

.pos {
    font-weight: 700;
    width: 20px;
    color: var(--text-secondary);
}

.avatar-sm {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 1rem;
    color: #9e9e9e;
}

.name {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
}

.score {
    font-weight: 700;
    color: var(--gold);
}

/* Leaderboard Staggered Animation */
.rank-list .list-item {
    opacity: 0;
    transform: translateX(20px);
    animation: slideInList 0.5s ease forwards;
}

.rank-list .list-item:nth-child(1) { animation-delay: 0.8s; }
.rank-list .list-item:nth-child(2) { animation-delay: 1.0s; }
.rank-list .list-item:nth-child(3) { animation-delay: 1.2s; }

@keyframes slideInList {
    to { opacity: 1; transform: translateX(0); }
}

.podium .rank {
    opacity: 0;
    transform: translateY(20px);
    animation: popInPodium 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.podium .rank.second { animation-delay: 0.4s; }
.podium .rank.first { animation-delay: 0.2s; }
.podium .rank.third { animation-delay: 0.6s; }

@keyframes popInPodium {
    to { opacity: 1; transform: translateY(0); }
}

/* Moving Coins Background */
.coin-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; /* Behind content but above aurora if needed, or blending */
    overflow: hidden;
}

.bg-coin {
    position: absolute;
    color: var(--gold);
    opacity: 0.15;
    animation: coinFloatUp linear infinite;
    bottom: -100px; /* Start below screen */
}

/* Specific Coin Positioning & Timing */
.coin-1 { left: 10%; font-size: 3rem; animation-duration: 15s; animation-delay: 0s; }
.coin-2 { left: 25%; font-size: 2rem; animation-duration: 12s; animation-delay: 2s; opacity: 0.1; }
.coin-3 { left: 40%; font-size: 4rem; animation-duration: 20s; animation-delay: 5s; }
.coin-4 { left: 55%; font-size: 2.5rem; animation-duration: 18s; animation-delay: 1s; opacity: 0.12; }
.coin-5 { left: 70%; font-size: 3.5rem; animation-duration: 25s; animation-delay: 3s; }
.coin-6 { left: 85%; font-size: 2rem; animation-duration: 14s; animation-delay: 7s; }
.coin-7 { left: 15%; font-size: 1.5rem; animation-duration: 22s; animation-delay: 10s; opacity: 0.08; }
.coin-8 { left: 60%; font-size: 1.8rem; animation-duration: 19s; animation-delay: 12s; }

@keyframes coinFloatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15; /* Fade in */
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-120vh) rotate(360deg); /* Move up past screen */
        opacity: 0;
    }
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* Let clicks pass through container */
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 4px solid var(--gold);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 350px;
    transform: translateX(-120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
    pointer-events: auto; /* Re-enable clicks on toast */
    font-size: 0.95rem;
    color: var(--text-primary);
}

[data-theme="dark"] .toast {
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gold-dark);
    margin-bottom: 2px;
    display: block;
}

[data-theme="dark"] .toast-title {
    color: var(--gold);
}

.toast-message {
    font-size: 0.9rem;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .toast-container {
        left: 50%;
        transform: translateX(-50%);
        bottom: 80px; /* Above bottom nav/footer if needed */
        width: 90%;
        align-items: center;
    }

    .toast {
        width: 100%;
        min-width: auto;
        transform: translateY(20px);
        opacity: 0;
    }

    .toast.show {
        transform: translateY(0);
    }
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 6rem 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.quote-icon {
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author .avatar-sm {
    margin: 0;
    background: var(--bg-secondary);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info .name {
    font-weight: 700;
    color: var(--text-primary);
}

.author-info .role {
    font-size: 0.85rem;
    color: var(--gold);
}

/* --- Get Started Wizard --- */
.wizard-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2001;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: bounceIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2s both;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.wizard-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.5);
}

.wizard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wizard-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.wizard-content {
    background: var(--bg-card);
    width: 90%;
    max-width: 500px;
    padding: 3rem;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: translateY(50px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
}

.wizard-modal.active .wizard-content {
    transform: translateY(0);
}

.close-wizard {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-wizard:hover {
    color: var(--text-primary);
}

.wizard-step {
    text-align: center;
    display: none; /* Hide by default, logic shows active */
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-step h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.wizard-step p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.wizard-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.wizard-options.vertical {
    flex-direction: column;
}

.wizard-option {
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    font-family: inherit;
    color: var(--text-primary);
    font-weight: 500;
}

.wizard-options.vertical .wizard-option {
    flex-direction: row;
    justify-content: flex-start;
    padding: 1rem 1.5rem;
}

.wizard-option i {
    font-size: 1.5rem;
    color: var(--gold);
}

.wizard-option:hover {
    background: var(--bg-primary);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.wizard-back {
    background: none;
    border: none;
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
    margin-top: 1rem;
}

.wizard-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    transition: background 0.3s ease;
}

.progress-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

#wizard-result {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.faq-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.faq-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
