/* test_index.css – scroll-to-seek hero + logo to corner */

/* ----- Starry Night Sky Background ----- */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    z-index: 0;
    background: #000000;
    pointer-events: none;
    overflow: hidden;
    contain: layout style paint;
}

.star {
    position: absolute;
    background: #ffffff;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    filter: blur(0.5px);
}

.star::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: #ffffff;
    filter: blur(2px);
    opacity: 0.6;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.shooting-star {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff);
    animation: shoot 3s ease-out forwards;
    filter: drop-shadow(0 0 6px #ffffff);
    transform-origin: left center;
}

.shooting-star::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #ffffff;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes shoot {
    0% { transform: translateX(0) translateY(0) rotate(45deg); opacity: 1; width: 0; }
    10% { width: 100px; }
    100% { transform: translateX(300px) translateY(300px) rotate(45deg); opacity: 0; width: 100px; }
}

@media (max-width: 768px) {
    .star { animation: none; opacity: 0.5; }
}

/* ----- Waitlist Modal ----- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 3rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(227, 223, 153, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #f5f5f5;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #D9D282;
}

.modal-title {
    font-size: 2rem;
    color: #D9D282;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: normal;
}

.modal-subtitle {
    color: rgba(245, 245, 245, 0.7);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: #f5f5f5;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.form-input {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(227, 223, 153, 0.2);
    border-radius: 10px;
    color: #f5f5f5;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #D9D282;
    background: rgba(255, 255, 255, 0.08);
}

.form-submit {
    padding: 1rem;
    background: #D9D282;
    color: #1a1a1a;
    border: 2px solid #D9D282;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: #e5df9a;
    border-color: #e5df9a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(227, 223, 153, 0.3);
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-message {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}
@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Space Mono';
    src: url('fonts/SpaceMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100%;
    height: 100%;
    background: transparent;
}

body {
    font-family: 'Playfair Display', serif;
    background: transparent;
    color: #f5f5f5;
    overflow: hidden;
    line-height: 1.6;
    max-width: 100vw;
    height: 100%;
    margin: 0;
}

/* ----- Navigation ----- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100vw;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 1rem 5%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo img {
    height: 75px;
    width: auto;
    transition: transform 0.3s ease;
}

body.hero-logo-done .logo {
    opacity: 1;
}

body:not(.hero-logo-done) nav .logo,
body:not(.hero-logo-done) nav .nav-link {
    opacity: 0;
    pointer-events: none;
}

.nav-link {
    color: rgba(245, 245, 245, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: #D9D282;
}

.logo:hover img {
    transform: scale(1.05);
}

/* ----- Hero: fixed until scroll animation completes ----- */
.hero-wrapper {
    position: relative;
    width: 100%;
    scroll-snap-align: start;
}

.hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 10;
    pointer-events: none; /* let scroll pass through to .scroll-container */
    transition: opacity 0.4s ease;
}

.hero.hero-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero-spacer {
    position: relative;
    width: 100%;
    display: block;
    min-height: 100vh;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-video-wrap .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    visibility: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-scroll-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    filter: brightness(1.1) contrast(1.05);
}

.hero-fade-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: filter 0.2s ease-out, opacity 0.2s ease-out;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.9) 5%,
        rgba(0, 0, 0, 0.7) 15%,
        rgba(0, 0, 0, 0.3) 30%,
        rgba(0, 0, 0, 0.1) 45%,
        rgba(0, 0, 0, 0.05) 50%,
        rgba(0, 0, 0, 0.1) 55%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.7) 85%,
        rgba(0, 0, 0, 0.9) 95%,
        rgba(0, 0, 0, 1) 100%
    );
}

.hero-logo-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 55vw;
    transform: translate(-50%, -50%);
    z-index: 11;
    pointer-events: none;
}

.hero-logo-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

body.hero-logo-done .hero-logo-wrap {
    visibility: hidden;
    pointer-events: none;
}

/* Scroll hint: "Swipe up / Scroll down to start" at bottom of first section */
.scroll-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 12;
    pointer-events: none;
}

