/* =================================================================
   QuantDinger — Landing Page Styles
   Dark, premium, responsive. Inter + JetBrains Mono.
   ================================================================= */

/* ----------- Reset & base ----------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; transition: color .18s ease, opacity .18s ease; }
a:hover { color: var(--text); }

button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* ----------- Tokens ----------- */
:root {
  --bg:           #070814;
  --bg-2:         #0b0d1f;
  --surface:      rgba(255,255,255,0.04);
  --surface-2:    rgba(255,255,255,0.06);
  --border:       rgba(255,255,255,0.08);
  --border-2:     rgba(255,255,255,0.14);

  --text:         #eef0ff;
  --muted:        #9aa1c2;
  --muted-2:      #6b7399;

  --brand:        #7c5cff;
  --brand-2:      #22d3ee;
  --brand-grad:   linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --brand-grad-2: linear-gradient(135deg, #a88bff 0%, #22d3ee 100%);

  --up:   #22c55e;
  --down: #ef4444;
  --warn: #f59e0b;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-1: 0 10px 30px -10px rgba(0,0,0,.55);
  --shadow-2: 0 20px 60px -20px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.04);
  --shadow-glow: 0 0 60px -10px rgba(124,92,255,.55);

  --max: 1200px;
}

/* ----------- Layout primitives ----------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--brand-2);
  background: rgba(34,211,238,.06);
  margin-bottom: 20px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section--tight { padding: 72px 0; }

.section__head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.section__title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 16px;
}

.section__lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

.grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----------- Aurora background ----------- */
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  will-change: transform;
}

.aurora__blob--1 {
  top: -200px;
  left: -150px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #7c5cff 0%, transparent 60%);
  animation: float 22s ease-in-out infinite;
}

.aurora__blob--2 {
  top: 20%;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #22d3ee 0%, transparent 60%);
  animation: float 26s ease-in-out infinite reverse;
  opacity: 0.3;
}

.aurora__blob--3 {
  top: 60%;
  left: 30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ff6ec4 0%, transparent 60%);
  animation: float 30s ease-in-out infinite;
  opacity: 0.18;
}

.aurora__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: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -60px) scale(1.08); }
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ----------- Nav ----------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7,8,20,0.55);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}

.nav.scrolled {
  background: rgba(7,8,20,0.82);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand__mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px -6px rgba(124,92,255,.55), inset 0 0 0 1px rgba(255,255,255,0.04);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand__name { font-size: 17px; letter-spacing: -0.01em; }

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--muted);
}

.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: color .18s ease;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--brand-grad);
  border-radius: 2px;
  transition: width .25s ease, left .25s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { left: 0; width: 100%; }

.nav__cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ----------- Buttons ----------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--lg {
  padding: 14px 24px;
  font-size: 15px;
  border-radius: 12px;
}

.btn--full { width: 100%; justify-content: center; }

.btn--primary {
  color: #0a0b14;
  background: var(--brand-grad);
  box-shadow: 0 10px 28px -10px rgba(124,92,255,0.6), inset 0 0 0 1px rgba(255,255,255,0.15);
}
.btn--primary:hover {
  box-shadow: 0 16px 40px -10px rgba(124,92,255,0.75), inset 0 0 0 1px rgba(255,255,255,0.25);
  color: #0a0b14;
}

.btn--ghost {
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border-color: var(--border-2);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.22);
  color: var(--text);
}

/* ----------- Get-App button in nav ----------- */
.btn--app {
  position: relative;
  color: #0a0b14;
  background: linear-gradient(135deg, #22d3ee 0%, #22c55e 100%);
  box-shadow: 0 10px 26px -12px rgba(34, 211, 238, 0.7), inset 0 0 0 1px rgba(255,255,255,0.18);
  padding-right: 38px;
}
.btn--app:hover {
  color: #0a0b14;
  box-shadow: 0 14px 34px -12px rgba(34, 211, 238, 0.85), inset 0 0 0 1px rgba(255,255,255,0.3);
}
.nav__app-badge {
  position: absolute;
  top: -7px;
  right: -6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  box-shadow: 0 0 0 2px #0a0b14, 0 4px 10px -2px rgba(239, 68, 68, 0.6);
  line-height: 1;
  animation: appNewPulse 2s ease-in-out infinite;
}
@keyframes appNewPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}

