/* ══════════════════════════════════════════════════════════
   Coming Soon — Stylesheet
   Melnik Design — Pre-launch page
   ══════════════════════════════════════════════════════════ */

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

:root {
    --accent: #FCB900; --accent-rgb: 252, 185, 0;
    --bg: #0a0a0a; --bg-card: rgba(255,255,255,0.025);
    --text: #e8e8ec; --text-sub: rgba(255,255,255,0.5); --text-dim: rgba(255,255,255,0.2);
    --border: rgba(255,255,255,0.07); --border-focus: var(--accent);
    --cta-bg: #fff; --cta-text: #111; --cta-glow: rgba(255,255,255,0.08);
    --input-bg: rgba(255,255,255,0.035);
    --pill-bg: rgba(255,255,255,0.06); --pill-active: rgba(var(--accent-rgb),0.12);
    --toggle-track: rgba(255,255,255,0.1); --toggle-track-active: var(--accent);
    --toggle-knob-bg: rgba(20,20,24,0.85); --toggle-icon: rgba(255,255,255,0.6);
}

body.light-mode {
    --bg: #f5f5f5; --bg-card: rgba(0,0,0,0.025);
    --text: #111; --text-sub: rgba(0,0,0,0.5); --text-dim: rgba(0,0,0,0.2);
    --border: rgba(0,0,0,0.08);
    --cta-bg: #111; --cta-text: #fff; --cta-glow: rgba(0,0,0,0.1);
    --input-bg: rgba(0,0,0,0.03);
    --pill-bg: rgba(0,0,0,0.05); --pill-active: rgba(var(--accent-rgb),0.15);
    --toggle-track: rgba(0,0,0,0.08); --toggle-track-active: var(--accent);
    --toggle-knob-bg: #fff; --toggle-icon: rgba(0,0,0,0.5);
}

html { height: 100%; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg); color: var(--text);
    min-height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    overflow-x: hidden; position: relative;
    padding: clamp(1.5rem, 4vw, 3rem);
    transition: background 0.5s, color 0.5s;
}

/* ── Ambient ── */
.bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0; animation: orbIn 2s ease forwards; }
.orb-1 { width: 550px; height: 550px; top: -12%; left: -8%; background: rgba(var(--accent-rgb),0.06); animation-delay: 0.2s; }
.orb-2 { width: 400px; height: 400px; bottom: -10%; right: -5%; background: rgba(var(--accent-rgb),0.04); animation-delay: 0.7s; }
@keyframes orbIn { to { opacity: 1; } }
.grain { position: fixed; inset: -50%; width: 200%; height: 200%; pointer-events: none; z-index: 1; opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ── Main ── */
.main { position: relative; z-index: 2; max-width: 500px; width: 100%; text-align: center; }

/* ── Logo ── */
.logo-wrap {
    width: clamp(240px, 55vw, 400px); margin: 0 auto clamp(2.5rem, 6vw, 4rem);
    cursor: pointer; perspective: 600px;
    opacity: 0; animation: reveal 0.9s 0.1s both;
    margin-bottom: 48px;
}
.logo-wrap svg { width: 100%; height: auto; fill: var(--text); transition: fill 0.5s; overflow: visible; }
.logo-letter { transform-origin: center center; transform-box: fill-box; }

/* ── Kicker ── */
.kicker {
    display: inline-flex; align-items: center;
    padding: 0.35em 0.9em;
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--text-sub);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    opacity: 0; animation: reveal 0.6s 0.25s both, kickerBreathe 4s ease-in-out infinite;
}
body.light-mode .kicker {
    border-color: rgba(0,0,0,0.07);
    background: rgba(0,0,0,0.03);
    animation: reveal 0.6s 0.25s both, kickerBreathLight 4s ease-in-out infinite;
}
@keyframes kickerBreathe {
    0%, 100% { border-color: rgba(255,255,255,0.12); }
    50% { border-color: rgba(255,255,255,0.22); }
}
@keyframes kickerBreathLight {
    0%, 100% { border-color: rgba(0,0,0,0.07); }
    50% { border-color: rgba(0,0,0,0.14); }
}

/* ── Heading ── */
h1 {
    font-size: clamp(1.6rem, 5vw, 2.8rem); font-weight: 400;
    line-height: 1.2; letter-spacing: -0.03em;
    margin-bottom: 0.7rem; opacity: 0; animation: reveal 0.8s 0.3s both;
}

