/* ============================================
   COMING SOON — Andres Evan
   ============================================ */

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

:root {
    --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "DM Mono", "SF Mono", Consolas, monospace;

    --red:          #D81F25;
    --red-dim:      rgba(216, 31, 37, 0.15);
    --red-glow:     rgba(216, 31, 37, 0.06);
    --bg:           #070a08;
    --surface:      rgba(255,255,255,0.03);
    --border:       rgba(255,255,255,0.07);
    --text:         #eef2ef;
    --text-dim:     rgba(238,242,239,0.45);
    --text-faint:   rgba(238,242,239,0.18);
}

html { height: 100%; }

body {
    min-height: 100%;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── Background canvas ── */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ── Orbs ── */
.orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(90px);
    will-change: transform;
}

.orb-1 {
    width: 600px; height: 600px;
    top: -200px; right: -100px;
    background: radial-gradient(circle, rgba(216,31,37,0.18) 0%, transparent 70%);
}

.orb-2 {
    width: 500px; height: 500px;
    bottom: -150px; left: -100px;
    background: radial-gradient(circle, rgba(80,120,255,0.10) 0%, transparent 70%);
}

.orb-3 {
    width: 350px; height: 350px;
    top: 40%; left: 40%;
    background: radial-gradient(circle, rgba(216,31,37,0.07) 0%, transparent 70%);
}

/* ── Scan line ── */
.scan-line {
    position: fixed;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(216,31,37,0.6) 40%, rgba(255,255,255,0.25) 50%, rgba(216,31,37,0.6) 60%, transparent 100%);
    pointer-events: none;
    z-index: 1;
    top: -2px;
    will-change: transform;
    opacity: 0;
}

/* ── Grid overlay ── */
.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
    background-size: 64px 64px;
}

/* ── Layout ── */
.cs-wrap {
    position: relative;
    z-index: 2;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: clamp(28px, 5vw, 56px) clamp(28px, 7vw, 88px);
    gap: 0;
}

/* ── Header ── */
.cs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* ── Logo ── */
.cs-logo {
    text-decoration: none;
    display: block;
    width: clamp(160px, 25vw, 240px);
    flex-shrink: 0;
}

.cs-logo svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Logo clip reveal — paths start hidden */
#logo-clip-rect { transform-origin: left center; }

/* ── Lang toggle ── */
.lang-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 8px 16px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    border-radius: 0;
    outline: none;
}

.lang-btn:hover,
.lang-btn:focus-visible {
    border-color: var(--red);
    color: var(--text);
    background: var(--red-dim);
}

.lang-btn .lang-active { color: var(--red); }

/* ── Main ── */
.cs-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(48px, 9vh, 110px) 0;
    gap: clamp(36px, 5.5vh, 60px);
}

/* ── Badge ── */
.cs-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--red-dim);
    background: var(--red-dim);
    padding: 6px 16px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
}

.cs-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
    animation: dot-pulse 2.2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(0.65); }
}

/* ── Headline ── */
.cs-headline {
    max-width: 820px;
    overflow: hidden;
}

.cs-eyebrow {
    font-family: var(--font-mono);
    font-size: clamp(0.62rem, 1.1vw, 0.72rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 1.1rem;
}

.cs-title {
    font-size: clamp(3rem, 8.5vw, 7rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.045em;
    color: var(--text);
    margin-bottom: 1.4rem;
}

.cs-title em {
    font-style: normal;
    color: var(--red);
    display: inline-block;
}

.cs-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.75;
    color: var(--text-dim);
    max-width: 500px;
    margin: 0 auto;
}

/* ── Countdown ── */
.cs-countdown {
    display: flex;
    align-items: flex-start;
    gap: clamp(20px, 4vw, 56px);
    flex-wrap: wrap;
    justify-content: center;
}

.cs-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cs-num-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2ch;
}

.cs-number {
    font-family: var(--font-mono);
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    font-weight: 700;
    letter-spacing: -0.07em;
    line-height: 1;
    color: var(--text);
    display: block;
    transition: color 0.1s ease;
    will-change: transform, opacity;
}

.cs-number.flash { color: var(--red); }

.cs-label {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.cs-sep {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    color: var(--text-faint);
    line-height: 1;
    margin-top: 0.05em;
}

/* ── Progress ── */
.cs-progress-wrap {
    width: clamp(220px, 46vw, 420px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cs-progress-labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.cs-progress-bar {
    height: 1px;
    background: var(--border);
    border-radius: 1px;
    overflow: hidden;
}

.cs-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red) 0%, rgba(216,31,37,0.5) 100%);
    border-radius: 1px;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ── Footer ── */
.cs-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: clamp(18px, 3.5vh, 32px);
}

.cs-footer-copy {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    text-transform: uppercase;
}

.cs-footer-links {
    display: flex;
    gap: 24px;
}

.cs-footer-links a {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    text-decoration: none;
    transition: color 0.2s;
}

.cs-footer-links a:hover { color: var(--red); }

/* ── Responsive ── */
@media (max-width: 620px) {
    .cs-sep { display: none; }
    .cs-countdown { gap: 24px; }
    .cs-form { flex-direction: column; }
    .cs-input { border-right: 1px solid var(--border); border-bottom: none; }
    .cs-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .cs-badge-dot { animation: none; }
    .scan-line { display: none; }
}
