/* ═══════════════════════════════════════════════════════════════
   VYRO — Landing Page
   Paleta e tipografia espelham o design system do app (src/theme/tokens.js)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --background: #0B1120;
  --surface: #162032;
  --surface-alt: #131C2E;
  --surface-elevated: #1A2740;

  --border: #1E293B;
  --border-subtle: #334155;

  --primary: #a0dd1f;
  --primary-dark: #7DB815;
  --primary-muted: rgba(160, 221, 31, 0.1);
  --primary-border: rgba(160, 221, 31, 0.25);
  --primary-glow: rgba(160, 221, 31, 0.18);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-tertiary: #64748B;

  --info: #3B82F6;
  --warning: #F59E0B;
  --danger: #EF4444;

  --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container-w: 1160px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--text-primary);
}

p { margin: 0; color: var(--text-secondary); }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 760px; }

/* ─── Background glow (mesma linguagem do GlowBackground.js) ────── */
.bg-glow {
  position: fixed;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
}
.bg-glow--top {
  top: -220px;
  right: -160px;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(160,221,31,0.05) 45%, transparent 70%);
}
.bg-glow--bottom {
  bottom: -260px;
  left: -200px;
  background: radial-gradient(circle, rgba(160,221,31,0.12) 0%, rgba(160,221,31,0.03) 45%, transparent 70%);
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ─── Reveal-on-scroll ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1.is-visible { transition-delay: 0.1s; }
.reveal--delay-2.is-visible { transition-delay: 0.2s; }
.reveal--delay-3.is-visible { transition-delay: 0.3s; }

/* ─── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-pill);
  padding: 15px 26px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--primary);
  color: #0B1120;
  box-shadow: 0 8px 24px rgba(160, 221, 31, 0.25);
}
.btn--primary:hover { box-shadow: 0 10px 28px rgba(160, 221, 31, 0.38); }

.btn--sm { padding: 10px 20px; font-size: 14px; }

.btn__spinner {
  display: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(11, 17, 32, 0.35);
  border-top-color: #0B1120;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn__label { opacity: 0.6; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; }

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

/* ─── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 17, 32, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__mark { border-radius: 8px; }
.nav__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
}
.nav__links {
  display: flex;
  gap: 32px;
}
.nav__links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--text-primary); }

@media (max-width: 780px) {
  .nav__links { display: none; }
}

/* ─── Hero ────────────────────────────────────────────────────────── */
.hero { padding: 88px 0 60px; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-muted);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-muted);
}

.hero__title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin-bottom: 22px;
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary) 0%, #d4f77e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero__trust {
  display: flex;
  gap: 36px;
  margin-top: 28px;
}
.hero__trust-item {
  display: flex;
  flex-direction: column;
}
.hero__trust-item strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
}
.hero__trust-item span {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ─── Waitlist form ───────────────────────────────────────────────── */
.waitlist-form { max-width: 480px; }
.waitlist-form__row {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: var(--radius-pill);
}
.waitlist-form__row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 16px;
  min-width: 0;
}
.waitlist-form__row input::placeholder { color: var(--text-tertiary); }
.waitlist-form__row.is-invalid { border-color: var(--danger); }

.waitlist-form__hint {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 12px;
  padding-left: 6px;
}
.waitlist-form__feedback {
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  padding-left: 6px;
  min-height: 20px;
}
.waitlist-form__feedback[data-state="success"] { color: var(--primary); }
.waitlist-form__feedback[data-state="error"] { color: var(--danger); }

.waitlist-form--center { margin: 0 auto; }
.waitlist-form--center .waitlist-form__hint,
.waitlist-form--center .waitlist-form__feedback {
  text-align: center;
  padding-left: 0;
}

@media (max-width: 520px) {
  .waitlist-form__row { flex-direction: column; border-radius: var(--radius-md); }
  .waitlist-form__row input { padding: 12px 14px; }
  .waitlist-form__row .btn { width: 100%; }
}

/* ─── Phone mockup ────────────────────────────────────────────────── */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 300px;
  background: #05070d;
  border-radius: 42px;
  padding: 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 30px 70px rgba(0,0,0,0.55),
    0 0 90px rgba(160,221,31,0.08);
}
.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #05070d;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone__screen {
  background: var(--background);
  border-radius: 30px;
  padding: 36px 16px 20px;
  min-height: 520px;
}

