/* ========================================
   NUZZO — Landing Page
   ======================================== */

:root {
  --bg-deep: #0D001A;
  --bg-page: #1A0030;
  --bg-surface: #340055;
  --magenta: #FF00CC;
  --magenta-dim: rgba(255, 0, 204, 0.15);
  --mint: #00E5A0;
  --text-primary: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-faint: rgba(255, 255, 255, 0.2);
  --invert-bg: #F5F0FA;
  --invert-text: #1A0030;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ========================================
   HERO
   ======================================== */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(52, 0, 85, 0.6) 0%, transparent 100%),
    var(--bg-deep);
}

.wordmark {
  position: absolute;
  top: 2rem;
  left: 2.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}

.hero-content {
  text-align: center;
  max-width: 800px;
}

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-size: clamp(3.2rem, 9vw, 8rem);
  margin-bottom: 1.5rem;
}

.headline .line {
  display: block;
}

.headline .accent {
  font-weight: 800;
  color: var(--magenta);
  animation: snap-in 0.5s ease-out 0.6s both;
}

@keyframes snap-in {
  from {
    opacity: 0;
    filter: blur(6px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

.subline {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
}

.scroll-dot {
  animation: scroll-bob 2s ease-in-out infinite;
}

@keyframes scroll-bob {
  0%, 100% { cy: 8; }
  50% { cy: 18; }
}

/* ========================================
   PRODUCT SECTION
   ======================================== */

.product {
  padding: 6rem 2rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  background: var(--bg-deep);
}

.device-frame {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.device {
  width: 100px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(145deg, #2A0045, #40006A);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 60px rgba(255, 0, 204, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.device-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 12px var(--magenta);
}

.device-pulse {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--magenta);
  animation: pulse-ring 3s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    width: 8px;
    height: 8px;
    opacity: 0.8;
  }
  100% {
    width: 80px;
    height: 80px;
    opacity: 0;
  }
}

.specs {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.2vw, 0.8rem);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.spec {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spec-label {
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-faint);
}

.spec-divider {
  width: 1px;
  height: 14px;
  background: var(--text-faint);
}

/* ========================================
   THE ARGUMENT
   ======================================== */

.argument {
  background: var(--invert-bg);
  padding: 6rem 2rem;
}

.argument-inner {
  max-width: 680px;
  margin: 0 auto;
}

.argument-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.05;
  color: var(--invert-text);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.argument-answer {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: var(--magenta);
  margin-bottom: 1.5rem;
}

.argument-body {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.65;
  color: rgba(26, 0, 48, 0.6);
  max-width: 520px;
}

/* ========================================
   WAITLIST
   ======================================== */

.waitlist {
  padding: 6rem 2rem;
  background: var(--bg-deep);
}

.waitlist-inner {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.waitlist-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 2.5rem;
}

#waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group {
  position: relative;
}

#email-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--text-faint);
  padding: 0.9rem 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s ease;
}

#email-input::placeholder {
  color: var(--text-faint);
}

#email-input:focus {
  border-bottom-color: var(--magenta);
}

.input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1.5px;
  width: 100%;
  background: var(--magenta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

#email-input:focus ~ .input-line {
  transform: scaleX(1);
}

#submit-btn {
  background: var(--magenta);
  color: white;
  border: none;
  padding: 0.95rem 2rem;
  border-radius: 60px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

#submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(255, 0, 204, 0.35);
}

#submit-btn:active {
  transform: translateY(0);
}

#submit-btn:disabled {
  cursor: default;
  opacity: 0.7;
}

.btn-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn-check {
  animation: draw-check 0.3s ease-out both;
}

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

@keyframes draw-check {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

.btn-check path {
  stroke-dasharray: 24;
}

.form-error {
  font-size: 0.85rem;
  color: #ff5c8a;
  margin-top: 0.25rem;
}

/* Chips (qualifying question) */
.form-step {
  animation: fade-up 0.4s ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.chip {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 60px;
  padding: 0.6rem 1.3rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

.chip:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.chip.selected {
  background: var(--magenta);
  border-color: var(--magenta);
}

.chip-group.has-selection .chip:not(.selected) {
  opacity: 0.4;
}

/* Done state */
.done-icon {
  margin-bottom: 1.5rem;
  animation: scale-in 0.3s ease both;
}

@keyframes scale-in {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

#step-done .waitlist-headline {
  color: var(--mint);
}

/* ========================================
   SCROLL REVEAL
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-faint);
  background: var(--bg-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer p + p {
  margin-top: 0.4rem;
}

.footer-legal {
  font-size: 0.7rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 600px) {
  .wordmark {
    top: 1.5rem;
    left: 1.5rem;
  }

  .hero {
    padding: 1.5rem;
  }

  .specs {
    flex-direction: column;
    gap: 0.6rem;
  }

  .spec-divider {
    display: none;
  }

  .argument, .product, .waitlist {
    padding: 4rem 1.5rem;
  }

  .chip-group {
    gap: 0.5rem;
  }

  .chip {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
  }
}