/* ----------- Hero mobile promo strip ----------- */
.hero__mobile {
  max-width: 880px;
  margin: -40px auto 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px 14px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(135deg, rgba(124,92,255,0.10) 0%, rgba(34,211,238,0.10) 100%),
    rgba(10, 11, 20, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 20px 48px -24px rgba(124,92,255,0.35);
  position: relative;
}
.hero__mobile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(124,92,255,0.6), rgba(34,211,238,0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}
.hero__mobile-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}
.hero__mobile-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #22d3ee;
  background: rgba(34,211,238,0.12);
  border: 1px solid rgba(34,211,238,0.28);
}
.hero__mobile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  min-width: 0;
}
.hero__mobile-text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.hero__mobile-text span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.hero__mobile-ctas {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.hero__mobile-btn {
  padding: 10px 16px;
  font-size: 13.5px;
  border-radius: 10px;
}
@media (max-width: 760px) {
  .hero__mobile {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    margin: -20px auto 56px;
  }
  .hero__mobile-text { text-align: left; }
  .hero__mobile-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .hero__mobile-btn { justify-content: center; }
}

/* ----------- Mobile drawer ----------- */
.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav__burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 16px 24px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(7,8,20,0.95);
  backdrop-filter: blur(20px);
}
.drawer a {
  padding: 14px 16px;
  color: var(--text);
  border-radius: 10px;
  font-weight: 500;
}
.drawer a:hover { background: rgba(255,255,255,0.05); }
.drawer .btn { justify-content: center; padding: 14px; margin-top: 8px; }

/* ----------- Hero ----------- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}
.hero__pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

.hero__title {
  font-size: clamp(40px, 6.6vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 auto 26px;
  max-width: 1000px;
}

.hero__sub {
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 40px;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

/* Hero product mock */
.hero__mock {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
}

.hero__mock::before {
  content: '';
  position: absolute;
  inset: -40px -40px -140px;
  background: radial-gradient(ellipse at center, rgba(124,92,255,.35) 0%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
}

.mock {
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.025) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mock__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.18);
}
.mock__chrome span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3c4e;
}
.mock__chrome span:nth-child(1) { background: #ff5f56; }
.mock__chrome span:nth-child(2) { background: #ffbd2e; }
.mock__chrome span:nth-child(3) { background: #27c93f; }
.mock__url {
  margin-left: auto;
  margin-right: auto;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0,0,0,0.25);
}

.mock__body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 460px;
}

.mock__side {
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  background: rgba(0,0,0,0.1);
}
.mock__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 22px;
}
.mock__logo img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: cover;
}
.mock__navi { display: flex; flex-direction: column; gap: 2px; }
.mock__navi-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 8px;
  transition: background .18s ease, color .18s ease;
  cursor: default;
}
.mock__navi-item.active,
.mock__navi-item:hover {
  background: rgba(124,92,255,0.14);
  color: var(--text);
}

