/* ============================================================
   SARGON — design system + landing page
   Palette: ink black · paper · acid lime · soft violet
   Type: Bricolage Grotesque / Instrument Serif / JetBrains Mono
   ============================================================ */

:root {
  --ink: #06070a;
  --ink-1: #0a0c11;
  --ink-2: #0f1218;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --paper: #f1eee5;
  --dim: #8b909c;
  --dim-2: #5c616d;
  --lime: #d9ff47;
  --lime-soft: rgba(217, 255, 71, 0.14);
  --violet: #9b8cff;

  --font-d: "Bricolage Grotesque", "Inter", system-ui, -apple-system, sans-serif;
  --font-s: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-m: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-fa: "Vazirmatn", "Segoe UI", Tahoma, "Noto Naskh Arabic", sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --r-lg: 24px;
  --r-md: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-d);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(155, 140, 255, 0.11), transparent 65%),
    radial-gradient(700px 420px at 8% 12%, rgba(217, 255, 71, 0.05), transparent 70%);
}

::selection { background: var(--lime); color: #0a0b08; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--lime);
  color: #0a0b08;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; }

.grain {
  position: fixed;
  inset: -50%;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.spotlight {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(
    520px circle at var(--mx, 50%) var(--my, 20%),
    rgba(217, 255, 71, 0.055),
    transparent 62%
  );
  transition: opacity 0.4s ease;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  position: relative;
  z-index: 2;
}

.mono {
  font-family: var(--font-m);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}
.dim { color: var(--dim); }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  display: inline-block;
  flex: none;
}
.dot--live {
  box-shadow: 0 0 0 0 rgba(217, 255, 71, 0.55);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 255, 71, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(217, 255, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 255, 71, 0); }
}

/* ── buttons ─────────────────────────────────────────────────── */
.btn {
  --bg: transparent;
  --fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 12px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-d);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn--sm { padding: 10px 15px; font-size: 12.5px; }
.btn--lg { padding: 16px 24px; font-size: 14.5px; }

.btn--primary {
  --bg: var(--lime);
  --fg: #0a0b08;
  border-color: transparent;
  font-weight: 600;
}
.btn--primary:hover {
  --bg: #e6ff70;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -14px rgba(217, 255, 71, 0.65);
}
.btn--primary:active { transform: translateY(0); }

.btn--line:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.32);
}
.btn--accent { border-color: rgba(217, 255, 71, 0.28); color: #e9ffa6; }
.btn--accent:hover { background: rgba(217, 255, 71, 0.07); border-color: rgba(217, 255, 71, 0.55); }

.btn .arrow,
.btn .chev,
.btn .dl-icon { transition: transform 0.3s var(--ease); }
.btn .arrow { width: 14px; height: 14px; }
.btn .chev { width: 11px; height: 11px; opacity: 0.7; }
.btn .dl-icon { width: 17px; height: 17px; }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn:hover .dl-icon { transform: translateY(2px); }

/* ── download popover ────────────────────────────────────────── */
.dl { position: relative; }

.dl__menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 80;
  width: 300px;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: #0b0e13;
  box-shadow: 0 30px 70px -24px #000, 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top right;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.dl__menu--hero {
  inset-inline-start: 0;
  inset-inline-end: auto;
  top: auto;
  bottom: calc(100% + 10px);
  transform: translateY(6px) scale(0.985);
  transform-origin: bottom left;
}
.dl[data-open="true"] .dl__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dl__title {
  padding: 8px 10px 10px;
  color: var(--dim-2);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}
.dl__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  transition: background 0.18s var(--ease);
}
.dl__item:hover { background: rgba(255, 255, 255, 0.055); }
.dl__glyph {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 15px;
  color: var(--lime);
}
.dl__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl__meta b { font-size: 13px; font-weight: 500; letter-spacing: -0.01em; }
.dl__meta small { font-size: 11px; color: var(--dim-2); }
.dl__size { margin-inline-start: auto; color: var(--dim); font-size: 9.5px; }
.dl__foot {
  margin-top: 6px;
  padding: 10px 10px 6px;
  border-top: 1px solid var(--line);
  color: var(--dim-2);
  font-size: 9px;
  letter-spacing: 0.1em;
}

