:root {
  --paper: #f6f4ef;
  --paper-2: #efece4;
  --card: #ffffff;
  --ink: #0c1424;
  --ink-2: #2a3446;
  --muted: #5d6677;
  --line: rgba(12, 20, 36, 0.1);
  --line-strong: rgba(12, 20, 36, 0.18);
  --accent: #0d7a63;
  --accent-ink: #075a49;
  --accent-soft: #d9efe8;
  --glow: #3ddbb0;
  --warm: #e8774a;
  --warm-soft: #fbe6dc;
  --night: #070d19;
  --night-2: #0e1729;
  --night-line: rgba(255, 255, 255, 0.09);
  --night-text: #e9edf5;
  --night-muted: #93a0b8;

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(12, 20, 36, 0.04), 0 12px 40px -12px rgba(12, 20, 36, 0.18);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6; }
.on-night .eyebrow { color: var(--glow); }

.display {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(44px, 6.6vw, 96px); line-height: 0.98; letter-spacing: -0.02em; margin: 0;
}
.h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.015em; margin: 14px 0 0;
}
.h3 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
em, .italic { font-style: italic; }
.display em, .h2 em { color: var(--accent); }
.on-night .h2 em { color: var(--glow); }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 640px; margin: 22px 0 0; line-height: 1.55; }
.on-night .lede { color: var(--night-muted); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15.5px; font-weight: 550; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 0.4s var(--ease), background 0.3s, box-shadow 0.4s var(--ease), border-color 0.3s;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
[dir="rtl"] .btn:hover svg { transform: translateX(-3px) scaleX(-1); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 30px -10px rgba(12, 20, 36, 0.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(12, 20, 36, 0.6); }
.btn-ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-glow { background: var(--glow); color: var(--night); }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(61, 219, 176, 0.6); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.site-header.scrolled { background: rgba(246, 244, 239, 0.78); backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--ink-2); transition: background 0.25s, color 0.25s; }
.nav-links a:hover { background: rgba(12, 20, 36, 0.06); color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-signin { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 4px auto; transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-open .menu-toggle span:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.progress { position: absolute; inset-inline-start: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--glow)); transform-origin: 0 50%; transform: scaleX(0); }
[dir="rtl"] .progress { transform-origin: 100% 50%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 148px 0 72px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; }
.orb-a { width: 520px; height: 520px; background: radial-gradient(circle, #bfe9dc, transparent 70%); top: -120px; inset-inline-end: -80px; animation: drift 18s ease-in-out infinite; }
.orb-b { width: 420px; height: 420px; background: radial-gradient(circle, #fbd9c8, transparent 70%); top: 220px; inset-inline-start: -160px; animation: drift 22s ease-in-out infinite reverse; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); backdrop-filter: blur(8px);
}
.pill b { background: var(--ink); color: #fff; font-weight: 550; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.hero .display { margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 14px; color: var(--muted); list-style: none; padding: 0; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--accent); }

.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-ready .split-line > span { transform: none; }
.split-line:nth-child(2) > span { transition-delay: 0.08s; }
.split-line:nth-child(3) > span { transition-delay: 0.16s; }

/* ---------- Hero console ---------- */
.console {
  position: relative; background: var(--card); border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 40px 100px -40px rgba(12, 20, 36, 0.45), 0 2px 6px rgba(12, 20, 36, 0.05);
  overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform 1s var(--ease);
}
[dir="rtl"] .console { transform: perspective(1400px) rotateY(6deg) rotateX(3deg); }
.console:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.console-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3e0d8; }
.console-bar span { margin-inline-start: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.console-body { padding: 20px; display: grid; gap: 14px; }
.case-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.case-head small { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; }
.case-head h3 { margin: 4px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.tag.warm { background: var(--warm-soft); color: #a8461f; }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center;
  padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fcfbf8;
  opacity: 0.45; transition: opacity 0.5s, background 0.5s, border-color 0.5s, transform 0.5s var(--ease);
}
.step .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--paper-2); color: var(--muted); transition: background 0.5s, color 0.5s; }
.step .ic svg { width: 15px; height: 15px; }
.step b { display: block; font-size: 14px; font-weight: 600; }
.step span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.step em { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.step.active { opacity: 1; background: #fff; border-color: rgba(13, 122, 99, 0.35); transform: translateX(4px); box-shadow: 0 8px 24px -14px rgba(13, 122, 99, 0.6); }
[dir="rtl"] .step.active { transform: translateX(-4px); }
.step.active .ic { background: var(--accent); color: #fff; }
.step.done { opacity: 1; }
.step.done .ic { background: var(--accent-soft); color: var(--accent-ink); }
.console-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 4px; font-size: 12.5px; color: var(--muted); }
.attrib { display: flex; gap: 6px; flex-wrap: wrap; }
.attrib span { font-family: var(--font-mono); font-size: 11px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; }

.float-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; backdrop-filter: blur(10px);
  animation: bob 6s ease-in-out infinite;
}
.float-chip svg { width: 18px; height: 18px; color: var(--accent); }
.float-chip.c1 { top: -40px; inset-inline-start: -26px; }
.float-chip.c2 { bottom: -46px; inset-inline-end: -16px; animation-delay: -3s; }
.hero-visual { position: relative; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: rgba(255, 255, 255, 0.35); }
.marquee-label { text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-size: 30px; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; font-size: 14px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.marquee-mask { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(88px, 12vw, 152px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head .lede { margin: 0; justify-self: end; }

/* Problem */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.problem { background: var(--paper); padding: 34px 30px; transition: background 0.4s; }
.problem:hover { background: #fff; }
.problem .num { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-ink); }
.problem .h3 { margin-top: 18px; }
.problem p { color: var(--muted); margin: 10px 0 0; font-size: 15.5px; }

/* Platform / tenant switcher */
.switcher { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: stretch; }
.tenant-tabs { display: grid; gap: 10px; align-content: start; }
.tenant-tab {
  text-align: start; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: transparent;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.tenant-tab b { display: block; font-size: 16px; font-weight: 600; }
.tenant-tab span { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }
.tenant-tab:hover { border-color: var(--line-strong); }
.tenant-tab[aria-selected="true"] { background: #fff; border-color: var(--ink); box-shadow: var(--shadow); }
.mock-app { display: grid; grid-template-columns: 200px 1fr; min-height: 440px; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.mock-side { background: var(--night); color: var(--night-text); padding: 18px 14px; display: grid; align-content: start; gap: 4px; }
.mock-org { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; border-bottom: 1px solid var(--night-line); margin-bottom: 10px; }
.mock-org i { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--glow), var(--accent)); flex: none; }
.mock-org b { font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.mock-org small { display: block; font-size: 11px; color: var(--night-muted); font-weight: 400; }
.mock-nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--night-muted); }
.mock-nav::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; opacity: 0.6; }
.mock-nav.on { background: rgba(255, 255, 255, 0.08); color: #fff; }
.mock-main { padding: 22px 24px; display: grid; align-content: start; gap: 18px; }
.mock-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mock-top h4 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.kpi small { font-size: 12px; color: var(--muted); }
.kpi b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.mock-rows { display: grid; gap: 8px; }
.mock-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--paper); font-size: 14px; }
.mock-row span { color: var(--muted); font-size: 12.5px; }
.fade-swap { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.fade-swap.swapping { opacity: 0; transform: translateY(6px); }
.synthetic { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.config-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.config-item { padding: 22px; border-radius: 16px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); }
.config-item svg { width: 22px; height: 22px; color: var(--accent); }
.config-item b { display: block; margin-top: 14px; font-weight: 600; }
.config-item p { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Night section: AI Workforce ---------- */
.on-night { background: var(--night); color: var(--night-text); overflow: hidden; isolation: isolate; }
.on-night::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 50% at 80% 0%, rgba(61, 219, 176, 0.16), transparent 70%), radial-gradient(ellipse 50% 40% at 0% 100%, rgba(232, 119, 74, 0.1), transparent 70%);
}
.on-night .muted { color: var(--night-muted); }
.workforce { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.coworker {
  position: relative; padding: 22px; border-radius: 16px; border: 1px solid var(--night-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: border-color 0.4s, transform 0.5s var(--ease), background 0.4s; overflow: hidden;
}
.coworker::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(61, 219, 176, 0.14), transparent 60%);
}
.coworker:hover { border-color: rgba(61, 219, 176, 0.35); transform: translateY(-4px); }
.coworker:hover::after { opacity: 1; }
.coworker .code { font-family: var(--font-mono); font-size: 11.5px; color: var(--glow); letter-spacing: 0.06em; }
.coworker b { display: block; margin-top: 12px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.coworker p { margin: 8px 0 0; font-size: 14px; color: var(--night-muted); line-height: 1.5; }

.modes { margin-top: 72px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.mode-rail { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mode {
  padding: 16px 10px; border-radius: 12px; text-align: center; border: 1px solid var(--night-line); background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; color: var(--night-muted); transition: all 0.4s var(--ease);
}
.mode[aria-pressed="true"] { background: var(--glow); color: var(--night); border-color: var(--glow); box-shadow: 0 10px 30px -10px rgba(61, 219, 176, 0.7); }
.mode-desc { margin-top: 18px; min-height: 84px; padding: 18px 20px; border-radius: 14px; border: 1px dashed var(--night-line); color: var(--night-text); font-size: 15.5px; }
.mode-desc small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--glow); letter-spacing: 0.06em; margin-bottom: 6px; }
.stop-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-size: 14px; color: var(--night-muted); }
.stop-btn { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; background: var(--warm); color: #fff; font-weight: 700; font-size: 11px; letter-spacing: 0.04em; box-shadow: 0 0 0 6px rgba(232, 119, 74, 0.18); transition: transform 0.3s var(--ease); }
.stop-btn:hover { transform: scale(1.06); }
.stop-btn[aria-pressed="true"] { background: var(--glow); color: var(--night); box-shadow: 0 0 0 6px rgba(61, 219, 176, 0.18); }

.statuses { display: grid; gap: 12px; }
.status-card { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; border-radius: 16px; border: 1px solid var(--night-line); background: rgba(255, 255, 255, 0.025); }
.status-card i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-family: var(--font-mono); font-size: 13px; background: rgba(61, 219, 176, 0.12); color: var(--glow); }
.status-card b { font-weight: 600; font-size: 16px; }
.status-card p { margin: 4px 0 0; color: var(--night-muted); font-size: 14.5px; }

/* ---------- Flow ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; counter-reset: flow; }
.flow::before { content: ""; position: absolute; top: 27px; inset-inline: 10%; height: 1px; background: var(--line-strong); }
.flow-line { position: absolute; top: 27px; inset-inline-start: 10%; height: 2px; width: 80%; background: linear-gradient(90deg, var(--accent), var(--glow)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.8s var(--ease); }
[dir="rtl"] .flow-line { transform-origin: 100% 50%; }
.flow.in .flow-line { transform: scaleX(1); }
.flow-step { position: relative; text-align: center; padding: 0 12px; }
.flow-step .node { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line-strong); position: relative; z-index: 1; transition: background 0.5s, border-color 0.5s, color 0.5s; }
.flow-step .node svg { width: 22px; height: 22px; }
.flow.in .flow-step .node { background: #fff; border-color: var(--accent); color: var(--accent); }
.flow-step b { display: block; margin-top: 18px; font-weight: 600; font-size: 16px; }
.flow-step p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- Trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.trust:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trust .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.trust .ic svg { width: 22px; height: 22px; }
.trust .h3 { margin-top: 20px; }
.trust p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.fineprint { margin-top: 28px; font-size: 13.5px; color: var(--muted); max-width: 820px; }

/* ---------- Everywhere ---------- */
.everywhere { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.devices { position: relative; height: 460px; }
.device { position: absolute; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.device.laptop { inset-inline-start: 0; top: 30px; width: 86%; height: 330px; border-radius: 16px; }
.device.phone { inset-inline-end: 0; bottom: 0; width: 190px; height: 380px; border-radius: 30px; border: 6px solid var(--night); }
.device .scr { padding: 16px; display: grid; gap: 10px; }
.bar { height: 10px; border-radius: 6px; background: var(--paper-2); }
.bar.w60 { width: 60%; } .bar.w40 { width: 40%; } .bar.w80 { width: 80%; }
.bar.acc { background: var(--accent-soft); }
.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.blocks div { height: 70px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.phone .head { background: var(--night); color: #fff; padding: 22px 14px 14px; font-size: 13px; font-weight: 600; }
.phone .head small { display: block; color: var(--night-muted); font-weight: 400; font-size: 11px; }
.visit-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 12px; }
.visit-card b { display: block; font-size: 12.5px; }
.visit-card .tag { margin-top: 8px; font-size: 10.5px; }
.langs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.lang { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 15px; transition: background 0.3s, color 0.3s; }
.lang:hover { background: var(--ink); color: #fff; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }

/* ---------- Regions ---------- */
.regions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.region { position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.55); min-height: 220px; display: flex; flex-direction: column; }
.region.live { background: var(--ink); color: #fff; border-color: var(--ink); }
.region .stat { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.region .stat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.region.live .stat { color: var(--glow); }
.region.live .stat::before { background: var(--glow); box-shadow: 0 0 0 4px rgba(61, 219, 176, 0.2); animation: pulse 1.8s infinite; }
.region b { font-family: var(--font-display); font-weight: 400; font-size: 38px; line-height: 1; margin-top: auto; padding-top: 34px; letter-spacing: -0.01em; }
.region p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.region.live p { color: var(--night-muted); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { padding: 32px; border-radius: 22px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.plan.feature { background: var(--night); color: var(--night-text); border-color: var(--night); position: relative; }
.plan.feature .muted { color: var(--night-muted); }
.plan .h3 { font-size: 22px; }
.plan .for { margin: 6px 0 0; font-size: 14.5px; }
.plan .price { font-family: var(--font-display); font-size: 44px; line-height: 1; margin: 28px 0 0; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--accent); }
.plan.feature li svg { color: var(--glow); }
.plan .btn { margin-top: auto; justify-content: center; }
.badge { position: absolute; top: 20px; inset-inline-end: 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; padding: 5px 10px; border-radius: 999px; background: var(--glow); color: var(--night); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: 19px; font-weight: 550; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: transform 0.4s var(--ease), background 0.3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease); }
.faq details[open] summary i { background: var(--ink); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq .answer { padding: 0 0 26px; color: var(--ink-2); max-width: 680px; }
.faq .answer p { margin: 0; }

/* ---------- CTA ---------- */
.cta { padding: 0 0 clamp(80px, 10vw, 120px); }
.cta-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 30px; padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px); background: var(--night); color: var(--night-text); text-align: center; }
.cta-card::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 180deg at 50% 50%, rgba(61, 219, 176, 0.0), rgba(61, 219, 176, 0.22), rgba(232, 119, 74, 0.14), rgba(61, 219, 176, 0.0)); animation: spin 18s linear infinite; }
.cta-card::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 29px; background: radial-gradient(ellipse at 50% 0%, rgba(14, 23, 41, 0.6), var(--night) 70%); }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-card .h2 { margin-inline: auto; max-width: 820px; }
.cta-card .h2 em { color: var(--glow); }
.cta-card .lede { margin-inline: auto; color: var(--night-muted); }
.cta-card .hero-actions { justify-content: center; }
.cta-card .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.cta-card .btn-ghost:hover { border-color: #fff; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot-grid h4 { margin: 0 0 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.foot-grid a:hover { color: var(--accent); }
.foot-about { margin: 16px 0 0; color: var(--muted); font-size: 15px; max-width: 340px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.wordmark { font-family: var(--font-display); font-size: clamp(80px, 19vw, 260px); line-height: 0.8; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1px var(--line-strong); margin: 56px 0 0; user-select: none; text-align: center; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .split-line > span { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .console { transform: none; max-width: 620px; }
  [dir="rtl"] .console { transform: none; }
  .workforce { grid-template-columns: repeat(2, 1fr); }
  .config-list { grid-template-columns: repeat(2, 1fr); }
  .regions { grid-template-columns: repeat(2, 1fr); }
  .modes { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-toggle { display: block; }
  .nav-signin { display: list-item; }
  .menu-open .nav-links {
    display: grid; position: absolute; top: 72px; inset-inline: 12px; padding: 12px; gap: 2px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  }
  .menu-open .nav-links a { padding: 12px 14px; font-size: 16px; }
  .section-head, .switcher, .everywhere, .faq-wrap { grid-template-columns: 1fr; }
  .section-head .lede { justify-self: start; }
  .problem-grid, .trust-grid, .plans { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow::before, .flow-line { display: none; }
  .flow-step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; text-align: start; padding: 0; }
  .flow-step b { margin-top: 4px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 120px; }
  .mock-app { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .mock-kpis .kpi:last-child { display: none; }
  .workforce, .config-list, .regions { grid-template-columns: 1fr; }
  .mode-rail { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .mode { padding: 12px 2px; font-size: 9.5px; letter-spacing: 0; }
  .float-chip { display: none; }
  .devices { height: 400px; }
  .device.phone { width: 160px; height: 320px; }
  .nav-cta .btn-primary { padding: 0 14px; }
}

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

/* ---------- Legal pages ---------- */
.legal-header { border-bottom: 1px solid var(--line); background: rgba(246, 244, 239, 0.9); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.legal-header .nav { height: 64px; }
.legal { padding: 64px 0 96px; }
.legal .wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: 96px; font-size: 14px; }
.legal-toc p { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: toc; }
.legal-toc a { color: var(--ink-2); }
.legal-toc a:hover { color: var(--accent); }
.prose { max-width: 760px; }
.prose h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -0.02em; margin: 14px 0 0; }
.prose .updated { color: var(--muted); font-size: 15px; margin: 18px 0 40px; }
.prose h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 48px 0 12px; scroll-margin-top: 88px; }
.prose h3 { font-size: 17px; font-weight: 600; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-inline-start: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
.prose th, .prose td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; background: var(--paper-2); }
.callout { padding: 18px 20px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); font-size: 15.5px; margin: 0 0 32px; }
.legal-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.legal-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.legal-footer a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .legal .wrap { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
  .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { display: none; }
  .prose td { border: 0; padding: 4px 0; }
  .prose tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
}
