:root {
  --pink-50:  #eef4ff;
  --pink-100: #dbe7ff;
  --pink-300: #92b4ff;
  --pink-400: #6b95ff;
  --pink-500: #3d6dff;
  --pink-600: #2750e8;
  --pink-700: #1a3bbf;

  --ink-0:   #ffffff;
  --ink-50:  #fafaf9;
  --ink-100: #f4f3f1;
  --ink-200: #e8e6e2;
  --ink-500: #6b6760;
  --ink-900: #1a1916;

  --bg:        var(--ink-50);
  --surface:   var(--ink-0);
  --border:    var(--ink-200);
  --text:      var(--ink-900);
  --mute:      var(--ink-500);
  --accent:    var(--pink-500);
  --accent-ink:var(--pink-700);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

[data-theme="dark"] {
  --bg:        #0c0f17;
  --surface:   #161a26;
  --border:    #262b3b;
  --text:      #f1f3f8;
  --mute:      #8e94a6;
  --accent:    #6b95ff;
  --accent-ink:#b3c7ff;
}

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

html { height: 100%; }
body {
  min-height: 100%;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.bg::before, .bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px);
}
.bg::before {
  width: 560px; height: 560px;
  background: radial-gradient(circle at 30% 30%, var(--pink-300), transparent 60%);
  top: -160px; right: -140px; opacity: 0.5;
}
.bg::after {
  width: 480px; height: 480px;
  background: radial-gradient(circle at 70% 70%, var(--pink-100), transparent 60%);
  bottom: -180px; left: -140px; opacity: 0.55;
}
[data-theme="dark"] .bg::before { opacity: 0.22; }
[data-theme="dark"] .bg::after  { opacity: 0.14; }

.page {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 480px;
  min-width: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding: 0 20px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
}
.brand-mark {
  width: 24px; height: 24px; border-radius: 7px;
  background: linear-gradient(135deg, var(--pink-400), var(--pink-600));
  display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 800;
  box-shadow: 0 3px 8px -2px rgba(39,80,232,0.55);
}
.brand-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-left: 2px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,109,255,0.45); }
  50%       { box-shadow: 0 0 0 6px rgba(61,109,255,0); }
}

.headline {
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.headline em {
  font-style: normal;
  background: linear-gradient(120deg, var(--pink-500), var(--pink-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-time {
  width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative; overflow: hidden;
}
.hero-time::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(61,109,255,0.06), transparent 60%);
  pointer-events: none;
}
.hero-time-kicker {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-ink); position: relative;
}
.hero-time-value {
  font-family: var(--font-mono);
  font-size: 34px; font-weight: 600;
  color: var(--text); letter-spacing: -0.025em;
  line-height: 1.05; font-variant-numeric: tabular-nums;
  white-space: nowrap; position: relative;
}
.hero-time-value .tz-inline {
  font-family: var(--font-sans);
  font-size: 0.4em; font-weight: 700;
  letter-spacing: 0.1em; color: var(--mute);
  margin-left: 0.4em; vertical-align: 0.35em;
}
.hero-time-sub {
  font-size: 13px; color: var(--mute);
  font-weight: 500; position: relative;
}

.countdown {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--font-mono); font-size: 14px;
  color: var(--mute); font-variant-numeric: tabular-nums;
}
.countdown strong { color: var(--text); font-weight: 600; }
.countdown .cd-sep { opacity: 0.4; }

.done-msg {
  font-size: 16px; font-weight: 600; color: var(--accent-ink);
  padding: 18px 24px;
  background: var(--pink-50); border: 1px solid var(--pink-100);
  border-radius: 14px;
}
[data-theme="dark"] .done-msg {
  background: rgba(107,149,255,0.1);
  border-color: rgba(107,149,255,0.25);
}

@media (max-width: 479px) {
  body { padding: 16px 0; }
  .stack { gap: 16px; padding: 0 16px; }
  .headline { font-size: 28px; }
  .hero-time { padding: 20px 16px; gap: 10px; border-radius: 18px; }
  .hero-time-value { font-size: 24px; }
  .countdown { font-size: 13px; gap: 4px; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 380px) {
  .stack { gap: 12px; padding: 0 14px; }
  .brand { padding: 6px 12px 6px 8px; font-size: 12px; }
  .brand-mark { width: 22px; height: 22px; font-size: 11px; }
  .headline { font-size: 24px; }
  .hero-time { padding: 16px 12px; gap: 8px; border-radius: 16px; }
  .hero-time-kicker { font-size: 10px; }
  .hero-time-value { font-size: 18px; }
  .hero-time-sub { font-size: 11px; }
  .countdown { font-size: 12px; }
}

@media (max-height: 620px) and (max-width: 479px) {
  .stack { gap: 10px; }
  .hero-time { padding: 14px; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-dot { animation: none; }
}
