:root {
  --bg: #0a0a0a;
  --surface: #111827;
  --surface-border: #1f2937;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --orange-400: #fb923c;
  --orange-500: #f6821f;
  --orange-600: #e06d13;
  --orange-100: #ffedd5;
  --error: #f87171;
  --success: #34d399;
  --grid-line: #1f2937;
  --radius: 14px;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(246, 130, 31, 0.22) 0%, transparent 65%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(246, 130, 31, 0.25);
}

.brand-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.content {
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-400);
  background: rgba(246, 130, 31, 0.1);
  border: 1px solid rgba(246, 130, 31, 0.25);
  padding: 8px 16px;
  border-radius: 999px;
}

.title {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.gradient-text {
  background: linear-gradient(90deg, var(--orange-400), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 520px;
}

.waitlist {
  width: 100%;
  max-width: 480px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.input-row {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-row:focus-within {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(246, 130, 31, 0.15);
}

#email {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
}

#email::placeholder {
  color: #6b7280;
}

#submit-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-500));
  border: none;
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 10px 22px;
  border-radius: 10px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease, opacity 0.2s ease;
}

#submit-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

#submit-btn:active:not(:disabled) {
  transform: scale(0.97);
}

#submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#submit-btn.loading {
  opacity: 0.7;
}

.message {
  font-size: 14px;
  min-height: 20px;
  line-height: 1.5;
}

.message:empty {
  display: none;
}

.message.success {
  color: var(--success);
}

.message.error {
  color: var(--error);
}

.message.info {
  color: var(--orange-400);
}

.count {
  font-size: 13px;
  color: var(--text-muted);
}

.footer {
  text-align: center;
  font-size: 13px;
  color: #4b5563;
}

@media (max-width: 480px) {
  .hero {
    padding: 32px 20px;
    gap: 40px;
  }

  .input-row {
    flex-direction: column;
  }

  #submit-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
