/* =========================================================
   Vibe — landing styles
   Brand: blue #306EFE · azure #0293FB · violet #7A3FF0
          pink #FD6EF2 · white #FFFFFF · ink #171726
   Dark theme is the base. Gradient is an accent, not a fill.

   Motion rules used throughout:
   · interactive transitions 180–600ms, ease-out
   · ambient/background loops 8–24s
   · only transform / opacity / filter are animated
   · everything collapses under prefers-reduced-motion
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  --blue:   #306EFE;
  --azure:  #0293FB;
  --violet: #7A3FF0;
  --pink:   #FD6EF2;
  --white:  #FFFFFF;
  --ink:    #171726;

  --bg:        #171726;
  --bg-soft:   #1C1C30;
  --surface:   rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .055);
  --line:      rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);

  --text:   #FFFFFF;
  --muted:  #A9AAC4;   /* 7.9:1 on --bg */
  --muted-2:#8A8CA8;   /* 5.4:1 on --bg */

  --grad: linear-gradient(45deg, #306EFE 0%, #7A3FF0 50%, #FD6EF2 100%);

  --container: 1120px;
  --radius:   18px;
  --radius-sm: 12px;

  --shadow-card: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px -24px rgba(0,0,0,.9);
  --shadow-lift: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 60px -30px rgba(0,0,0,.95);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--bg-soft); color: var(--white);
  border: 1px solid var(--line-strong);
  padding: 10px 16px; border-radius: 10px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- layout & rhythm ----------
   The page breathes on purpose: a tall hero, a compact strip,
   open explainer sections, a dense feature grid, open pricing. */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: 820px; }

.section { padding: 116px 0; position: relative; }
.section--strip { padding: 58px 0 62px; }
.section--dense { padding: 100px 0; }
.section--wide  { padding: 132px 0; }

/* hairline separator, fading out at both ends */
.section--line::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(1120px, 88%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.13), transparent);
  pointer-events: none;
}

.section-head { max-width: 700px; margin: 0 auto 64px; text-align: center; }
.section-head--tight { margin-bottom: 34px; }
.section-title { font-size: clamp(28px, 4.2vw, 46px); font-weight: 700; letter-spacing: -.03em; }
.section-title--sm { font-size: clamp(24px, 3vw, 33px); }
.section-sub { margin-top: 18px; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); }

.kicker, .eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted-2); margin: 0 0 14px;
}
.eyebrow {
  display: inline-flex; align-items: center;
  padding: 7px 17px 7px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  letter-spacing: .1em;
  margin-bottom: 28px;
}
/* small "we're alive" dot, no extra markup so i18n can own the text node */
.eyebrow--live::before {
  content: ""; flex: 0 0 auto;
  width: 7px; height: 7px; margin-right: 10px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(253,110,242,.55);
  animation: pulse 2.6s ease-out infinite;
}

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- background effects ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-orb {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(120px); opacity: .28;
}
.bg-orb--1 {
  width: 720px; height: 720px; top: -280px; left: -180px;
  background: radial-gradient(circle at 50% 50%, #306EFE 0%, rgba(48,110,254,0) 70%);
}
.bg-orb--2 {
  width: 640px; height: 640px; top: -160px; right: -200px;
  background: radial-gradient(circle at 50% 50%, #7A3FF0 0%, rgba(122,63,240,0) 70%);
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 0%, transparent 75%);
}
/* barely-there film grain so the flat dark areas don't look like plastic */
.bg-noise {
  position: absolute; inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), backdrop-filter .25s var(--ease);
}
.site-header.is-stuck {
  background: rgba(23, 23, 38, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 72px;
}
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 40px; width: auto; transition: transform .3s var(--ease); }
.footer-brand img { height: 44px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 28px;
  margin-inline: auto;
  font-size: 14.5px; font-weight: 500;
}
.nav-links a {
  position: relative;
  color: var(--muted);
  transition: color .18s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: center;
  transition: transform .28s var(--ease);
}
.nav-links a:hover { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-links + .header-actions { margin-left: 0; }

.lang-switch {
  display: inline-flex; align-items: center; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
}
.lang-btn {
  /* an <a> since D99 (the switcher navigates), so kill the underline */
  border: 0; background: transparent; cursor: pointer; text-decoration: none;
  color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  /* the pair sits inside a 44px-tall control; each half stays finger-sized */
  min-height: 36px; min-width: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 11px; border-radius: 999px;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.lang-btn:hover { color: var(--white); }
.lang-btn.is-active { color: var(--white); background: rgba(255,255,255,.1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; white-space: nowrap;
  font-weight: 600; font-size: 15px; line-height: 1;
  min-height: 44px;            /* comfortable touch target everywhere */
  padding: 13px 22px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .28s var(--ease),
              background-color .2s var(--ease), background-position .45s var(--ease),
              border-color .2s var(--ease);
}
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; border-radius: 14px; }
.btn-block { display: flex; width: 100%; margin-top: auto; }

.btn-primary {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--white);
  /* brand gradient, framed on its blue→violet range: white text stays above
     4.5:1 across the whole button (the pure-blue end measures 4.45:1) */
  background-image: var(--grad);
  background-size: 240% 240%;
  background-position: 18% 82%;
  box-shadow: 0 10px 30px -12px rgba(48, 110, 254, .75);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .22);
}
/* light sweep on hover — decorative only, sits under the label */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 22%, rgba(255,255,255,.26) 50%, transparent 78%);
  transform: translateX(-130%);
  transition: transform .6s var(--ease);
  pointer-events: none;
}
.btn-primary:hover {
  /* slides toward violet/pink, stops before white text drops under 4.5:1 */
  background-position: 35% 65%;
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -14px rgba(122, 63, 240, .85);
}
.btn-primary:hover::after { transform: translateX(130%); }
.btn-ghost {
  color: var(--white);
  background: var(--surface-2);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.28);
  transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }

