/* Noodo landing — base styles */

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

:root {
  --bg: #050505;
  --bg-2: #0b0b0d;
  --fg: #ffffff;
  --fg-muted: rgba(255, 255, 255, 0.62);
  --fg-faint: rgba(255, 255, 255, 0.38);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --orange: #fd4b01;
  --purple: #4507cc;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

#root { min-height: 100vh; }

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* Background gradient (radial accent) */
.bg-gradient {
  position: fixed;
  inset: -10% -10% 10% -10%;
  z-index: -2;
  pointer-events: none;
  transition: background 0.5s ease;
}

/* Subtle grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  position: relative;
  z-index: 2;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 14px;
}

.logo-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 28px;
  height: 18px;
}
.logo-mark-sm { width: 22px; height: 14px; }

.logo-dot {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translateY(-50%);
  filter: blur(0.2px);
  box-shadow: 0 0 16px currentColor;
}
.logo-mark-sm .logo-dot { width: 12px; height: 12px; }
.logo-dot-orange { left: 0; mix-blend-mode: screen; }
.logo-dot-purple { right: 0; mix-blend-mode: screen; }

.logo-word { font-family: 'Poppins', sans-serif; font-weight: 600; }

.nav-tag {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--fg-faint);
  text-transform: uppercase;
  font-weight: 300;
}

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px 80px;
  min-height: calc(100vh - 200px);
}

.orbs-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -78%);
  z-index: 0;
  opacity: 0.7;
}

/* Vignette behind headline to keep gradient text legible */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 720px;
  height: 360px;
  transform: translate(-50%, -68%);
  background: radial-gradient(ellipse at center, rgba(5,5,5,0.7) 0%, rgba(5,5,5,0.4) 40%, rgba(5,5,5,0) 75%);
  z-index: 0;
  pointer-events: none;
  filter: blur(12px);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  font-weight: 400;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}

.headline {
  font-family: 'Poppins', sans-serif;
  font-weight: 200;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 4px 0 0;
  text-wrap: balance;
}

.headline-grad {
  font-weight: 500;
  background-size: 200% 100%;
  animation: grad-shift 8s ease-in-out infinite;
}

.subhead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-muted);
  font-weight: 300;
  max-width: 440px;
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Form ---------- */
.form-card {
  width: 100%;
  max-width: 440px;
  margin-top: 16px;
}

.waitlist-form { display: flex; flex-direction: column; gap: 10px; }

.waitlist-fields {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.field {
  position: relative;
  flex: 1 1 180px;
  display: flex;
  align-items: center;
}

.field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
  backdrop-filter: blur(12px);
}
.field input::placeholder { color: var(--fg-faint); }
.field input:hover { border-color: var(--line-strong); }
.field input:focus {
  border-color: rgba(253, 75, 1, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.field-email { flex: 2 1 280px; padding-right: 6px; position: relative; }
.field-email input { padding-right: 130px; }

.submit-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--purple) 100%);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 24px -8px rgba(253, 75, 1, 0.5), 0 4px 16px -10px rgba(69, 7, 204, 0.6);
}
.submit-btn:hover { transform: translateY(-50%) translateY(-1px); filter: brightness(1.08); }
.submit-btn:active { transform: translateY(-50%) translateY(0); }
.submit-btn:disabled { opacity: 0.7; cursor: wait; }

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.form-meta { min-height: 18px; padding: 0 4px; text-align: left; }
.form-hint { font-size: 12px; color: var(--fg-faint); font-weight: 300; }
.form-error { font-size: 12px; color: #ff8a6a; font-weight: 400; }

/* Success state */
.form-success {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
  animation: success-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  backdrop-filter: blur(12px);
}
.form-success-check {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 24px -8px rgba(253, 75, 1, 0.5);
}
.form-success-title { font-size: 15px; font-weight: 500; }
.form-success-sub { font-size: 13px; color: var(--fg-muted); margin-top: 2px; font-weight: 300; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  padding: 28px 48px 32px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
}
.footer-copy { font-size: 12px; color: var(--fg-faint); font-weight: 300; }

.footer-socials { display: flex; gap: 6px; }
.social {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-muted);
  border: 1px solid var(--line);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  text-decoration: none;
}
.social:hover {
  color: var(--fg);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

/* ---------- Animations ---------- */
@keyframes orb-breathe-left {
  0%, 100% { transform: translate(calc(-50% - 90px), -50%) scale(1); }
  50%      { transform: translate(calc(-50% - 60px), -50%) scale(1.06); }
}
@keyframes orb-breathe-right {
  0%, 100% { transform: translate(calc(-50% + 90px), -50%) scale(1); }
  50%      { transform: translate(calc(-50% + 60px), -50%) scale(1.06); }
}

@keyframes orb-orbit-left {
  0%   { transform: translate(-50%, -50%) rotate(0deg) translate(110px) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translate(110px) rotate(-360deg); }
}
@keyframes orb-orbit-right {
  0%   { transform: translate(-50%, -50%) rotate(180deg) translate(110px) rotate(-180deg); }
  100% { transform: translate(-50%, -50%) rotate(540deg) translate(110px) rotate(-540deg); }
}

@keyframes halo-pulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.05); }
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

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

@keyframes success-in {
  0%   { opacity: 0; transform: translateY(8px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav { padding: 20px 24px; }
  .hero { padding: 24px 24px 60px; }
  .footer { padding: 24px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-left { justify-content: center; }
  .field-email input { padding-right: 116px; }
  .orbs-wrap { transform: translate(-50%, -78%) scale(0.7); }
  .hero::before { width: 90vw; height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
