:root {
  --bg: #09090b;
  --bg-2: #111114;
  --card: #141418;
  --line: #26262d;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #ff6b3d;
  --accent-2: #3d7bff;
  --radius: 18px;
  --display: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--body); overflow-x: hidden; overflow-wrap: anywhere;
}
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }

/* ------------------------------------------------------------ header -- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) clamp(16px, 4vw, 48px) 12px;
  background: linear-gradient(to bottom, rgba(9, 9, 11, .92), rgba(9, 9, 11, .6) 70%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 18px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.logo img { width: auto; height: 32px; flex: none; }
.links { display: flex; gap: clamp(14px, 2vw, 30px); font-size: 15px; color: #d4d4d8; }
.links a { text-decoration: none; opacity: .85; transition: opacity .2s; white-space: nowrap; }
.links a:hover { opacity: 1; }
.actions { display: flex; align-items: center; gap: 8px; }
.lang {
  display: inline-flex; align-items: center; gap: 6px; max-width: 160px;
  background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; font: 500 14px var(--body); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 10px 20px; border-radius: 12px; border: 1px solid transparent;
  font: 700 15px var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .2s, border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn.light { background: #fff; color: #0a0a0a; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.big { min-height: 54px; padding: 14px 28px; font-size: 17px; border-radius: 14px; }
.btn.glow {
  background: linear-gradient(180deg, #8d8d97, #4b4b55); color: #fff;
  box-shadow: 0 10px 30px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* -------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding-top: clamp(88px, 13vh, 140px); padding-bottom: 8px;
  background: radial-gradient(1200px 500px at 50% -10%, #23232b 0%, transparent 70%), var(--bg);
}
.hero-copy { position: relative; z-index: 3; width: 100%; max-width: 980px; padding: 0 20px; text-align: center; will-change: transform, opacity; }
.hero h1 {
  margin: 0 0 18px; font: 800 clamp(40px, 8.6vw, 104px)/1.02 var(--display); letter-spacing: -.035em;
  text-wrap: balance;
}
.scribble { position: relative; display: inline-block; white-space: nowrap; }
.scribble svg { position: absolute; left: -2%; right: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.scribble path { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.4s .35s cubic-bezier(.6, .1, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sub { margin: 0 auto 28px; max-width: 700px; color: var(--muted); font-size: clamp(16px, 2.1vw, 21px); text-wrap: pretty; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.note { margin: 22px 0 0; font: 600 clamp(20px, 2.6vw, 28px)/1.2 var(--hand); color: #e4e4e7; }
.note span { white-space: nowrap; }
.flash { margin: 0 auto 16px; max-width: 640px; padding: 10px 14px; border-radius: 10px; background: #2a1712; color: #ffb59c; }
.flash.ok { background: #12301d; color: #6fd28f; }

/* crowd: a layer pinned to the bottom of the window (people walk in landing.js) */
.crowd {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: 40vh; overflow: hidden; pointer-events: none;
}
.crowd-inner { position: relative; z-index: 1; width: 100%; height: 100%; }
/* dark backdrop behind the footer band, so text passing behind the people stays calm */
.crowd::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--crowd-band, 160px) * 1.5);
  background: linear-gradient(to bottom, rgba(9, 9, 11, 0), rgba(9, 9, 11, .9) 45%, #09090b);
  opacity: var(--compact, 0);
}
.crowd .person { position: absolute; left: 0; will-change: transform; }
.crowd .person-walk { width: 100%; height: 100%; will-change: transform; backface-visibility: hidden; }
.crowd .person img {
  display: block; width: 100%; height: 100%; transform-origin: 50% 100%;
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
}
@media (max-width: 760px) { .crowd { height: 32vh; } }
.down {
  position: absolute; z-index: 45; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(0, 0, 0, .55); border: 1px solid var(--line); text-decoration: none; font-size: 18px;
  animation: nudge 2s ease-in-out infinite;
}
@keyframes nudge { 50% { transform: translate(-50%, 6px); } }

