/* ComingSoonPage. landscape loader (rise) -> veil fade -> content fade. */
/* Sits below the sticky Header.ss nav (z-index 100). */

:root {
    --cs-rise-dur: 0.9s;
    --cs-stagger: 0.10s;
    --cs-wave-rise-dur: 2.6s;
    --cs-handoff: calc(var(--cs-stagger) * 6 + var(--cs-wave-rise-dur) + 0.15s);
    --cs-veil-dur: 0.9s;
}

.cs-page {
    position: relative;
    color: #fff;
    overflow: hidden;
    font-family: 'Rubik', system-ui, -apple-system, sans-serif;
    color-scheme: dark;
}

/* ---- stage (animated landscape) ---- */
.cs-stage {
    position: absolute; /* contained to .cs-page so the footer below isn't covered */
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
    z-index: 0;
}
.cs-stage svg {
    position: absolute;
    inset: -3%;
    width: 106%;
    height: 106%;
    display: block;
}

/* All paths rise in (staggered). Top 5 = mountains/ridges (fast), bottom 2 = waves (slow glide). */
.cs-stage svg path { transform-origin: 50% 100%; }
.cs-stage svg path:nth-of-type(1) { animation: cs-rise var(--cs-rise-dur) cubic-bezier(.22,.7,.18,1) calc(var(--cs-stagger) * 0) backwards; }
.cs-stage svg path:nth-of-type(2) { animation: cs-rise var(--cs-rise-dur) cubic-bezier(.22,.7,.18,1) calc(var(--cs-stagger) * 1) backwards; }
.cs-stage svg path:nth-of-type(3) { animation: cs-rise var(--cs-rise-dur) cubic-bezier(.22,.7,.18,1) calc(var(--cs-stagger) * 2) backwards; }
.cs-stage svg path:nth-of-type(4) { animation: cs-rise var(--cs-rise-dur) cubic-bezier(.22,.7,.18,1) calc(var(--cs-stagger) * 3) backwards; }
.cs-stage svg path:nth-of-type(5) { animation: cs-rise var(--cs-rise-dur) cubic-bezier(.22,.7,.18,1) calc(var(--cs-stagger) * 4) backwards; }
.cs-stage svg path:nth-of-type(6) { animation: cs-rise var(--cs-wave-rise-dur) cubic-bezier(.16,.85,.25,1) calc(var(--cs-stagger) * 5) backwards; }
.cs-stage svg path:nth-of-type(7) { animation: cs-rise var(--cs-wave-rise-dur) cubic-bezier(.16,.85,.25,1) calc(var(--cs-stagger) * 6) backwards; }

@keyframes cs-rise {
    0%   { transform: translateY(38%) scaleY(0.92); opacity: 0; filter: brightness(0.55) saturate(0.85); }
    55%  { opacity: 1; }
    100% { transform: translateY(0)   scaleY(1);    opacity: 1; filter: brightness(1)    saturate(1); }
}

/* ---- veil (fades up over the loaded scene) ---- */
.cs-veil {
    position: absolute; /* contained to .cs-page so the footer below isn't covered */
    inset: 0;
    z-index: 1;
    background: #0a1428;
    opacity: 0;
    pointer-events: none;
    animation: cs-veil-in var(--cs-veil-dur) cubic-bezier(.4,0,.2,1) forwards;
    animation-delay: var(--cs-handoff);
}
@keyframes cs-veil-in {
    to { opacity: 1; }
}

/* ---- content (fades in after veil) ---- */
.cs-content {
    position: relative;
    z-index: 2;
    padding: 72px 8vw 80px;
    opacity: 0;
    transform: translateY(16px);
    animation: cs-content-in 1.0s cubic-bezier(.22,.7,.18,1) forwards;
    animation-delay: calc(var(--cs-handoff) + var(--cs-veil-dur) * 0.55);
}
@keyframes cs-content-in {
    to { opacity: 1; transform: translateY(0); }
}

.cs-inner {
    max-width: 720px;
    width: 100%;
}

.cs-date {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 14px;
}
.cs-headline {
    font-size: clamp(38px, 5.6vw, 72px);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    color: #fff;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}
.cs-subhead {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.3;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px;
    max-width: 580px;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}
.cs-rule {
    width: 220px;
    max-width: 50%;
    height: 2px;
    background: #f5b731;
    margin: 0 0 18px;
    border-radius: 1px;
}
.cs-authors {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 28px;
    max-width: 520px;
    white-space: pre-line;
}

/* ---- signup form ---- */
.cs-form-wrap {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    padding: 22px 24px;
    max-width: 540px;
}
.cs-form__heading {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #fff;
}
.cs-form__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 16px;
    line-height: 1.45;
}
.cs-form__label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.cs-form__row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cs-form__input {
    flex: 1 1 240px;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
}
.cs-form__input::placeholder { color: rgba(255, 255, 255, 0.35); }
.cs-form__input:focus {
    outline: none;
    border-color: #f5b731;
    background: rgba(0, 0, 0, 0.4);
}
.cs-form__btn {
    padding: 14px 22px;
    border-radius: 10px;
    border: none;
    background: #f5b731;
    color: #1a3c3c;
    font-weight: 600;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.1s, filter 0.15s;
}
.cs-form__btn:hover { filter: brightness(1.08); }
.cs-form__btn:active { transform: translateY(1px); }
.cs-form__btn[disabled] { opacity: 0.6; cursor: wait; }
.cs-form__hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin: 14px 0 0;
}
.cs-form__msg {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.5;
    min-height: 0;
}
.cs-form__msg.is-success { color: #6cd99a; }
.cs-form__msg.is-error { color: #ff8a72; }

.cs-form-wrap.is-done .cs-form { display: none; }
.cs-form-wrap.is-done .cs-form__heading,
.cs-form-wrap.is-done .cs-form__desc { display: none; }
.cs-form-wrap.is-done .cs-form__msg { font-size: 16px; padding-top: 4px; }

.cs-form__success {
    text-align: center;
    padding: 8px 4px 4px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cs-form__success.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.cs-form__success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #f5b731;
    color: #1a3c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cs-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.cs-form__success-heading {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
    letter-spacing: -0.01em;
}
.cs-form__success-msg {
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 auto;
    max-width: 360px;
}

@keyframes cs-pop {
    0%   { transform: scale(0.4); opacity: 0; }
    70%  { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1);    opacity: 1; }
}

/* ---- responsive ---- */
@media (max-width: 720px) {
    .cs-content { padding: 32px 22px; align-items: flex-start; }
    .cs-form-wrap { padding: 20px; }
    .cs-form__btn { width: 100%; }
    .cs-form__row { flex-direction: column; }
    .cs-form__input { flex: 0 0 auto; width: 100%; }
    .cs-form__success-icon { width: 56px; height: 56px; margin-bottom: 14px; }
    .cs-form__success-heading { font-size: 20px; }
    .cs-form__success-msg { font-size: 14px; }
    .cs-authors { margin-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .cs-stage svg path,
    .cs-veil,
    .cs-content {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
