/* ─── Reset ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}
ul {
  list-style: none;
}

/* ─── Theme tokens ─── */
:root {
  --bg: #07010f;
  --bg-soft: #100722;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f1edff;
  --text-dim: #a89fc7;
  --text-mute: #6f6890;

  --accent: #c084fc;
  --accent-2: #f0abfc;
  --accent-3: #818cf8;

  --grad-1: linear-gradient(135deg, #c084fc 0%, #f472b6 50%, #818cf8 100%);
  --grad-2: linear-gradient(135deg, #a855f7, #ec4899);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-lg: 0 20px 60px -20px rgba(192, 132, 252, 0.35);
  --shadow-glow: 0 0 60px rgba(192, 132, 252, 0.4);

  --container: 1180px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Scroll progress ─── */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 100;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.04);
}
.scroll-progress__bar {
  height: 100%;
  width: 0;
  background: var(--grad-1);
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.6);
  transition: width 0.05s linear;
}

/* ─── Background visuals ─── */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse at 20% 0%, #2a0a4a 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, #4a0a3e 0%, transparent 55%),
    radial-gradient(ellipse at 50% 80%, #1a0a3e 0%, transparent 60%),
    var(--bg);
  pointer-events: none;
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
}
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  animation: float 22s ease-in-out infinite;
}
.bg-orb--1 {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, #a855f7 0%, transparent 65%);
}
.bg-orb--2 {
  width: 420px;
  height: 420px;
  top: 40%;
  right: -120px;
  background: radial-gradient(circle, #ec4899 0%, transparent 65%);
  animation-delay: -8s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -40px); }
}

/* ─── Mouse spotlight ─── */
.spotlight {
  position: fixed;
  width: 500px;
  height: 500px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.18) 0%, transparent 60%);
  filter: blur(40px);
  transition: opacity 0.3s ease;
  opacity: 0;
  will-change: transform;
}
@media (pointer: fine) {
  body:hover .spotlight {
    opacity: 1;
  }
}

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(7, 1, 15, 0.65);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}
.nav__links {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}
.nav__links a {
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--grad-1);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav__links a:hover {
  color: var(--text);
}
.nav__links a:hover::after {
  transform: scaleX(1);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── Logo ─── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-1);
  position: relative;
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.6);
  animation: lunaShimmer 5s ease-in-out infinite;
}
.logo__icon::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  top: 6px;
  left: 6px;
  filter: blur(0.5px);
}
@keyframes lunaShimmer {
  0%, 100% { box-shadow: 0 0 20px rgba(192, 132, 252, 0.6); }
  50% { box-shadow: 0 0 32px rgba(244, 114, 182, 0.7); }
}
.logo__dot {
  color: var(--accent-2);
}

/* ─── Language switcher ─── */
.lang {
  position: relative;
}
.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lang__toggle:hover {
  background: var(--surface-strong);
}
.lang__caret {
  transition: transform 0.2s ease;
}
.lang.is-open .lang__caret {
  transform: rotate(180deg);
}
.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  padding: 6px;
  background: rgba(15, 8, 35, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.lang.is-open .lang__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang__menu li {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang__menu li:hover {
  background: var(--surface-strong);
  color: var(--text);
}

/* ─── Burger ─── */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  position: relative;
}
.burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 25px; }
.burger.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ─── Drawer (mobile) ─── */
.drawer {
  position: fixed;
  inset: 60px 0 0 0;
  z-index: 40;
  background: rgba(7, 1, 15, 0.97);
  backdrop-filter: blur(20px);
  padding: 32px 24px calc(40px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.drawer a:not(.btn) {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.drawer .btn {
  margin-top: 24px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  will-change: transform;
}
.btn--sm {
  padding: 10px 18px;
  font-size: 13px;
}
.btn--lg {
  padding: 16px 30px;
  font-size: 15px;
}
.btn--primary {
  background: var(--grad-1);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--grad-1);
  filter: blur(14px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}
.btn--primary:hover::before {
  opacity: 0.55;
}
.btn--primary:hover {
  box-shadow: 0 25px 70px -20px rgba(192, 132, 252, 0.55);
}
.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  background: var(--surface-strong);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ─── Hero ─── */
.hero {
  padding: 100px 0 60px;
  position: relative;
}
.hero__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  animation: heroFadeUp 0.9s ease 0.05s backwards;
}
.hero__subtitle {
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.6;
  animation: heroFadeUp 0.9s ease 0.18s backwards;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 64px;
  animation: heroFadeUp 0.9s ease 0.28s backwards;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.grad {
  background: var(--grad-1);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: gradShift 6s ease infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  animation: heroFadeUp 0.9s ease 0.4s backwards;
}
.stat__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 36px;
  font-weight: 700;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: 13px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── Marquee ─── */
.marquee {
  margin-top: 60px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dim);
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── Sections ─── */
.section {
  padding: 100px 0;
  position: relative;
}
.section--alt {
  background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.04), transparent);
}
.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
}
.section__lead {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.65;
}

