:root {
    --bg: #FAF6ED;
    --bg-alt: #F5F9E8;
    --card-bg: #FFFFFF;
    --primary: #084E72;
    --accent-blue: #0F78F3;
    --text: #606060;
    --text-secondary: #7A7A7A;
    --divider: #D1D8DC;
    --green1: #A9CD9E;
    --green2: #D4E8BC;
    --blue1: #679ABB;
    --pinkpurple: #E3A8DF;
    --yellow: #FFD68A;
    --pastel-blue: #D4E8F6;
    --pastel-pink: #FAC8DD;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-width: 375px; /* iPhone SE/8 width */
    opacity: 0;
    animation: pageReveal 0.8s ease-out 0.1s forwards;
}

@keyframes pageReveal {
    to {
        opacity: 1;
    }
}

/* Header */
.header {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

.header-logo {
    width: 200px;
    height: auto;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.header-logo:hover {
    opacity: 1;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Curved Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #F5F0E6; /* Slightly darker than --bg for contrast */
    z-index: -1;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(169, 205, 158, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(103, 154, 187, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(212, 232, 246, 0.04) 0%, transparent 70%);
    animation: floatSubtle 20s ease-in-out infinite;
}

@keyframes floatSubtle {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -50%;
    right: -50%;
    height: 120px;
    background: var(--bg);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: scaleX(2);
}


/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: 2rem 1.5rem;
    text-align: center;
    animation: contentFadeIn 1s ease-out 0.3s backwards;
}

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

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Logo */
.logo {
    width: 500px;
    height: auto;
    margin-bottom: 0.5rem;
    animation: fadeIn 1s ease;
    position: relative;
    left: -250px;
}

/* Typography */
.hero-heading {
    margin-bottom: 2rem;
    color: var(--primary);
    text-wrap: balance;
}

.hero-heading-main {
    display: block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 650;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.hero-heading-accent {
    display: block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    font-weight: 400;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin-top: -0.2em;
    position: relative;
}

.hero-heading-accent::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.3em;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.hero-subtext {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Text highlight animation */
.text-highlight {
    font-weight: 700;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 75%;
    height: 2px;
    background: linear-gradient(90deg, transparent 20%, var(--accent-blue) 50%, transparent 80%);
    animation: underlineSlide 3s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes underlineSlide {
    0% {
        transform: translateX(-25%);
        opacity: 0;
    }
    20% {
        opacity: 0.6;
    }
    80% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(70%);
        opacity: 0;
    }
}

/* Form Styles */
.waitlist-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.email-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--divider);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    transition: all 0.3s ease;
    min-width: 0;
}

.email-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 120, 243, 0.1);
}

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

.submit-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(8, 78, 114, 0.2);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    background: #063852;
    box-shadow: 0 6px 20px rgba(8, 78, 114, 0.3);
}

.submit-btn:hover::before {
    left: 100%;
}

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

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.9;
}

/* Button states */
.submit-btn.loading span {
    opacity: 0;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s ease infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

.submit-btn.success {
    background: var(--green1);
    pointer-events: none;
}

.submit-btn.success span {
    opacity: 0;
}

.submit-btn.success::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    animation: checkmarkPop 0.5s ease forwards;
}

@keyframes checkmarkPop {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

.email-input:disabled {
    background-color: var(--bg-alt);
    color: var(--text-secondary);
    border-color: var(--green1);
}

/* Success Message */
.success-message {
    display: none;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--green2);
    color: var(--primary);
    border-radius: 8px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

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

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

/* Responsive Design */
@media (min-width: 768px) {
    .form-group {
        flex-direction: row;
        justify-content: center;
        padding: 0.5rem;
    }
    
    .email-input {
        max-width: 350px;
        flex: 1;
    }
    
    .submit-btn {
        width: auto;
        flex-shrink: 0;
    }
    
    .waitlist-form {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .hero-subtext {
        font-size: 1.1rem;
        padding: 0 0.5rem;
        margin-bottom: 2rem;
    }
    
    .form-group {
        padding: 0.75rem;
        margin: 0 1rem;
        max-width: calc(100% - 2rem);
        border-radius: 40px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1.25rem 1rem;
    }
    
    .hero-heading-main {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .hero-heading-accent {
        font-size: 2.5rem;
        padding: 0 0.5rem;
    }
    
    .hero-subtext {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0;
    }
    
    .form-group {
        padding: 0.625rem;
        gap: 0.625rem;
        margin: 0 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .email-input {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 44px; /* Apple's touch target size */
    }
    
    .header {
        top: 1.25rem;
        left: 1.25rem;
    }
    
    .header-logo {
        width: 150px;
    }
    
    .logo {
        left: 0;
    }
}

/* Footer */
.footer {
    margin-top: -2rem;
    padding: 2rem 0;
    text-align: center;
    background: var(--bg); /* Using the lighter cream color */
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary);
    text-decoration: underline;
}