/* ---------- gradient text & accents ---------- */
.grad {
  background: var(--grad);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradShift 14s ease-in-out infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* gradient underline that draws itself in when the heading arrives */
.hl {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.hl::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -.02em;
  height: .1em; min-height: 3px; border-radius: 999px;
  background: var(--grad);
  background-size: 220% 100%;
  transform-origin: left center;
  animation: gradShift 11s ease-in-out infinite;
}
.js-reveal .reveal .hl::after {
  transform: scaleX(0);
  transition: transform .75s var(--ease) .25s;
}
.js-reveal .reveal.is-visible .hl::after { transform: scaleX(1); }

/* ---------- cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), border-color .3s var(--ease),
              background-color .3s var(--ease), box-shadow .3s var(--ease);
}
/* gradient hairline frame, faded in on hover */
.card::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}

/* keyboard users get the same frame, pointer or not */
.card:focus-within::after { opacity: .8; }

@media (hover: hover) {
  .card:hover::after { opacity: .8; }
  .step:hover, .feature:hover, .plan:hover, .flow-node:hover {
    transform: translateY(-5px);
    background: var(--surface-2);
    box-shadow: var(--shadow-lift);
  }
  .nav-links a:hover::after { transform: scaleX(1); }
  .brand:hover img { transform: scale(1.03); }
}
.nav-links a:focus-visible::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 92px 0 24px; text-align: center; }
.hero-inner { position: relative; z-index: 1; }
.hero-stage { position: relative; z-index: 1; }

.hero-aura {
  position: absolute; z-index: 0; pointer-events: none;
  left: 50%; top: 40px; transform: translateX(-50%);
  /* % of the hero, not vw: vw counts the scrollbar */
  width: min(1080px, 92%); height: 620px;
}
.hero-aura .aura {
  position: absolute; display: block;
  border-radius: 50%;
  filter: blur(74px);
  will-change: transform;
}
.aura--a {
  width: 58%; height: 62%; left: 4%; top: 18%;
  background: radial-gradient(closest-side, rgba(48,110,254,.46), rgba(48,110,254,0) 72%);
  animation: drift-a 17s ease-in-out infinite;
}
.aura--b {
  width: 60%; height: 66%; left: 26%; top: 2%;
  background: radial-gradient(closest-side, rgba(122,63,240,.44), rgba(122,63,240,0) 72%);
  animation: drift-b 21s ease-in-out infinite;
}
.aura--c {
  width: 52%; height: 56%; left: 48%; top: 30%;
  background: radial-gradient(closest-side, rgba(253,110,242,.32), rgba(253,110,242,0) 72%);
  animation: drift-c 24s ease-in-out infinite;
}
@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(5%, 4%, 0) scale(1.12); }
}
@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.06); }
  50%      { transform: translate3d(-6%, 5%, 0) scale(.94); }
}
@keyframes drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(.96); }
  50%      { transform: translate3d(-4%, -5%, 0) scale(1.1); }
}