/* ── nav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 1px solid transparent;
  background: rgba(6, 7, 10, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(6, 7, 10, 0.86);
}
.nav__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(217, 255, 71, 0.09);
  border: 1px solid rgba(217, 255, 71, 0.22);
  color: var(--lime);
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.brand__tag {
  padding-inline-start: 10px;
  margin-inline-start: 2px;
  border-inline-start: 1px solid var(--line-2);
  color: var(--dim-2);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.nav__links {
  display: flex;
  gap: 26px;
  margin-inline-start: 8px;
  font-size: 13.5px;
  color: var(--dim);
}
.nav__links a { position: relative; transition: color 0.2s ease; }
.nav__links a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 100%;
  bottom: -5px;
  height: 1px;
  background: var(--lime);
  transition: right 0.3s var(--ease);
}
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after { right: 0; }

.nav__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.nav__messenger { gap: 8px; }

/* ── process rail ────────────────────────────────────────────── */
.rail {
  position: fixed;
  inset-inline-start: 34px;
  top: 50%;
  z-index: 40;
  display: none;
  transform: translateY(-50%);
  gap: 10px;
  align-items: center;
}
.rail__label {
  writing-mode: vertical-rl;
  color: var(--dim-2);
  font-size: 8.5px;
  letter-spacing: 0.3em;
}
.rail__line {
  position: relative;
  width: 1px;
  height: 220px;
  background: var(--line);
}
.rail__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--lime), rgba(217, 255, 71, 0.2));
  transition: height 0.15s linear;
}
.rail__dots { display: flex; flex-direction: column; justify-content: space-between; height: 220px; }
.rail__dots a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--dim-2);
  transition: color 0.25s ease;
}
.rail__dots b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease);
  background: var(--ink);
}
.rail__dots span {
  font-family: var(--font-m);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.25s var(--ease);
}
.rail__dots a:hover { color: var(--paper); }
.rail__dots a:hover span,
.rail__dots a.is-active span { opacity: 1; transform: none; }
.rail__dots a.is-active { color: var(--lime); }
.rail__dots a.is-active b {
  border-color: var(--lime);
  background: var(--lime);
  color: #0a0b08;
}

@media (min-width: 1480px) {
  .rail { display: flex; }
}

/* ── hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(48px, 6vw, 78px) 0 clamp(40px, 5vw, 64px);
  overflow: hidden;
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
}
.hero__grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 40% at 50% 0%, rgba(217, 255, 71, 0.07), transparent 70%);
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 6px;
  padding-inline: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__meta-note { color: var(--dim-2); font-size: 9.5px; }

.hero__title {
  font-size: clamp(2.65rem, 7.8vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 500;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
  margin-bottom: clamp(30px, 4vw, 52px);
}
.hero__title .line { display: block; }
.hero__title .line:last-child { padding-inline-start: clamp(0px, 4vw, 56px); }
.hero__title em {
  font-family: var(--font-s);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--lime);
  font-size: 1.04em;
  padding-inline-end: 0.04em;
}

.hero__split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero__lede {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.6;
  color: #a9aeb9;
  max-width: 42ch;
}
.hero__lede strong { color: var(--paper); font-weight: 500; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 18px;
}
.cta-row--center { justify-content: center; }

.micro {
  font-size: 9px;
  letter-spacing: 0.13em;
  color: var(--dim-2);
}

/* live topology card */
.graph {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 100% at 18% 0%, rgba(155, 140, 255, 0.1), transparent 55%),
    radial-gradient(90% 90% at 92% 100%, rgba(217, 255, 71, 0.06), transparent 60%),
    linear-gradient(180deg, #0b0e14, #080a0e);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}
.corner {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(217, 255, 71, 0.45);
  z-index: 4;
  pointer-events: none;
}
.corner--tl { top: 9px; left: 9px; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.corner--tr { top: 9px; right: 9px; border-left: 0; border-bottom: 0; border-top-right-radius: 4px; }
.corner--bl { bottom: 9px; left: 9px; border-right: 0; border-top: 0; border-bottom-left-radius: 4px; }
.corner--br { bottom: 9px; right: 9px; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; }

.graph__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px 11px;
}
.graph__path { color: var(--dim); font-size: 9px; letter-spacing: 0.13em; }
.graph__auto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lime);
  font-size: 8.5px;
  padding: 3px 8px;
  border: 1px solid rgba(217, 255, 71, 0.22);
  border-radius: 999px;
}

