/* Nomio landing — dark glassmorphism, purple/cyan/pink, NGL-style motion */

:root {
  --bg: #0b0714;
  --bg-elevated: #140e22;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --primary: #8b5cf6;
  --primary-dark: #6d28d9;
  --secondary: #22d3ee;
  --accent: #f472b6;
  --text: #f4f1fa;
  --text-muted: rgba(244, 241, 250, 0.65);
  --radius: 22px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Animated background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.blob {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: drift 26s ease-in-out infinite alternate;
}
.blob-1 { background: radial-gradient(circle, var(--primary), transparent 65%); top: -20vmax; left: -12vmax; }
.blob-2 { background: radial-gradient(circle, var(--secondary), transparent 65%); top: 10vmax; right: -20vmax; opacity: 0.18; animation-delay: -8s; }
.blob-3 { background: radial-gradient(circle, var(--accent), transparent 65%); bottom: -25vmax; left: 25vw; opacity: 0.16; animation-delay: -16s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vmax, 4vmax) scale(1.15); }
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }
.d-1 { transition-delay: 0.08s; }
.d-2 { transition-delay: 0.16s; }
.d-3 { transition-delay: 0.24s; }
.d-4 { transition-delay: 0.32s; }
.d-5 { transition-delay: 0.4s; }

.grad-text {
  background: linear-gradient(120deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.shimmer {
  background-size: 220% 220%;
  animation: shimmer 5s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.3px; }

.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 14px 26px;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

.btn-store {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  color: var(--text);
  padding: 12px 22px;
  font-size: 16px;
  line-height: 1.15;
  text-align: left;
}
.btn-store small { color: var(--text-muted); font-size: 11px; font-weight: 500; }
.store-icon { font-size: 26px; }

/* ---------- Hero ---------- */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.pill {
  display: inline-block;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.04;
}

.sub { margin-top: 20px; font-size: clamp(17px, 2.2vw, 21px); font-weight: 600; }
.sub-2 { margin-top: 10px; font-size: 16px; color: var(--text-muted); }

.stores { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* ---------- Waitlist form ---------- */
.waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  scroll-margin-top: 90px;
}
.waitlist-center { justify-content: center; }

.waitlist input {
  flex: 1 1 220px;
  max-width: 320px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.waitlist input::placeholder { color: rgba(244, 241, 250, 0.38); }
.waitlist input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18); }

.waitlist-msg { flex-basis: 100%; font-size: 14px; font-weight: 600; min-height: 22px; }
.waitlist-msg.ok { color: #34d399; }
.waitlist-msg.err { color: #f87171; }

/* ---------- Phone mock ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; }

.phone {
  position: relative;
  width: min(310px, 82vw);
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  padding: 26px 18px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 30px 80px rgba(109, 40, 217, 0.4);
  animation: phoneFloat 7s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

.phone-notch {
  align-self: center;
  width: 92px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 6px;
}

.mock-link {
  align-self: center;
  font-size: 13px;
  color: var(--secondary);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 6px 16px;
}

.mock-chat { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

.mock-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  text-align: left;
}
.mock-bubble.theirs { align-self: flex-start; background: var(--glass); border: 1px solid var(--glass-border); border-bottom-left-radius: 6px; }
.mock-bubble.mine { align-self: flex-end; background: var(--primary-dark); border-bottom-right-radius: 6px; }

/* Chat loop: each element pops in sequence, whole scene repeats */
.anim-1, .anim-2, .anim-3, .anim-4, .anim-5 {
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  animation: bubbleIn 12s ease infinite;
}
.anim-1 { animation-delay: 0.6s; }
.anim-2 { animation-delay: 2.2s; }
.anim-3 { animation-delay: 3.8s; }
.anim-4 { animation-delay: 5.4s; }
.anim-5 { animation-delay: 7s; }

@keyframes bubbleIn {
  0%, 4% { opacity: 0; transform: translateY(10px) scale(0.96); }
  8%, 88% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: translateY(-6px) scale(0.98); }
}

.mock-voice {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: flex-end;
  width: 88%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 10px 14px;
}
.mock-voice .play {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}
.mock-voice .wave { display: flex; align-items: center; gap: 3px; flex: 1; }
.mock-voice .wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--secondary);
  animation: pulse 1.2s ease-in-out infinite;
}
.mock-voice .wave i:nth-child(odd) { height: 18px; }
.mock-voice .wave i:nth-child(even) { height: 10px; animation-delay: 0.3s; }
.mock-voice .wave i:nth-child(3n) { height: 24px; animation-delay: 0.6s; }
.mock-voice .dur { font-size: 12px; color: var(--text-muted); }