@media (max-width: 768px) {
    .scroll-hint {
        bottom: 4.5rem;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
}

.scroll-hint__inner {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    animation: scroll-hint-pulse 2s ease-in-out infinite;
}

.scroll-hint__word {
    display: inline-block;
    margin-right: 0.5em;
}

.scroll-hint__word:last-child {
    margin-right: 0;
}

.scroll-hint__inner--mobile {
    display: none;
}

.scroll-hint__inner--desktop {
    display: none;
}

@media (max-width: 768px) {
    .scroll-hint__inner--mobile {
        display: inline;
    }
}

@media (min-width: 769px) {
    .scroll-hint__inner--desktop {
        display: inline;
    }
}

.scroll-hint__letter {
    display: inline-block;
    transition: opacity 0.35s ease, filter 0.35s ease;
}

.scroll-hint.is-dismissed .scroll-hint__letter {
    opacity: 0;
    filter: blur(6px);
}

@keyframes scroll-hint-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Hero waitlist content (appears after logo moves to corner) */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    pointer-events: auto;
}

.hero-content .hero-image {
    width: 90%;
    max-width: 600px;
    height: auto;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-content .hero-description {
    font-size: 1.2rem;
    color: rgba(245, 245, 245, 0.9);
    text-align: center;
    max-width: 80%;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}

.hero-learn-more {
    display: inline-block;
    padding: 0.6rem 5rem;
    background: #D9D282;
    color: #1a1a1a;
    text-decoration: none;
    border: none;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s, box-shadow 0.4s ease, background 0.2s ease;
    animation: section-1-glow 2.5s ease-in-out infinite;
}

.hero-learn-more:hover {
    background: #e5df9a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(227, 223, 153, 0.3);
}

/* Hide hero content until logo is done */
body:not(.hero-logo-done) .hero-content {
    visibility: hidden;
    pointer-events: none;
}

/* Bottom gradient on hero */
.hero-bottom-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.95) 20%,
        rgba(0, 0, 0, 0.8) 40%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* ----- Scroll container: holds hero spacer + snap sections ----- */
.scroll-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
    z-index: 1;
}

.scroll-container.has-footer-pinned {
    padding-bottom: 72px; /* space for fixed site-footer when on last section */
}

/* Mobile: use proximity snap so users can scroll past section 1 to section 2 without snapping back */
@media (max-width: 768px) {
    .scroll-container {
        scroll-snap-type: y proximity;
    }
    /* Remove section 1 as a snap point so it doesn't keep pulling the scroll back */
    #section-1 {
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }
}

/* Visible scrollbar on desktop so users can drag through all sections */
@media (min-width: 769px) {
    .scroll-container {
        overflow-y: scroll;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.65) rgba(255, 255, 255, 0.08);
    }
    .scroll-container::-webkit-scrollbar {
        width: 12px;
    }
    .scroll-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.12);
        border-radius: 6px;
    }
    .scroll-container::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.55);
        border-radius: 6px;
        min-height: 60px;
    }
    .scroll-container::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.75);
    }
    /* Fixed elements must not cover the scrollbar strip so the whole bar is grabbable from the start */
    .hero {
        width: calc(100% - 16px);
    }
    nav {
        width: calc(100% - 16px);
        max-width: calc(100vw - 16px);
    }
}

/* ----- Snap sections (100vh × 100%) below hero ----- */
.snap-section {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 5%;
}

.snap-section__content {
    text-align: center;
    max-width: 40ch;
}

.snap-section h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.snap-section p {
    opacity: 0.8;
    font-size: 0.95rem;
}

#section-1 {
    background: transparent;
    transition: opacity 0.4s ease, filter 0.2s ease-out;
}

#section-1.section-1-crossfade-in {
    opacity: 0;
}

/* ----- Section 3: karaoke word reveal (tall section, sticky content) ----- */
.section-3 {
    position: relative;
    background: transparent;
    width: 100%;
    height: 250vh;
    scroll-snap-align: start;
}

.section-3__content {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 5%;
    box-sizing: border-box;
}
.section-4 {
    background: transparent;
}

.section-4__content {
    text-align: center;
    max-width: 40ch;
}

.section-4__title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 auto 0.75rem;
    color: #f5f5f5;
    text-align: center;
    max-width: 90%;
}

.section-4__text {
    color: rgba(245, 245, 245, 0.8);
    opacity: 0.9;
    font-size: 0.95rem;
}

.section-4__cta {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.9rem 2rem;
    background: #D9D282;
    color: #1a1a1a;
    border: 2px solid #D9D282;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-4__cta:hover {
    background: #e5df9a;
    border-color: #e5df9a;
}