#graph {
  width: 100%;
  height: clamp(240px, 26vw, 322px);
  cursor: crosshair;
}

.graph__hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.hud__cell {
  padding: 11px 18px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hud__cell + .hud__cell { border-inline-start: 1px solid var(--line); }
.hud__k { color: var(--dim-2); font-size: 8px; letter-spacing: 0.16em; }
.hud__v {
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hud__v small { font-size: 0.55em; color: var(--dim); margin-inline-start: 1px; font-weight: 400; }

.graph__ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.graph__ticker-k {
  flex: none;
  color: #0a0b08;
  background: var(--lime);
  font-size: 8px;
  letter-spacing: 0.12em;
  padding: 2px 6px;
  border-radius: 3px;
}
.graph__ticker-v {
  color: var(--dim);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.28s ease, transform 0.28s var(--ease);
}
.graph__ticker-v.is-out { opacity: 0; transform: translateY(-5px); }

/* ── marquee ─────────────────────────────────────────────────── */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(217, 255, 71, 0.04), transparent 25%, transparent 75%, rgba(155, 140, 255, 0.05));
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marq 42s linear infinite;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-inline-end: 26px;
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.marquee__item i { color: var(--lime); font-style: normal; font-size: 9px; opacity: 0.7; }
@keyframes marq {
  to { transform: translateX(-50%); }
}

/* ── sections ────────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(72px, 9vw, 132px) 0;
}

.ruler {
  height: 1px;
  margin-bottom: 34px;
  background: var(--line);
  position: relative;
}
.ruler::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.22) 0 1px,
    transparent 1px 12px
  );
  mask-image: linear-gradient(90deg, #000, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000, #000 55%, transparent);
}

.sec-head { max-width: 880px; margin-bottom: clamp(36px, 4.5vw, 58px); }
.sec-head__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.kicker span { color: var(--lime); }
.sec-head__note { color: var(--dim-2); font-size: 9px; }

.sec-title {
  font-size: clamp(1.9rem, 4.2vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 500;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}
.sec-title em {
  font-family: var(--font-s);
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
  letter-spacing: -0.01em;
}
.sec-lede {
  margin-top: 22px;
  max-width: 62ch;
  color: #a2a7b2;
  font-size: 15.5px;
  line-height: 1.65;
}

/* ── surfaces ────────────────────────────────────────────────── */
.surface-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 28px);
  align-items: start;
}
.surface--offset { margin-top: clamp(0px, 3vw, 48px); }

.surface {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.006));
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.5s var(--ease-out);
}
.surface::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(70% 50% at 50% 0%, rgba(217, 255, 71, 0.07), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.surface:hover { border-color: var(--line-2); }
.surface:hover::after { opacity: 1; }

.surface__head { position: relative; z-index: 2; }
.surface__k { color: var(--dim-2); font-size: 9px; letter-spacing: 0.16em; }
.surface__head h3 {
  margin: 10px 0 8px;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.surface__head p {
  color: #9aa0ab;
  font-size: 14px;
  line-height: 1.6;
  max-width: 42ch;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--lime);
  transition: gap 0.25s var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; }
.link-arrow:hover { gap: 13px; }

.frame {
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #080a0e;
  overflow: hidden;
  box-shadow: 0 30px 60px -40px #000;
}
.frame__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--dim-2);
  text-transform: none;
}
.frame__dots { display: flex; gap: 4px; }
.frame__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.frame__live {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-size: 8px;
}