.hero-title {
  font-size: clamp(40px, 7.6vw, 82px);
  font-weight: 700;
  letter-spacing: -.038em;
  line-height: 1.04;
  max-width: 15ch;
  margin-inline: auto;
}
.hero-sub {
  margin: 26px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(16px, 1.9vw, 19px);
}
.hero-cta {
  margin-top: 38px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.hero-note { margin-top: 20px; color: var(--muted-2); font-size: 14px; }

/* ---------- hero mock ---------- */
.mock {
  margin: 72px auto 0;
  max-width: 980px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.03) inset;
  overflow: hidden;
  text-align: left;
}
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.mock-url {
  margin-left: 12px; font-size: 12.5px; color: var(--muted);
  padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.05);
}
.mock-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  min-height: 316px;
}
.mock-chat {
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
  border-right: 1px solid var(--line);
}
.bubble {
  border-radius: 14px; padding: 13px 16px;
  font-size: 14px; line-height: 1.55;
}
.bubble--me {
  align-self: flex-end; max-width: 92%;
  min-height: 46px;
  color: var(--white);
  background: linear-gradient(45deg, rgba(48,110,254,.55), rgba(122,63,240,.5));
  border: 1px solid rgba(122,63,240,.45);
}
.bubble--ai {
  align-self: flex-start; max-width: 96%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: var(--muted);
  display: flex; flex-direction: column; gap: 6px;
}
.bubble-label {
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2);
}
.bubble .line { position: relative; padding-left: 18px; }
.bubble .line::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  transition: background-color .3s var(--ease);
}
.bubble .line--live { color: var(--white); }
.bubble .line--live::before {
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(253,110,242,.6);
  animation: pulse 1.8s ease-out infinite;
}
.bubble .line--done::before { background: rgba(160, 255, 205, .75); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(253,110,242,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(253,110,242,0); }
  100% { box-shadow: 0 0 0 0 rgba(253,110,242,0); }
}

/* typewriter: `.type` is filled by JS, `.type-src` is the no-JS fallback */
.caret {
  display: none;
  width: 2px; height: 1.05em;
  margin-left: 2px;
  vertical-align: -.16em;
  border-radius: 2px;
  background: var(--white);
}
.mock--anim .type-src { display: none; }
.mock--anim .caret { display: inline-block; opacity: 0; }
.mock--anim.is-typing .caret {
  opacity: 1;
  animation: blink 1s steps(1, end) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.mock-preview {
  position: relative;
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  background:
    radial-gradient(ellipse 70% 60% at 80% 10%, rgba(122,63,240,.16), transparent 70%);
}
.mock-tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2);
}
.ph { border-radius: 8px; background: rgba(255,255,255,.07); }
.ph--title { height: 16px; width: 58%; background: rgba(255,255,255,.14); }
.ph-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph--card { height: 46px; border: 1px solid transparent; }
.ph-chart {
  display: flex; align-items: flex-end; gap: 8px;
  height: 92px; margin-top: 4px;
}
.ph-chart i {
  flex: 1; height: 50%;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, rgba(122,63,240,.9), rgba(48,110,254,.35));
}
.ph-chart .b1 { height: 38%; }
.ph-chart .b2 { height: 64%; }
.ph-chart .b3 { height: 46%; }
.ph-chart .b4 { height: 82%; }
.ph-chart .b5 { height: 58%; }
.ph-chart .b6 { height: 92%; }
.ph-chart .b7 { height: 70%; }
.mock-publish {
  align-self: flex-start; margin-top: 4px;
  font-size: 12.5px; font-weight: 600; color: var(--white);
  padding: 8px 16px; border-radius: 999px;
  background-image: var(--grad);
  background-size: 240% 240%; background-position: 18% 82%;
}