/* ─── Feature cards ─── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, background 0.3s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(192, 132, 252, 0.18), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
}
.card:hover::before {
  opacity: 1;
}
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--grad-1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px -8px rgba(192, 132, 252, 0.5);
  transition: transform 0.3s ease;
}
.card:hover .card__icon {
  transform: scale(1.06) rotate(-3deg);
}
.card__icon svg {
  width: 22px;
  height: 22px;
}
.card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}
.card p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* ─── Tilt ─── */
.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ─── Steps ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 70px;
}
.step {
  padding: 36px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(192, 132, 252, 0.4), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.step:hover::before {
  opacity: 1;
}
.step__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.step h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}
.step p {
  color: var(--text-dim);
  font-size: 15px;
}
.step code {
  background: rgba(192, 132, 252, 0.15);
  color: var(--accent-2);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.92em;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  white-space: nowrap;
}

.cta-box {
  text-align: center;
  padding: 56px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(236, 72, 153, 0.12));
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
}
.cta-box h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}
.cta-box p {
  color: var(--text-dim);
  margin-bottom: 28px;
}

/* ─── Tokens cost block ─── */
.tokens-cost {
  margin: 0 auto 56px;
  max-width: 920px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.tokens-cost__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-align: center;
  margin-bottom: 22px;
}
.tokens-cost__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.tcost {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.tcost:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.tcost__icon {
  font-size: 28px;
  line-height: 1;
}
.tcost__name {
  font-size: 13px;
  color: var(--text-dim);
}
.tcost__price {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tcost__price span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 4px;
  -webkit-text-fill-color: var(--text-mute);
}

/* ─── Pricing (tokens) ─── */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.plan {
  position: relative;
  padding: 34px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.plan:hover {
  border-color: var(--border-strong);
}
.plan--featured {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(236, 72, 153, 0.12));
  border-color: rgba(192, 132, 252, 0.4);
  box-shadow: 0 30px 80px -30px rgba(192, 132, 252, 0.5);
  transform: translateY(-8px);
}
.plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: var(--grad-1);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.plan__name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.plan__amount {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.plan__amount span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mute);
  margin-left: 4px;
  text-transform: lowercase;
}
.plan__price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.plan__per {
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  letter-spacing: 0.02em;
}
.plan__save {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border-radius: 6px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.plan__features {
  margin-bottom: 24px;
  flex-grow: 1;
}
.plan__features li {
  padding: 9px 0;
  color: var(--text-dim);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 26px;
  line-height: 1.5;
}
.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(192, 132, 252, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c084fc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}
.plan__features li:last-child {
  border-bottom: 0;
}
.pricing__note {
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
  margin-top: 20px;
}

/* ─── FAQ ─── */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq__item:hover {
  border-color: var(--border-strong);
}
.faq__item[open] {
  background: var(--surface-strong);
  border-color: rgba(192, 132, 252, 0.35);
}
.faq__item summary {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.25s ease;
  font-weight: 400;
  line-height: 1;
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}
.faq__item p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}
.faq__item a {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-color: rgba(240, 171, 252, 0.4);
}

