/* ============================================
   ViralCap Landing Page - Premium Dark Mode
   Apple-style minimalist with glassmorphism
   ============================================ */

/* === Design Tokens === */
:root {
    /* Colors - Dark Mode with Indigo/Purple accent */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(255, 255, 255, 0.05);

    --indigo-400: #818cf8;
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;
    --purple-500: #a855f7;
    --purple-600: #9333ea;

    --gradient-primary: linear-gradient(135deg, var(--indigo-500), var(--purple-500));
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(168, 85, 247, 0.4));

    --text-primary: #f8fafc;
    --text-secondary: rgba(248, 250, 252, 0.6);
    --text-muted: rgba(248, 250, 252, 0.4);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-display: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* Effects */
    --shadow-glow-sm: 0 0 20px rgba(99, 102, 241, 0.2);
    --shadow-glow-md: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-glow-lg: 0 0 60px rgba(99, 102, 241, 0.4);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* === Background Effects === */
.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(99, 102, 241, 0.15), transparent 50%),
        radial-gradient(ellipse 40% 30% at 80% 20%, rgba(168, 85, 247, 0.1), transparent 50%),
        var(--bg-primary);
    pointer-events: none;
    z-index: -1;
}

/* === Layout === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* === Navigation === */
.nav {
    padding: var(--space-5) 0;
    position: relative;
    z-index: 100;
}

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.nav-back:hover {
    color: var(--text-primary);
    border-color: var(--indigo-500);
    box-shadow: var(--shadow-glow-sm);
}

.nav-back i {
    font-size: 1.1rem;
}

/* === Hero Section === */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-16) 0 var(--space-12);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--indigo-400);
    margin-bottom: var(--space-6);
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--purple-500);
}

.app-icon {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 24px;
    box-shadow: var(--shadow-glow-md);
    margin: 0 auto var(--space-8);
    border: 1px solid var(--border-glass);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: var(--space-5);
    letter-spacing: -0.03em;
    max-width: 800px;
}

.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-10);
    line-height: 1.7;
}

/* === CTA Buttons === */
.cta-group {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: var(--gradient-primary);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow-sm);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-lg);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: var(--bg-glass);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--indigo-500);
    transform: translateY(-2px);
}

/* === Bento Feature Grid === */
.features {
    padding: var(--space-16) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

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

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

.bento-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.bento-card:hover {
    border-color: var(--indigo-500);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-sm);
}

.bento-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: var(--space-4);
}

.bento-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* === How It Works === */
.how-it-works {
    padding: var(--space-16) 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-4);
    position: relative;
}

/* Static background line */
.steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-subtle);
    z-index: 0;
}

/* Animated progress line - only animates when .animate class added */
.steps::after {
    content: '';
    position: absolute;
    top: 28px;
    left: 10%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--indigo-500), var(--purple-500));
    z-index: 1;
}

.steps.animate::after {
    animation: progressLine 2s ease-out forwards;
}

@keyframes progressLine {
    0% {
        width: 0;
    }

    100% {
        width: 80%;
    }
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
}

/* Step reveal animation - triggered by JS */
.step.visible {
    animation: stepReveal 0.6s ease-out forwards;
}

@keyframes stepReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--bg-primary);
    border: 2px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Fill background that scales up */
.step-number::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

/* Activated step styling */
.step.visible .step-number {
    border-color: transparent;
    color: var(--text-primary);
    box-shadow: var(--shadow-glow-md);
}

.step.visible .step-number::before {
    transform: scale(1);
}

.step h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.step p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* === Pricing Section === */
.pricing {
    padding: var(--space-16) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--indigo-500);
    box-shadow: var(--shadow-glow-md);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.pricing-amount span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-6);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: var(--space-2) 0;
}

.pricing-features li i {
    color: var(--indigo-400);
    font-size: 1rem;
}

/* === Trust Section === */
.trust {
    padding: var(--space-12) 0;
    text-align: center;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-8);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
}

.trust-badge span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.trust-badge i {
    color: var(--indigo-400);
    font-size: 1.5rem;
}

/* === Footer === */
.footer {
    padding: var(--space-8) 0;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* === Animations === */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes glow {

    0%,
    100% {
        box-shadow: var(--shadow-glow-sm);
    }

    50% {
        box-shadow: var(--shadow-glow-lg);
    }
}

.fade-up {
    animation: fadeUp 0.7s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

.glow-pulse {
    animation: glow 3s ease-in-out infinite;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }

    .steps::before,
    .steps::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: var(--space-12) 0 var(--space-8);
    }

    .steps {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured::before {
        top: -10px;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* === Accessibility === */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 8px 16px;
    background: var(--indigo-500);
    color: var(--text-primary);
    border-radius: 8px;
    z-index: 1000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 16px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}