/* ---- animated states of the mock (added by app.js) ---- */
.mock--anim .bubble--me,
.mock--anim .bubble--ai {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.mock--anim.is-p1 .bubble--me { opacity: 1; transform: none; }
.mock--anim.is-p2 .bubble--ai { opacity: 1; transform: none; }

.mock--anim .bubble .line {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .38s var(--ease), transform .38s var(--ease);
}
.mock--anim.is-p3 .line[data-step="1"],
.mock--anim.is-p4 .line[data-step="2"],
.mock--anim.is-p5 .line[data-step="3"] { opacity: 1; transform: none; }

/* skeleton shimmer, swept with transform only */
.mock--anim .ph { position: relative; overflow: hidden; }
.mock--anim .ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.7s linear infinite;
}
.mock--anim.is-p6 .ph::after { animation: none; opacity: 0; }
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.mock--anim .ph--title,
.mock--anim .ph--card { transition: background-color .5s var(--ease), background-image .5s var(--ease), border-color .5s var(--ease); }
.mock--anim.is-p6 .ph--title { background-image: var(--grad); }
.mock--anim.is-p6 .ph--card {
  background-color: rgba(122,63,240,.16);
  border-color: rgba(122,63,240,.34);
}

.mock--anim .ph-chart i {
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .55s var(--ease);
}
.mock--anim.is-p6 .ph-chart i { transform: scaleY(1); }
.mock--anim .ph-chart i:nth-child(1) { transition-delay: .04s; }
.mock--anim .ph-chart i:nth-child(2) { transition-delay: .10s; }
.mock--anim .ph-chart i:nth-child(3) { transition-delay: .16s; }
.mock--anim .ph-chart i:nth-child(4) { transition-delay: .22s; }
.mock--anim .ph-chart i:nth-child(5) { transition-delay: .28s; }
.mock--anim .ph-chart i:nth-child(6) { transition-delay: .34s; }
.mock--anim .ph-chart i:nth-child(7) { transition-delay: .40s; }

.mock--anim .mock-publish {
  opacity: 0; transform: translateY(8px) scale(.96);
  transition: opacity .4s var(--ease) .38s, transform .4s var(--ease) .38s, box-shadow .4s var(--ease);
}
.mock--anim.is-p6 .mock-publish {
  opacity: 1; transform: none;
  box-shadow: 0 10px 26px -12px rgba(122,63,240,.95);
}

/* ---------- "what you can build" strip ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.marquee-row {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
  will-change: transform;
}
.marquee-track { display: flex; gap: 14px; padding-right: 14px; }
@keyframes marquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-33.3333%, 0, 0); }
}
@media (hover: hover) {
  .marquee:hover .marquee-row { animation-play-state: paused; }
}

.chip {
  display: inline-flex; align-items: center;
  white-space: nowrap;
  padding: 11px 20px 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14.5px; font-weight: 500;
  transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.chip::before {
  content: ""; flex: 0 0 auto;
  width: 8px; height: 8px; margin-right: 10px;
  border-radius: 50%;
  background-image: var(--grad);
  background-size: 200% 200%;
  opacity: .9;
}
@media (hover: hover) {
  .chip:hover { color: var(--white); border-color: var(--line-strong); background: var(--surface-2); }
}
.strip-note {
  margin-top: 26px; text-align: center;
  color: var(--muted-2); font-size: 14.5px;
  max-width: 620px; margin-inline: auto;
}

/* ---------- steps ---------- */
.steps {
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.step { padding-top: 30px; }
.step-num {
  display: inline-block; margin-bottom: 16px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.step-title { font-size: 19px; margin-bottom: 10px; }
.step-text, .feature-text, .flow-text { color: var(--muted); font-size: 15px; }

/* ---------- inside / flow ---------- */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0 14px;
}
.flow-node { text-align: center; padding: 30px 24px; }
.flow-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin: 0 auto 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(140deg, rgba(48,110,254,.22), rgba(253,110,242,.16));
  color: var(--white);
}
.flow-icon svg { width: 23px; height: 23px; }
.flow-title { font-size: 17px; margin-bottom: 9px; }

