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

:root {
    /* Colors - matching the 2.0 assets */
    --color-bg: #0a1628;
    --color-bg-secondary: #0d1e36;
    --color-bg-tertiary: #112340;
    --color-surface: #1a3050;

    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.5);

    --color-accent: #00E5E5;
    --color-accent-secondary: #00B8D4;
    --color-accent-glow: rgba(0, 229, 229, 0.3);
    --color-pro: #FFD60A;
    --color-pro-glow: rgba(255, 214, 10, 0.3);
    --color-border: rgba(255, 255, 255, 0.1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00E5E5 0%, #00B8D4 50%, #0088CC 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(0, 229, 229, 0.15) 0%, transparent 70%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing & Radius */
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;

    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
    --spacing-xxl: 32px;
    --spacing-section: 100px;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

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

/* App Store Badge */
.appstore-badge {
    height: 54px;
    width: auto;
    display: block;
}

.appstore-link {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.appstore-link:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-section) 0;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(0, 229, 229, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 80%, rgba(0, 136, 204, 0.05) 0%, transparent 50%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--spacing-lg);
    font-weight: 900;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 480px;
    line-height: 1.7;
}

.hero-mockup {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-full {
    max-width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
}

/* How It Works Section */
.how-it-works {
    padding: var(--spacing-section) 0;
    background: var(--color-bg-secondary);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    padding: var(--spacing-xl);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: #000;
    margin: 0 auto var(--spacing-lg);
}

.step h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

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

.step-arrow {
    font-size: 2rem;
    color: var(--color-accent);
    align-self: center;
    margin-top: -20px;
}

/* Feature Sections (alternating layout) */
.feature-section {
    padding: var(--spacing-section) 0;
}

.feature-section.alt-bg {
    background: var(--color-bg-secondary);
}

.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-split.reverse {
    direction: rtl;
}

.feature-split.reverse>* {
    direction: ltr;
}

.feature-badge {
    display: inline-block;
    background: rgba(0, 229, 229, 0.15);
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-badge.pro-badge {
    background: rgba(255, 214, 10, 0.15);
    color: var(--color-pro);
}

.pro-label {
    display: inline-block;
    background: var(--color-pro);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.pro-icon {
    background: rgba(255, 214, 10, 0.15);
    color: var(--color-pro);
}

.feature-text h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-lg);
}

.feature-text p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: var(--spacing-sm) 0;
    padding-left: 28px;
    position: relative;
    color: var(--color-text-secondary);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.feature-images {
    display: flex;
    justify-content: center;
}

.feature-img {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    border-radius: var(--border-radius-lg);
}

/* Showcase Grid */
.showcase {
    padding: var(--spacing-section) 0;
    background: var(--color-bg-secondary);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xxl);
    margin-top: var(--spacing-xl);
}

.showcase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.showcase-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.showcase-image-wrapper:hover {
    transform: translateY(-8px);
}

.showcase-image {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.showcase-item h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent);
    font-size: 1.25rem;
}

.showcase-item p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    max-width: 280px;
}

/* Features Grid */
.features {
    padding: var(--spacing-section) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--color-accent-glow);
    background: var(--color-bg-tertiary);
    transform: translateY(-4px);
}

.feature-icon {
    margin-bottom: var(--spacing-md);
    background: rgba(0, 229, 229, 0.1);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--color-accent);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

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

/* CTA Section */
.cta {
    padding: var(--spacing-section) 0;
    text-align: center;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 229, 229, 0.08) 0%, transparent 50%);
}

.cta .section-title {
    margin-bottom: var(--spacing-lg);
}

.cta-subtitle {
    margin-bottom: var(--spacing-xl);
    color: var(--color-text-secondary);
    font-size: 1.25rem;
}

/* Footer */
.footer {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-links {
    margin-bottom: var(--spacing-md);
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    margin: 0 var(--spacing-md);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

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

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

    .feature-split {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-section: 60px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-mockup {
        order: -1;
        margin-bottom: 40px;
    }

    .hero-image-full {
        max-height: 450px;
    }

    .hero-cta {
        display: flex;
        justify-content: center;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 300px;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 0;
    }

    .feature-split,
    .feature-split.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        text-align: center;
    }

    .feature-text {
        order: 2;
    }

    .feature-images {
        order: 1;
        margin-bottom: var(--spacing-xl);
    }

    .feature-img {
        max-height: 400px;
    }

    .feature-list {
        text-align: left;
        max-width: 320px;
        margin: 0 auto;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .showcase-image-wrapper {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-text h2 {
        font-size: 1.5rem;
    }

    .step {
        padding: var(--spacing-lg);
    }
}