:root {
  --bg-0: #07091a;
  --bg-1: #0b0f1a;
  --fg: #e9ecf8;
  --fg-dim: #a4adc7;
  --fg-mute: #6b7494;
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.04);
  --accent-a: #7c5cff;
  --accent-b: #22d3ee;
  --accent-c: #f472b6;
  --radius: 16px;
  --shadow: 0 30px 80px -20px rgba(124, 92, 255, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--fg);
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(700px 500px at 60% 110%, rgba(244, 114, 182, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100%;
  position: relative;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.shell {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: inline-flex;
  gap: 4px;
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(34, 211, 238, 0.18));
  border: 1px solid var(--line);
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-a);
  animation: bounce 1.6s infinite ease-in-out;
}
.logo-dot:nth-child(2) {
  background: var(--accent-b);
  animation-delay: 0.15s;
}
.logo-dot:nth-child(3) {
  background: var(--accent-c);
  animation-delay: 0.3s;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(-4px); opacity: 1; }
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: clamp(28px, 6vw, 64px) 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.4);
  color: #d8d2ff;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(167, 139, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
}

.title {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 22px 0 16px;
  max-width: 18ch;
}

.grad {
  background: linear-gradient(120deg, var(--accent-a), var(--accent-b) 50%, var(--accent-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.subtitle {
  color: var(--fg-dim);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  max-width: 58ch;
  margin: 0 0 32px;
}

.countdown {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 32px;
  flex-wrap: nowrap;
}

.cell {
  min-width: clamp(64px, 14vw, 110px);
  padding: 14px 10px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.num {
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #b6b9d6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-mute);
}

.sep {
  align-self: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--fg-mute);
  font-weight: 300;
}

.notify {
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.notify:focus-within {
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: var(--shadow);
}

.notify input {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--fg);
  padding: 12px 18px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}

.notify input::placeholder {
  color: var(--fg-mute);
}

.notify button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-a), #5b8def);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.6);
}

.notify button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.notify button:active { transform: translateY(0); }

.hint {
  grid-column: 1 / -1;
  margin: 4px 0 2px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--fg-mute);
  transition: color 0.2s;
}
.hint.ok { color: #6ee7b7; }
.hint.err { color: #fca5a5; }

.features {
  margin: 56px 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 880px;
}

.features li {
  text-align: left;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.features li:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.45);
  background: rgba(124, 92, 255, 0.06);
}

.ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(34, 211, 238, 0.18));
  color: #c9c2ff;
  margin-bottom: 12px;
}

.ico svg { width: 20px; height: 20px; }

.features h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.features p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

.foot {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--fg-mute);
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.foot .dot { opacity: 0.5; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
  .sep { display: none; }
  .cell { min-width: 0; flex: 1; }
  .countdown { gap: 6px; }
  .notify { grid-template-columns: 1fr; border-radius: 18px; }
  .notify button { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