@keyframes pulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.55); }
}

.mock-typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  padding: 12px 16px;
}
.mock-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingDot 1s ease-in-out infinite;
}
.mock-typing i:nth-child(2) { animation-delay: 0.18s; }
.mock-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingDot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Floating question cards around the phone (NGL-style) */
.float-card {
  position: absolute;
  z-index: 2;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: cardFloat 6s ease-in-out infinite;
}
.fc-1 { top: 4%; left: -6%; animation-delay: 0s; }
.fc-2 { top: 26%; right: -10%; animation-delay: -1.6s; }
.fc-3 { bottom: 28%; left: -12%; animation-delay: -3.2s; background: linear-gradient(135deg, rgba(139,92,246,0.35), rgba(34,211,238,0.25)); }
.fc-4 { bottom: 6%; right: -4%; animation-delay: -4.8s; }

@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.02);
}
.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: 80px 24px; }

.section h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 44px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  padding: 26px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, opacity 0.7s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(139, 92, 246, 0.5); }
.card.reveal:not(.in) { transform: translateY(26px); }

.card-icon { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 15px; }

.quote p { font-size: 15px; color: var(--text); }
.quote footer { margin-top: 14px; color: var(--text-muted); font-size: 13px; }

/* ---------- Lifestyle imagery ---------- */
.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.lifestyle {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  aspect-ratio: 1;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(139, 92, 246, 0.45), transparent 60%),
    radial-gradient(120% 120% at 85% 90%, rgba(244, 114, 182, 0.35), transparent 60%),
    var(--bg-elevated);
}
/* Placeholder emoji shows through until the AI image is generated */
.lifestyle::before {
  content: attr(data-ph);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 56px;
  opacity: 0.9;
}
.lifestyle img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.lifestyle:hover img { transform: scale(1.05); }
/* app.js adds .missing when the image 404s (not generated yet) */
.lifestyle img.missing { display: none; }

.lifestyle figcaption {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* ---------- Steps ---------- */
.steps { list-style: none; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }

.step-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.steps h3 { font-size: 17px; }
.steps p { color: var(--text-muted); font-size: 15px; }

/* ---------- FAQ ---------- */
details {
  max-width: 720px;
  margin: 0 auto 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 18px 22px;
}
details summary { cursor: pointer; font-weight: 700; font-size: 16px; }
details[open] summary { color: var(--secondary); }
details p { margin-top: 12px; color: var(--text-muted); font-size: 15px; }

/* ---------- CTA + footer ---------- */
.cta { text-align: center; }
.cta .stores { justify-content: center; margin-top: 28px; }

.footer {
  border-top: 1px solid var(--glass-border);
  margin-top: 40px;
  padding: 32px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
  font-size: 14px;
}
.footer nav { display: flex; gap: 20px; }
.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 32px; }
  .hero-copy .waitlist, .hero-copy .stores { justify-content: center; }
  .hero-visual { margin-top: 24px; }
  .fc-1 { left: 2%; }
  .fc-3 { left: 0; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .anim-1, .anim-2, .anim-3, .anim-4, .anim-5 { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Hero trust badges (waitlist landing, screen 27) */
.trust {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.trust-item {
  flex: 1 1 0;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px 16px;
}
.trust-icon { font-size: 22px; }
.trust-item b { font-size: 14px; font-weight: 800; }
.trust-item small { color: var(--text-muted); font-size: 12px; }

/* Legal & support pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}
.legal h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 900; letter-spacing: -1px; }
.legal-updated { color: var(--text-muted); font-size: 14px; margin: 8px 0 28px; }
.legal h2 { font-size: 20px; font-weight: 800; margin: 28px 0 10px; }
.legal h2.faq-q { font-size: 16px; margin-bottom: 6px; }
.legal p { color: var(--text-muted); font-size: 15.5px; line-height: 1.7; margin-bottom: 12px; }
.legal ul { color: var(--text-muted); font-size: 15.5px; line-height: 1.7; padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--secondary); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--text); }
.support-contact { margin: 20px 0 8px; }