/* ----- Site footer (Terms links) – fixed only when last section is in view ----- */
.site-footer {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem 3rem;
    text-align: center;
    background: transparent;
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-footer.site-footer--pinned {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 1.5rem 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: auto;
}

.site-footer__links {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(245, 245, 245, 0.85);
}

.site-footer__links a {
    color: #D9D282;
    text-decoration: none;
}

.site-footer__links a:hover {
    text-decoration: underline;
}

.site-footer__sep {
    margin: 0 0.5rem;
    color: rgba(245, 245, 245, 0.4);
}

/* ----- Section 5: placeholder ----- */
.section-5 {
    background: transparent;
}

.section-5__content {
    text-align: center;
    max-width: 40ch;
}

.section-5__title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #f5f5f5;
    margin-bottom: 0.75rem;
    color: #111;
}

.section-5__text {
    color: rgba(245, 245, 245, 0.8);
    opacity: 0.9;
    font-size: 0.95rem;
}

/* ----- Section 6: placeholder (after transition-white) ----- */
.section-6 {
    background: transparent;
}

.section-6__content {
    text-align: center;
    max-width: 40ch;
}

.section-6__title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #f5f5f5;
    margin-bottom: 0.75rem;
    color: #111;
}

.section-6__text {
    color: rgba(245, 245, 245, 0.8);
    opacity: 0.9;
    font-size: 0.95rem;
}

/* ----- Section 7: placeholder (after section 6, full scroll visible) ----- */
.section-7 {
    background: transparent;
}

.section-7__content {
    text-align: center;
    max-width: 40ch;
}

.section-7__title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #f5f5f5;
    margin-bottom: 0.75rem;
    color: #111;
}

.section-7__text {
    color: rgba(245, 245, 245, 0.8);
    opacity: 0.9;
    font-size: 0.95rem;
}

/* ----- Rocket section: in-flow, scroll-driven ----- */
.section-rocket {
    position: relative;
    width: 100%;
    height: 280vh;
    background: transparent;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.section-rocket__sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.section-rocket__wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(calc(10vh - var(--progress, 0) * 120vh));
    will-change: transform;
}

/* Rocket in its own block; overlaps white by 2px to hide the seam */
.section-rocket__rocket {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    min-height: 38vh;
    margin: 0 0 -2px 0;
    padding: 0;
    line-height: 0;
    position: relative;
    z-index: 1;
}

.section-rocket__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 38vh;
    object-fit: contain;
    object-position: bottom center;
    flex-shrink: 0;
    opacity: clamp(0, (0.9 - var(--progress, 0)) / 0.4, 1);
}

.section-rocket__white {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    background: #fefefe;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    transition: opacity 0.12s ease-out, filter 0.12s ease-out, clip-path 0.25s ease-out;
    /* Concave exhaust: sides curve INWARD to center point (wide at top, point at bottom) */
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - var(--white-leave, 0) * 75%),
        calc(100% - var(--white-leave, 0) * 15%) calc(100% - var(--white-leave, 0) * 65%),
        calc(100% - var(--white-leave, 0) * 25%) calc(100% - var(--white-leave, 0) * 55%),
        calc(100% - var(--white-leave, 0) * 34%) calc(100% - var(--white-leave, 0) * 45%),
        calc(100% - var(--white-leave, 0) * 40%) calc(100% - var(--white-leave, 0) * 35%),
        calc(100% - var(--white-leave, 0) * 44%) calc(100% - var(--white-leave, 0) * 25%),
        calc(100% - var(--white-leave, 0) * 47%) calc(100% - var(--white-leave, 0) * 15%),
        calc(100% - var(--white-leave, 0) * 49%) calc(100% - var(--white-leave, 0) * 5%),
        50% 100%,
        calc(var(--white-leave, 0) * 49%) calc(100% - var(--white-leave, 0) * 5%),
        calc(var(--white-leave, 0) * 47%) calc(100% - var(--white-leave, 0) * 15%),
        calc(var(--white-leave, 0) * 44%) calc(100% - var(--white-leave, 0) * 25%),
        calc(var(--white-leave, 0) * 40%) calc(100% - var(--white-leave, 0) * 35%),
        calc(var(--white-leave, 0) * 34%) calc(100% - var(--white-leave, 0) * 45%),
        calc(var(--white-leave, 0) * 25%) calc(100% - var(--white-leave, 0) * 55%),
        calc(var(--white-leave, 0) * 15%) calc(100% - var(--white-leave, 0) * 65%),
        0 calc(100% - var(--white-leave, 0) * 75%)
    );
}

