/* ========================================
   MoonThreads - Luxury Organic Sleepwear
   Ethereal, Feminine, Editorial Design
   ======================================== */

/* CSS Variables */
:root {
    /* Primary Palette - Ethereal Twilight */
    --blush: #F5E6E0;
    --rose: #E8D5D0;
    --dusty-rose: #D4B5AD;
    --mauve: #C9A9A6;
    --twilight: #9B8AA0;
    --plum: #6B5B6E;
    --deep-plum: #4A3F4F;

    /* Neutrals */
    --cream: #FAF8F6;
    --warm-white: #FDFCFB;
    --soft-gray: #E8E4E1;
    --charcoal: #3D3D3D;
    --rich-black: #1C1C1C;

    /* Accent */
    --gold: #C9A962;
    --soft-gold: #D4BC7C;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;

    /* Spacing */
    --section-padding: 6rem;
    --container-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--charcoal);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--deep-plum);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.35rem;
    color: var(--plum);
    margin-bottom: 0.75rem;
}

p {
    color: var(--charcoal);
}


/* ========================================
   Marquee
   ======================================== */
.marquee {
    background: var(--deep-plum);
    padding: 1rem 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marquee 25s linear infinite;
}

.marquee-track span {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.marquee-track span::before {
    content: '✦ ';
    opacity: 0.5;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ========================================
   Navigation
   ======================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(253, 252, 251, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--deep-plum);
    position: absolute;
    left: 2rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nav-logo.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--deep-plum);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--twilight);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(
        180deg,
        #E8D5D5 0%,
        #E5D0D8 15%,
        #D8C4D4 30%,
        #C9B8CC 45%,
        #B8A8C0 60%,
        #A898B0 75%,
        #9888A0 90%,
        #887890 100%
    );
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 30% 70%, rgba(255, 220, 220, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 70% 60%, rgba(200, 180, 220, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/HeroImage-desktop.jpg') center center / cover no-repeat;
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.hero-logo {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 7rem);
    font-weight: 500;
    color: var(--rich-black);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--deep-plum);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.hero-launching {
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: white;
    margin-top: 3rem;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.4);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.4), 0 0 10px rgba(255, 255, 255, 0.2);
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 255, 255, 1), 0 0 60px rgba(255, 255, 255, 0.8), 0 0 80px rgba(255, 255, 255, 0.6), 0 0 100px rgba(255, 255, 255, 0.4);
        opacity: 1;
        transform: scale(1.05);
    }
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    color: var(--rich-black);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subheadline {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 300;
    color: var(--deep-plum);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Email Form */
.hero-signup {
    margin-top: 1rem;
}

.hero-signup .email-form {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    padding: 0.35rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero-signup .email-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--charcoal);
    outline: none;
}

.hero-signup .email-form input::placeholder {
    color: var(--dusty-rose);
}

.hero-signup .email-form button {
    padding: 1rem 2rem;
    background: var(--deep-plum);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-signup .email-form button:hover {
    background: var(--plum);
    transform: translateY(-1px);
}

.signup-microcopy {
    font-size: 0.8rem;
    color: var(--plum);
    margin-top: 1rem;
    opacity: 0.8;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--deep-plum);
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

.hero-scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    width: 1px;
    height: 30px;
    background: var(--deep-plum);
    margin: 0 auto;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 9px;
    height: 9px;
    border-right: 1px solid var(--deep-plum);
    border-bottom: 1px solid var(--deep-plum);
    transform: rotate(45deg);
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   Signup Section
   ======================================== */
.signup-section {
    padding: var(--section-padding) 0;
    background: var(--warm-white);
}

.signup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.signup-content h2 {
    margin-bottom: 1.5rem;
}

.signup-intro {
    font-size: 1rem;
    color: var(--plum);
    margin-bottom: 1rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--charcoal);
    font-size: 0.95rem;
}

.benefits-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--dusty-rose);
    font-size: 0.6rem;
    top: 0.4rem;
}

.signup-form-container {
    background: linear-gradient(135deg, var(--blush) 0%, var(--rose) 100%);
    padding: 3rem;
    border-radius: 20px;
}

.email-form-large {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-form-large input {
    padding: 1.25rem 1.5rem;
    border: none;
    border-radius: 10px;
    background: white;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--charcoal);
    outline: none;
    transition: box-shadow 0.3s ease;
}

