:root {
  --bg: #0B0C10;
  --surface: #14161D;
  --surface-hover: #191C25;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(92, 225, 230, 0.55);
  --text: #F4F5F7;
  --text-muted: #98A0B3;
  --text-dim: #666E80;
  --accent: #5CE1E6;
  --accent-hover: #7AE9ED;
  --discord-green: #23A55A;
  --error: #F87171;
  --radius-lg: 16px;
  --radius-md: 11px;
}

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

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  background-color: var(--bg);
  position: relative;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
}

/* Subtle top ambient glow (Linear-inspired) */
.ambient-glow {
  position: fixed;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 120vw);
  height: 360px;
  background: radial-gradient(
    ellipse at center,
    rgba(92, 225, 230, 0.11) 0%,
    rgba(35, 165, 90, 0.05) 45%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  padding: 40px 20px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Screen-reader only */
.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;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--discord-green);
  flex-shrink: 0;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background-color: rgba(35, 165, 90, 0.45);
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.75);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

.headline {
  font-size: clamp(2rem, 7.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -0.035em;
  color: var(--text);
  max-width: 16ch;
}

.subtitle {
  font-size: clamp(0.95rem, 3.8vw, 1.05rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 42ch;
}

/* Waitlist Card & Form */
.waitlist-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.field-group input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(11, 12, 16, 0.72);
  color: var(--text);
  font-family: inherit;
  font-size: 16px; /* Prevents iOS Safari auto-zoom on focus */
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.field-group input::placeholder {
  color: var(--text-dim);
}

.field-group input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(92, 225, 230, 0.12);
  background: #0B0C10;
}

.field-group input[aria-invalid="true"] {
  border-color: rgba(248, 113, 113, 0.7);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.submit-btn {
  margin-top: 2px;
  width: 100%;
  height: 46px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #0B0C10;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.16s ease, transform 0.12s ease, opacity 0.16s ease;
}

.submit-btn:hover:not(:disabled) {
  background: var(--accent-hover);
}

.submit-btn:active:not(:disabled) {
  transform: scale(0.99);
}

.submit-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(11, 12, 16, 0.28);
  border-top-color: #0B0C10;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.submit-btn.is-loading .btn-spinner {
  display: inline-block;
}

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

.form-feedback {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  line-height: 1.45;
  text-align: center;
}

.form-feedback.is-success {
  color: #B7F5CF;
  background: rgba(35, 165, 90, 0.12);
  border: 1px solid rgba(35, 165, 90, 0.3);
}

.form-feedback.is-error {
  color: #FCA5A5;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.28);
}

/* Demo Video Card */
.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}

.demo-channel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-weight: 500;
}

.demo-icon {
  color: var(--discord-green);
  flex-shrink: 0;
}

.demo-tag {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(92, 225, 230, 0.1);
  border: 1px solid rgba(92, 225, 230, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
}

.video-wrapper {
  background: #07080B;
  position: relative;
}

.video-wrapper video {
  display: block;
  width: 100%;
  max-height: 420px;
  background: #07080B;
}

.video-fallback {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13.5px;
}

/* Micro-Features */
.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-item {
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.feature-item:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.13);
}

.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transform: translateY(-2px);
}

.feature-text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
}

.feature-text strong {
  color: var(--text);
  font-weight: 600;
}

.feature-text .sep {
  color: var(--text-dim);
  margin: 0 2px;
}

/* Footer */
.footer {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.16s ease;
}

.footer-link:hover {
  color: var(--accent);
}

/* Desktop breathing room */
@media (min-width: 640px) {
  .container {
    padding: 64px 24px 48px;
    gap: 28px;
  }

  .waitlist-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot::after,
  .btn-spinner {
    animation: none;
  }
}