.mock__main {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mock__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.mock__stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock__stat-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mock__stat-val {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-family: 'JetBrains Mono', monospace;
}
.mock__stat-chg {
  font-size: 12px;
  font-weight: 600;
}
.mock__stat-chg.up       { color: var(--up); }
.mock__stat-chg.down     { color: var(--down); }
.mock__stat-chg.neutral  { color: var(--muted); }

.mock__chart {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  height: 240px;
  overflow: hidden;
}
.mock__chart svg { width: 100%; height: 100%; }

.mock__list {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.mock__row {
  display: grid;
  grid-template-columns: 2fr 1.4fr 0.8fr 1fr 1fr;
  gap: 12px;
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mock__row:last-child { border-bottom: none; }
.mock__row.header {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(0,0,0,0.2);
}
.mock__row .up   { color: var(--up);   font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.mock__row .down { color: var(--down); font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.mock__row .pulse {
  display: inline-flex;
  align-items: center;
  color: var(--up);
  font-size: 12px;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  background: rgba(124,92,255,0.18);
  color: #c4b5fd;
  margin-right: 8px;
}
.tag--alt  { background: rgba(34,211,238,0.15);  color: #7dd3fc; }
.tag--warn { background: rgba(245,158,11,0.15);  color: #fbbf24; }
.tag--ok   { background: rgba(34,197,94,0.15);   color: #86efac; }

/* ----------- Stats strip ----------- */
.stats {
  padding: 30px 0 40px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.01) 100%);
  backdrop-filter: blur(10px);
}
.stats__item { text-align: center; }
.stats__val {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.stats__label {
  color: var(--muted);
  font-size: 13px;
}

/* ----------- Cards (features) ----------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,0%), rgba(124,92,255,0.12), transparent 40%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
}
.card:hover::before { opacity: 1; }

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,92,255,0.12);
  border: 1px solid rgba(124,92,255,0.25);
  color: #b7a6ff;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ----------- Markets ----------- */
.markets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.market {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.025);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.market:hover {
  border-color: var(--border-2);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}
.market__sym {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 18px;
  background: var(--brand-grad);
  color: #0a0b14;
  flex: none;
}
.market b { font-size: 15px; display: block; margin-bottom: 2px; }
.market small { color: var(--muted); font-size: 12.5px; }

/* ----------- Steps ----------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.015) 100%);
  transition: transform .2s ease, border-color .2s ease;
}
.step:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
}
.step__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--brand-2);
  margin-bottom: 14px;
}
.step h3 {
  font-size: 17px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ----------- Logos / AI stack ----------- */
.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.logo-chip {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  font-size: 14px;
  color: var(--muted);
  transition: all .2s ease;
}
.logo-chip:hover {
  color: var(--text);
  border-color: var(--border-2);
  background: rgba(255,255,255,0.05);
}

/* ----------- Pricing ----------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan {
  position: relative;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.015) 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .2s ease, border-color .2s ease;
}
.plan:hover { transform: translateY(-4px); }

.plan--featured {
  border-color: rgba(124,92,255,0.5);
  background:
    linear-gradient(180deg, rgba(124,92,255,0.1) 0%, rgba(34,211,238,0.04) 100%);
  box-shadow: 0 20px 60px -20px rgba(124,92,255,0.45);
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: var(--brand-grad);
  color: #0a0b14;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: var(--shadow-glow);
}

.plan__name {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.plan__amount {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.plan__per {
  color: var(--muted);
  font-size: 14px;
}
.plan__desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}
.plan__list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan__list li {
  padding-left: 28px;
  position: relative;
  font-size: 14px;
  color: var(--text);
}
.plan__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34,211,238,0.15);
}
.plan__list li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 7px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--brand-2);
  border-bottom: 2px solid var(--brand-2);
  transform: rotate(-45deg);
}

.plan .btn { margin-top: auto; }

/* ----------- FAQ ----------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  padding: 0 22px;
  transition: border-color .2s ease, background .2s ease;
}
.faq__item[open] {
  border-color: var(--border-2);
  background: rgba(255,255,255,0.04);
}
.faq__item summary {
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-weight: 400;
  font-size: 22px;
  color: var(--muted);
  transition: transform .2s ease;
}
.faq__item[open] summary::after {
  content: '−';
  color: var(--brand-2);
}
.faq__item p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.faq__item code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(124,92,255,.12);
  color: #c4b5fd;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .92em;
}

/* ----------- CTA band ----------- */
.cta {
  padding: 90px 0 110px;
  position: relative;
}
.cta__inner {
  text-align: center;
  padding: 70px 40px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at top, rgba(124,92,255,0.2) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}
.cta h2 {
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 14px;
}
.cta p {
  color: var(--muted);
  font-size: 17px;
  margin: 0 auto 30px;
  max-width: 520px;
}
.cta .hero__ctas { margin-bottom: 0; }

/* ----------- Footer ----------- */
.footer {
  padding: 70px 0 40px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 64px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.footer__brand .brand { margin-bottom: 14px; }
.footer__tag {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
  max-width: 320px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.footer__cols h4 {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 16px;
  font-weight: 600;
}
.footer__cols a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--muted);
}
.footer__cols a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 26px;
  color: var(--muted-2);
  font-size: 12.5px;
  flex-wrap: wrap;
}

/* ----------- Personas (Who it's for) ----------- */
.personas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.persona {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.015) 100%);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.persona:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  background: linear-gradient(180deg, rgba(124,92,255,0.06) 0%, rgba(34,211,238,0.02) 100%);
}
.persona__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.25);
  color: #7dd3fc;
  margin-bottom: 14px;
}
.persona h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  font-weight: 700;
}
.persona p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ----------- Use cases ----------- */
.usecases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.usecase {
  position: relative;
  padding: 24px 22px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.usecase::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(124,92,255,0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.usecase:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
}
.usecase:hover::before { opacity: 1; }
.usecase__num {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--brand-grad);
  color: #0a0b14;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.usecase h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  font-weight: 700;
  position: relative;
}
.usecase p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  position: relative;
}