/* ---------------------------------------------------------- sections -- */
.section { position: relative; padding: clamp(44px, 7vw, 84px) clamp(16px, 5vw, 48px); }
.wrap { max-width: 1120px; margin: 0 auto; }
.kicker { font: 700 13px var(--body); letter-spacing: .14em; color: var(--accent); text-transform: uppercase; margin: 0 0 12px; }
.section h2 { margin: 0 0 14px; font: 800 clamp(30px, 5vw, 56px)/1.08 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.lead { margin: 0 0 40px; color: var(--muted); font-size: clamp(16px, 1.9vw, 19px); max-width: 720px; text-wrap: pretty; }
.center { text-align: center; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }

[data-reveal] { opacity: 0; transform: translateY(34px) scale(.985); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-d="1"] { transition-delay: .08s; }
[data-reveal][data-d="2"] { transition-delay: .16s; }
[data-reveal][data-d="3"] { transition-delay: .24s; }
[data-reveal][data-d="4"] { transition-delay: .32s; }
[data-reveal][data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

.demo-frame {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(600px 300px at 30% 20%, #1b1d26, transparent), #0d0d10;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.demo-frame .bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.demo-frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3f3f46; }
#net { width: 100%; height: clamp(260px, 42vw, 460px); }

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.step, .case {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: border-color .25s, transform .25s;
}
.step:hover, .case:hover { border-color: #3f3f46; transform: translateY(-3px); }
.step .num { font: 800 34px/1 var(--display); color: transparent; -webkit-text-stroke: 1.2px #71717a; margin-bottom: 18px; }
.step h3, .case h3 { margin: 0 0 8px; font: 700 18px/1.25 var(--display); }
.step p, .case p { margin: 0; color: var(--muted); font-size: 15px; }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.case .tag { display: inline-block; margin-bottom: 14px; font: 700 11px var(--body); letter-spacing: .12em; color: var(--accent-2); }

.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.about p.big { font-size: clamp(18px, 2.2vw, 23px); color: #e4e4e7; margin: 0; text-wrap: pretty; }
.points h3 { margin: 0 0 10px; font: 700 18px var(--display); }
.points ul { list-style: none; margin: 0 0 26px; padding: 0; }
.points li { position: relative; padding-inline-start: 26px; margin-bottom: 10px; color: var(--muted); }
.points li::before { content: "—"; position: absolute; inset-inline-start: 0; color: var(--accent); }
.disclaimer { margin-top: 28px; font-size: 13px; color: #71717a; }

.price-card {
  max-width: 520px; margin: 0 auto; padding: clamp(26px, 4vw, 40px); text-align: center;
  background: linear-gradient(180deg, #17171c, #101013); border: 1px solid var(--line); border-radius: 24px;
}
.price-card .amount { font: 800 clamp(48px, 8vw, 72px)/1 var(--display); letter-spacing: -.04em; }
.price-card .per { color: var(--muted); margin-bottom: 24px; }
.price-card ul { list-style: none; padding: 0; margin: 26px 0; text-align: start; }
.price-card li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.price-card li::before { content: "✓"; color: #22c55e; margin-inline-end: 10px; font-weight: 700; }

.final { text-align: center; }
.final p { font: 700 clamp(26px, 4.4vw, 48px)/1.15 var(--display); letter-spacing: -.02em; max-width: 900px; margin: 0 auto 28px; text-wrap: balance; }

footer { border-top: 1px solid var(--line); padding: 26px 16px calc(var(--crowd-band, 0px) + 26px); text-align: center; color: #71717a; font-size: 13px; }
/* the section right after the hero rises into the space the crowd frees while scrolling */
.after-hero { padding-top: clamp(28px, 5vw, 56px); }
footer a { color: #a1a1aa; }

/* ------------------------------------------------------------ mobile -- */
@media (max-width: 1040px) {
  .links { display: none; }
}
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .links { display: none; }
  .logo span { display: none; }
  .lang { padding: 8px; max-width: 120px; }
  .btn { padding: 10px 14px; }
  .steps, .cases { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 100%; }
  .hero { padding-top: 92px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .links { gap: 14px; font-size: 14px; }
}

/* right-to-left */
[dir="rtl"] .scribble svg { transform: scaleX(-1); }

/* legal footer */
footer .legal-op { margin: 0 0 6px; color: #8b8b93; }
footer .legal-links { margin: 0; }
footer .linkbtn { background: none; border: 0; padding: 0; color: #a1a1aa; font: inherit; text-decoration: underline; cursor: pointer; }
footer a { white-space: nowrap; }

footer .legal-logo { display: inline-block; margin-bottom: 10px; }
footer .legal-logo img { height: 48px; width: auto; display: block; }

.nw { white-space: nowrap; }

/* demo graph: title, legend and "stickers" that follow two agents */
.demo-frame .bar { align-items: center; }
.demo-frame .bar-title { margin-inline-start: 10px; font: 600 13px var(--body); color: #d4d4d8; }
.net-legend {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; max-width: min(420px, calc(100% - 28px));
  padding: 12px 14px; border-radius: 12px; background: rgba(18, 18, 21, .88); border: 1px solid var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.net-legend-title { display: block; margin-bottom: 8px; font: 700 11px var(--body); letter-spacing: .12em; color: #f472b6; }
.net-legend ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.net-legend li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #d4d4d8; white-space: nowrap; }
.net-legend li i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.net-tag {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; display: flex; flex-direction: column; gap: 2px;
  padding: 9px 12px; border-radius: 12px; background: #fff; color: #0a0a0a; font-size: 12px; line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); white-space: nowrap; will-change: transform;
  border-inline-start: 4px solid var(--tag, #ff6b3d);
}
.net-tag[hidden] { display: none; }
.net-tag span:first-child { font-weight: 700; font-size: 13px; }
.net-tag span:not(:first-child) { color: #3f3f46; }
@media (max-width: 760px) {
  #net { height: 360px; }
  .net-legend { position: relative; left: auto; bottom: auto; max-width: none; margin: 0 8px 8px; padding: 10px 12px; }
  .net-legend li { font-size: 11px; }
  .net-tag { font-size: 11px; padding: 7px 9px; }
  .net-tag span:first-child { font-size: 12px; }
}
.net-legend-cta {
  display: inline-block; margin-top: 10px; padding: 7px 12px; border-radius: 999px;
  background: #fff; color: #0a0a0a; font: 600 12px var(--body); text-decoration: none; white-space: nowrap;
}
.net-legend-cta:hover { background: #e4e4e7; }
/* developer card under "About us" */
.dev-card {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 30px; padding: 18px 20px; max-width: 580px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.dev-card img { width: 72px; height: 72px; flex: none; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.dev-body { min-width: 0; }
.dev-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.dev-head b { font: 700 18px var(--display); color: var(--text); }
.dev-role { font: 700 11px var(--body); letter-spacing: .12em; text-transform: uppercase; color: #71717a; }
.dev-body p { margin: 6px 0 12px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.dev-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.dev-links a { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--body); text-decoration: none; }
.dev-links a:hover { text-decoration: underline; }
.dev-links svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.dev-tg { color: #38bdf8; }
.dev-wa { color: #4ade80; }
.dev-site { color: #e4e4e7; }
@media (max-width: 760px) {
  .dev-card { padding: 14px; gap: 12px; }
  .dev-card img { width: 56px; height: 56px; }
}
/* FAQ */
.faq-list { max-width: 860px; margin: 28px auto 0; display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 28px 18px 0; position: relative;
  font: 700 17px/1.35 var(--display); color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%);
  font: 400 24px/1 var(--body); color: var(--muted); transition: transform .2s;
}
[dir=rtl] .faq-item summary { padding: 18px 0 18px 28px; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: var(--muted); font-size: 16px; line-height: 1.6; }
