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

:root {
  --bg: #fafafa;
  --fg: #1a1a1a;
  --muted: #999;
  --accent: #000;
  --card: #ffffff;
  --border: #e5e5e5;
  --gradient-1: #e0e0e0;
  --gradient-2: #f0f0f0;
  --gradient-3: #ebebeb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #f5f5f5;
    --muted: #666;
    --accent: #fff;
    --card: #141414;
    --border: #2a2a2a;
    --gradient-1: #1a1a1a;
    --gradient-2: #111;
    --gradient-3: #1f1f1f;
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-20px) translateX(10px);
  }
  50% {
    transform: translateY(-10px) translateX(-10px);
  }
  75% {
    transform: translateY(-30px) translateX(5px);
  }
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(var(--tx)) rotate(var(--rot));
    opacity: 0;
  }
}

@keyframes particlePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.8;
  }
}

@keyframes flameFlicker {
  0%, 100% {
    transform: translateY(0) scaleY(1) scaleX(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-5px) scaleY(1.2) scaleX(0.9);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-3px) scaleY(0.9) scaleX(1.1);
    opacity: 0.5;
  }
  75% {
    transform: translateY(-7px) scaleY(1.1) scaleX(0.95);
    opacity: 0.7;
  }
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  padding: 3rem 1.5rem;
  position: relative;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--gradient-1) 0%,
    var(--gradient-2) 50%,
    var(--gradient-3) 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 20s ease infinite;
  opacity: 0.5;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, var(--accent) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, var(--accent) 1px, transparent 1px),
    radial-gradient(circle at 40% 60%, var(--accent) 1px, transparent 1px),
    radial-gradient(circle at 90% 30%, var(--accent) 1px, transparent 1px),
    radial-gradient(circle at 60% 90%, var(--accent) 1px, transparent 1px);
  background-size: 200px 200px, 300px 300px, 150px 150px, 250px 250px, 180px 180px;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  opacity: 0.03;
  animation: float 30s ease-in-out infinite;
  z-index: -1;
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat var(--duration) linear infinite, particlePulse var(--pulse-dur) ease-in-out infinite;
  left: var(--left);
  bottom: -10px;
}

.particle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  border-radius: inherit;
  filter: blur(2px);
  opacity: 0.5;
}

.flames {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.flame {
  position: absolute;
  width: var(--flame-w);
  height: var(--flame-h);
  background: var(--accent);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0;
  animation: flameFlicker var(--flame-dur) ease-in-out infinite;
  left: var(--flame-left);
  bottom: -20px;
  transform-origin: center bottom;
}

.flame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  border-radius: inherit;
  filter: blur(4px);
  opacity: 0.4;
}

.smokey-cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.smoke-trail {
  position: absolute;
  width: var(--size);
  height: var(--size);
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  filter: blur(var(--blur));
  pointer-events: none;
}

@keyframes smokeFade {
  0% {
    opacity: var(--start-opacity);
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(var(--end-scale));
  }
}

@media (prefers-reduced-motion: reduce) {
  .smoke-trail {
    display: none;
  }
}

.container {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.logo {
  display: inline-flex;
  color: var(--muted);
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.logo svg {
  width: 48px;
  height: 48px;
  animation: rotate 20s linear infinite;
}

.logo {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

h1 {
  animation: fadeInUp 0.8s ease-out 0.1s forwards;
  opacity: 0;
}

.tagline {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.divider {
  animation: fadeIn 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

.status {
  animation: fadeIn 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.tagline {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.hero-image {
  margin: 0 auto 2rem;
  max-width: 400px;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 3rem;
}

.status {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2.5rem;
}

.notify-form {
  display: flex;
  gap: 0.5rem;
  max-width: 340px;
  margin: 0 auto 3rem;
}

.notify-form input {
  flex: 1;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s;
}

.notify-form input::placeholder {
  color: var(--muted);
}

.notify-form input:focus {
  border-color: var(--fg);
}

.notify-form button {
  width: 52px;
  height: 52px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  background: var(--fg);
  border: 1px solid var(--fg);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.notify-form button:hover {
  background: transparent;
  color: var(--fg);
}

.notify-form button svg {
  width: 18px;
  height: 18px;
}

.notify-form button:active {
  opacity: 0.7;
}

.notify-form button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .notify-form {
    flex-direction: column;
  }
  .notify-form button {
    width: 100%;
    height: 52px;
  }
}