/* STON3ZY — Coming Soon
   Super modern, responsive, and accessible. */

/* ---------- CSS Variables ---------- */
:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --bg: #0b0f14;
  --spot: #0f172a; /* background spotlight for dark */
  --bg-elev: #0f1621cc; /* with alpha for glass */
  --fg: #e6edf3;
  --muted: #9fb0c4;
  --border: #1e2835;

  --accent-1: #8b5cf6; /* violet */
  --accent-2: #06b6d4; /* cyan */
  --accent-3: #f472b6; /* pink */

  --glow-1: color-mix(in srgb, var(--accent-1), white 10%);
  --glow-2: color-mix(in srgb, var(--accent-2), white 10%);

  --radius: 16px;
  --shadow-soft: 0 10px 25px -10px rgba(0,0,0,0.6);
}

[data-theme="light"] {
  --bg: #f7f9fc;
  --spot: #dbeafe; /* light spotlight */
  --bg-elev: #ffffffcc;
  --fg: #0f172a;
  --muted: #526581;
  --border: #d8e0ea;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg);
  background: radial-gradient(1200px 600px at 70% -10%, var(--spot) 10%, transparent 60%), var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent-1), white 10%);
  outline-offset: 2px;
  border-radius: 8px;
}

.noscript {
  background: #f59e0b;
  color: #0f172a;
  padding: 10px 14px;
  text-align: center;
  font-weight: 600;
}

/* ---------- Aurora Background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 120vmax;
  height: 120vmax;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(45vmax 35vmax at 20% 30%, color-mix(in srgb, var(--accent-1), transparent 70%), transparent 60%),
    radial-gradient(50vmax 40vmax at 80% 30%, color-mix(in srgb, var(--accent-2), transparent 70%), transparent 60%),
    radial-gradient(60vmax 45vmax at 50% 80%, color-mix(in srgb, var(--accent-3), transparent 72%), transparent 60%);
  filter: blur(40px) saturate(120%);
  opacity: 0.6;
  mix-blend-mode: screen;
  animation: aurora-rotate 36s linear infinite;
}

.aurora::after {
  animation-duration: 54s;
  animation-direction: reverse;
  opacity: 0.45;
}

/* Improve aurora contrast on light theme */
[data-theme="light"] .aurora::before,
[data-theme="light"] .aurora::after {
  mix-blend-mode: multiply;
  opacity: 0.55;
}

@keyframes aurora-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora::before,
  .aurora::after { animation: none; }
}

/* ---------- Layout ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: color-mix(in srgb, var(--bg-elev), transparent 50%);
  backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.3px; }
.logo-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--glow-1), var(--accent-2));
  box-shadow: 0 0 10px var(--accent-1), 0 0 24px var(--accent-2);
}
.wordmark { font-variation-settings: "wght" 800; }

/* Modern SVG logo mark */
.logo-mark { width: 22px; height: 22px; display: block; }
.brand .logo-mark { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent-2), transparent 70%)); }

.nav { display: inline-flex; align-items: center; gap: 12px; }
.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  transition: color .2s ease, background-color .2s ease;
}
.nav-link:hover { color: var(--fg); background: color-mix(in srgb, var(--bg-elev), transparent 70%); }

.theme-toggle {
  appearance: none; border: 1px solid var(--border); background: transparent; color: var(--fg);
  padding: 8px 10px; border-radius: 10px; cursor: pointer;
  transition: border-color .2s ease, transform .06s ease;
}
.theme-toggle:hover { border-color: color-mix(in srgb, var(--border), var(--fg) 25%); }
.theme-toggle:active { transform: translateY(1px); }

.container {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
}

/* ---------- Card / Hero ---------- */
.card {
  max-width: 1000px;
  margin: 100px auto 40px auto; /* space for header */
  padding: 28px clamp(20px, 4vw, 40px) clamp(28px, 4vw, 44px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-elev), transparent 10%), color-mix(in srgb, var(--bg-elev), transparent 0%));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-1), transparent 70%), color-mix(in srgb, var(--accent-2), transparent 70%), color-mix(in srgb, var(--accent-3), transparent 70%));
  filter: blur(16px);
  opacity: 0.25;
  z-index: -1;
}

.card.success::after { opacity: 0.55; filter: blur(22px); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-1), transparent 30%), color-mix(in srgb, var(--accent-2), transparent 30%));
  color: #0b1320;
}

.hero-title {
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.05;
  margin: 14px 0 10px 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.title-accent {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.hero-sub {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: clamp(14px, 2.2vw, 18px);
}

/* ---------- Countdown ---------- */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 12px 0;
}

.time-box {
  background: color-mix(in srgb, var(--bg-elev), transparent 20%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}

.time-box .value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(22px, 5.5vw, 36px);
  letter-spacing: 0.01em;
}

.time-box .label {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

/* ---------- Waitlist ---------- */
.waitlist { margin-top: 12px; }
.field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field input[type="email"] {
  flex: 1 1 auto;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elev), transparent 15%);
  color: var(--fg);
  caret-color: var(--accent-1);
}

.field input::placeholder { color: color-mix(in srgb, var(--muted), transparent 20%); }

.btn-primary {
  flex: 0 0 auto;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent-1), var(--accent-2) 50%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-1), transparent 30%), color-mix(in srgb, var(--accent-2), transparent 30%));
  color: #0b1320;
  font-weight: 700;
  cursor: pointer;
  transition: transform .06s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent-2), transparent 40%);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: 0.6; cursor: not-allowed; }

.hint {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 2px 0 2px;
}

.links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.link:hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--border), var(--fg) 20%);
  background: color-mix(in srgb, var(--bg-elev), transparent 70%);
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 10px 20px 24px 20px;
  color: var(--muted);
}

.site-footer .tip kbd {
  background: color-mix(in srgb, var(--bg-elev), transparent 20%);
  border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field { flex-direction: column; align-items: stretch; }
  .btn-primary { width: 100%; }
}

/* Reduced motion: ensure no overwhelming animation */
@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .btn-primary { transition: none; }
}


