/* ════════════════════════════════════════════
   Noah's Galactic QwArk — Website Styles
   Deep space. Gold light. Weird hope.
   ════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
    --bg-deep:      #0d1b2a;
    --bg-mid:       #1b2838;
    --bg-card:      #162032;
    --gold:         #ffd700;
    --gold-dim:     #b8960a;
    --gold-glow:    rgba(255, 215, 0, 0.15);
    --text:         #f0e6d3;
    --text-dim:     #a89f91;
    --text-bright:  #ffffff;

    /* Phase accent colors */
    --purple:       #a78bfa;
    --orange:       #fdba74;
    --red:          #f87171;
    --green:        #10b981;
    --blue:         #93c5fd;
    --pink:         #f472b6;
    --gray:         #9ca3af;

    /* Fonts */
    --font-heading: 'Syne', sans-serif;
    --font-body:    'Space Grotesk', sans-serif;

    /* Spacing */
    --section-pad:  clamp(4rem, 10vw, 8rem);
    --container:    860px;
}

/* ─── RESET ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg-deep);
    overflow-x: hidden;
}

/* ─── CANVAS (star field) ─── */
#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ─── LAYOUT ─── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    position: relative;
    z-index: 1;
    padding: var(--section-pad) 0;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
}

em {
    font-style: italic;
    color: var(--gold);
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--gold);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ════════════════════════════════════════════
   SECTION 1: HERO — The Transmission
   ════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
}

.hero-content {
    max-width: 700px;
}

.transmission-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInSlow 1.5s 0.5s forwards;
}

.hero-title {
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    color: var(--text-bright);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInSlow 2s 1.2s forwards;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-dim);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInSlow 1.5s 2.5s forwards;
}

.hero-good {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInSlow 1s 3.5s forwards;
}

.hero-cta {
    opacity: 0;
    animation: fadeInSlow 1.5s 4.2s forwards;
}

.cta-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-dim);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

.cta-link:hover {
    background: var(--gold);
    color: var(--bg-deep);
    opacity: 1;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeInSlow 1s 5s forwards, bob 2s 5s ease-in-out infinite;
}

.scroll-arrow {
    color: var(--gold-dim);
    font-size: 1.5rem;
}

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

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

/* ════════════════════════════════════════════
   SECTION 2: THE PITCH — 40 Days
   ════════════════════════════════════════════ */
.pitch {
    background: linear-gradient(180deg, transparent 0%, rgba(27, 40, 56, 0.5) 30%, rgba(27, 40, 56, 0.5) 70%, transparent 100%);
}

.pitch-text {
    max-width: var(--container);
    margin: 2rem auto;
}

.pitch-text p {
    margin-bottom: 1.5rem;
}

.pitch-sell {
    font-size: 1.15rem;
    color: var(--text-bright);
    font-weight: 500;
}

.footnote-mark {
    color: var(--gold);
    font-weight: 700;
    cursor: default;
}

.footnote {
    font-size: 0.88rem;
    color: var(--text-dim);
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    margin-top: 2rem;
    padding-top: 1rem;
    font-style: italic;
    max-width: 600px;
}

.pitch-images {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pitch-img {
    width: min(300px, 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ════════════════════════════════════════════
   SECTION 3: THE CREW — Character Cards
   ════════════════════════════════════════════ */
.crew {
    background: linear-gradient(180deg, transparent 0%, rgba(13, 27, 42, 0.8) 20%, rgba(13, 27, 42, 0.8) 80%, transparent 100%);
}

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

.crew-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.crew-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--gold));
    opacity: 0.7;
}

.crew-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--gold-glow);
}

.crew-portrait {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--card-accent, var(--gold));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.crew-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crew-name {
    font-size: 1.5rem;
    color: var(--card-accent, var(--gold));
    margin-bottom: 0.15rem;
}

.crew-role {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.crew-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text);
    text-align: left;
}

/* ════════════════════════════════════════════
   SECTION 4: THE VIBE — What Actually Happens
   ════════════════════════════════════════════ */
.vibe {
    background: linear-gradient(180deg, transparent 0%, rgba(27, 40, 56, 0.4) 30%, rgba(27, 40, 56, 0.4) 70%, transparent 100%);
}

.vibe-sequence {
    max-width: 500px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vibe-step p {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-bright);
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.vibe-aside {
    display: block;
    font-size: 0.88rem;
    color: var(--text-dim);
    font-style: italic;
    padding-bottom: 0.6rem;
}

.vibe-tea {
    width: 40px;
    height: 40px;
    display: inline-block;
    margin-top: 0.25rem;
    opacity: 0.8;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
}

.vibe-shift p {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
    border-bottom: none;
    padding-top: 1.5rem;
}

.vibe-image {
    margin: 3rem auto;
    max-width: 500px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.08);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.vibe-phases {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: center;
}

.vibe-phases p {
    margin-bottom: 1rem;
}

.norb-sign-off {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--green);
    font-weight: 700;
}

/* ════════════════════════════════════════════
   SECTION 5: THE BOTTOM LINE — Privacy & CTA
   ════════════════════════════════════════════ */
.bottom-line {
    text-align: center;
}

.privacy-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    margin: 2.5rem auto;
    max-width: 500px;
}

.privacy-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.privacy-icon {
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 700;
}

.privacy-statement {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    color: var(--text-bright);
    max-width: 600px;
    margin: 2rem auto 1rem;
}

.privacy-sub {
    color: var(--text-dim);
    font-size: 0.95rem;
    max-width: 480px;
    margin: 0 auto;
}

.final-cta {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-scene {
    max-width: 500px;
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.08);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.cta-text {
    font-size: 1.1rem;
    color: var(--text-dim);
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bg-deep);
    background: var(--gold);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.25);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.35);
    opacity: 1;
}

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.08);
}

.footer-credit {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.footer-credit strong {
    color: var(--gold);
    font-weight: 600;
}

.footer-copy {
    color: var(--text-dim);
    font-size: 0.8rem;
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.footer-norb {
    font-size: 0.88rem;
    color: var(--text-dim);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ════════════════════════════════════════════
   SCROLL ANIMATIONS
   ════════════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .crew-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .pitch-images {
        flex-direction: column;
        align-items: center;
    }

    .privacy-grid {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    :root {
        --section-pad: 3rem;
    }

    .hero {
        padding: 1.5rem 1rem;
    }

    .hero-title br {
        display: none;
    }

    .vibe-step p {
        font-size: 1.05rem;
    }

    .crew-card {
        padding: 1.5rem 1.25rem;
    }

    .crew-portrait {
        width: 110px;
        height: 110px;
    }
}

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

    .fade-in {
        opacity: 1;
        transform: none;
    }

    .scroll-hint {
        animation: none;
        opacity: 1;
    }
}
