/* ==========================================
   PREMIUM DARK MODE - BENTO BOX THEME
   ========================================== */
:root {
    /* Core Colors */
    --color-bg: #050505;
    --color-bg-elevated: rgba(30, 30, 35, 0.4);
    --color-bg-glass: rgba(15, 15, 20, 0.6);
    
    --color-text-main: #FFFFFF;
    --color-text-muted: #A1A1AA;
    
    /* Neon Accents */
    --color-accent-1: #4F46E5; /* Indigo */
    --color-accent-2: #06B6D4; /* Cyan */
    --color-accent-3: #8B5CF6; /* Violet */
    --color-accent-4: #EC4899; /* Pink */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
    --gradient-text: linear-gradient(to right, #ffffff, #a5b4fc);
    --gradient-glow: linear-gradient(135deg, rgba(79, 70, 229, 0.5), rgba(6, 182, 212, 0.5));
    
    /* Borders */
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --border-glow: 1px solid rgba(79, 70, 229, 0.3);

    /* Fonts */
    --font-sans: 'Inter', system-ui, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography Utility */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.align-center { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.03em; }

/* Background Glow Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: drift 15s infinite alternate ease-in-out;
}
.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(79, 70, 229, 0.4);
    top: -100px;
    left: -100px;
}
.orb-2 {
    width: 600px;
    height: 600px;
    background: rgba(6, 182, 212, 0.3);
    top: 40%;
    right: -200px;
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Glassmorphism Classes */
.glass-morphism {
    background: var(--color-bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: var(--border-glass);
    border-radius: 24px;
}

.border-top-glass {
    border-top: var(--border-glass);
}

.glow-panel {
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glow-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
    transition: opacity var(--transition-smooth);
    z-index: 0;
}
.glow-panel:hover::before { opacity: 1; }
.glow-panel > * { position: relative; z-index: 1; }

.glow-panel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5), 0 0 20px -5px rgba(79, 70, 229, 0.2);
}

.glow-panel-strong {
    border: var(--border-glow);
    box-shadow: 0 0 40px -10px rgba(79, 70, 229, 0.3);
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    border-bottom: var(--border-glass);
    padding: 1rem 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}
.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}
.nav-links a:hover {
    color: var(--color-text-main);
}

/* Buttons */
.btn-sm { padding: 0.5rem 1rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.btn-lg { padding: 1rem 2rem; border-radius: 12px; font-weight: 600; font-size: 1rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: var(--transition-fast); }

.btn-neon {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: var(--border-glass);
}
.btn-neon:hover {
    background: #fff;
    color: #000;
}

.btn-primary {
    background: var(--color-text-main);
    color: var(--color-bg);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}

.btn-glass {
    background: var(--color-bg-glass);
    border: var(--border-glass);
    color: var(--color-text-main);
    backdrop-filter: blur(10px);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
}
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent-2);
    margin-bottom: 2rem;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent-2);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent-2);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 3rem;
    border-top: var(--border-glass);
    width: 100%;
    justify-content: center;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-val {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}
.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* Sections */
.bento-section, .steps-section, .comparison-section, .cta-section {
    padding: 6rem 0;
}
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 1.5rem;
}

.bento-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.span-2x2 { grid-column: span 2; grid-row: span 2; }
.span-2x1 { grid-column: span 2; grid-row: span 1; }
.span-1x2 { grid-column: span 1; grid-row: span 2; }

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #fff;
}
.gradient-1 { background: linear-gradient(135deg, #4F46E5, #8B5CF6); }
.gradient-2 { background: linear-gradient(135deg, #06B6D4, #3B82F6); }
.gradient-3 { background: linear-gradient(135deg, #10B981, #059669); }
.gradient-4 { background: linear-gradient(135deg, #F59E0B, #EA580C); }
.gradient-5 { background: linear-gradient(135deg, #EC4899, #E11D48); }

.bento-card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.bento-card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* Steps Section */
.steps-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.timeline-step {
    flex: 1;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.timeline-line {
    flex: 0.5;
    height: 2px;
    background: var(--border-glass);
    margin: 0 1rem;
    position: relative;
    top: -40px;
    z-index: 1;
}
.step-marker {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}
.step-card {
    padding: 1.5rem;
    text-align: center;
    width: 100%;
}
.offset-y { transform: translateY(20px); }

/* Comparison Table */
.modern-table-wrapper {
    padding: 1rem;
}
.modern-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.modern-table th, .modern-table td {
    padding: 1.5rem;
    border-bottom: var(--border-glass);
}
.modern-table th { color: var(--color-text-muted); font-weight: 500; }
.modern-table tbody tr:last-child td { border-bottom: none; }
.highlight-col {
    background: rgba(255, 255, 255, 0.03);
    font-weight: bold;
}
.success-badge {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

/* CTA Section */
.cta-box {
    text-align: center;
    padding: 5rem 2rem;
}
.cta-title { font-size: 3rem; margin-bottom: 1rem; }
.cta-desc { color: var(--color-text-muted); font-size: 1.2rem; margin-bottom: 2rem; }
.store-buttons { display: flex; gap: 1rem; justify-content: center; }
.store-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}
.store-btn:hover:not(.disabled) { transform: translateY(-3px); background: rgba(255,255,255,0.15); }
.store-btn.disabled { opacity: 0.5; filter: grayscale(1); cursor: not-allowed; }
.coming-soon {
    position: absolute; top: -10px; right: -10px;
    background: var(--color-accent-4); color: white;
    font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; font-weight: bold; text-transform: uppercase;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: #000;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
}
.footer-note { color: var(--color-text-muted); margin-top: 1rem; font-size: 0.9rem; max-width: 300px; }
.links-col h4 { margin-bottom: 1rem; font-size: 1rem; }
.links-col a { display: block; color: var(--color-text-muted); text-decoration: none; margin-bottom: 0.5rem; font-size: 0.9rem; transition: var(--transition-fast); }
.links-col a:hover { color: #fff; }
.mt-4 { margin-top: 2rem; } .pt-4 { padding-top: 2rem; }

/* Animations - apply to JS reveal hook */
.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .span-2x2, .span-2x1, .span-1x2 { grid-column: span 1; grid-row: auto; }
    .hero-stats { flex-direction: column; gap: 1.5rem; align-items: center; }
    .steps-timeline { flex-direction: column; gap: 2rem; }
    .timeline-line { display: none; }
    .offset-y { transform: none; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-note { margin: 1rem auto; }
    .nav-links { display: none; }
}