/* ===========================
   CSS Reset & Base Styles
   =========================== */

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

:root {
    /* Brand Colors - Based on Alvo Logo */
    --primary-color: #1BB8C5;
    --primary-dark: #159AA5;
    --primary-light: #4DD4DE;

    /* Neutral Colors */
    --text-dark: #1a1a1a;
    --text-gray: #4a5568;
    --text-light: #718096;
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-gray: #edf2f7;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --container-padding: 1.5rem;
    --section-spacing: 3rem;

    /* Typography */
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-system);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===========================
   Gradient Text
   =========================== */

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 2rem 0;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.logo-container {
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    width: 100px;
    height: 100px;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(27, 184, 197, 0.3));
    background: transparent;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* ===========================
   Waitlist Form
   =========================== */

.waitlist-form {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--bg-gray);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    font-family: var(--font-system);
}

.email-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(27, 184, 197, 0.1);
}

.email-input::placeholder {
    color: var(--text-light);
}

.submit-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    font-family: var(--font-system);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===========================
   Success Message
   =========================== */

.success-message {
    display: none;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
    animation: fadeInScale 0.5s ease-out;
}

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

.checkmark {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.checkmark-circle {
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: var(--primary-color);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

.success-message p {
    font-size: 1.125rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* ===========================
   Features Section
   =========================== */

.features {
    padding: var(--section-spacing) 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--bg-gray);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: white;
}

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

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ===========================
   Screenshot Section
   =========================== */

.screenshot-section {
    margin-top: 3rem;
}

.screenshot-placeholder {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px dashed var(--bg-gray);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.screenshot-placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.screenshot-placeholder p {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.screenshot-placeholder span {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ===========================
   Footer
   =========================== */

.footer {
    background: var(--bg-light);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--bg-gray);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

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

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* ===========================
   Animations
   =========================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes stroke {
    to {
        stroke-dashoffset: 0;
    }
}

/* ===========================
   Responsive Design - Tablet
   =========================== */

@media (min-width: 640px) {
    :root {
        --container-padding: 2rem;
        --section-spacing: 4rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .logo {
        width: 120px;
        height: 120px;
    }

    .form-group {
        flex-direction: row;
    }

    .submit-btn {
        white-space: nowrap;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card:last-child {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

/* ===========================
   Responsive Design - Desktop
   =========================== */

@media (min-width: 1024px) {
    :root {
        --section-spacing: 5rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.375rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .screenshot-placeholder {
        min-height: 500px;
    }

    .footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ===========================
   Accessibility
   =========================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card {
        border: 2px solid var(--text-dark);
    }
}
