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

:root {
    /* Theme — five steps (dark → light) */
    --sage-1: #2a3d2d;
    --sage-2: #608a62;
    --sage-3: #97b89a;
    --sage-4: #c2d7c3;
    --sage-5: #f0f5f1;
    --primary-dark-green: var(--sage-1);
    --primary-light-green: var(--sage-3);
    --sage-deep: var(--sage-1);
    --sage-mid: var(--sage-2);
    --sage-soft: var(--sage-3);
    --sage-mist: var(--sage-5);
    --cream-bg: var(--sage-5);
    --text-dark: var(--sage-1);
    --text-light: #4a5e4c;
    --gradient-sage: linear-gradient(135deg, var(--sage-1) 0%, var(--sage-2) 28%, var(--sage-3) 52%, var(--sage-4) 78%, var(--sage-5) 100%);
    --gradient-sage-alt: linear-gradient(145deg, var(--sage-1) 0%, var(--sage-2) 32%, var(--sage-3) 58%, var(--sage-4) 84%, var(--sage-5) 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-sage);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-dark-green);
}

/* Hero Section - Split layout with decorative background */
.hero {
    position: relative;
    padding: 140px 0 100px;
    background: var(--gradient-sage);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Decorative background shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.hero-shape-1 {
    width: 500px;
    height: 500px;
    background: var(--sage-deep);
    top: -150px;
    right: -100px;
}

.hero-shape-2 {
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.18);
    bottom: 10%;
    left: -80px;
}

.hero-shape-3 {
    width: 250px;
    height: 250px;
    background: var(--sage-soft);
    top: 40%;
    right: 15%;
}

/* Diagonal cream curve - bottom left, sweeping up */
.hero-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 50%;
    background: var(--cream-bg);
    border-top-right-radius: 100%;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-left {
    flex: 0 0 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phone-wrapper {
    width: 100%;
    max-width: 318px;
}

.hero-phone .phone-frame {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-right {
    flex: 1;
    max-width: 520px;
}

.hero-content {
    text-align: left;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 1px 2px rgba(42, 61, 45, 0.35), 0 2px 24px rgba(42, 61, 45, 0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.98;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-shadow: 0 1px 3px rgba(42, 61, 45, 0.28);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* iPhone 16 Plus — 1290×2796 logical display, thin bezel */
.phone-frame {
    position: relative;
    width: 304px;
    max-width: 100%;
    background: #1a1a1a;
    border-radius: 54px;
    padding: 5px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.25),
        0 0 0 2px #222,
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* Screen area — aspect matches actual screenshots (1206×2622) */
.phone-screen {
    position: relative;
    overflow: hidden;
    border-radius: 46px;
    aspect-ratio: 1206 / 2622;
    background: #000;
    width: 100%;
}

.phone-screenshot.carousel-slide {
    flex: 0 0 25%;
    width: 25%;
    height: 100%;
    min-height: 100%;
    object-fit: fill;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
}

/* iPhone 16 Plus Dynamic Island — slightly wider */
.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 118px;
    height: 34px;
    background: #1a1a1a;
    border-radius: 22px;
    z-index: 2;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
    width: 400%;
    will-change: transform;
    transform: translateZ(0);
}

/* Hero carousel: width & slide flex set in JS from slide count (avoids 4-slide / 3-slide mismatch) */
.carousel-track.hero-carousel-track {
    width: 500%;
}

.carousel-track.hero-carousel-track .phone-screenshot.carousel-slide {
    flex: 0 0 20%;
    width: 20%;
    max-width: 20%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: var(--primary-dark-green);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: var(--cream-bg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-dark-green);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    background: var(--primary-dark-green);
    color: white;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: var(--primary-light-green);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--cream-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 100px 0;
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.benefits-list {
    list-style: none;
    margin-top: 2rem;
}

.benefits-list li {
    padding: 1rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
    color: var(--text-light);
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-light-green);
    font-weight: bold;
    font-size: 1.3rem;
}

/* Waitlist + CTA — gradient + form (id #signup ensures styles apply even if class cache is stale) */
#signup {
    padding: 130px 0;
    text-align: center;
    color: var(--text-dark);
    background-color: var(--sage-1);
    background-image: var(--gradient-sage-alt);
}

.waitlist-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #f0f5f1;
    text-shadow: 0 1px 3px rgba(42, 61, 45, 0.45);
    margin: 0 0 0.75rem;
}

.waitlist-heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.waitlist-lead {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.65;
    max-width: 720px;
    margin: 0 auto 3.75rem;
}

.signup-content {
    max-width: 800px;
    margin: 0 auto;
}

.email-signup-form {
    margin-top: 0.75rem;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.waitlist-signup .waitlist-form-row,
#waitlistForm .waitlist-form-row {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    padding: 6px;
    border: 1.5px solid rgba(240, 245, 241, 0.65);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.waitlist-signup .email-input,
#signup .email-input {
    flex: 1;
    min-width: 200px;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    border: none;
    border-radius: 999px;
    outline: none;
    background: transparent;
    color: var(--sage-5);
    transition: box-shadow 0.2s ease;
}

.waitlist-signup .email-input:focus,
#signup .email-input:focus {
    box-shadow: none;
}

.waitlist-signup .email-input::placeholder,
#signup .email-input::placeholder {
    color: rgba(240, 245, 241, 0.65);
}

.waitlist-signup .btn-submit.btn-large,
#signup .btn-submit.btn-large {
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 1rem 1.75rem;
    flex-shrink: 0;
}

.waitlist-signup .form-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1.25rem;
    opacity: 1;
}

.waitlist-signup .success-message {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark-green);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    margin-top: 1.5rem;
    animation: fadeInUp 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.waitlist-signup .success-message p {
    font-size: 1.05rem;
    margin: 0;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #9ca3af;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-light-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .nav-links {
        gap: 1rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

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

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .form-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-container {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-left {
        flex: none;
        order: 1;
    }

    .hero-right {
        flex: none;
        order: 2;
        max-width: 100%;
    }

    .hero-content {
        text-align: center;
    }

    .hero-curve {
        width: 80%;
        height: 35%;
    }

    .hero-shape-2,
    .hero-shape-3 {
        display: none;
    }

    .waitlist-heading {
        font-size: 2rem;
    }

    .waitlist-form-row {
        flex-direction: column;
        border-radius: 20px;
        padding: 10px;
        max-width: 100%;
    }

    .waitlist-signup .email-input {
        width: 100%;
        min-width: unset;
    }

    .waitlist-signup .btn-submit.btn-large {
        width: 100%;
        max-width: none;
    }

    .email-input {
        width: 100%;
        min-width: unset;
    }

    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .nav-links {
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }
}

