/* ===== CSS RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Brand Colors */
    --spark-orange: #E8740C;
    --ember: #D4600A;
    --flame-gold: #F59E3F;
    --charcoal: #1A1A1A;
    --graphite: #333333;
    --stone: #666666;
    --warm-mist: #F5F2EE;
    --cream: #FFFBF5;
    
    /* Typography */
    --font-display: 'DM Serif Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Spacing */
    --container-max: 1200px;
    --section-padding: 80px 20px;
    --section-padding-mobile: 60px 20px;
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--graphite);
    line-height: 1.6;
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===== HEADER ===== */
.header {
    padding: 24px 20px;
    background: var(--cream);
    position: relative;
    z-index: 10;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wordmark-icon {
    flex-shrink: 0;
    display: block;
}

.wordmark-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--spark-orange);
    font-weight: 400;
    line-height: 1;
}

/* ===== HERO SECTION ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--warm-mist) 100%);
    padding: 50px 20px 50px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--charcoal);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.hero-subheadline {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: var(--stone);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
}

/* ===== WAVE DIVIDER ===== */
.wave-divider {
    width: 100%;
    height: 60px;
    margin-top: -1px;
    position: relative;
    z-index: 2;
}

.wave-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== SIGNUP FORM ===== */
.signup-form {
    margin: 36px auto 0;
    max-width: 600px;
    position: relative;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
    position: relative;
    width: 100%;
}

.form-note {
    flex: 1;
    max-width: calc(100% - 150px);
}

.sparky-character {
    flex-shrink: 0;
    position: absolute;
    right: -120px;
    bottom: -10px;
}

.sparky-character img {
    width: 100px;
    height: auto;
}

.form-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.form-group input {
    flex: 1;
    padding: 18px 24px;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 2px solid var(--warm-mist);
    border-radius: 12px;
    background: white;
    color: var(--charcoal);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-group input:hover {
    border-color: rgba(232, 116, 12, 0.2);
}

.form-group input:focus {
    outline: none;
    border-color: var(--spark-orange);
    box-shadow: 0 0 0 4px rgba(232, 116, 12, 0.1), 0 4px 12px rgba(232, 116, 12, 0.08);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: var(--stone);
}

.btn-primary {
    padding: 18px 36px;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    background: linear-gradient(135deg, var(--spark-orange) 0%, var(--ember) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(232, 116, 12, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 116, 12, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(232, 116, 12, 0.25);
}

.form-note {
    color: var(--stone);
    font-size: 0.875rem;
    font-weight: 400;
    margin: 0;
    text-align: center;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: var(--section-padding);
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.feature-card {
    background: var(--warm-mist);
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(232, 116, 12, 0.08);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(232, 116, 12, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(232, 116, 12, 0.15);
}

.feature-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    opacity: 1;
}

.feature-illustration {
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-illustration {
    transform: scale(1.05) translateY(-4px);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: 16px;
    line-height: 1.2;
}

.feature-card p {
    color: var(--stone);
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== LAUNCH INFO SECTION ===== */
.launch-info {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--warm-mist) 0%, #FFF5E6 100%);
    text-align: center;
    position: relative;
}

.launch-content {
    position: relative;
    z-index: 1;
}

.launch-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--charcoal);
    margin-bottom: 32px;
}

.app-store-badge {
    display: inline-block;
    margin-bottom: 48px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.app-store-badge:hover {
    transform: scale(1.05) translateY(-2px);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}

.app-store-badge img {
    height: 60px;
    width: auto;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--stone);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--warm-mist);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.social-links a:hover {
    color: var(--spark-orange);
    background: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(232, 116, 12, 0.15), 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* ===== FOOTER ===== */
.footer {
    padding: 48px 20px;
    background: var(--charcoal);
    color: var(--warm-mist);
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-icon {
    margin-bottom: 8px;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.footer-links a {
    color: var(--warm-mist);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--spark-orange);
}

.footer-links span {
    color: var(--stone);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header {
        padding: 20px;
    }
    
    .wordmark-text {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 40px 20px 40px;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .btn-primary {
        width: 100%;
    }
    
    .form-footer {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 16px;
    }
    
    .form-note {
        order: 2;
    }
    
    .sparky-character {
        position: static;
        order: 1;
    }
    
    .sparky-character img {
        width: 90px;
        height: auto;
    }
    
    .features {
        padding: var(--section-padding-mobile);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .launch-info {
        padding: var(--section-padding-mobile);
    }
    
    .social-links {
        gap: 16px;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-links span {
        display: none;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding-mobile: 40px 16px;
    }
    
    .feature-card {
        padding: 32px 24px;
    }
    
    .wordmark-icon {
        width: 24px;
        height: auto;
    }
    
    .wordmark-text {
        font-size: 1.375rem;
    }
}

/* ===== SUCCESS MESSAGE ===== */
.success-message {
    background: var(--cream);
    color: var(--spark-orange);
    padding: 16px 24px;
    border-radius: 12px;
    margin-top: 16px;
    display: none;
    animation: fadeIn 0.5s ease-out;
    border: 2px solid var(--spark-orange);
    font-weight: 600;
    text-align: center;
}

.success-message.show {
    display: block;
}