.mock-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mock-title { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.mock-subtitle { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.mock-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}
.mock-pill--primary { background: var(--info); color: #fff; }

.mock-reasoning {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.mock-reasoning__icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--primary);
  margin-right: 6px;
  vertical-align: -2px;
}

.mock-timeline { display: flex; flex-direction: column; gap: 14px; }
.mock-day { display: flex; align-items: flex-start; gap: 10px; }
.mock-day__date {
  width: 30px;
  text-align: center;
  flex-shrink: 0;
}
.mock-day__date span {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
}
.mock-day__date b {
  display: block;
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.mock-day--active .mock-day__date b { color: var(--text-primary); }

.mock-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}
.mock-card--active { border-color: var(--primary-border); background: var(--primary-muted); }
.mock-card--rest { opacity: 0.6; border-style: dashed; padding: 10px 12px; }
.mock-card__row { display: flex; align-items: center; gap: 8px; }
.mock-card__row--between { justify-content: space-between; margin-top: 8px; }
.mock-card__title { font-size: 12.5px; font-weight: 700; color: var(--text-primary); }
.mock-card__meta { font-size: 11px; color: var(--text-tertiary); }

.icon--card {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-secondary);
}
.mock-card--active .icon--card { color: var(--primary); }

.mock-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}
.mock-tag--moderate { background: rgba(245,158,11,0.12); color: var(--warning); }
.mock-tag--intense { background: rgba(239,68,68,0.12); color: var(--danger); }

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  animation: float 5s ease-in-out infinite;
}
.floating-badge__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.floating-badge__icon .icon { width: 18px; height: 18px; }
.floating-badge__icon--gold { background: rgba(245, 158, 11, 0.14); color: var(--warning); }
.floating-badge__icon--flame { background: rgba(239, 68, 68, 0.14); color: var(--danger); }
.floating-badge b { display: block; font-size: 13px; color: var(--text-primary); }
.floating-badge small { font-size: 11px; color: var(--text-tertiary); }

.floating-badge--pr { top: 6%; left: -8%; animation-delay: 0s; }
.floating-badge--streak { bottom: 10%; right: -10%; animation-delay: 1.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 40px; }
  .hero__visual { margin-top: 24px; }
  .floating-badge { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 0 40px; }
  .hero__title { font-size: 32px; }
  .hero__subtitle { font-size: 16px; }
  .hero__trust { gap: 22px; flex-wrap: wrap; }
  .phone { width: 100%; max-width: 320px; }
}

/* ─── Sections genéricas ──────────────────────────────────────────── */
.section { padding: 88px 0; }
.section--alt {
  background: linear-gradient(180deg, transparent, rgba(22,32,50,0.4) 12%, rgba(22,32,50,0.4) 88%, transparent);
}

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section__title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.6px;
  max-width: 640px;
  margin-bottom: 16px;
}
.section__subtitle {
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 48px;
}

/* ─── Steps ───────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.step__number {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  border: 1px solid var(--primary-border);
  background: var(--primary-muted);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { font-size: 14.5px; line-height: 1.6; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
}

/* ─── Features ────────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--primary-border); }
.feature__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-muted);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature__icon .icon { width: 24px; height: 24px; }
.feature h3 { font-size: 16px; margin-bottom: 8px; }
.feature p { font-size: 14px; line-height: 1.6; }

@media (max-width: 980px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
}

/* ─── CTA final ───────────────────────────────────────────────────── */
.cta__box {
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--primary-border);
  border-radius: 32px;
  padding: 64px 32px;
  max-width: 720px;
}
.cta__mark { margin: 0 auto 24px; border-radius: 14px; }
.cta__box h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.cta__box > p { margin-bottom: 32px; font-size: 16px; }

/* ─── FAQ ─────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--primary);
  font-weight: 400;
  margin-left: 16px;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 20px; font-size: 14.5px; line-height: 1.6; }

/* ─── Footer ──────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__tagline { font-size: 14px; }
.footer__social a {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
.footer__copy { font-size: 13px; color: var(--text-tertiary); width: 100%; text-align: center; margin-top: 8px; }

@media (min-width: 640px) {
  .footer__copy { width: auto; margin-top: 0; }
}
