/* ============================================================
   Nebula landing: sky-blue on dark (matches app brand)
   Brand primary: #0ea5e9  ·  dark bg: #0a0e17 / #121212
   ============================================================ */
:root {
  --bg:        #0a0e17;
  --bg-alt:    #0f1623;
  --surface:   #131c2b;
  --surface-2: #1a2436;
  --border:    #243149;
  --text:      #e8edf5;
  --text-dim:  #9fb0c8;
  --primary:   #0ea5e9;
  --primary-2: #38bdf8;
  --primary-d: #0c4a6e;
  --accent:    #818cf8;
  --max:       1120px;
  --radius:    16px;
  --shadow:    0 20px 60px -20px rgba(2, 8, 23, 0.8);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
strong { color: #fff; font-weight: 700; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn--sm  { padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.btn--lg  { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #04121d; box-shadow: 0 10px 30px -8px rgba(14, 165, 233, .6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(14, 165, 233, .7); }
.btn--ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 23, .72); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand__name { letter-spacing: -.02em; }
.nav__links { display: flex; gap: 28px; font-size: 15px; color: var(--text-dim); }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 14px; }

/* ---------- Language switcher ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255,255,255,.03);
}
.lang-switch__btn {
  font-family: inherit; font-weight: 700; font-size: 12.5px; letter-spacing: .03em;
  color: var(--text-dim); background: transparent; border: 0; cursor: pointer;
  padding: 6px 9px; border-radius: 999px; line-height: 1;
  transition: color .15s ease, background .15s ease;
}
.lang-switch__btn:hover { color: var(--text); }
.lang-switch__btn.is-active {
  color: #04121d;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 4px 14px -4px rgba(14,165,233,.6);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 380px at 50% -8%, rgba(14,165,233,.22), transparent 70%),
    radial-gradient(600px 400px at 85% 10%, rgba(129,140,248,.14), transparent 70%);
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 700;
  color: var(--primary-2); background: rgba(14,165,233,.1); border: 1px solid rgba(14,165,233,.25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero__title { font-size: clamp(34px, 6vw, 60px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
.grad { background: linear-gradient(120deg, var(--primary-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { max-width: 640px; margin: 24px auto 0; font-size: clamp(16px, 2.2vw, 19px); color: var(--text-dim); }
.hero__cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.hero__note { margin-top: 18px; font-size: 13.5px; color: var(--text-dim); }

/* ---------- Get the app ---------- */
.apps { text-align: center; }
.apps__cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
.apps__note { margin-top: 18px; font-size: 13.5px; color: var(--text-dim); }