.flow-link {
  position: relative;
  width: 74px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.22), rgba(255,255,255,.06));
}
.flow-pulse {
  position: absolute; top: -3px; left: 0;
  width: 22px; height: 8px;
  border-radius: 999px;
  background-image: var(--grad);
  filter: blur(1px);
  opacity: 0;
  animation-duration: 3.6s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.flow-pulse--fwd  { animation-name: pulse-x-fwd; }
.flow-pulse--back { animation-name: pulse-x-back; animation-delay: 1.8s; }
@keyframes pulse-x-fwd {
  0%        { transform: translateX(-22px); opacity: 0; }
  22%, 72%  { opacity: 1; }
  100%      { transform: translateX(70px); opacity: 0; }
}
@keyframes pulse-x-back {
  0%        { transform: translateX(70px); opacity: 0; }
  22%, 72%  { opacity: 1; }
  100%      { transform: translateX(-22px); opacity: 0; }
}
/* shorter connector on tablets */
@keyframes pulse-x-fwd-sm {
  0%        { transform: translateX(-20px); opacity: 0; }
  22%, 72%  { opacity: 1; }
  100%      { transform: translateX(44px); opacity: 0; }
}
@keyframes pulse-x-back-sm {
  0%        { transform: translateX(44px); opacity: 0; }
  22%, 72%  { opacity: 1; }
  100%      { transform: translateX(-20px); opacity: 0; }
}
/* vertical chain on phones */
@keyframes pulse-y-down {
  0%        { transform: translateY(-22px); opacity: 0; }
  22%, 72%  { opacity: 1; }
  100%      { transform: translateY(46px); opacity: 0; }
}
@keyframes pulse-y-up {
  0%        { transform: translateY(46px); opacity: 0; }
  22%, 72%  { opacity: 1; }
  100%      { transform: translateY(-22px); opacity: 0; }
}

/* ---------- features ---------- */
.feature { display: flex; flex-direction: column; }
.feat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(140deg, rgba(48,110,254,.22), rgba(253,110,242,.16));
  color: var(--white);
  transition: transform .3s var(--ease);
}
.feat-icon svg { width: 22px; height: 22px; }
.feature-title { font-size: 18px; margin-bottom: 10px; }
@media (hover: hover) {
  .feature:hover .feat-icon, .flow-node:hover .flow-icon { transform: translateY(-2px) scale(1.05); }
}

/* ---------- pricing ---------- */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px 28px; }
.plan-name { font-size: 15px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plan-price { margin: 14px 0 0; display: flex; align-items: baseline; gap: 6px; }
.plan-amount { font-size: 46px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
/* struck-through previous price — matches the discount the app shows */
.plan-amount-old { font-size: 23px; font-weight: 600; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: .7; }
.plan-period { color: var(--muted-2); font-size: 15px; }
.plan-desc { margin-top: 12px; color: var(--muted); font-size: 14.5px; min-height: 44px; }

/* soft comparison: same scale on all three cards */
.plan-credits {
  margin-top: 22px;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px;
  font-size: 13.5px; color: var(--muted-2);
}
.plan-num {
  font-size: 21px; font-weight: 700; letter-spacing: -.02em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.plan-meter {
  display: block; margin-top: 10px;
  height: 6px; border-radius: 999px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}
.plan-meter-fill {
  display: block; height: 100%;
  border-radius: 999px;
  background-image: var(--grad);
  transform-origin: left center;
}
/* square-root scale so the free plan stays visible next to 25 000 */
.plan-meter-fill--free { transform: scaleX(.141); }
.plan-meter-fill--pro  { transform: scaleX(.529); }
.plan-meter-fill--max  { transform: scaleX(1); }
.js-reveal .plan .plan-meter-fill {
  transform: scaleX(0);
  transition: transform 1.1s var(--ease) .2s;
}
.js-reveal .plan.is-visible .plan-meter-fill--free { transform: scaleX(.141); }
.js-reveal .plan.is-visible .plan-meter-fill--pro  { transform: scaleX(.529); }
.js-reveal .plan.is-visible .plan-meter-fill--max  { transform: scaleX(1); }

.plan-list { margin: 22px 0 28px; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; color: var(--muted); }
.plan-list li { position: relative; padding-left: 27px; }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: .32em;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(122, 63, 240, .28);
  border: 1px solid rgba(178, 140, 255, .5);
}
.plan-list li::after {
  content: ""; position: absolute; left: 5px; top: .62em;
  width: 6px; height: 3px;
  border-left: 1.6px solid #E9DEFF; border-bottom: 1.6px solid #E9DEFF;
  transform: rotate(-45deg);
}

.plan--featured {
  background: linear-gradient(180deg, rgba(122,63,240,.14), rgba(48,110,254,.06));
  border-color: rgba(122,63,240,.45);
  box-shadow: 0 0 0 1px rgba(122,63,240,.15), 0 30px 70px -40px rgba(122,63,240,.9);
}
.plan--featured::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .55; pointer-events: none;
}
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--white);
  padding: 6px 15px; border-radius: 999px;
  background-image: var(--grad);
  background-size: 240% 240%; background-position: 18% 82%;
  box-shadow: 0 8px 22px -10px rgba(122,63,240,.9);
}
.plans-compare {
  margin: 34px auto 0; max-width: 640px; text-align: center;
  color: var(--muted); font-size: 15px;
}
.plans-note { margin-top: 14px; text-align: center; color: var(--muted-2); font-size: 14px; }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px;
  font-size: 16.5px; font-weight: 600;
  transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
