/* =========================================================
   Whubb — Coming Soon 2026
   Palette: deep navy bg · electric cyan · orange ember
   No gold. Colors derived from logo only.
   ========================================================= */

:root {
  --bg:          #05080d;
  --bg-surface:  #090d14;
  --cyan:        #00b4ff;
  --cyan-bright: #22d8ff;
  --cyan-dim:    rgba(0, 180, 255, 0.14);
  --cyan-glow:   rgba(0, 180, 255, 0.35);
  --orange:      #ff5500;
  --orange-dim:  rgba(255, 85, 0, 0.22);
  --line:        rgba(0, 180, 255, 0.12);
  --line-soft:   rgba(148, 163, 184, 0.08);

  --text-0: #eef2f8;
  --text-1: rgba(238, 242, 248, 0.55);
  --text-2: rgba(238, 242, 248, 0.28);
  --text-3: rgba(238, 242, 248, 0.16);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Outfit', ui-sans-serif, system-ui, sans-serif;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text-0);
  font-family: var(--font-sans);
  font-weight: 200;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden; /* single-screen coming-soon */
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

::selection {
  background: var(--cyan);
  color: var(--bg);
}

/* ── Backdrop ────────────────────────────────────── */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.grid-layer {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 30%, transparent 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
}

.glow--cyan {
  width: 55vw; height: 55vw;
  max-width: 800px; max-height: 800px;
  background: var(--cyan);
  top: -25%; left: -12%;
  opacity: 0.06;
}

.glow--ember {
  width: 45vw; height: 45vw;
  max-width: 650px; max-height: 650px;
  background: var(--orange);
  bottom: -20%; right: -10%;
  opacity: 0.05;
}

.scanline {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
  filter: blur(0.5px);
  animation: scan 10s linear infinite;
  opacity: 0;
}

@keyframes scan {
  0%   { transform: translateY(0vh);   opacity: 0; }
  8%   { opacity: 0.45; }
  92%  { opacity: 0.45; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* ── Stage (centered layout) ────────────────────── */
.stage {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  gap: 0;
}

/* ── Reveal animation ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Logo assembly ──────────────────────────────── */
.logo-assembly {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.4rem;
}

.logo-img {
  height: 90px;
  width: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 28px rgba(0, 180, 255, 0.2));
}

/* Orange ember beneath logo */
.ember-glow {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 16px;
  background: radial-gradient(ellipse, rgba(255,85,0,0.8) 0%, rgba(255,60,0,0.3) 45%, transparent 75%);
  border-radius: 50%;
  filter: blur(6px);
  z-index: 1;
  animation: emberBreath 3.2s ease-in-out infinite;
}

@keyframes emberBreath {
  0%, 100% { opacity: 0.9;  transform: translateX(-50%) scaleX(1);    }
  50%       { opacity: 0.38; transform: translateX(-50%) scaleX(0.62); }
}

/* Signal SVG — overlaid on logo */
.signal-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

/* Emitter rings — positioned top-right of logo */
.emitter {
  position: absolute;
  top: 2px;
  right: 0px;
  width: 22px;
  height: 22px;
  z-index: 4;
  pointer-events: none;
}

.e-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--cyan-bright);
  opacity: 0;
  transform: scale(0.15);
  box-shadow: 0 0 6px var(--cyan-glow);
}

/* ── Badge ──────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 1.75rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  font-weight: 300;
}

.badge__dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
  animation: dotPulse 2.2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1;    transform: scale(1);    }
  50%       { opacity: 0.3; transform: scale(0.6);  }
}

/* ── Tagline ─────────────────────────────────────── */
.tagline {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 4vw, 2.65rem);
  letter-spacing: 0.025em;
  line-height: 1.2;
  color: var(--text-0);
  text-align: center;
  margin-bottom: 1.25rem;
}

.tagline em {
  font-style: italic;
  color: var(--cyan);
  font-weight: 300;
}

/* ── Divider ─────────────────────────────────────── */
.divider {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  margin: 0 auto 1.25rem;
}

/* ── One-liner ───────────────────────────────────── */
.oneliner {
  font-size: clamp(0.72rem, 1.6vw, 0.875rem);
  color: var(--text-1);
  text-align: center;
  letter-spacing: 0.05em;
  line-height: 1.85;
  max-width: 490px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.br-desktop { display: block; }

/* ── Notify Me ───────────────────────────────────── */
.notify-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 370px;
  margin-bottom: 1.1rem;
}

.notify-label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 300;
}

.notify-form {
  display: flex;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 180, 255, 0.025);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.notify-form:focus-within {
  border-color: rgba(0, 180, 255, 0.4);
  box-shadow: 0 0 24px rgba(0, 180, 255, 0.07);
}

.notify-form.error {
  border-color: rgba(255, 80, 80, 0.5);
  box-shadow: 0 0 16px rgba(255, 80, 80, 0.08);
}

.notify-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.72rem 1rem;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--text-0);
  letter-spacing: 0.03em;
  min-width: 0;
}

.notify-input::placeholder { color: var(--text-3); }

.notify-btn {
  flex-shrink: 0;
  background: var(--cyan);
  border: none;
  padding: 0.72rem 1.2rem;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.notify-btn:hover   { background: var(--cyan-bright); }
.notify-btn:active  { opacity: 0.85; }

.success-msg {
  display: none;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-align: center;
  font-weight: 300;
}

/* ── Contact button ──────────────────────────────── */
.contact-wrap {
  display: flex;
  justify-content: center;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(0, 180, 255, 0.2);
  border-radius: 4px;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-1);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.contact-btn:hover {
  border-color: rgba(0, 180, 255, 0.5);
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 180, 255, 0.08);
}

/* ── Footer ──────────────────────────────────────── */
.footer {
  position: fixed;
  bottom: 1.75rem;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 300;
  z-index: 1;
}

.footer__sep { opacity: 0.4; }

/* ── Mobile ──────────────────────────────────────── */
@media (max-width: 520px) {
  html, body { overflow: auto; }
  .stage     { height: auto; min-height: 100vh; padding: 3rem 1.25rem 5rem; justify-content: flex-start; padding-top: clamp(3rem, 15vw, 5rem); }
  .logo-img  { height: 72px; }
  .br-desktop { display: none; }
  .notify-form { flex-direction: column; border-radius: 6px; }
  .notify-input { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
  .notify-btn   { padding: 0.85rem; border-radius: 0; }
}

/* ── Reduced motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