.email-form-large input:focus {
    box-shadow: 0 0 0 2px var(--twilight);
}

.email-form-large input::placeholder {
    color: var(--dusty-rose);
}

.email-form-large button {
    padding: 1.25rem 2rem;
    background: var(--deep-plum);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-form-large button:hover {
    background: var(--plum);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 63, 79, 0.3);
}

.form-disclaimer {
    font-size: 0.8rem;
    color: var(--plum);
    margin-top: 1rem;
    opacity: 0.7;
}

/* Button States */
button.success {
    background: #5B8A72 !important;
    cursor: default;
}

button.error {
    background: #C17B7B !important;
}

/* ========================================
   Why Organic Section
   ======================================== */
.why-organic-section {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--twilight);
    margin-top: 0.5rem;
}

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

.feature-card {
    background: var(--warm-white);
    padding: 2.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--rose);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--dusty-rose);
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--charcoal);
    opacity: 0.85;
}

/* ========================================
   Promise Section
   ======================================== */
.promise-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--rose) 0%, var(--blush) 100%);
}

.promise-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    padding: 3rem 2rem;
}

.promise-content h2 {
    margin-bottom: 2rem;
}

.promise-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--deep-plum);
    margin-bottom: 1.5rem;
}

.certifications {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(74, 63, 79, 0.15);
}

.cert-label {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--plum);
    margin-bottom: 1rem;
}

.cert-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cert-badge {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--deep-plum);
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cert-badge:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
    padding: var(--section-padding) 0;
    background: var(--warm-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--soft-gray);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--deep-plum);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--twilight);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--dusty-rose);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--charcoal);
    opacity: 0.85;
}

/* ========================================
   Final CTA Section
   ======================================== */
.final-cta {
    padding: var(--section-padding) 0;
    background: var(--deep-plum);
    text-align: center;
}

.final-cta h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.final-cta > .container > p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.email-form-final {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.email-form-final input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: white;
    outline: none;
}

.email-form-final input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.email-form-final button {
    padding: 1rem 2rem;
    background: white;
    color: var(--deep-plum);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.email-form-final button:hover {
    background: var(--blush);
    transform: translateY(-1px);
}

/* ========================================
   Footer
   ======================================== */
footer {
    padding: 4rem 0 2rem;
    background: var(--rich-black);
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-links a {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-mission {
    margin-top: 0.5rem;
    font-style: italic;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
    }

    /* Navigation */
    .nav-logo {
        position: static;
        opacity: 1;
        transform: none;
    }

    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 5px;
    }

    .nav-links {
        gap: 1.5rem;
        line-height: 1.2rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    /* Hero */
    .hero {
        padding: 8rem 1.5rem 4rem;
        background: linear-gradient(
            180deg,
            #E8D5D5 0%,
            #D8C4D4 40%,
            #B8A8C0 70%,
            #9888A0 100%
        );
    }

    .hero-eyebrow {
        margin-bottom: 2.5rem;
    }

    .hero-launching {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-subheadline br {
        display: none;
    }

    .hero-signup .email-form {
        flex-direction: column;
        border-radius: 15px;
        padding: 0.5rem;
    }

    .hero-signup .email-form input {
        text-align: center;
    }

    .hero-signup .email-form button {
        width: 100%;
        border-radius: 10px;
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* Signup */
    .signup-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .signup-form-container {
        padding: 2rem;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    /* Email Forms */
    .email-form-final {
        flex-direction: column;
        border-radius: 15px;
        padding: 0.5rem;
    }

    .email-form-final input {
        text-align: center;
        color: white;
    }

    .email-form-final button {
        width: 100%;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links li:first-child {
        display: none;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-eyebrow {
        font-size: 0.65rem;
        margin-bottom: 1.5rem;
    }

    .hero-launching {
        margin-top: 2.5rem;
        margin-bottom: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1.25rem 0;
    }
}

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

.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* Selection Color */
::selection {
    background: var(--dusty-rose);
    color: white;
}

/* Focus States */
input:focus,
button:focus {
    outline: none;
}

button:focus-visible {
    box-shadow: 0 0 0 3px rgba(155, 138, 160, 0.4);
}

/* Smooth transitions for all interactive elements */
a, button, input {
    transition: all 0.3s ease;
}
