:root {
  color-scheme: dark;
  --bg: #070911;
  --bg-soft: rgba(14, 18, 34, 0.72);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.13);
  --text: #f7f8ff;
  --muted: #aeb4cb;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1240px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-soft: rgba(255, 255, 255, 0.76);
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --border: rgba(24, 28, 48, 0.1);
  --text: #16182a;
  --muted: #6a7089;
  --shadow: 0 30px 100px rgba(66, 72, 112, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(139, 92, 246, 0.14), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(34, 211, 238, 0.11), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background-color 0.35s ease, color 0.35s ease;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.aurora {
  position: fixed;
  z-index: -2;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.26;
  animation: drift 14s ease-in-out infinite alternate;
}

.aurora-one {
  width: 430px;
  height: 430px;
  top: -180px;
  left: -120px;
  background: var(--accent);
}

.aurora-two {
  width: 360px;
  height: 360px;
  right: -120px;
  top: 17%;
  background: var(--accent-2);
  animation-delay: -4s;
}

.aurora-three {
  width: 320px;
  height: 320px;
  left: 42%;
  bottom: -180px;
  background: var(--accent-3);
  animation-delay: -8s;
}

.site-header,
.site-footer,
.hero {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.brand-mark svg {
  width: 27px;
  color: var(--accent-2);
}

.theme-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(18px);
  transition: transform .2s ease, background .2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px) rotate(5deg);
  background: var(--surface-strong);
}

.hero {
  min-height: calc(100vh - 188px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  padding: 44px 0 72px;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 6px rgba(74, 222, 128, .12), 0 0 22px rgba(74, 222, 128, .7);
  animation: pulse 2s ease-in-out infinite;
}

h1 {
  margin: 28px 0 24px;
  max-width: 900px;
  font-size: clamp(3.25rem, 7.2vw, 7.4rem);
  line-height: 0.93;
  letter-spacing: -0.065em;
  font-weight: 850;
}

.gradient-text {
  display: block;
  color: transparent;
  background: linear-gradient(100deg, #fff 0%, #b7a2ff 32%, #63e6ff 65%, #ff9ed7 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

:root[data-theme="light"] .gradient-text {
  background: linear-gradient(100deg, #17182d 0%, #6d28d9 36%, #0891b2 67%, #db2777 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lead {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
}

.countdown {
  display: flex;
  align-items: flex-start;
  gap: clamp(9px, 1.7vw, 20px);
  margin: 42px 0 36px;
}

.countdown-item {
  min-width: 72px;
}

.countdown-item strong {
  display: block;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.countdown-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.countdown-divider {
  padding-top: 3px;
  color: color-mix(in srgb, var(--text), transparent 60%);
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  line-height: 1;
}

.notify-form {
  display: flex;
  gap: 12px;
  max-width: 660px;
}

.input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  backdrop-filter: blur(18px);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.input-wrap:focus-within {
  border-color: color-mix(in srgb, var(--accent-2), transparent 35%);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .08);
  background: var(--surface-strong);
}

.input-wrap svg {
  width: 22px;
  flex: 0 0 auto;
  color: var(--muted);
}

.input-wrap input {
  width: 100%;
  min-height: 58px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

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

.notify-form button {
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(110deg, var(--accent), #6d5dfc 48%, var(--accent-2));
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(101, 76, 255, .25);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.notify-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(101, 76, 255, .34);
  filter: saturate(1.15);
}

.form-note {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .84rem;
}

.visual-card {
  position: relative;
  aspect-ratio: 1 / 1.06;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.015)),
    var(--bg-soft);
  backdrop-filter: blur(30px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.1);
  isolation: isolate;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-xl) - 14px);
  pointer-events: none;
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  z-index: -1;
}

.visual-card-glow {
  position: absolute;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .62), rgba(34, 211, 238, .16) 45%, transparent 72%);
  filter: blur(28px);
  animation: breathe 5s ease-in-out infinite;
}

.core {
  position: relative;
  width: 34%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 34%;
  background: linear-gradient(145deg, rgba(255,255,255,.17), rgba(255,255,255,.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 24px 70px rgba(0,0,0,.34);
  transform: rotate(8deg);
  animation: hover 5.5s ease-in-out infinite;
}

.core svg {
  width: 54%;
  color: #e9e6ff;
  filter: drop-shadow(0 0 20px rgba(148, 121, 255, .52));
  transform: rotate(-8deg);
}

.core-ring {
  position: absolute;
  inset: -24%;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}

.orbit::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  top: 50%;
  left: -5px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 18px var(--accent-2);
}

.orbit-one {
  width: 64%;
  aspect-ratio: 1;
  animation: spin 15s linear infinite;
}

.orbit-two {
  width: 82%;
  aspect-ratio: 1;
  animation: spinReverse 22s linear infinite;
}

.orbit-two::after {
  width: 8px;
  height: 8px;
  left: auto;
  right: 12%;
  top: 7%;
  background: var(--accent-3);
  box-shadow: 0 0 18px var(--accent-3);
}

.floating-label {
  position: absolute;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.label-one { top: 20%; left: 12%; animation: hover 4.8s ease-in-out infinite; }
.label-two { right: 10%; top: 32%; animation: hover 5.2s ease-in-out infinite -1s; }
.label-three { bottom: 17%; left: 18%; animation: hover 5.8s ease-in-out infinite -2s; }

.site-footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .88rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--text);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 20;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg), transparent 8%);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes drift {
  to { transform: translate3d(70px, 45px, 0) scale(1.12); }
}

@keyframes pulse {
  50% { transform: scale(.84); opacity: .72; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  to { transform: rotate(-360deg); }
}

@keyframes hover {
  50% { transform: translateY(-12px) rotate(8deg); }
}

@keyframes breathe {
  50% { transform: scale(1.18); opacity: .78; }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .hero-content {
    max-width: 820px;
  }

  .visual-card {
    width: min(100%, 640px);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .hero {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header { min-height: 78px; }
  .brand-name { font-size: .9rem; }
  h1 { margin-top: 22px; font-size: clamp(3rem, 16vw, 5rem); }
  .lead { line-height: 1.65; }

  .countdown {
    gap: 7px;
    justify-content: space-between;
  }

  .countdown-item {
    min-width: 0;
  }

  .countdown-divider {
    font-size: 1.7rem;
  }

  .notify-form {
    flex-direction: column;
  }

  .notify-form button {
    width: 100%;
  }

  .visual-card {
    border-radius: 28px;
  }

  .floating-label {
    font-size: .64rem;
  }

  .site-footer {
    padding: 22px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
