/* ─── CSS Variables ─── */
:root {
    --primary: #5C6BC0; /* Indigo */
    --accent: #FFB300; /* Amber */
    --success: #5DBB8B; /* Pastel Green */
    --bg-dark: #07090F; /* Deep Dark */
    --surface: rgba(30, 34, 48, 0.4);
    --surface-hover: rgba(45, 50, 70, 0.6);
    --text-primary: #FFFFFF;
    --text-secondary: #9AA0A6;
    --border: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.2);
    --glow-primary: rgba(92, 107, 192, 0.4);
    --glow-accent: rgba(255, 179, 0, 0.3);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ─── Reset & Base ─── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* ─── Background Effects ─── */
.glow-bg {
    position: fixed;
    top: -20vh;
    left: -10vw;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-primary) 0%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
    z-index: -1;
    opacity: 0.7;
    animation: pulse 10s infinite alternate;
}

.glow-bg.amber-glow {
    top: auto;
    bottom: -20vh;
    left: auto;
    right: -10vw;
    background: radial-gradient(circle, var(--glow-accent) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -5s;
}

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

/* ─── Typography ─── */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, #FF8A00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.text-alert {
    color: #FF6B6B;
}

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

/* ─── UI Components ─── */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--glow-primary);
}

.btn-primary:hover {
    background: #6D7CD4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 107, 192, 0.6);
}

.btn-primary.large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid var(--border-highlight);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ─── Navigation ─── */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    z-index: 1000;
    border-radius: 100px;
}

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

.logo-img {
    height: 108px;
    width: auto;
    margin-top: -30px;
    margin-bottom: -30px;
}

.logo-img.small {
    height: 40px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.875rem;
    letter-spacing: -0.5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a.tiktok-link {
    margin-right: -6px; /* Offset the empty side padding in TikTok's SVG */
}

.social-links a.reddit-link {
    margin-left: -6px;  /* Bring the larger Reddit icon slightly closer */
}

.logo-img.bottom-logo {
    height: 108px;
    width: auto;
    margin-top: -30px;
    margin-bottom: -30px;
}

.social-links a:hover {
    color: white;
}

/* ─── Hero Section ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 179, 0, 0.1);
    color: var(--accent);
    border: 1px solid rgba(255, 179, 0, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 24px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.waitlist-form {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 16px;
    margin-bottom: 12px;
}

.waitlist-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 16px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}

.waitlist-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-microcopy {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 16px;
}

/* ─── Hero Visual (Mascot) ─── */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mascot-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mascot-hero {
    width: 240%;
    z-index: 10;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

.floating {
    animation: float 6s ease-in-out infinite;
}

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

.hologram-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px var(--glow-primary), inset 0 0 20px var(--glow-primary);
    transform: rotateX(75deg);
    animation: spin 10s linear infinite;
    bottom: -80px;
}

.hologram-ring.outer {
    width: 400px;
    height: 400px;
    border: 1px dashed var(--accent);
    box-shadow: 0 0 10px var(--glow-accent);
    animation: spin 15s linear infinite reverse;
    bottom: -130px;
}

@keyframes spin {
    0% { transform: rotateX(75deg) rotateZ(0deg); }
    100% { transform: rotateX(75deg) rotateZ(360deg); }
}

/* ─── General Sections ─── */
.section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* ─── Problem Section ─── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.stat-card {
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: var(--surface-hover);
}

.stat-icon {
    margin-bottom: 20px;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: white;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.stat-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.problem-conclusion {
    text-align: center;
    margin-top: 40px;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.problem-conclusion strong {
    color: white;
}

/* ─── Solution Section ─── */
.solution-header {
    text-align: center;
    margin-bottom: 80px;
}

.usp-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.usp-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.usp-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.usp-icon-wrapper {
    background: rgba(92, 107, 192, 0.15);
    color: var(--primary);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(92, 107, 192, 0.3);
}

.usp-icon-wrapper.amber {
    background: rgba(255, 179, 0, 0.15);
    color: var(--accent);
    border-color: rgba(255, 179, 0, 0.3);
}

.usp-icon-wrapper.green {
    background: rgba(93, 187, 139, 0.15);
    color: var(--success);
    border-color: rgba(93, 187, 139, 0.3);
}

.usp-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.usp-desc {
    color: var(--text-secondary);
    line-height: 1.7;
}

.usp-visual {
    flex: 1;
    position: relative;
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mascot-full {
    width: 100%;
    max-width: 350px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.floating-badge {
    position: absolute;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 5s ease-in-out infinite;
}

.floating-badge.top-right {
    top: 40px;
    right: 20px;
    animation-delay: 1s;
}

.floating-badge.bottom-left {
    bottom: 40px;
    left: 20px;
    animation-delay: 2s;
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-title {
    font-weight: 700;
    font-family: var(--font-heading);
}

.badge-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ─── Science Section ─── */
.science-section {
    padding: 60px;
    margin: 60px auto;
    text-align: center;
}

.science-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.science-stat {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.science-desc {
    color: var(--text-secondary);
}

/* ─── CTA Section ─── */
.cta-section {
    text-align: center;
    padding: 120px 5%;
}

.cta-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.waitlist-form.large {
    max-width: 600px;
    margin: 0 auto;
    padding: 12px;
    border-radius: 20px;
}

.waitlist-form.large input {
    padding: 0 24px;
    font-size: 1.1rem;
}

.mt-3 {
    margin-top: 24px;
}

/* ─── Footer ─── */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 5%;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-highlight);
    padding-top: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
}

.contact-email {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: white;
}

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

/* ─── Toast ─── */
.toast {
    position: fixed;
    bottom: -100px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    z-index: 2000;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    bottom: 40px;
}

.toast-icon {
    width: 40px;
    height: 40px;
    background: rgba(93, 187, 139, 0.2);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.toast-content h4 {
    margin-bottom: 4px;
}

.toast-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ─── Animations ─── */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* ─── Responsive Design ─── */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    
    .usp-container {
        flex-direction: column;
    }
    
    .stats-grid, .science-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .glow-bg {
        width: 150vw;
        height: 150vw;
        top: -10vh;
        left: -30vw;
        filter: blur(60px);
    }
    
    .glow-bg.amber-glow {
        top: auto;
        bottom: -10vh;
        left: auto;
        right: -30vw;
    }

    .hero {
        padding-top: 180px;
    }
    
    .section { padding: 60px 5%; }
    .cta-section { padding: 80px 5%; }

    .navbar {
        padding: 8px 16px;
        width: 95%;
    }
    .logo-text { font-size: 1.2rem; }
    .nav-social { display: none; }
    .btn { padding: 8px 16px; font-size: 0.9rem; }
    .btn-primary.large { padding: 12px 24px; font-size: 1rem; }
    
    .hero-title { font-size: 3rem; }
    .section-title { font-size: 2.2rem; }
    .cta-title { font-size: 2.8rem; }
    
    .waitlist-form {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    .waitlist-form input,
    .waitlist-form.large input {
        background: var(--surface);
        padding: 16px 24px;
        border-radius: 12px;
        border: 1px solid var(--border);
        margin-bottom: 12px;
        font-size: 1rem;
    }

    .usp-item {
        gap: 16px;
    }
    
    .footer-top, .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