/* mini dashboard */
.mini-dash { display: grid; grid-template-columns: 46px 1fr; }
.mini-dash__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-inline-end: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}
.mini-dash__logo {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--lime);
  color: #0a0b08;
  font-size: 12px;
  font-weight: 700;
}
.mini-dash__ico {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.3s ease;
}
.mini-dash__ico.is-on { background: rgba(217, 255, 71, 0.55); box-shadow: 0 0 12px rgba(217, 255, 71, 0.35); }

.mini-dash__main { padding: 14px 16px 16px; min-width: 0; }
.mini-dash__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mini-k { color: var(--dim-2); font-size: 7.5px; letter-spacing: 0.16em; }
.mini-t { font-size: 14.5px; font-weight: 500; letter-spacing: -0.02em; margin-top: 2px; }
.mini-chip {
  font-family: var(--font-m);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.mini-rows { display: flex; flex-direction: column; gap: 11px; margin: 18px 0 16px; }
.mini-row {
  display: grid;
  grid-template-columns: minmax(52px, 1fr) auto 76px 30px;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: #c3c7d0;
}
.mini-row__tag {
  font-family: var(--font-m);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim-2);
  border: 1px solid var(--line);
  padding: 2px 5px;
  border-radius: 3px;
}
.mini-bar {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.mini-bar i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(217, 255, 71, 0.45), var(--lime));
  transition: width 1.4s var(--ease-out);
}
.mini-row__v { font-family: var(--font-m); font-size: 8.5px; color: var(--dim-2); text-align: end; }

.mini-dash__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.mini-big {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.mini-big small { font-size: 0.5em; color: var(--dim); margin-inline-start: 1px; }
.spark { width: 118px; height: 34px; color: var(--lime); opacity: 0.85; }

/* mini messenger */
.mini-msg {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 16px 14px 14px;
  min-height: 214px;
}
.msg { display: flex; gap: 9px; font-size: 11.5px; line-height: 1.5; }
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(217, 255, 71, 0.13);
  border: 1px solid rgba(217, 255, 71, 0.22);
  color: #e9ffa6;
  font-family: var(--font-m);
  font-size: 8px;
  letter-spacing: 0;
}
.avatar--v {
  background: rgba(155, 140, 255, 0.14);
  border-color: rgba(155, 140, 255, 0.26);
  color: #cfc8ff;
}
.avatar--lg { width: 38px; height: 38px; font-size: 11px; }
.msg__meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.msg__meta b { font-size: 11px; font-weight: 600; letter-spacing: -0.01em; }
.msg__meta span { font-family: var(--font-m); font-size: 8px; color: var(--dim-2); }
.msg__b { color: #b9bdc7; }
.msg--out { justify-content: flex-end; }
.msg--out .msg__b {
  padding: 6px 10px;
  border-radius: 10px 10px 3px 10px;
  background: rgba(217, 255, 71, 0.09);
  border: 1px solid rgba(217, 255, 71, 0.16);
  color: #e4f0bf;
}
.msg__meta--out { justify-content: flex-end; }
.msg__attach {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 7px;
  border: 1px solid rgba(217, 255, 71, 0.18);
  border-radius: 5px;
  color: var(--lime);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.typing { display: flex; align-items: center; gap: 9px; opacity: 0.9; }
.typing__dots { display: inline-flex; gap: 3px; padding: 7px 9px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); }
.typing__dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dim);
  animation: blink 1.4s infinite;
}
.typing__dots i:nth-child(2) { animation-delay: 0.18s; }
.typing__dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

