:root {
    color-scheme: dark;
    /* Dark Mode Theme (Default) */
    --bg-main: #161A1D;
    --bg-card: rgba(43, 45, 66, 0.4);
    --bg-card-hover: rgba(43, 45, 66, 0.7);
    --text-primary: #EAEAEA;
    --text-secondary: #A0AAB2;
    --primary: #f26a64;
    --primary-hover: #e55a54;
    --secondary: #bbd6f2;
    --accent: #2B2D42;

    --border-color: rgba(234, 234, 234, 0.1);
    --glow-primary: rgba(242, 106, 100, 0.5);
    --glow-secondary: rgba(187, 214, 242, 0.5);

    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

:root[data-theme="light"] {
    color-scheme: light;
    /* Light Mode Theme */
    --bg-main: #F8F9FA;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --text-primary: #161A1D;
    --text-secondary: #4A5568;

    /* Keep primary brand colors consistent but adjust alpha for better light mode glow */
    --border-color: rgba(0, 0, 0, 0.05);
    --glow-primary: rgba(242, 106, 100, 0.2);
    --glow-secondary: rgba(187, 214, 242, 0.2);

    --glass-border: 1px solid rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

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

html,
body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    transition: background-color 0.5s ease, color 0.5s ease;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

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

/* Background Glows */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

.top-glow {
    top: -200px;
    left: -100px;
    background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
}

.middle-glow {
    top: 40%;
    right: -200px;
    background: radial-gradient(circle, var(--glow-secondary) 0%, transparent 70%);
}

/* Glassmorphism Utilities */
.glass {
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.glass:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .glass:hover {
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 30px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.8);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: #fff;
}

[data-theme="light"] .btn-secondary:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 100;
    box-sizing: border-box;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px; /* reduced */
    display: flex;
    align-items: center;
    gap: 8px;
    transform: none; /* prevents distortion */
    will-change: auto;
    backface-visibility: hidden;
}

.logo-text {
    letter-spacing: 0.3px;
    will-change: auto;
    backface-visibility: hidden;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Theme Toggle */
.theme-toggle {
    cursor: pointer;
    width: 60px;
    height: 30px;
    border-radius: 30px;
    background: var(--accent);
    border: 1px solid var(--border-color);
    position: relative;
    transition: background 0.3s;
}

[data-theme="light"] .theme-toggle {
    background: #E2E8F0;
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .toggle-thumb {
    transform: translateX(30px);
    background: white;
}

.sun-icon,
.moon-icon {
    width: 14px;
    height: 14px;
    position: absolute;
    transition: opacity 0.3s, transform 0.5s;
}

.sun-icon {
    opacity: 0;
    color: #F6E05E;
    transform: rotate(-90deg);
}

[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: rotate(0);
}

.moon-icon {
    opacity: 1;
    color: #E2E8F0;
    transform: rotate(0);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(90deg);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 80vh;
    height: auto;
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.tagline {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary);
    margin-bottom: 1rem;
}

[data-theme="light"] .tagline {
    color: var(--primary);
}

.headline {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.subtext {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.fomo-counter {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(242, 106, 100, 0.1);
    border: 1px solid rgba(242, 106, 100, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary);
    width: fit-content;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.spots-left {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 5px;
}

.spots-left .highlight {
    color: var(--text-primary);
    font-weight: 700;
}

.fomo-badge-small {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.fomo-badge-small span {
    color: var(--primary);
}

.cta-container {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating Cards Animation */
.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.card {
    position: absolute;
    padding: 20px;
    width: 300px;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    right: 10%;
    z-index: 2;
}

.card-2 {
    bottom: 15%;
    left: 10%;
    animation-delay: -3s;
    z-index: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.bg-maroon {
    background-color: var(--primary);
}

.bg-teal {
    background-color: var(--secondary);
}

.info .name {
    font-weight: 600;
    font-size: 1rem;
}

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

.card-body {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Sections Common */
section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

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

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary);
}

[data-theme="light"] .feature-icon {
    background: rgba(139, 0, 0, 0.05);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
    position: relative;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 20px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary);
    opacity: 0.5;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
}

/* Social Proof */
.social-proof {
    text-align: center;
    padding: 80px 5%;
}

.quote {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 500;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.author {
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 1px;
}

[data-theme="light"] .author {
    color: var(--primary);
}

/* Waitlist */
.waitlist {
    text-align: center;
}

.waitlist-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
}

.waitlist-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.waitlist-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 10px;
    max-width: 450px;
    margin: 0 auto;
}

input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

[data-theme="light"] input[type="email"] {
    background: rgba(0, 0, 0, 0.02);
}

input[type="email"]:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] input[type="email"]:focus {
    background: rgba(0, 0, 0, 0.05);
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

.success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #48BB78;
    margin-top: 20px;
    font-weight: 500;
    animation: slideUpFade 0.5s ease forwards;
}

.success-message svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.footer {
    padding: 60px 5% 30px;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

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

/* Animations & Reveals */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.right {
    transform: translateX(50px);
}

.reveal.right.active {
    transform: translateX(0);
}

.reveal.scale-in {
    transform: scale(0.9);
}

.reveal.scale-in.active {
    transform: scale(1);
}

.stagger:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger:nth-child(3) {
    transition-delay: 0.2s;
}

.stagger:nth-child(4) {
    transition-delay: 0.3s;
}

.stagger:nth-child(5) {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
        height: auto;
        max-height: none;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        width: 100%;
    }

    .subtext {
        margin: 0 auto 2rem;
    }

    .cta-container {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        height: auto;
        min-height: 350px;
        padding-bottom: 40px;
    }

    .floating-cards {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .card {
        position: relative;
        width: 90%;
        max-width: 320px;
    }

    .card-1,
    .card-2 {
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
    }

    .input-group {
        flex-direction: column;
    }

    .step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* ===== PREMIUM GLOW BACKGROUND ===== */
.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary), transparent);
    filter: blur(120px);
    opacity: 0.5;
    animation: glowPulse 6s ease-in-out infinite alternate;
    z-index: -1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes glowPulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.4);
        opacity: 0.8;
    }
}


/* ===== CARD HOVER UPGRADE ===== */
.feature-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}


/* ===== BUTTON PREMIUM EFFECT ===== */
.btn {
    transition: all 0.25s ease;
}

.btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px var(--glow-primary);
}