/* the card clips its overflow, so draw the focus ring inside the summary */
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.faq-item summary::after {
  content: ""; flex: 0 0 auto;
  width: 11px; height: 11px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.faq-item[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
  border-color: var(--pink);
}
.faq-item p { padding: 0 24px 22px; color: var(--muted); font-size: 15px; max-width: 68ch; }
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] { background: var(--surface-2); }

/* ---------- final cta ---------- */
.cta-section { padding: 40px 0 132px; }
.cta-box {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 84px 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
}
.cta-aura {
  position: absolute; z-index: 0; pointer-events: none;
  left: 50%; bottom: -55%; transform: translateX(-50%);
  width: 900px; height: 620px;
  background:
    radial-gradient(closest-side, rgba(48,110,254,.5), transparent 70%) 20% 60% / 60% 80% no-repeat,
    radial-gradient(closest-side, rgba(122,63,240,.5), transparent 70%) 50% 40% / 60% 80% no-repeat,
    radial-gradient(closest-side, rgba(253,110,242,.4), transparent 70%) 80% 65% / 55% 75% no-repeat;
  filter: blur(76px);
  animation: breathe 15s ease-in-out infinite;
  will-change: transform;
}
@keyframes breathe {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: .85; }
  50%      { transform: translateX(-50%) scale(1.08); opacity: 1; }
}
.cta-box > *:not(.cta-aura) { position: relative; z-index: 1; }
.cta-title { font-size: clamp(30px, 4.6vw, 50px); font-weight: 700; max-width: 17ch; margin-inline: auto; letter-spacing: -.03em; }
.cta-sub { margin: 20px auto 34px; max-width: 500px; color: var(--muted); font-size: 17px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  background: linear-gradient(180deg, rgba(255,255,255,.015), transparent);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px 32px;
}
.footer-tagline { margin-top: 16px; color: var(--muted-2); font-size: 14.5px; max-width: 30ch; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; font-weight: 600; }
.footer-col a { color: var(--muted); font-size: 14.5px; transition: color .18s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between; align-items: center;
  margin-top: 52px; padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted-2); font-size: 13.5px;
}
.footer-lang { display: flex; gap: 10px; align-items: center; }
.footer-lang a { color: var(--muted-2); transition: color .18s var(--ease); }
.footer-lang a:hover { color: var(--white); }
.footer-lang a.is-active { color: var(--white); font-weight: 600; }

/* ---------- legal pages ---------- */
.legal { padding: 56px 0 96px; }
.legal-head { margin-bottom: 40px; }
.legal-title { font-size: clamp(30px, 5vw, 46px); font-weight: 700; }
.legal-updated { margin-top: 12px; color: var(--muted-2); font-size: 14px; }

/* honest one-liner under the title: the service is still moving */
.legal-note {
  max-width: 760px;
  margin-top: 22px; padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 2px solid rgba(122, 63, 240, .75);
  background: rgba(255, 255, 255, .03);
  color: var(--muted); font-size: 14.5px;
}

