/* =================================================================
   CHANCE — Coming Soon
   Palette pulled from the logo: emerald → mint gradient + charcoal
   ================================================================= */
:root {
    --bg:        #04110f;
    --bg-2:      #071c18;
    --ink:       #eef5f2;
    --ink-dim:   #9fb5ae;
    --ink-mute:  #5f7a72;
    --emerald:   #10a37f;
    --green:     #19c39a;
    --mint:      #3de6bd;
    --charcoal:  #4c4c4c;
    --glass:     rgba(255, 255, 255, .045);
    --glass-bd:  rgba(120, 255, 214, .14);
    --radius:    999px;
    --ease:      cubic-bezier(.16, 1, .3, 1);
}

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

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

body {
    min-height: 100vh;
    min-height: 100svh;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------
   INTRO — star ignites, flashes, then the scene appears
   --------------------------------------------------------------- */
.intro {
    position: fixed; inset: 0; z-index: 100;
    display: grid; place-items: center;
    background: #000;
    pointer-events: none;
    animation: introOut .9s var(--ease) 2.1s forwards;
}
.intro-star {
    width: 46px; height: 46px;
    fill: var(--mint);
    filter: drop-shadow(0 0 14px var(--mint)) drop-shadow(0 0 40px var(--green));
    transform: scale(0) rotate(-180deg);
    animation: starIgnite 2.1s var(--ease) .2s forwards;
}
.intro-flash {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(160,255,225,.95) 0%, rgba(25,195,154,.55) 18%, transparent 55%);
    opacity: 0;
    animation: flash 1s ease-out 1.75s forwards;
}
@keyframes starIgnite {
    0%   { transform: scale(0) rotate(-180deg); opacity: 0; }
    35%  { transform: scale(1) rotate(0deg);    opacity: 1; }
    65%  { transform: scale(.85) rotate(45deg); }
    100% { transform: scale(40) rotate(90deg);  opacity: 0; }
}
@keyframes flash {
    0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; }
}
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

/* ---------------------------------------------------------------
   BACKGROUND
   --------------------------------------------------------------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.aurora {
    position: absolute; border-radius: 50%;
    filter: blur(90px); opacity: .55; mix-blend-mode: screen;
    will-change: transform;
}
.a1 {
    width: 70vmax; height: 70vmax; left: -25vmax; top: -30vmax;
    background: radial-gradient(circle, #0f9c79 0%, transparent 65%);
    animation: drift1 22s ease-in-out infinite alternate;
}
.a2 {
    width: 60vmax; height: 60vmax; right: -25vmax; bottom: -30vmax;
    background: radial-gradient(circle, #2fe0b4 0%, transparent 62%);
    opacity: .35;
    animation: drift2 26s ease-in-out infinite alternate;
}
.a3 {
    width: 45vmax; height: 45vmax; left: 35%; top: 40%;
    background: radial-gradient(circle, #0b5f4c 0%, transparent 60%);
    opacity: .5;
    animation: drift3 30s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(18vw, 14vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vw, -12vh) scale(1.2); } }
@keyframes drift3 { to { transform: translate(-20vw, -18vh) scale(.85); } }

.grid {
    position: absolute; inset: -2px;
    background-image:
        linear-gradient(rgba(61,230,189,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61,230,189,.06) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 10%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 10%, transparent 75%);
}

#sky { position: absolute; inset: 0; width: 100%; height: 100%; }

.spotlight {
    position: absolute; inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 40%), rgba(61,230,189,.10), transparent 60%);
    transition: background .2s;
}

.grain {
    position: absolute; inset: -50%;
    opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1s steps(6) infinite;
}
@keyframes grain {
    0%,100% { transform: translate(0,0); }
    20% { transform: translate(-5%,3%); } 40% { transform: translate(4%,-6%); }
    60% { transform: translate(-3%,5%); } 80% { transform: translate(6%,2%); }
}

.vignette {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.75) 100%);
}

/* ---------------------------------------------------------------
   STAGE
   --------------------------------------------------------------- */
.stage {
    position: relative; z-index: 1;
    flex: 1;
    width: 100%; max-width: 980px;
    margin: 0 auto;
    padding: clamp(32px, 7vh, 80px) 16px 24px;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
}

/* Emblem / logo -------------------------------------------------- */
.emblem {
    position: relative;
    width: min(560px, 88vw);
    aspect-ratio: 775 / 256;
    margin: clamp(24px, 6vh, 60px) 0 clamp(36px, 6vh, 64px);
    transform-style: preserve-3d;
    transition: transform .6s var(--ease);
}

