/* ===== CSS Variables ===== */
:root {
    /* Brand Colors */
    --dark-navy: #212339;
    --bright-blue: #003ADC;
    --steel-gray: #6F8091;
    --light-gray: #A9B3BD;
    --teal: #097E83;
    --mint: #7AEBD7;
    --off-white: #F4F1EA;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;

    /* Theme Colors - Light Mode (Default) */
    --bg-primary: var(--off-white);
    --bg-secondary: #FFFFFF;
    --text-primary: var(--dark-navy);
    --text-secondary: var(--steel-gray);
    --accent: var(--teal);
    --accent-hover: #086b6f;
    --border-color: var(--light-gray);
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: var(--dark-navy);
    --bg-secondary: #2a2d45;
    --text-primary: var(--off-white);
    --text-secondary: var(--light-gray);
    --accent: var(--mint);
    --accent-hover: #8ff0df;
    --border-color: var(--steel-gray);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color var(--transition-medium), color var(--transition-medium);
}

/* ===== Main Landing Container ===== */
.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    position: relative;
    text-align: center;
}

/* ===== Logo ===== */
.logo-container {
    margin-bottom: 3.5rem;
    animation: fadeIn 0.8s ease-out;
}

.logo {
    max-width: 850px;
    width: 100%;
    height: auto;
}

.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

/* ===== Headline ===== */
.headline {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    font-style: italic;
    line-height: 1.25;
    margin-bottom: 2rem;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

/* ===== Description ===== */
.description {
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ===== Email Form ===== */
.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.email-form input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

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

.email-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(9, 126, 131, 0.15);
}

[data-theme="dark"] .email-form input:focus {
    box-shadow: 0 0 0 2px rgba(122, 235, 215, 0.15);
}

.btn-notify {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 6px;
    background-color: var(--accent);
    color: var(--bg-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-notify:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(9, 126, 131, 0.25);
}

[data-theme="dark"] .btn-notify {
    color: var(--dark-navy);
}

[data-theme="dark"] .btn-notify:hover {
    box-shadow: 0 4px 16px rgba(122, 235, 215, 0.3);
}

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

/* ===== Form Success State ===== */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background-color: rgba(9, 126, 131, 0.1);
    border-radius: 8px;
    border: 1px solid var(--accent);
    color: var(--accent);
    max-width: 420px;
    width: 100%;
    animation: fadeInUp 0.4s ease-out;
}

[data-theme="dark"] .form-success {
    background-color: rgba(122, 235, 215, 0.1);
}

.form-success.show {
    display: flex;
}

.form-success p {
    font-weight: 500;
    text-align: center;
}

/* ===== Decorative Star ===== */
.star-decoration {
    position: absolute;
    bottom: 2.5rem;
    right: 3rem;
    animation: starPulse 3s ease-in-out infinite;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes starPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1) rotate(15deg);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .landing {
        padding: 2rem 1.5rem;
    }

    .headline {
        font-size: clamp(1.5rem, 6vw, 2.25rem);
    }

    .headline br,
    .description br {
        display: none;
    }

    .description {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .email-form {
        max-width: 100%;
    }

    .star-decoration {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .star-decoration svg {
        width: 24px;
        height: 24px;
    }
}

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

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 100;
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}