.legal-body { max-width: 760px; }
.legal-body section { margin-bottom: 34px; }
.legal-body h2 {
  font-size: 20px; font-weight: 600; margin-bottom: 12px;
  scroll-margin-top: 100px;
}
.legal-body p { color: var(--muted); font-size: 15.5px; }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 15.5px; }
.legal-body li { position: relative; padding-left: 20px; }
.legal-body li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: rgba(178,140,255,.75);
}
.legal-body strong { color: var(--white); font-weight: 600; }
.legal-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  color: #FFD9F9;
  background: rgba(253,110,242,.1);
  border: 1px solid rgba(253,110,242,.25);
  border-radius: 6px;
  padding: 1px 6px;
}
.legal-body a { color: #A9C4FF; text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--white); }

.legal-back {
  max-width: 760px;
  margin-top: 44px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.legal-back a { color: var(--muted); font-size: 14.5px; transition: color .18s var(--ease); }
.legal-back a:hover { color: var(--white); }

/* ---------- reveal on scroll ----------
   Elements are hidden only after app.js confirms it can reveal them,
   so the page stays fully readable without JS. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav-links { gap: 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .flow-link { width: 46px; }
  .flow-pulse--fwd  { animation-name: pulse-x-fwd-sm; }
  .flow-pulse--back { animation-name: pulse-x-back-sm; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  /* must out-specify `.nav-links + .header-actions` above — the hidden nav is
     still a sibling, so the plain `.header-actions` rule would lose */
  .nav-links + .header-actions { margin-left: auto; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan--featured { order: -1; }
  .plan-desc { min-height: 0; }

  /* the flow becomes a vertical chain */
  .flow { grid-template-columns: 1fr; gap: 14px 0; justify-items: center; }
  .flow-node { width: 100%; max-width: 460px; }
  .flow-link {
    width: 2px; height: 46px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.22), rgba(255,255,255,.06));
  }
  .flow-pulse {
    top: 0; left: -3px;
    width: 8px; height: 22px;
  }
  .flow-pulse--fwd  { animation-name: pulse-y-down; }
  .flow-pulse--back { animation-name: pulse-y-up; }
}

@media (max-width: 780px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-chat { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* fingers, not cursors: grow the link hit areas without changing the rhythm */
@media (pointer: coarse), (max-width: 680px) {
  .footer-col { gap: 0; }
  .footer-col a { padding-block: 9px; }
  .footer-lang a { padding-block: 10px; }
  .legal-back a { display: inline-block; padding-block: 10px; }
}

@media (max-width: 680px) {
  .section { padding: 80px 0; }
  .section--dense { padding: 72px 0; }
  .section--wide { padding: 88px 0; }
  .section--strip { padding: 44px 0 48px; }
  .section-head { margin-bottom: 44px; }
  .hero { padding-top: 56px; }
  .hero-title { max-width: 18ch; }
  .mock { margin-top: 48px; }
  .container { padding-inline: 18px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cta-section { padding: 24px 0 88px; }
  .cta-box { padding: 56px 22px; border-radius: 22px; }
  .hero-cta .btn { width: 100%; }
  .btn-lg { padding: 15px 24px; }
  /* fewer, calmer moving layers on small screens */
  .aura--c { display: none; }
  .marquee-row { animation-duration: 34s; }
  .js-reveal .reveal { transform: translateY(14px); }
}

@media (max-width: 420px) {
  .brand img { height: 34px; }
  .header-inner { gap: 10px; min-height: 64px; }
  .btn-sm { padding: 9px 13px; font-size: 13.5px; }
  .lang-btn { padding: 5px 9px; font-size: 12px; }
  .footer-inner { grid-template-columns: 1fr; }
  .faq-item summary { padding: 17px 18px; font-size: 15.5px; }
  .faq-item p { padding: 0 18px 18px; }
  .card { padding: 22px; }
  .plan-amount { font-size: 38px; }
  .chip { padding: 9px 16px 9px 13px; font-size: 13.5px; }
  .mock-chat, .mock-preview { padding: 18px; }
  .mock-body { min-height: 0; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js-reveal .reveal, .reveal { opacity: 1 !important; transform: none !important; }
  .hero-aura .aura, .cta-aura, .eyebrow--live::before, .flow-pulse, .grad, .hl::after { animation: none !important; }
  .flow-pulse { opacity: 0; }
  .hl::after { transform: scaleX(1) !important; }
  .js-reveal .plan .plan-meter-fill { transition: none; }

  /* the marquee becomes a plain wrapped list */
  .marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .marquee-row { animation: none; width: auto; transform: none; flex-wrap: wrap; justify-content: center; }
  .marquee-track { flex-wrap: wrap; justify-content: center; gap: 10px; padding-right: 0; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* ---------- print ---------- */
@media print {
  .bg-fx, .site-header, .marquee { display: none; }
  body { background: #fff; color: #000; }
}