/* ----------- Architecture diagram ----------- */
.arch {
  max-width: 980px;
  margin: 0 auto 44px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.arch__layer {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 24px;
  position: relative;
  transition: border-color .25s ease, transform .25s ease;
}
.arch__layer:hover {
  border-color: var(--border-2);
  transform: translateY(-1px);
}
.arch__layer--client { background: linear-gradient(180deg, rgba(34,211,238,0.08) 0%, rgba(34,211,238,0.015) 100%); }
.arch__layer--edge   { background: linear-gradient(180deg, rgba(124,92,255,0.06) 0%, rgba(124,92,255,0.015) 100%); }
.arch__layer--app    {
  background: linear-gradient(180deg, rgba(124,92,255,0.09) 0%, rgba(34,211,238,0.03) 100%);
  border-color: rgba(124,92,255,0.28);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.arch__layer--app .arch__label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.arch__layer--state  { background: linear-gradient(180deg, rgba(34,197,94,0.05) 0%, rgba(34,197,94,0.01) 100%); }
.arch__layer--ext    { background: linear-gradient(180deg, rgba(245,158,11,0.05) 0%, rgba(245,158,11,0.015) 100%); }

.arch__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.arch__pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
}
.arch__desc {
  font-size: 12px;
  color: var(--muted);
}

.arch__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.arch__chips--multi { gap: 8px; }
.arch__chip {
  padding: 7px 12px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
  font-size: 12.5px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.01em;
}

.arch__services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.arch__service {
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .2s ease, border-color .2s ease;
}
.arch__service:hover {
  transform: translateY(-2px);
  border-color: rgba(124,92,255,0.5);
}
.arch__service-ico {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,92,255,0.15);
  color: #c4b5fd;
  margin-bottom: 4px;
}
.arch__service b {
  font-size: 13px;
  letter-spacing: -0.01em;
}
.arch__service small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}
.arch__frame-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .05em;
  text-align: center;
  padding-top: 2px;
}

.arch__link {
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.arch__link span {
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, var(--brand) 50%, transparent 100%);
  opacity: 0.6;
  position: relative;
}
.arch__link span::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--brand-2);
  border-bottom: 2px solid var(--brand-2);
  transform: translateX(-50%) rotate(45deg);
  opacity: 0.7;
}
.arch__link--split {
  gap: 120px;
  justify-content: center;
}