/* ── Text gradient shimmer ── */
@keyframes subtleShimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.tg {
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}
.tg-warm {
    background-image: linear-gradient(60deg, #FCB900 0%, #FFD86B 30%, #6B7AFD 70%, #232B5D 100%);
    animation: subtleShimmer 15s ease-in-out infinite;
}
.tg-cool {
    background-image: linear-gradient(120deg, #232B5D 0%, #6B7AFD 30%, #FFD86B 70%, #FCB900 100%);
    animation: subtleShimmer 15s ease-in-out infinite reverse;
}
body.light-mode .tg-warm {
    background-image: linear-gradient(60deg, #D49B00 0%, #E8A800 30%, #5B65E0 70%, #1E2670 100%);
}
body.light-mode .tg-cool {
    background-image: linear-gradient(120deg, #1E2670 0%, #5B65E0 30%, #E8A800 70%, #D49B00 100%);
}

/* ── Description ── */
.desc {
    font-size: clamp(0.82rem, 2vw, 0.95rem); font-weight: 400;
    color: var(--text-sub); line-height: 1.7; max-width: 36ch;
    margin: 0 auto clamp(2rem, 5vw, 3rem); opacity: 0; animation: reveal 0.7s 0.45s both;
}

/* ══════════════════════════════════════════════════════════
   Form — underline style inside glass card
   ══════════════════════════════════════════════════════════ */
.form-card {
    text-align: left; opacity: 0; animation: reveal 0.7s 0.6s both;
    padding: clamp(1.5rem, 4vw, 2rem);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    transition: background 0.5s, border-color 0.5s;
}
.form-row { display: flex; gap: 1.5rem; margin-bottom: 0; }
.form-row > * { flex: 1; }

/* ── Field — underline input with floating label ── */
.ct-field { position: relative; padding-top: 0.875rem; margin-bottom: 1rem; }
.ct-input {
    width: 100%; padding: 0.5rem 0 0.35rem;
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.85rem;
    color: var(--text); background: transparent;
    border: none; border-bottom: 1px solid var(--border);
    border-radius: 0; outline: none;
    transition: border-color 0.3s;
    -webkit-appearance: none; appearance: none;
}
.ct-input:focus { border-bottom-color: transparent; }
.ct-input::placeholder { color: transparent; }
.ct-input:-webkit-autofill,
.ct-input:-webkit-autofill:hover,
.ct-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* ── Floating label ── */
.ct-label {
    position: absolute; top: calc(0.875rem + 0.5rem); left: 0;
    transform-origin: left center;
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.85rem;
    color: var(--text-dim); pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), color 0.3s;
}
.ct-label span { font-size: 0.75rem; }
.ct-input:focus + .ct-label,
.ct-input:not(:placeholder-shown) + .ct-label {
    transform: translateY(calc(-100% - 4px)) scale(0.78);
    color: var(--accent);
}

/* ── Gold underline on focus ── */
.ct-field-line {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
    pointer-events: none;
}
.ct-field:has(.ct-input:focus) .ct-field-line {
    transform: scaleX(1);
    box-shadow: 0 0 8px rgba(var(--accent-rgb),0.2);
}

/* ── Textarea ── */
.ct-textarea {
    min-height: 60px; resize: vertical;
    border-bottom: 1px solid var(--border);
}
.ct-textarea:focus { border-bottom-color: transparent; }
.ct-textarea + .ct-label { top: calc(0.875rem + 0.5rem); }
.ct-textarea:focus + .ct-label,
.ct-textarea:not(:placeholder-shown) + .ct-label {
    transform: translateY(calc(-100% - 4px)) scale(0.78);
    color: var(--accent);
}

/* ══════════════════════════════════════════════════════════
   CTA — Orange default, white + dashed black on hover
   ══════════════════════════════════════════════════════════ */
.form-btn {
    position: relative; overflow: visible;
    display: flex; align-items: center; justify-content: center;
    gap: 0.7rem; width: 100%; margin-top: 0.75rem;
    padding: 0.85rem 2rem; border-radius: 100px;
    border: 1px solid transparent;
    background: var(--accent); color: #111;
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem; font-weight: 500;
    letter-spacing: 0.02em; cursor: pointer;
    transition: background 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
                color 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
                transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
                box-shadow 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
                border-color 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    box-shadow: 0 4px 16px rgba(var(--accent-rgb),0.2), 0 8px 24px rgba(var(--accent-rgb),0.1);
}
.form-btn::before {
    content: ''; position: absolute; inset: -4px; border-radius: inherit;
    background: transparent; box-shadow: 0 0 28px rgba(var(--accent-rgb),0.12);
    opacity: 0.5; pointer-events: none; z-index: -1;
    animation: ctaPulse 4s ease-in-out infinite;
}
@keyframes ctaPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 0.6; } }
.form-btn:hover {
    background: #fff; color: #111; border-color: transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 8px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
body.light-mode .form-btn { background: var(--accent); color: #111; }
body.light-mode .form-btn:hover {
    background: #fff; color: #111;
}
.form-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-btn .dashed-border-canvas { border-radius: 100px; }

/* ── Form states ── */
.form-ok { text-align: center; padding: 1.5rem 1rem; }
.form-ok-check { width: 48px; height: 48px; border-radius: 50%; background: rgba(var(--accent-rgb),0.12); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.form-ok-check svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.form-ok h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.3rem; }
.form-ok p { font-size: 0.82rem; color: var(--text-sub); }
.form-err { color: #f44; font-size: 0.75rem; margin-bottom: 0.5rem; }

/* ══════════════════════════════════════════════════════════
   Prefs: lang + theme toggle
   ══════════════════════════════════════════════════════════ */
.prefs {
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    margin-top: 2rem; opacity: 0; animation: reveal 0.5s 0.75s both; flex-wrap: wrap;
}
.pill-group {
    display: inline-flex; align-items: center; gap: 2px;
    background: var(--pill-bg); border-radius: 100px; padding: 3px;
    border: 1px solid var(--border); transition: background 0.3s, border-color 0.3s;
}
.pill-opt {
    display: flex; align-items: center; gap: 0.3rem;
    padding: 0.3rem 0.6rem; border-radius: 100px;
    background: transparent; border: none; color: var(--text-sub);
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.65rem; font-weight: 500;
    cursor: pointer; transition: all 0.25s;
}
.pill-opt.active { background: var(--pill-active); color: var(--accent); }
.pill-opt img { width: 13px; height: 13px; border-radius: 2px; }
.pill-sep { width: 1px; height: 18px; background: var(--border); margin: 0 0.15rem; flex-shrink: 0; }

/* ── Theme toggle — cover-layer style ── */
.cl-toggle {
    position: relative; width: 52px; height: 28px;
    background: none; border: none; cursor: pointer; padding: 0;
    display: flex; align-items: center;
}
.cl-toggle-track {
    position: absolute; inset: 0; border-radius: 99px;
    background: var(--toggle-track);
    border: 1.5px solid rgba(255,255,255,0.1);
    transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
    pointer-events: none;
}
.cl-toggle.active .cl-toggle-track {
    background: var(--toggle-track-active);
    border-color: var(--toggle-track-active);
    box-shadow: 0 0 8px rgba(var(--accent-rgb),0.25), 0 0 12px rgba(var(--accent-rgb),0.4);
}
.cl-toggle-knob {
    position: relative; z-index: 2;
    width: 22px; height: 22px;
    border-radius: 50%; background: var(--toggle-knob-bg);
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    display: flex; align-items: center; justify-content: center;
    margin-left: 3px;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), background 0.35s;
    pointer-events: none;
}
.cl-toggle.active .cl-toggle-knob { transform: translateX(24px); }
body.light-mode .cl-toggle.active .cl-toggle-knob { background: var(--bg); }
.cl-toggle-icon { position: absolute; top: 50%; left: 50%; translate: -50% -50%; transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
.cl-toggle-icon svg { width: 14px; height: 14px; pointer-events: none; }
.cl-toggle-icon-on { opacity: 0; transform: scale(0.8); }
.cl-toggle-icon-off { opacity: 1; transform: scale(1); color: var(--toggle-icon); }
.cl-toggle.active .cl-toggle-icon-on { opacity: 1; transform: scale(1); color: #111; }
.cl-toggle.active .cl-toggle-icon-off { opacity: 0; transform: scale(0.8); }

/* ── Alt contact ── */
.alt { font-size: 0.72rem; color: var(--text-dim); text-align: center; margin-top: 1.2rem; opacity: 0; animation: reveal 0.5s 0.85s both; }
.alt a { color: var(--text-sub); text-decoration: none; transition: color 0.2s; }
.alt a:hover { color: var(--accent); }

/* ── Footer ── */
.foot { position: fixed; bottom: 0; left: 0; right: 0; padding: 1.5rem; text-align: center; font-size: 0.7rem; color: var(--text-sub); letter-spacing: 0.04em; z-index: 2; opacity: 0; animation: fadeIn 0.5s 1s both; }

/* ══════════════════════════════════════════════════════════
   Language swap transitions
   ══════════════════════════════════════════════════════════ */
.lang-out {
    filter: blur(8px) !important; transform: scale(0.97) !important;
    transition: filter 200ms cubic-bezier(.4,0,1,1), transform 200ms cubic-bezier(.4,0,1,1) !important;
    animation: none !important;
}
.lang-out-inline {
    filter: blur(8px) !important;
    transition: filter 200ms cubic-bezier(.4,0,1,1) !important;
    animation: none !important;
}
.lang-in {
    filter: blur(8px) !important; transform: scale(1.03) !important;
    transition: none !important;
    animation: none !important;
}
.lang-in-inline {
    filter: blur(8px) !important;
    transition: none !important;
    animation: none !important;
}
.lang-reveal {
    filter: blur(0px) !important; transform: scale(1) !important;
    transition: filter 300ms cubic-bezier(0,0,.2,1), transform 300ms cubic-bezier(0,0,.2,1) !important;
    animation: none !important;
}
.lang-reveal-inline {
    filter: blur(0px) !important;
    transition: filter 300ms cubic-bezier(0,0,.2,1) !important;
    animation: none !important;
}

/* ══════════════════════════════════════════════════════════
   Keyframes
   ══════════════════════════════════════════════════════════ */
@keyframes reveal { from { opacity: 0; transform: translateY(14px); filter: blur(3px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ══════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .form-row { flex-direction: column; gap: 0.65rem; }
    .orb-1 { width: 300px; height: 300px; }
    .orb-2 { width: 200px; height: 200px; }
}

@media (max-width: 640px) {
    div.main:nth-of-type(3) {
    margin-top: 32px;
    margin-bottom: 32px;
    }
}