.mini-msg__composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--dim-2);
}
.mini-send {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--lime);
  color: #0a0b08;
  font-size: 12px;
  font-weight: 700;
}

/* ── stages ──────────────────────────────────────────────────── */
.stage-list { border-top: 1px solid var(--line); }
.stage {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  padding: clamp(22px, 3vw, 34px) clamp(10px, 1.6vw, 20px);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease;
  overflow: hidden;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(217, 255, 71, 0.06), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.stage:hover::before { opacity: 1; }
.stage:hover { background: rgba(255, 255, 255, 0.018); }

.stage__num {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim-2);
  transition: color 0.3s ease;
}
.stage:hover .stage__num { color: var(--lime); }

.stage__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.stage__body h3 {
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  transition: transform 0.4s var(--ease-out);
}
.stage:hover .stage__body h3 { transform: translateX(6px); }
.stage__body p {
  max-width: 62ch;
  color: #9196a1;
  font-size: 14px;
  line-height: 1.6;
}

.stage__meta { color: var(--dim-2); font-size: 8.5px; letter-spacing: 0.12em; white-space: nowrap; }
.stage__go {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--dim);
  transition: all 0.35s var(--ease);
}
.stage__go svg { width: 14px; height: 14px; }
.stage:hover .stage__go {
  border-color: var(--lime);
  color: #0a0b08;
  background: var(--lime);
  transform: rotate(45deg);
}