/* ----------- Stack summary ----------- */
.stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}
.stack__item {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.025);
  transition: border-color .2s ease, background .2s ease;
}
.stack__item:hover {
  border-color: var(--border-2);
  background: rgba(255,255,255,0.04);
}
.stack__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--brand-2);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.stack__value {
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
}

/* ----------- Socials ----------- */
.socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.socials a:hover {
  color: var(--text);
  background: rgba(124,92,255,0.12);
  border-color: rgba(124,92,255,0.45);
  transform: translateY(-2px);
}

/* ----------- Language switcher ----------- */
.lang {
  position: relative;
}
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.lang__btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.22);
}
.lang__label { min-width: 16px; text-align: center; }

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
  list-style: none;
  margin: 0;
  background: rgba(14,16,32,0.96);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 60;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.lang__menu::-webkit-scrollbar { width: 6px; }
.lang__menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 3px; }
.lang__menu::-webkit-scrollbar-track { background: transparent; }
.lang.open .lang__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang__menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-size: 13.5px;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease;
}
.lang__menu li:hover { background: rgba(124,92,255,0.15); }
.lang__menu li.active { background: rgba(34,211,238,0.12); color: var(--brand-2); }
.lang__menu li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

/* ----------- Mobile app section ----------- */
.mobile-sec { position: relative; }
.mobile-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(124,92,255,0.14), transparent 60%),
    radial-gradient(600px 320px at 90% 100%, rgba(34,211,238,0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.mobile-sec > .container { position: relative; z-index: 1; }

.mobile-hub {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 40px;
  align-items: center;
}

/* Phone mockup */
.mobile-hub__phone {
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: 300px;
  height: 600px;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(180deg, #1a1c35 0%, #0e0f22 100%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 0 80px -20px rgba(124,92,255,0.45);
}
.phone::before,
.phone::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
}
.phone::before { left: -2px; top: 90px;  width: 2px; height: 36px; }
.phone::after  { left: -2px; top: 140px; width: 2px; height: 60px; }
.phone__notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 22px;
  background: #05060d;
  border-radius: 16px;
  z-index: 2;
}
.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 36px;
  background:
    linear-gradient(180deg, #0b0d1f 0%, #05060d 100%);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  padding: 44px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phone__statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  padding: 0 4px 2px;
}
.phone__dots { display: flex; gap: 3px; }
.phone__dots span {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--muted);
}
.phone__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 4px;
}
.phone__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
}
.phone__logo img {
  width: 22px; height: 22px; border-radius: 6px;
  object-fit: cover;
}
.phone__chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-grad);
  color: #0b0d1f;
}
.phone__hero {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.025);
}
.phone__equity {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
}
.phone__eq-label {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: .14em; color: var(--muted-2);
}
.phone__eq-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 19px;
  font-weight: 700;
}
.phone__eq-chg {
  font-size: 11px;
  font-weight: 600;
}
.phone__eq-chg.up { color: var(--up); }
.phone__spark { height: 60px; }
.phone__spark svg { width: 100%; height: 100%; }

