/* ============================================
   MySourdough Landing Page Styles
   Warm, bread-themed color palette
   ============================================ */

/* CSS Variables - Bread-Inspired Palette */
:root {
    /* Primary Colors - Warm Bread Tones */
    --crust-dark: #5D4037;
    --crust-medium: #795548;
    --crust-light: #8D6E63;

    /* Accent Colors - Golden Wheat */
    --wheat-gold: #D4A574;
    --wheat-light: #E8D4B8;
    --wheat-cream: #FDF6E9;

    /* Neutrals */
    --flour-white: #FEFCF9;
    --text-dark: #2C1810;
    --text-medium: #5D4037;
    --text-light: #8D7B75;

    /* Functional */
    --success: #7CB342;
    --shadow: rgba(93, 64, 55, 0.1);
    --shadow-hover: rgba(93, 64, 55, 0.15);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-xxl: 6rem;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--flour-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--text-dark);
}

a {
    color: var(--crust-medium);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--crust-dark);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ============================================
   Navigation
   ============================================ */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--container-padding);
    max-width: var(--container-max);
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--crust-dark);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--wheat-cream) 0%, var(--flour-white) 100%);
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--container-padding);
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--crust-dark);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--text-medium);
    margin-bottom: var(--space-lg);
    max-width: 600px;
}

/* CTA Section */
.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.coming-soon-badge {
    display: inline-block;
    background: var(--wheat-gold);
    color: var(--crust-dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.signup-form {
    display: flex;
    gap: var(--space-xs);
    width: 100%;
    max-width: 450px;
}

.signup-form input[type="email"] {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--wheat-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--wheat-gold);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
}

.signup-form button {
    padding: var(--space-sm) var(--space-lg);
    background: var(--crust-dark);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.signup-form button:hover {
    background: var(--crust-medium);
    transform: translateY(-1px);
}

.signup-form button:active {
    transform: translateY(0);
}

.signup-note {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Hero Bread Illustration */
.hero-image {
    position: absolute;
    bottom: -50px;
    right: 5%;
    opacity: 0.15;
    pointer-events: none;
}

.bread-illustration {
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse 80% 60% at 50% 45%, var(--crust-light) 0%, var(--crust-dark) 100%);
    border-radius: 50% 50% 45% 45%;
    position: relative;
    transform: rotate(-10deg);
}

.bread-score {
    position: absolute;
    background: var(--wheat-light);
    border-radius: 50%;
    opacity: 0.6;
}

.score-1 {
    width: 120px;
    height: 15px;
    top: 40%;
    left: 15%;
    transform: rotate(-20deg);
}

.score-2 {
    width: 100px;
    height: 12px;
    top: 55%;
    left: 25%;
    transform: rotate(-15deg);
}

.score-3 {
    width: 80px;
    height: 10px;
    top: 68%;
    left: 35%;
    transform: rotate(-10deg);
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: var(--space-xxl) 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--space-xl);
}

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

.feature-card {
    background: var(--wheat-cream);
    padding: var(--space-lg);
    border-radius: 16px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--crust-dark);
}

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

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    padding: var(--space-xxl) 0;
    background: linear-gradient(180deg, var(--flour-white) 0%, var(--wheat-cream) 100%);
}

.how-it-works h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--space-sm);
}

.steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.step {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--crust-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--space-md);
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    color: var(--crust-dark);
}

.step p {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.step-arrow {
    font-size: 2rem;
    color: var(--wheat-gold);
    padding-top: 15px;
    font-weight: 300;
}

/* ============================================
   Security Section
   ============================================ */
.security {
    padding: var(--space-xxl) 0;
    background: white;
}

.security-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.security-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
}

.security h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin-bottom: var(--space-sm);
}

.security > .container > .security-content > p {
    color: var(--text-medium);
    margin-bottom: var(--space-lg);
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
}

.security-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.05rem;
}

.security-item .check {
    color: var(--success);
    font-weight: 700;
    font-size: 1.25rem;
}

/* ============================================
   Final CTA Section
   ============================================ */
.final-cta {
    padding: var(--space-xxl) 0;
    background: var(--crust-dark);
    color: white;
    text-align: center;
}

.final-cta h2 {
    color: white;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-sm);
}

.final-cta p {
    color: var(--wheat-light);
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
}

.signup-form-dark {
    max-width: 450px;
    margin: 0 auto;
}

.signup-form-dark input[type="email"] {
    border-color: transparent;
}

.signup-form-dark button {
    background: var(--wheat-gold);
    color: var(--crust-dark);
}

.signup-form-dark button:hover {
    background: var(--wheat-light);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--space-lg) 0;
    background: var(--text-dark);
    color: var(--wheat-light);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer-brand .logo-text {
    color: white;
    font-size: 1.25rem;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--wheat-light);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 768px) {
    .hero {
        min-height: 85vh;
    }

    .hero-content {
        padding: var(--space-lg) var(--container-padding);
    }

    .signup-form {
        flex-direction: column;
    }

    .signup-form button {
        width: 100%;
    }

    .hero-image {
        display: none;
    }

    .step-arrow {
        display: none;
    }

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

    .step {
        max-width: 300px;
    }

    .footer-links {
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }

    .nav {
        padding: var(--space-sm) var(--container-padding);
    }

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

    .feature-card {
        padding: var(--space-md);
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.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;
}