/* ─── Final CTA ─── */
.section--final {
  padding-bottom: 120px;
}
.final {
  text-align: center;
  padding: 80px 32px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse at center, rgba(168, 85, 247, 0.18) 0%, transparent 70%),
    var(--surface);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.final::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(192, 132, 252, 0.12), transparent 30%);
  animation: rotateBg 14s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.final > * {
  position: relative;
  z-index: 1;
}
@keyframes rotateBg {
  to { transform: rotate(360deg); }
}
.final h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.final p {
  color: var(--text-dim);
  font-size: 17px;
  margin-bottom: 32px;
}

/* ─── Contacts / Legal info section ─── */
.section--contacts {
  padding-top: 40px;
  padding-bottom: 100px;
}
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.contacts__col {
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease;
}
.contacts__col:hover {
  border-color: var(--border-strong);
}
.contacts__col h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
}
.contacts dl {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contacts dt {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.contacts dd {
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
}
.contacts dd a {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-color: rgba(240, 171, 252, 0.35);
  text-underline-offset: 2px;
}
.contacts dd a:hover {
  text-decoration-color: var(--accent-2);
}

/* ─── Footer ─── */
.footer {
  padding: 70px 0 32px;
  border-top: 1px solid var(--border);
  background: rgba(7, 1, 15, 0.5);
}
.footer__legal {
  padding: 14px 24px;
  margin: 0 auto 14px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-mute);
  text-align: center;
  letter-spacing: 0.01em;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer__col a {
  color: var(--text-dim);
  font-size: 14px;
}
.footer__col a:hover {
  color: var(--text);
}
.footer__desc {
  color: var(--text-dim);
  font-size: 14px;
  max-width: 280px;
  line-height: 1.6;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── Sticky mobile CTA ─── */
.mobile-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + var(--safe-bottom));
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 20px;
  border-radius: 999px;
  background: var(--grad-1);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 18px 50px -10px rgba(192, 132, 252, 0.55), 0 4px 18px rgba(0, 0, 0, 0.5);
  z-index: 30;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.mobile-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ─── Legal pages ─── */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.legal h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal__date {
  color: var(--text-mute);
  font-size: 14px;
  margin-bottom: 36px;
}
.legal h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 36px 0 14px;
  color: var(--text);
}
.legal h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text);
}
.legal p,
.legal li {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal ul,
.legal ol {
  padding-left: 22px;
  margin-bottom: 16px;
  list-style: disc;
}
.legal ol { list-style: decimal; }
.legal a {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-color: rgba(240, 171, 252, 0.4);
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.legal__back:hover {
  color: var(--accent-2);
}
.legal__contact {
  margin-top: 44px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-strong);
}

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .nav__links { display: none; }
}
@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .nav__inner { padding: 12px 18px; }
  .nav__actions .btn--sm { display: none; }
  .burger { display: block; }
  .hero { padding: 60px 0 50px; }
  .hero__title { font-size: clamp(34px, 11vw, 56px); }
  .hero__subtitle { font-size: 15.5px; }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__stats { gap: 32px; padding-top: 32px; }
  .stat__num { font-size: 28px; }
  .section { padding: 70px 0; }
  .section__header { margin-bottom: 40px; }
  .section__title { font-size: clamp(26px, 7vw, 38px); }
  .section__lead { font-size: 15.5px; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 26px 22px; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step { padding: 28px 24px; }
  .pricing { grid-template-columns: 1fr; gap: 14px; }
  .plan--featured { transform: none; }
  .plan { padding: 30px 24px; }
  .tokens-cost { padding: 22px 18px; }
  .tokens-cost__grid { grid-template-columns: 1fr 1fr; }
  .marquee { margin-top: 40px; }
  .marquee__track { font-size: 18px; gap: 36px; }
  .marquee__track span { gap: 36px; }
  .cta-box { padding: 44px 22px; }
  .cta-box h3 { font-size: 24px; }
  .final { padding: 60px 22px; }
  .footer { padding: 50px 0 28px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 36px; }
  .footer__bottom { font-size: 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .mobile-cta { display: inline-flex; }
  body { padding-bottom: 80px; }
  .legal { padding: 40px 18px 80px; }
  .legal h2 { font-size: 20px; margin: 28px 0 10px; }
}
@media (max-width: 460px) {
  .nav__inner { gap: 10px; }
  .lang__toggle { padding: 7px 10px; font-size: 12px; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .tokens-cost__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
  .stat__num { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