.phone__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow: hidden;
}
.phone__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  font-size: 12px;
}
.phone__row .up   { color: var(--up);   font-family: 'JetBrains Mono', monospace; }
.phone__row .down { color: var(--down); font-family: 'JetBrains Mono', monospace; }
.phone__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(124,92,255,0.18);
  color: #b7a6ff;
}
.phone__tag--alt  { background: rgba(34,211,238,0.18);  color: #7ae8ff; }
.phone__tag--warn { background: rgba(245,158,11,0.2);   color: #fbbf24; }
.phone__tag--ok   { background: rgba(34,197,94,0.18);   color: #6ee7a7; }

.phone__nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted-2);
  text-align: center;
  font-weight: 600;
}
.phone__nav .active { color: var(--brand-2); }

/* Panel */
.mobile-hub__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-card {
  position: relative;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  transition: border-color .2s ease, transform .2s ease;
}
.mobile-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.mobile-card__top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.mobile-card__top h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mobile-card__top p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.mobile-card__icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,92,255,0.14);
  border: 1px solid rgba(124,92,255,0.28);
  color: #b7a6ff;
}
.mobile-card__icon--green {
  background: rgba(34,197,94,0.14);
  border-color: rgba(34,197,94,0.3);
  color: #6ee7a7;
}
.mobile-card__icon--mute {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  color: var(--muted);
}
.mobile-card__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.mobile-card__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0,0,0,0.3);
}
.mobile-card__qr img {
  width: 88px; height: 88px;
  display: block;
  border-radius: 6px;
}
.mobile-card__qr span {
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: .04em;
}
.mobile-card__url {
  display: inline-block;
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  background: rgba(0,0,0,0.35);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.mobile-card__note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.55;
}
.mobile-card__download {
  background-image: linear-gradient(135deg, #22c55e 0%, #22d3ee 100%);
}
.mobile-card__soon {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ----------- Reveal on scroll ----------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ----------- Responsive ----------- */
@media (max-width: 1024px) {
  .cards    { grid-template-columns: repeat(2, 1fr); }
  .markets  { grid-template-columns: repeat(3, 1fr); }
  .steps    { grid-template-columns: repeat(2, 1fr); }
  .personas { grid-template-columns: repeat(2, 1fr); }
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .stack    { grid-template-columns: repeat(2, 1fr); }

  .mobile-hub { grid-template-columns: 1fr; gap: 32px; }
  .mobile-hub__phone { order: -1; }

  .arch__layer    { grid-template-columns: 1fr; gap: 14px; }
  .arch__services { grid-template-columns: repeat(2, 1fr); }

  .mock__body  { grid-template-columns: 1fr; }
  .mock__side  { display: none; }
  .mock__stats { grid-template-columns: repeat(2, 1fr); }
  .mock__row   { grid-template-columns: 2fr 1fr 1fr; }
  .mock__row > :nth-child(3),
  .mock__row > :nth-child(5) { display: none; }

  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols  { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 820px) {
  .section         { padding: 80px 0; }
  .section__head   { margin-bottom: 48px; }
  .stats__grid     { grid-template-columns: repeat(2, 1fr); padding: 28px 20px; }
  .footer__cols    { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .nav__links,
  .nav__login      { display: none; }
  .nav__burger     { display: inline-flex; }
  .drawer.open     { display: flex; }

  .cta__inner      { padding: 56px 24px; }
}

@media (max-width: 560px) {
  .cards    { grid-template-columns: 1fr; }
  .markets  { grid-template-columns: repeat(2, 1fr); }
  .steps    { grid-template-columns: 1fr; }
  .personas { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: 1fr; }
  .stack    { grid-template-columns: 1fr; }
  .arch__services { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }

  .phone { width: 260px; height: 520px; }
  .mobile-card__row { grid-template-columns: 1fr; }
  .mobile-card__qr { justify-self: center; }

  .hero            { padding: 48px 0 30px; }
  .hero__ctas      { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }

  .mock__chrome    { padding: 10px 14px; }
  .mock__url       { display: none; }
  .mock__main      { padding: 16px; gap: 14px; }
  .mock__chart     { height: 180px; padding: 10px; }
  .mock__row       { font-size: 12px; padding: 10px 12px; }

  .nav__app        { display: none; }
  .lang__btn       { padding: 7px 8px; font-size: 12px; }

  .footer__inner   { padding-bottom: 36px; gap: 32px; }
}

/* ----------- Legal section ----------- */
#legal .section__title,
#legal .section__lead { text-align: center; }
#legal .eyebrow { display: block; text-align: center; }

.legal__alert {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  margin: 40px auto 28px;
  padding: 28px 30px;
  max-width: 980px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,176,80,0.11), rgba(255,99,130,0.06)),
    rgba(22,18,26,0.65);
  border: 1px solid rgba(255,176,80,0.28);
  box-shadow:
    0 0 0 1px rgba(255,176,80,0.08) inset,
    0 30px 80px -40px rgba(255,120,60,0.35),
    0 20px 60px -30px rgba(0,0,0,0.7);
  overflow: hidden;
}
.legal__alert::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 220px at 0% 0%, rgba(255,176,80,0.16), transparent 60%),
    radial-gradient(500px 200px at 100% 100%, rgba(255,99,130,0.10), transparent 60%);
  opacity: 0.9;
}
.legal__alert > * { position: relative; z-index: 1; }

