/* ============================================================
   Design 10 — "APERTURE"
   Deep aurora gradient. Animated glowing orbs. Centered
   glassmorphism card. Live countdown. Syne typeface.
   Nothing like the photo-cinematic or editorial designs.
   ============================================================ */

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

:root {
  --teal:         #6FA7A3;
  --teal-light:   #9BC4C1;
  --coral:        #DD6F56;
  --coral-dark:   #B85540;
  --sage:         #8DA48F;
  --ash:          #EEECE7;
  --charcoal:     #1E1E1E;
  --accent:       var(--teal);
  --accent-light: var(--teal-light);
  --accent-dark:  #0D1E1D;
  --white:        #FFFFFF;
  --font:         'Syne', system-ui, sans-serif;
  --font-mono:    'Syne Mono', monospace;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  color: var(--white);
}

body {
  background: radial-gradient(ellipse at 20% 0%,   #0D2422 0%, transparent 55%),
              radial-gradient(ellipse at 80% 100%,  #2A1008 0%, transparent 55%),
              #0A1210;
}

/* ── Animated orbs ──────────────────────────────────────── */

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

.orb--1 {
  width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(111,167,163,0.55), transparent 70%);
  top: -220px; left: -200px;
  animation: drift1 16s ease-in-out infinite alternate;
}

.orb--2 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(221,111,86,0.45), transparent 70%);
  bottom: -180px; right: -180px;
  animation: drift2 12s ease-in-out infinite alternate;
}

.orb--3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(141,164,143,0.4), transparent 70%);
  top: 35%; right: 8%;
  animation: drift3 18s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate(0,   0) scale(1);    }
  to   { transform: translate(60px, 40px) scale(1.1); }
}
@keyframes drift2 {
  from { transform: translate(0,   0) scale(1);    }
  to   { transform: translate(-50px, -30px) scale(1.08); }
}
@keyframes drift3 {
  from { transform: translate(0,   0) scale(1);    }
  to   { transform: translate(30px, -50px) scale(0.92); }
}

/* ── Ghost watermark ────────────────────────────────────── */

.bg-word {
  position: fixed;
  bottom: -0.12em;
  left: -0.04em;
  font-size: clamp(16rem, 35vw, 48rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.035);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ── Shell layout ───────────────────────────────────────── */

.shell {
  position: relative;
  z-index: 10;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
}

/* ── Top bar ────────────────────────────────────────────── */

.topbar {
  width: 100%;
  max-width: 680px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 0 0;
  animation: fade-up 0.6s ease both;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.topbar__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 0 10px rgba(111,167,163,0.4));
}

.topbar__name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
}

.topbar__nav {
  display: flex;
  gap: 1.5rem;
}

.topbar__nav a {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.2s;
}

.topbar__nav a:hover { color: var(--accent-light); }

/* ── Glass card ─────────────────────────────────────────── */

.card {
  flex: 1;
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3.5rem;
  margin: 1.5rem 0;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(28px) saturate(1.5) brightness(1.1);
  -webkit-backdrop-filter: blur(28px) saturate(1.5) brightness(1.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(111,167,163,0.08),
    0 32px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.1);
  animation: card-rise 0.8s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes card-rise {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ── Card content ───────────────────────────────────────── */

.card__eyebrow {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.card__heading {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.card__heading-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent-light);
  display: block;
}

.card__body {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  max-width: 440px;
  margin-bottom: 2rem;
}

/* ── Countdown ──────────────────────────────────────────── */

.countdown {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  min-width: 76px;
}

.countdown__num {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.02em;
}

.countdown__label {
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.countdown__sep {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
  padding-bottom: 1rem;
  flex-shrink: 0;
}

/* ── Form ───────────────────────────────────────────────── */

.form__row {
  display: flex;
}

.form__input {
  flex: 1;
  height: 50px;
  padding: 0 1.1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-right: none;
  border-radius: 12px 0 0 12px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  transition: background 0.2s, border-color 0.2s;
}

.form__input::placeholder { color: rgba(255, 255, 255, 0.22); }
.form__input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

.form__btn {
  height: 50px;
  padding: 0 1.6rem;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 0 12px 12px 0;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.form__btn:hover  { background: var(--coral-dark); }
.form__btn:active { transform: scale(0.98); }
.form__btn:disabled { opacity: 0.55; cursor: default; }

.form__confirm {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-light);
}

.form__confirm[hidden] { display: none; }

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  padding: 0.75rem 0 1.5rem;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
  animation: fade-up 0.6s 0.4s ease both;
}

/* ── Keyframes ──────────────────────────────────────────── */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 640px) {
  .card {
    padding: 2rem 1.75rem;
    border-radius: 20px;
    margin: 1rem 0;
  }
  .topbar__name { display: none; }
  .countdown__unit { min-width: 58px; padding: 0.6rem 0.5rem; }
  .countdown__num  { font-size: 1.2rem; }
  .countdown__sep  { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .orb { animation: none !important; }
}