/* ===== TYPOGRAPHY ===== */
h1 {
    letter-spacing: -1.5px;
}

h2 {
    letter-spacing: -0.5px;
}

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {

    .hero {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 36px;
        line-height: 1.2;
    }

    .sub {
        font-size: 14px;
        margin: 15px auto;
        max-width: 300px;
    }

    .btn {
        margin-top: 10px;
    }

    .hero-cards {
        width: 100%;
        height: 250px;
        margin-top: 40px;
    }

    .card {
        width: 200px;
        font-size: 14px;
    }

    .card1 {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .card2 {
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .waitlist {
        padding: 50px 20px;
    }

    input {
        width: 100%;
        margin-bottom: 10px;
    }

    button {
        width: 100%;
    }
}

/* ===== HERO CONVERSION IMPROVEMENTS ===== */

.hero-preheadline {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 10px;
}

.hero-urgency {
    margin-top: 12px;
    font-size: 0.85rem;
    opacity: 0.75;
}

/* Stronger CTA hierarchy */
.btn-primary {
    transform: scale(1.05);
}

.btn-secondary {
    opacity: 0.75;
}

/* Cursor glow */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 60%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* Slight headline polish */
.headline {
    line-height: 1.05;
    letter-spacing: -1px;
}

/* ===== HERO EMAIL CAPTURE ===== */

.hero-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    max-width: 420px;
}

.hero-form input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.hero-form input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.hero-form button {
    white-space: nowrap;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-form {
        flex-direction: column;
        max-width: 100%;
    }
}

/* ===== PAGE FADE-IN ===== */

.fade-in-page {
    opacity: 0;
    transform: translateY(20px);
    animation: pageFadeIn 0.8s ease forwards;
}

@keyframes pageFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SCROLL PROGRESS BAR ===== */

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ===== LEGAL HEADER ===== */

.legal-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5%;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
    animation: headerFade 0.6s ease;
}

.back-btn {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: var(--primary);
    transform: translateX(-3px);
}

@keyframes headerFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== LEGAL HIGHLIGHT ===== */

.highlight {
    background: rgba(242, 106, 100, 0.08);
    border-left: 3px solid var(--primary);
    padding: 12px 16px;
    border-radius: 10px;
    margin: 16px 0;
    font-weight: 500;
    color: var(--text-primary);
}

.highlight strong {
    color: var(--primary);
}

/* FOMO Live Stats */
.live-join {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.dynamic-urgency {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 6px;
}

/* Success Message Rich Layout */
.success-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.success-text strong {
    font-size: 1rem;
    color: #48BB78;
}

.success-text span {
    font-size: 0.85rem;
    opacity: 0.8;
}