/* ---------- Hero media / loop diagram ---------- */
.hero__media { width: 100%; max-width: 880px; margin: 52px auto 0; }
.media-frame { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.media-frame__bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.media-frame__bar span { width: 11px; height: 11px; border-radius: 50%; background: #2c3950; }
.media-frame__bar span:first-child { background: #ef5f5f; }
.media-frame__bar span:nth-child(2) { background: #f4be4f; }
.media-frame__bar span:nth-child(3) { background: #43c463; }
.media-frame__body { padding: 38px 28px 30px; }
.loop { display: flex; align-items: stretch; justify-content: center; gap: 14px; flex-wrap: wrap; }
.loop__step { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; min-width: 200px; }
.loop__step b { display: block; font-size: 15px; }
.loop__step small { color: var(--text-dim); font-size: 13px; }
.loop__num { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #04121d; font-weight: 800; font-size: 14px; }
.loop__arrow { display: grid; place-items: center; color: var(--primary-2); font-size: 22px; font-weight: 700; }
.media-frame__caption { margin-top: 26px; color: var(--text-dim); font-size: 13.5px; }

/* ---------- Intro reel (30s animated explainer) ---------- */
.intro { padding: 6px 6px 4px; }
.intro__stage { position: relative; height: 230px; }
.intro__scene {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 0 20px;
  opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity .55s ease, transform .55s ease; pointer-events: none;
}
.intro__scene.is-active { opacity: 1; transform: none; }
.intro__icon { font-size: 46px; line-height: 1; }
.intro__icon--logo img { filter: drop-shadow(0 8px 24px rgba(14,165,233,.55)); animation: introFloat 3s ease-in-out infinite; }
.intro__step {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px;
  background: rgba(14,165,233,.14); color: var(--primary-2); font-weight: 800; font-size: 13px;
}
.intro__title { font-size: clamp(20px, 3.6vw, 26px); font-weight: 800; letter-spacing: -.02em; }
.intro__sub { color: var(--text-dim); font-size: 15px; max-width: 460px; }
.intro__chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 4px; }
.intro__chips span {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600;
  animation: introPop .5s ease both;
}
.intro__chips span:nth-child(2) { animation-delay: .12s; }
.intro__chips span:nth-child(3) { animation-delay: .24s; }
.intro__chips span:nth-child(4) { animation-delay: .36s; }
.intro__dots { display: flex; gap: 7px; justify-content: center; margin-top: 14px; }
.intro__dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--border); transition: background .3s ease, width .3s ease; }
.intro__dots span.is-active { width: 22px; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.intro__bar { margin-top: 14px; height: 3px; background: var(--border); border-radius: 999px; overflow: hidden; }
.intro__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-radius: 999px; }
.intro__bar i.run { width: 100%; transition: width 5s linear; }
@keyframes introFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes introPop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .intro__scene { transition: none; }
  .intro__icon--logo img, .intro__chips span { animation: none; }
  .intro__bar { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__title { text-align: center; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.02em; font-weight: 800; }
.section__lead { text-align: center; max-width: 620px; margin: 16px auto 0; color: var(--text-dim); font-size: 17px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; }
.step__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(14,165,233,.12); color: var(--primary-2); font-weight: 800; font-size: 18px; margin-bottom: 18px; }
.step h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -.01em; }
.step p { color: var(--text-dim); font-size: 15px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: transform .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(14,165,233,.5); }
.card__icon { font-size: 28px; margin-bottom: 14px; }
.card h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { color: var(--text-dim); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; margin-top: 52px; align-items: center; }
.price-card { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid rgba(14,165,233,.4); border-radius: 20px; padding: 36px 32px; box-shadow: var(--shadow); position: relative; }
.price-card__badge { display: inline-block; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; color: var(--primary-2); background: rgba(14,165,233,.12); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.price-card__amount { font-size: clamp(38px, 9vw, 58px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; word-break: break-word; }
.price-card__currency { font-size: 30px; vertical-align: top; margin-right: 2px; }
.price-card__period { font-size: 20px; color: var(--text-dim); font-weight: 600; }
.price-card__strike { color: var(--text-dim); text-decoration: line-through; margin-top: 8px; font-size: 15px; }
.price-card__trial { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--primary-2); background: rgba(14,165,233,.1); border: 1px solid rgba(14,165,233,.28); padding: 8px 14px; border-radius: 999px; }
.price-card__list { list-style: none; margin: 24px 0; display: grid; gap: 12px; }
.price-card__list li { position: relative; padding-left: 28px; font-size: 15px; color: var(--text); }
.price-card__list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary-2); font-weight: 800; }
.price-card__fine { text-align: center; margin-top: 14px; font-size: 13px; color: var(--text-dim); }
.pricing__aside { padding: 8px 12px; }
.pricing__aside h3 { font-size: 22px; margin-bottom: 10px; }
.pricing__aside p { color: var(--text-dim); margin-bottom: 22px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 44px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.faq summary::after { content: "+"; color: var(--primary-2); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "-"; }
.faq details p { color: var(--text-dim); padding: 0 0 18px; font-size: 15px; }

/* ---------- Final CTA ---------- */
.cta-final { text-align: center; padding: 90px 0; background: radial-gradient(700px 300px at 50% 50%, rgba(14,165,233,.16), transparent 70%); }
.cta-final h2 { font-size: clamp(26px, 4vw, 40px); letter-spacing: -.02em; font-weight: 800; }
.cta-final p { color: var(--text-dim); margin: 14px 0 30px; font-size: 18px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 36px 0; background: var(--bg-alt); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__copy { color: var(--text-dim); font-size: 14px; }
.footer__links { display: flex; gap: 22px; font-size: 14px; color: var(--text-dim); }
.footer__links a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .steps, .cards { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .loop__arrow { transform: rotate(90deg); }
}

/* Keep the language switcher visible & tidy on small screens */
@media (max-width: 560px) {
  .nav__actions { gap: 8px; }
  .lang-switch__btn { padding: 6px 7px; font-size: 12px; }
  /* Hide the long nav CTA on very small screens; hero/pricing CTAs remain */
  .nav__actions > .btn { display: none; }
}
