/* ===== BASE VARIABLES ===== */
:root {
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 20, 0.6);
    --bg-card-hover: rgba(30, 30, 30, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(16, 233, 81, 0.3);
    
    --brand-primary: #10E951;
    --brand-glow: rgba(16, 233, 81, 0.5);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===== RESET & GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

::selection {
    background: var(--brand-primary);
    color: #000;
}

/* ===== BACKGROUND EFFECTS ===== */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.bg-glow-1 {
    top: -10%;
    left: 10%;
    width: 600px;
    height: 600px;
    background: var(--brand-primary);
    animation: float 10s ease-in-out infinite alternate;
}

.bg-glow-2 {
    bottom: 20%;
    right: 0%;
    width: 500px;
    height: 500px;
    background: #00ff88;
    animation: float 15s ease-in-out infinite alternate-reverse;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
    z-index: -2;
    pointer-events: none;
}

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

/* ===== LAYOUT & COMPONENTS ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    margin-bottom: 64px;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--brand-primary);
    color: #000;
    box-shadow: 0 4px 20px rgba(16, 233, 81, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 233, 81, 0.4);
    background: #20f660;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: rgba(16, 233, 81, 0.05);
}

/* Hero Section */
.hero {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 120px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

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

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    opacity: 0.4;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 233, 81, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 233, 81, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 233, 81, 0); }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 24px;
}

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

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 auto 40px;
}

/* How It Works Section */
.how-it-works {
    margin-bottom: 120px;
}

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

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

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.feature-card:hover::before {
    background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--brand-primary);
    transition: var(--transition);
}

.feature-card:hover .icon-wrapper {
    background: rgba(16, 233, 81, 0.1);
    border-color: var(--border-highlight);
    box-shadow: 0 0 15px rgba(16, 233, 81, 0.2);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

.magic-box {
    background: linear-gradient(145deg, rgba(30,30,30,0.8) 0%, rgba(15,15,15,0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.magic-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 233, 81, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.magic-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #222, #111);
    border: 1px solid #333;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--brand-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1;
}

.magic-icon i {
    width: 32px;
    height: 32px;
}

.magic-box h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    z-index: 1;
}

.magic-box p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    z-index: 1;
}

/* Beta Section */
.beta-section {
    margin-bottom: 120px;
}

.beta-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 64px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.beta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
    opacity: 0.5;
}

.beta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.beta-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 48px;
}

.stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 16px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(16, 233, 81, 0.3);
}

.stat-label {
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border-color);
}

.active-testing {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 48px;
}

.waitlist-text {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
}

.waitlist-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 6px 6px 6px 24px;
    transition: var(--transition);
}

.input-group:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(16, 233, 81, 0.1);
}

.input-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    padding-left: 36px;
    padding-right: 16px;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group .btn {
    padding: 12px 24px;
    white-space: nowrap;
}

.form-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--brand-primary);
    font-weight: 500;
    background: rgba(16, 233, 81, 0.1);
    border: 1px solid var(--border-highlight);
    padding: 12px 24px;
    border-radius: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    transition: var(--transition);
    opacity: 1;
    transform: translateY(0);
}

.form-message.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 64px;
}

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

.contact p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.contact a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact a:hover {
    color: var(--brand-primary);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 24px 0;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 16px;
        padding: 6px;
        background: transparent;
        border: none;
        gap: 12px;
    }
    
    .input-group input {
        background: rgba(0, 0, 0, 0.5);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 16px 16px 16px 48px;
    }
    
    .input-icon {
        left: 20px;
        top: 24px;
        transform: none;
    }
    
    .input-group .btn {
        width: 100%;
        border-radius: 12px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }
}