.section-rocket__title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 400;
    line-height: 1.2;
    color: #111;
    margin: 0;
    text-align: center;
    max-width: 90%;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.section-3__line {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 400;
    line-height: 1.2;
    color: #fff;
    margin: 0;
    text-align: center;
    max-width: 90%;
}

.section-3__line-segment {
    display: block;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.section-3__word {
    display: inline;
    opacity: 0.28;
    transition: opacity 0.35s ease;
}

.section-3__word.is-visible {
    opacity: 1;
}

/* ----- Section 2: single snap section ----- */
.section-2-zone {
    height: 200vh;
    min-height: 200vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: transparent;
    position: relative;
}

.section-2-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 30;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    background: transparent;
    overflow: hidden;
}

.section-2-overlay.is-visible {
    visibility: visible;
    pointer-events: auto;
    /* Leave right edge clear so the scroll container's scrollbar stays visible and grabbable */
    width: calc(100% - 16px);
}

.section-2__slider {
    display: flex;
    width: 500vw;
    height: 100%;
    will-change: transform;
}

.section-2__slide {
    width: 100vw;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8rem 5% 0.5rem;
    position: relative;
}

/* First slide content fades in when overlay appears (less abrupt) */
.section-2__slide:first-child .section-2__hero,
.section-2__slide:first-child .section-2__text {
    opacity: 0;
}
.section-2-overlay.is-visible .section-2__slide:first-child .section-2__hero,
.section-2-overlay.is-visible .section-2__slide:first-child .section-2__text {
    animation: section-2-first-fade-in 0.55s ease-out 0.12s forwards;
}
@keyframes section-2-first-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fixed-height wrapper so title, phone, text stay in same spot on every slide */
.section-2__hero {
    position: relative;
    width: 100%;
    min-height: 52vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    padding-top: 1.5rem;
}

/* Title at top; phone below with small negative margin so it overlaps title slightly (depth) */
.section-2__title {
    margin: -1.25rem 0 0;
    font-size: clamp(3.2rem, 8vw, 5rem);
    font-weight: 400;
    line-height: 1.3;
    color: #fff;
    z-index: 1;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.section-2__phone {
    position: relative;
    z-index: 2;
    width: min(280px, 75vw);
    height: auto;
    max-height: 48vh;
    object-fit: contain;
    margin: -1rem 0 0;
    flex-shrink: 0;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.section-2__title-accent {
    color: #e5df9a;
}

/* Fixed slot so text block is always in the same place regardless of length */
.section-2__text {
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    max-width: 420px;
    width: 100%;
    min-height: 4.5rem;
    margin: 1.5rem 0 0;
    flex-shrink: 0;
}

.section-2__dots {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.section-2__dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.25s ease;
}

.section-2__dots span.is-active {
    background: #d4af37;
}

.section-2__dots--fixed {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    z-index: 10;
    pointer-events: none;
}

/* ----- Section 1: Intelligent Financial Wellness ----- */
.section-1__content {
    max-width: 520px;
    text-align: center;
}

.section-1__title {
    font-size: clamp(3.5rem, 12vw, 6.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.25s ease-out;
}

.section-1__title-accent {
    font-size: 1.12em;
    display: block;
    margin-top: 0.1em;
}

.section-1__text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.25s, transform 0.6s ease 0.25s, filter 0.25s ease-out;
}

.section-1__cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    background: #D9D282;
    border: none;
    border-radius: 9999px;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s, filter 0.25s ease-out, box-shadow 0.4s ease, background 0.2s ease;
    animation: section-1-glow 2.5s ease-in-out infinite;
}

.section-1__cta:hover {
    background: #e5df9a;
}

@keyframes section-1-glow {
    0%, 100% { box-shadow: 0 0 20px 4px rgba(217, 210, 130, 0.35), 0 0 40px 8px rgba(217, 210, 130, 0.15); }
    50%   { box-shadow: 0 0 28px 8px rgba(217, 210, 130, 0.5), 0 0 56px 12px rgba(217, 210, 130, 0.2); }
}

/* Staggered fade-in when section is in view */
.section-1.section-1--visible .section-1__title,
.section-1.section-1--visible .section-1__text,
.section-1.section-1--visible .section-1__cta {
    opacity: 1;
    transform: translateY(0);
}
