/* Modern Reset & Variables */
:root {
    /* Color Palette - Light Theme (Default) */
    --primary-color: #121212;
    /* Dark text for light bg */
    --secondary-color: #334155;
    --accent-color: #FF3C38;
    /* User Accent */
    --accent-hover: #D92E2A;
    --background-color: #F3F3F3;
    /* User Light Bg */
    --surface-color: #FEFEFE;
    /* User Light Surface */
    --text-primary: #121212;
    --text-secondary: #4a4a4a;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);

    /* Radius */
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #121212;
        /* User Dark Bg */
        --surface-color: #1E1E1E;
        /* User Dark Surface */
        --primary-color: #FEFEFE;
        /* Light text for dark bg */
        --text-primary: #FEFEFE;
        --text-secondary: #A0A0A0;
        --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
        --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    }
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

section {
    padding: var(--spacing-xl) 0;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-wrapper {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.hero h1 {
    background: linear-gradient(to right, var(--text-primary), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-md);
}

.hero p {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.25rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: var(--surface-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Screenshot Gallery */
.screenshot-grid {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    padding: var(--spacing-lg) 0;
}

.screenshot-grid img {
    height: 600px;
    width: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 8px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.screenshot-grid img:hover {
    transform: scale(1.02);
    z-index: 10;
}

/* Early Access Form */
.early-access {
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.early-access h2 {
    color: white;
}

.early-access p {
    color: #94a3b8;
}

.early-access-form {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    max-width: 500px;
    margin: var(--spacing-md) auto 0;
}

.early-access-form input {
    flex: 1;
    padding: 1rem;
    border-radius: var(--radius-full);
    border: none;
    outline: none;
    font-family: var(--font-main);
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .early-access-form {
        flex-direction: column;
    }

    .screenshot-grid img {
        height: 400px;
        width: auto;
        max-width: 100%;
    }
}

/* Step Card for How it Works */
.step-card {
    background: transparent;
    padding: var(--spacing-md);
    text-align: center;
}

.step-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.5rem;
}