.legal__alert-icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,176,80,0.22), rgba(255,99,130,0.16));
  border: 1px solid rgba(255,176,80,0.35);
  color: #ffd28a;
  box-shadow: 0 6px 18px -6px rgba(255,120,60,0.6);
  flex-shrink: 0;
}

.legal__alert-body h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  line-height: 1.4;
  font-weight: 700;
  color: #ffe1b8;
  letter-spacing: -0.005em;
}
.legal__alert-body p {
  margin: 0 0 16px;
  color: rgba(235,225,215,0.82);
  font-size: 0.965rem;
  line-height: 1.7;
}
.legal__alert-body p strong {
  color: #ff9e7d;
  font-weight: 700;
}
.legal__alert-body code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.legal__official {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(10,10,16,0.55);
  border: 1px solid rgba(255,255,255,0.06);
}
.legal__official strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,210,160,0.9);
  margin-bottom: 10px;
}
.legal__official ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.legal__official li { margin: 0; padding: 0; }
.legal__official a {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  color: rgba(255,230,200,0.92);
  background: rgba(255,176,80,0.08);
  border: 1px solid rgba(255,176,80,0.22);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.legal__official a:hover {
  background: rgba(255,176,80,0.18);
  border-color: rgba(255,176,80,0.45);
  color: #fff;
  transform: translateY(-1px);
}

.legal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.legal__card {
  padding: 22px 22px 20px;
  border-radius: 16px;
  background: rgba(18,19,34,0.6);
  border: 1px solid var(--border-2);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.legal__card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.14);
  background: rgba(22,23,40,0.7);
}
.legal__card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.005em;
}
.legal__card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.7;
}
.legal__card code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.84em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 1024px) {
  .legal__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .legal__alert {
    grid-template-columns: 1fr;
    padding: 22px 20px;
    gap: 14px;
  }
  .legal__alert-icon { width: 48px; height: 48px; }
  .legal__alert-body h3 { font-size: 1.08rem; }
  .legal__grid { grid-template-columns: 1fr; }
}

/* ----------- RTL fine-tuning ----------- */
[dir="rtl"] .lang__menu {
  right: auto;
  left: 0;
}
[dir="rtl"] .mock {
  direction: ltr;
  text-align: left;
}
[dir="rtl"] .mock__stat-label,
[dir="rtl"] .mock__stat-val,
[dir="rtl"] .mock__stat-chg,
[dir="rtl"] .mock__row {
  direction: ltr;
}
[dir="rtl"] .arch__chip,
[dir="rtl"] .arch__frame-label,
[dir="rtl"] .stats__val,
[dir="rtl"] .usecase__num,
[dir="rtl"] .step__num,
[dir="rtl"] .plan__amount,
[dir="rtl"] .mock__url {
  direction: ltr;
  unicode-bidi: isolate;
}
[dir="rtl"] .logos,
[dir="rtl"] .hero__ctas {
  justify-content: center;
}
[dir="rtl"] .nav__links a::after {
  left: auto;
  right: 50%;
}
[dir="rtl"] .nav__links a:hover::after {
  right: 0;
  left: auto;
}
[dir="rtl"] .footer__bottom {
  text-align: right;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .aurora__blob { animation: none; }
}