.rings {
    position: absolute; left: 50%; top: 50%;
    width: 0; height: 0;
}
.ring, .orbit {
    position: absolute; left: 50%; top: 50%;
    border-radius: 50%;
    translate: -50% -50%;
}
.ring {
    background: conic-gradient(from 0deg, transparent 0 55%, var(--green) 75%, var(--mint) 88%, transparent 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
    opacity: 0;
}
.r1 { width: min(700px, 112vw); height: min(700px, 112vw); animation: spin 18s linear infinite, ringIn 1.6s var(--ease) 2.3s forwards; --o:.55; }
.r2 { width: min(520px, 84vw);  height: min(520px, 84vw);  animation: spin 12s linear infinite reverse, ringIn 1.6s var(--ease) 2.45s forwards; --o:.4; }
.r3 { width: min(900px, 140vw); height: min(900px, 140vw); animation: spin 30s linear infinite, ringIn 1.6s var(--ease) 2.6s forwards; --o:.25; }

@keyframes spin   { to { rotate: 360deg; } }
@keyframes ringIn { from { opacity: 0; scale: .6; } to { opacity: var(--o); scale: 1; } }

.orbit {
    width: min(700px, 112vw); height: min(700px, 112vw);
    animation: spin 18s linear infinite;
    opacity: 0;
    animation: spin 18s linear infinite, fadeIn 1s ease 2.8s forwards;
}
.orbit.o2 { width: min(520px, 84vw); height: min(520px, 84vw); animation: spin 12s linear infinite reverse, fadeIn 1s ease 3s forwards; }
.orbit svg {
    position: absolute; left: 50%; top: -9px;
    width: 18px; height: 18px; translate: -50% 0;
    fill: var(--mint);
    filter: drop-shadow(0 0 6px var(--mint)) drop-shadow(0 0 16px var(--green));
}
.orbit.o2 svg { width: 12px; height: 12px; top: -6px; }
@keyframes fadeIn { to { opacity: 1; } }

.logo-wrap {
    position: relative; z-index: 2;
    width: 100%; height: 100%;
    overflow: hidden;
    -webkit-mask: url(logo-light.png) center / contain no-repeat;
            mask: url(logo-light.png) center / contain no-repeat;
}
.logo {
    display: block; width: 100%; height: auto;
    opacity: 0;
    filter: blur(24px) brightness(3);
    transform: scale(1.25);
    animation: logoIn 1.8s var(--ease) 2.05s forwards;
}
@keyframes logoIn {
    to { opacity: 1; filter: blur(0) brightness(1) drop-shadow(0 0 30px rgba(25,195,154,.35)); transform: scale(1); }
}
.shine {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.85) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: shine 6s ease-in-out 3.6s infinite;
}
@keyframes shine {
    0%   { transform: translateX(-120%); }
    25%  { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}
.emblem::after {   /* glow pool under the logo */
    content: ''; position: absolute; z-index: 1;
    left: 10%; right: 10%; top: 30%; bottom: -10%;
    background: radial-gradient(ellipse, rgba(25,195,154,.35), transparent 70%);
    filter: blur(30px);
    opacity: 0;
    animation: fadeIn 2s ease 2.4s forwards;
}

/* Text reveal ----------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(8px);
    animation: rise 1.1s var(--ease) forwards;
    animation-delay: calc(3s + var(--d, 0) * .13s);
}
@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 18px;
    font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
    color: var(--mint);
    border: 1px solid var(--glass-bd);
    border-radius: var(--radius);
    background: var(--glass);
    backdrop-filter: blur(10px);
}
.dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 0 rgba(61,230,189,.7);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(61,230,189,.7); }
    70%  { box-shadow: 0 0 0 12px rgba(61,230,189,0); }
    100% { box-shadow: 0 0 0 0 rgba(61,230,189,0); }
}

.headline {
    margin-top: 26px;
    font-size: clamp(2.1rem, 6.4vw, 4.6rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.035em;
    text-wrap: balance;
}
.grad {
    background: linear-gradient(100deg, var(--emerald) 0%, var(--mint) 40%, #b9ffe9 50%, var(--mint) 60%, var(--emerald) 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    animation: sheen 5s linear infinite;
}
@keyframes sheen { from { background-position: 100% 0; } to { background-position: -150% 0; } }

.lead {
    max-width: 620px;
    margin-top: 22px;
    font-size: clamp(.98rem, 1.6vw, 1.12rem);
    font-weight: 300;
    line-height: 1.75;
    color: var(--ink-dim);
}

.chips {
    list-style: none;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    margin-top: 28px;
}
.chips li {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    font-size: .85rem; font-weight: 500;
    color: var(--ink);
    border: 1px solid var(--glass-bd);
    border-radius: var(--radius);
    background: var(--glass);
    transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.chips li:hover { border-color: rgba(61,230,189,.45); background: rgba(61,230,189,.08); transform: translateY(-2px); }
.chips svg { width: 11px; height: 11px; fill: var(--mint); }

/* Countdown ------------------------------------------------------- */
.countdown {
    display: flex; align-items: flex-start; justify-content: center;
    gap: clamp(6px, 2vw, 18px);
    margin-top: 44px;
}
.unit {
    position: relative;
    min-width: clamp(64px, 17vw, 110px);
    padding: clamp(12px, 2.4vw, 20px) 8px clamp(10px, 2vw, 16px);
    border-radius: 20px;
    border: 1px solid var(--glass-bd);
    background: linear-gradient(180deg, rgba(61,230,189,.08), rgba(255,255,255,.02));
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 50px -20px rgba(0,0,0,.8);
    overflow: hidden;
}
.unit::before {
    content: ''; position: absolute; left: 0; right: 0; top: 50%;
    height: 1px; background: rgba(0,0,0,.35);
}
.num {
    display: block;
    font-size: clamp(1.7rem, 5.5vw, 3rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    line-height: 1.1;
    background: linear-gradient(180deg, #ffffff 20%, var(--mint) 120%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.num.tick { animation: tick .5s var(--ease); }
@keyframes tick {
    0%   { transform: translateY(-40%) scale(.9); opacity: 0; filter: blur(4px); }
    100% { transform: none; opacity: 1; filter: blur(0); }
}
.lbl {
    display: block; margin-top: 6px;
    font-size: clamp(.6rem, 1.6vw, .72rem);
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--ink-mute);
}
.sep {
    align-self: center;
    margin-top: -18px;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 300;
    color: var(--green);
    opacity: .6;
    animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .15; } }
.countdown.done { font-size: 1.1rem; color: var(--mint); letter-spacing: .05em; }

/* Notify form ----------------------------------------------------- */
.notify { width: 100%; max-width: 560px; margin-top: 44px; }
.field {
    position: relative;
    display: flex; align-items: center;
    padding: 6px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-bd);
    background: rgba(4, 17, 15, .6);
    backdrop-filter: blur(14px);
    transition: border-color .3s, box-shadow .3s;
}
.field::before {   /* animated gradient border on focus */
    content: ''; position: absolute; inset: -1px;
    padding: 1.5px;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(from var(--a, 0deg), var(--emerald), var(--mint), transparent 40%, var(--emerald));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0; transition: opacity .4s;
    animation: rot 4s linear infinite;
}
.field:focus-within { border-color: transparent; box-shadow: 0 0 40px -6px rgba(25,195,154,.5); }
.field:focus-within::before { opacity: 1; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes rot { to { --a: 360deg; } }

.field-icon { width: 20px; height: 20px; margin-left: 14px; color: var(--ink-mute); flex-shrink: 0; }
.field input[type=email] {
    flex: 1; min-width: 0;
    padding: 14px 12px;
    font: inherit; font-size: .95rem;
    color: var(--ink);
    background: transparent; border: 0; outline: 0;
}
.field input::placeholder { color: var(--ink-mute); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.field button {
    position: relative;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px;
    font: inherit; font-size: .92rem; font-weight: 600;
    color: #022019;
    border: 0; border-radius: var(--radius);
    background: linear-gradient(120deg, var(--emerald), var(--mint));
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    transition: transform .3s var(--ease), box-shadow .3s;
    box-shadow: 0 10px 30px -10px rgba(25,195,154,.8);
}
.field button::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .7s var(--ease);
}
.field button:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -8px rgba(61,230,189,.9); }
.field button:hover::after { transform: translateX(120%); }
.field button svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.field button:hover svg { transform: translateX(3px); }
.field button[disabled] { opacity: .7; cursor: wait; }

.form-msg {
    min-height: 1.5em;
    margin-top: 14px;
    font-size: .9rem;
    opacity: 0; transform: translateY(-4px);
    transition: opacity .4s, transform .4s var(--ease);
}
.form-msg.show  { opacity: 1; transform: none; }
.form-msg.ok    { color: var(--mint); }
.form-msg.error { color: #ff8f8f; }

/* Contact & footer ------------------------------------------------ */
.contact {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
    margin-top: 26px;
}
.contact a {
    position: relative;
    font-size: .9rem;
    color: var(--ink-dim);
    text-decoration: none;
    transition: color .3s;
}
.contact a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -3px;
    height: 1px; background: var(--mint);
    transform: scaleX(0); transform-origin: right;
    transition: transform .4s var(--ease);
}
.contact a:hover { color: var(--mint); }
.contact a:hover::after { transform: scaleX(1); transform-origin: left; }

.foot {
    position: relative; z-index: 1;
    padding: 28px 16px 32px;
    text-align: center;
    font-size: .78rem;
    letter-spacing: .04em;
    color: var(--ink-mute);
}

/* Responsive ------------------------------------------------------ */
@media (max-width: 640px) {
    html, body, .stage { overflow-x: clip; }
    .br-lg { display: none; }
    .field { flex-wrap: wrap; border-radius: 26px; padding: 8px; }
    .field-icon { display: none; }
    .field input[type=email] { flex-basis: 100%; padding: 14px 16px; text-align: center; }
    .field button { width: 100%; justify-content: center; margin-top: 4px; }
    .eyebrow { font-size: .68rem; letter-spacing: .16em; }
    .chips li { font-size: .78rem; padding: 7px 13px; }
}

/* Reduced motion: keep it elegant, skip the theatrics ------------ */
@media (prefers-reduced-motion: reduce) {
    .intro { display: none; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
    .grain { display: none; }
}