/* ── proof ───────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 30px clamp(16px, 2vw, 26px); }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat__v {
  display: flex;
  align-items: baseline;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__val { display: inline-flex; align-items: baseline; }
.stat__v small { font-size: 0.42em; color: var(--lime); margin-inline-start: 3px; font-weight: 400; letter-spacing: 0; }
.stat__k { margin-top: 14px; color: var(--lime); font-size: 8.5px; letter-spacing: 0.15em; }
.stat__n { margin-top: 8px; color: var(--dim-2); font-size: 12.5px; line-height: 1.5; max-width: 24ch; }

.quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  margin-top: clamp(44px, 6vw, 80px);
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.quote blockquote {
  font-size: clamp(1.25rem, 2.5vw, 1.95rem);
  line-height: 1.32;
  letter-spacing: -0.03em;
  font-weight: 400;
  max-width: 34ch;
  text-wrap: pretty;
}
.quote blockquote::first-letter { color: var(--lime); }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption b { display: block; font-size: 13px; font-weight: 500; }
.quote figcaption .mono { display: block; margin-top: 3px; color: var(--dim-2); font-size: 8px; letter-spacing: 0.12em; }

/* ── start ───────────────────────────────────────────────────── */
.start { position: relative; overflow: hidden; }
.start__glow {
  position: absolute;
  left: 50%;
  bottom: -55%;
  width: min(1100px, 120vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(217, 255, 71, 0.13), transparent 62%);
  pointer-events: none;
}
.start__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(20px, 4vw, 48px) 0 clamp(10px, 2vw, 28px);
}
.start__title {
  margin: 20px 0 0;
  font-size: clamp(2.1rem, 5.4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
  text-wrap: balance;
}
.start__title em {
  font-family: var(--font-s);
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
}
.start__lede {
  margin-top: 22px;
  max-width: 52ch;
  color: #a2a7b2;
  font-size: 15.5px;
  line-height: 1.65;
}
.start .cta-row { margin-top: 32px; }
.start .micro { margin-top: 4px; }

/* ── footer ──────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 2;
  padding-top: clamp(48px, 6vw, 76px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  padding-bottom: 44px;
}
.footer__brand p {
  margin: 16px 0 18px;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.6;
}
.footer__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 8.5px;
  color: var(--dim-2);
}
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(120px, auto)); gap: clamp(24px, 4vw, 56px); }
.footer__cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer__k { color: var(--dim-2); font-size: 8.5px; letter-spacing: 0.16em; margin-bottom: 4px; }
.footer__cols a { font-size: 13.5px; color: #b2b7c1; transition: color 0.2s ease; }
.footer__cols a:hover { color: var(--lime); }
.footer__soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--dim-2);
  cursor: default;
}
.footer__soon .badge-soon { margin-inline-start: 0; }
.tag-new {
  display: inline-block;
  margin-inline-start: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(217, 255, 71, 0.14);
  color: var(--lime);
  font-size: 8px;
}

.footer__bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--dim-2);
  font-size: 8.5px;
}
.footer__bar .dot { margin-inline-start: 6px; }

.footer__mark {
  display: block;
  margin: 18px 0 0;
  padding: 0;
  user-select: none;
  pointer-events: none;
}
.footer__mark svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── reveal ──────────────────────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── responsive ──────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .stage { grid-template-columns: 52px minmax(0, 1fr) 40px; }
  .stage__meta { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .quote { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 900px) {
  .hero__split { grid-template-columns: 1fr; gap: 40px; }
  .hero__title .line:last-child { padding-inline-start: 0; }
  .surface-grid { grid-template-columns: 1fr; }
  .surface--offset { margin-top: 0; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .nav__inner { gap: 12px; padding: 12px 18px; }
  .brand__tag { display: none; }
  .nav__messenger { display: none; }
  .btn--lg { padding: 14px 18px; font-size: 13.5px; }
  .cta-row { gap: 8px; }
  .cta-row .btn { width: 100%; }
  .dl { width: 100%; }
  .dl__menu { width: min(300px, calc(100vw - 36px)); }
  .dl__menu--hero { inset-inline-start: 0; }
  .graph__top { padding: 12px 14px 8px; }
  .graph__path { font-size: 8px; }
  .hud__cell { padding: 9px 12px 11px; }
  .graph__ticker { padding: 8px 12px; }
  .graph__ticker-v { font-size: 8.5px; }
  .stage { grid-template-columns: 34px minmax(0, 1fr) 32px; gap: 12px; padding: 20px 6px; }
  .stage__go { width: 30px; height: 30px; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-inline-start: 0; border-top: 1px solid var(--line); }
  .stat__n { max-width: none; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .sec-head__row { flex-direction: column; gap: 8px; }
  .quote blockquote { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}


/* ============================================================
   LANGUAGE SWITCH · DOWNLOAD BADGES · PERSIAN / RTL
   ============================================================ */

/* ── language switch ─────────────────────────────────────────── */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.lang__opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 29px;
  height: 23px;
  padding: 0 7px;
  border-radius: 999px;
  font-family: var(--font-m);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--dim);
  transition: color 0.2s ease, background 0.2s ease;
}
a.lang__opt:hover { color: var(--paper); background: rgba(255, 255, 255, 0.07); }
.lang__opt.is-on { background: var(--lime); color: #0a0b08; font-weight: 500; }
html[lang="fa"] .lang__opt { font-family: var(--font-fa); letter-spacing: 0; font-size: 10.5px; }

/* ── platform icons + availability ───────────────────────────── */
.dl__glyph svg { width: 17px; height: 17px; }
.dl__item.is-live .dl__glyph {
  color: var(--lime);
  border-color: rgba(217, 255, 71, 0.3);
  background: rgba(217, 255, 71, 0.08);
}
.dl__item.is-live .dl__size { color: var(--lime); }
.dl__item.is-soon { opacity: 0.5; cursor: not-allowed; }
.dl__item.is-soon:hover { background: transparent; }
.dl__item.is-soon .dl__glyph { color: var(--dim-2); }

.badge-soon {
  display: inline-flex;
  align-items: center;
  margin-inline-start: auto;
  padding: 2px 7px;
  border: 1px solid rgba(255, 178, 122, 0.28);
  border-radius: 999px;
  background: rgba(255, 178, 122, 0.08);
  color: #ffb27a;
  font-family: var(--font-m);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
html[lang="fa"] .badge-soon { font-family: var(--font-fa); letter-spacing: 0; font-size: 9px; }

/* ── persian typography ──────────────────────────────────────── */
html[lang="fa"] {
  --font-d: var(--font-fa);
  --font-s: var(--font-fa);
}
html[lang="fa"] body {
  font-size: 16.5px;
  line-height: 1.8;
  letter-spacing: 0;
}
html[lang="fa"] .mono { font-family: var(--font-fa); font-size: 11px; }

html[lang="fa"] .mono,
html[lang="fa"] .kicker,
html[lang="fa"] .micro,
html[lang="fa"] .hero__title,
html[lang="fa"] .sec-title,
html[lang="fa"] .start__title,
html[lang="fa"] .marquee__item,
html[lang="fa"] .stage__meta,
html[lang="fa"] .stat__k,
html[lang="fa"] .footer__k,
html[lang="fa"] .footer__bar,
html[lang="fa"] .footer__status,
html[lang="fa"] .brand__name,
html[lang="fa"] .brand__tag,
html[lang="fa"] .nav__links,
html[lang="fa"] .surface__head h3,
html[lang="fa"] .stage__body h3,
html[lang="fa"] .quote blockquote { letter-spacing: 0; }

html[lang="fa"] .hero__title {
  line-height: 1.3;
  font-weight: 700;
  font-variation-settings: normal;
}
html[lang="fa"] .sec-title { line-height: 1.45; font-weight: 700; font-variation-settings: normal; }
html[lang="fa"] .start__title { line-height: 1.4; font-weight: 700; }
html[lang="fa"] .hero__title em,
html[lang="fa"] .sec-title em,
html[lang="fa"] .start__title em {
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
}
html[lang="fa"] .hero__lede,
html[lang="fa"] .sec-lede,
html[lang="fa"] .start__lede,
html[lang="fa"] .stage__body p,
html[lang="fa"] .surface__head p { line-height: 1.95; }
html[lang="fa"] .stat__n { line-height: 1.75; }
html[lang="fa"] .quote blockquote { line-height: 1.65; font-weight: 500; }
html[lang="fa"] .stage__body h3,
html[lang="fa"] .surface__head h3 { font-weight: 700; }
html[lang="fa"] .rail__label { display: none; }
html[lang="fa"] .footer__mark svg text { font-family: "Bricolage Grotesque", Inter, sans-serif; }
html[lang="fa"] .dl__meta small { font-size: 11px; }
html[lang="fa"] .micro { font-size: 9.5px; }
html[lang="fa"] .graph__path { font-size: 9.5px; }
html[lang="fa"] .graph__ticker-v { font-size: 10px; }
html[lang="fa"] .hud__k { font-size: 9px; }
html[lang="fa"] .stat__k { font-size: 9.5px; }
html[lang="fa"] .footer__bar { font-size: 9px; }

/* ── rtl icon + motion flips ─────────────────────────────────── */
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translate(2px, -2px); }
[dir="rtl"] .link-arrow svg,
[dir="rtl"] .stage__go svg { transform: scaleX(-1); }
[dir="rtl"] .stage:hover .stage__body h3 { transform: translateX(-6px); }
[dir="rtl"] .dl__menu { transform-origin: top left; }
[dir="rtl"] .dl__menu--hero { transform-origin: bottom right; }
[dir="rtl"] .marquee__track { animation-direction: reverse; }

@media (max-width: 640px) {
  html[lang="fa"] .nav__inner { gap: 10px; }
  .lang { padding: 2px; }
  .lang__opt { min-width: 25px; height: 21px; padding: 0 5px; font-size: 8.5px; }
}
