/* ============================================================
   StarkGate — marketing site shared styles
   Mirrors the console design system: white surfaces, gray
   hairlines, a single rosé-red accent, mono for technical truth.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800&display=swap');

:root {
  /* brand */
  --sg-brand: #d6455d;
  --sg-brand-hover: #c23a51;
  --sg-brand-light: #e06a7c;
  --sg-brand-wash: #fdf2f4;
  --sg-logo-bolt: #dc2626;

  /* ink & surfaces */
  --sg-ink: #111827;
  --sg-body: #374151;
  --sg-muted: #6b7280;
  --sg-faint: #9ca3af;
  --sg-hairline: #e5e7eb;
  --sg-hairline-soft: #f0f1f3;
  --sg-surface: #f9fafb;
  --sg-canvas: #ffffff;
  --sg-dark: #0a0a0a;
  --sg-dark-2: #161616;

  /* semantic */
  --sg-success: #10b981;  --sg-success-100: #d1fae5;  --sg-success-700: #047857;
  --sg-warn: #f59e0b;     --sg-warn-100: #fef3c7;     --sg-warn-700: #b45309;
  --sg-danger: #d6455d;
  --sg-info: #0ea5e9;     --sg-info-100: #e0f2fe;     --sg-info-700: #0369a1;
  --sg-global: #8b5cf6;   --sg-global-100: #ede9fe;   --sg-global-700: #6d28d9;
  --sg-ai: #6366f1;       --sg-ai-100: #eef2ff;       --sg-ai-600: #4f46e5;

  /* type */
  --sg-font-display: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --sg-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --sg-font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* radius */
  --sg-r-sm: 8px;
  --sg-r-md: 12px;
  --sg-r-lg: 16px;
  --sg-r-xl: 22px;

  --sg-shadow-sm: 0 1px 2px rgba(17,24,39,.05);
  --sg-shadow-card: 0 1px 3px rgba(17,24,39,.06), 0 8px 24px -16px rgba(17,24,39,.18);
  --sg-shadow-pop: 0 20px 50px -24px rgba(17,24,39,.35);

  --sg-maxw: 1180px;
}

/* ----- reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sg-font-sans);
  color: var(--sg-body);
  background: var(--sg-canvas);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--sg-font-display); color: var(--sg-ink); margin: 0; letter-spacing: -0.02em; line-height: 1.08; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--sg-brand); outline-offset: 2px; border-radius: 4px; }

/* RTL: Hebrew uses Heebo for sans + display; mono stays for technical truth */
html[dir="rtl"] {
  --sg-font-sans: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --sg-font-display: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { letter-spacing: -0.01em; }
html[dir="rtl"] .mono, html[dir="rtl"] .kicker, html[dir="rtl"] code { direction: ltr; unicode-bidi: embed; }

/* ----- layout ----- */
.wrap { width: 100%; max-width: var(--sg-maxw); margin: 0 auto; padding-inline: 28px; }
.section { padding-block: 96px; }
.section-tight { padding-block: 64px; }
.mono { font-family: var(--sg-font-mono); font-variant-ligatures: none; }

.kicker {
  font-family: var(--sg-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sg-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.kicker::before {
  content: "";
  width: 14px; height: 2px;
  background: var(--sg-brand);
  display: inline-block;
}
html[dir="rtl"] .kicker { direction: ltr; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sg-font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sg-muted);
  border: 1px solid var(--sg-hairline);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--sg-canvas);
  white-space: nowrap;
}

h1.display { font-size: clamp(38px, 6vw, 66px); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -0.03em; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--sg-muted); line-height: 1.55; max-width: 56ch; }

.text-brand { color: var(--sg-brand); }
.text-ink { color: var(--sg-ink); }

/* inline brand name "StarkGate" — matches the logo wordmark (Stark ink / Gate gray) */
.sg-name { font-family: 'Geist', var(--sg-font-sans); font-weight: 600; letter-spacing: -0.01em; }
.sg-name .sg-stark { color: var(--sg-ink); }
.sg-name .sg-gate { color: var(--sg-muted); }

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--sg-r-sm);
  padding: 11px 18px;
  font-size: 15px; font-weight: 600;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sg-brand); color: #fff; }
.btn-primary:hover { background: var(--sg-brand-hover); }
.btn-secondary { background: #fff; color: var(--sg-ink); border-color: var(--sg-hairline); }
.btn-secondary:hover { border-color: var(--sg-ink); }
.btn-ghost { background: transparent; color: var(--sg-body); }
.btn-ghost:hover { color: var(--sg-ink); }
.btn-dark { background: var(--sg-dark); color: #fff; }
.btn-dark:hover { background: #2a2a2a; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-soon { position: relative; }
.btn .soon-tag {
  font-family: var(--sg-font-mono);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.22); color: #fff;
  border-radius: 999px; padding: 2px 7px; font-weight: 500;
}

/* ----- badges / pills ----- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px; font-weight: 600;
  font-family: var(--sg-font-mono);
  letter-spacing: .01em;
}
.pill .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.pill-success { background: var(--sg-success-100); color: var(--sg-success-700); }
.pill-warn { background: var(--sg-warn-100); color: var(--sg-warn-700); }
.pill-danger { background: var(--sg-brand-wash); color: var(--sg-brand-hover); }
.pill-info { background: var(--sg-info-100); color: var(--sg-info-700); }
.pill-global { background: var(--sg-global-100); color: var(--sg-global-700); }
.pill-ai { background: var(--sg-ai-100); color: var(--sg-ai-600); }
.pill-neutral { background: var(--sg-surface); color: var(--sg-muted); border: 1px solid var(--sg-hairline); }

/* ----- cards ----- */
.card {
  background: #fff;
  border: 1px solid var(--sg-hairline);
  border-radius: var(--sg-r-md);
  padding: 24px;
}
.card-xl { border-radius: var(--sg-r-lg); }

/* ----- nav ----- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--sg-hairline);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .mark { width: 26px; height: 26px; }
.brand .word { font-family: var(--sg-font-display); font-weight: 600; font-size: 18px; color: var(--sg-ink); letter-spacing: -0.01em; }
.brand .word .gt { color: var(--sg-muted); font-weight: 400; }
.footer .word .gt { color: #9aa0a8; font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: 10px; }
.nav-links a {
  font-size: 14px; color: var(--sg-muted); padding: 8px 12px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--sg-ink); background: var(--sg-surface); }
.nav-links a.active { color: var(--sg-ink); font-weight: 500; }
.nav-right { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--sg-hairline); border-radius: 999px;
  padding: 2px; background: #fff; font-family: var(--sg-font-mono);
}
.lang-toggle button {
  border: none; background: transparent; color: var(--sg-muted);
  font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  letter-spacing: .03em; transition: background .15s, color .15s;
}
.lang-toggle button.on { background: var(--sg-ink); color: #fff; }

.nav-burger { display: none; border: 1px solid var(--sg-hairline); background:#fff; border-radius: 8px; width: 38px; height: 38px; align-items: center; justify-content: center; }
.nav-burger svg { width: 18px; height: 18px; }

/* ----- footer ----- */
.footer { background: var(--sg-dark); color: #cfd2d6; padding-block: 64px 40px; }
.footer a { color: #cfd2d6; }
.footer a:hover { color: #fff; }
.footer .word { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h5 { font-family: var(--sg-font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6b7280; margin: 0 0 14px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #232323; font-size: 13px; color: #6b7280; }
html[dir="rtl"] .footer-bottom .mono { direction: ltr; }

/* ----- generic grids ----- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ----- feature icon tile ----- */
.ico {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--sg-hairline); background: var(--sg-surface);
  color: var(--sg-ink); flex: none;
}
.ico svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ----- reveal on scroll (progressive enhancement — only hides when JS active) ----- */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ----- lang visibility helpers ----- */
[data-only="he"] { display: none; }
html[dir="rtl"] [data-only="en"] { display: none; }
html[dir="rtl"] [data-only="he"] { display: revert; }

/* ----- responsive ----- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .section { padding-block: 68px; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .wrap { padding-inline: 20px; }
}

/* mobile menu sheet */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; position: fixed; inset: 64px 0 0; z-index: 55; background: #fff; padding: 24px 28px; }
.mobile-menu a { display: block; padding: 14px 0; font-size: 18px; color: var(--sg-ink); border-bottom: 1px solid var(--sg-hairline-soft); }

/* ============================================================
   SECTION HEADS (shared)
   ============================================================ */
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head .kicker { margin-bottom: 16px; }
.sec-head .section-title { margin-bottom: 16px; }
html[dir="rtl"] .sec-head { margin-inline: 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 72px; padding-bottom: 60px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lede { margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { font-size: 12.5px; color: var(--sg-faint); letter-spacing: .01em; }
html[dir="rtl"] .hero-trust { direction: ltr; text-align: right; }

/* gate viz */
.hero-viz { display: flex; flex-direction: column; align-items: stretch; }
.viz-card {
  background: #fff; border: 1px solid var(--sg-hairline);
  border-radius: var(--sg-r-lg); padding: 22px;
  box-shadow: var(--sg-shadow-card);
}
.viz-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.viz-req { font-size: 13.5px; font-weight: 600; color: var(--sg-ink); direction: ltr; }
.viz-verdict { transition: opacity .25s; }
.viz-meta { font-size: 11.5px; color: var(--sg-faint); margin-bottom: 18px; direction: ltr; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
html[dir="rtl"] .viz-meta { justify-content: flex-end; }
.viz-meta .sep { opacity: .5; }

.viz-stages { display: flex; flex-direction: column; gap: 8px; }
.vstage {
  display: grid; grid-template-columns: 14px 64px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--sg-hairline); border-radius: var(--sg-r-sm);
  background: var(--sg-surface); transition: border-color .2s, background .2s, box-shadow .2s;
}
.vstage-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--sg-hairline); border: 1px solid #d6d9de; transition: background .2s, border-color .2s, box-shadow .2s; }
.vstage-name { font-size: 11px; color: var(--sg-muted); letter-spacing: .06em; font-weight: 600; direction: ltr; }
.vstage-label { font-size: 13px; color: var(--sg-body); }
.vstage-status { font-family: var(--sg-font-mono); font-size: 11.5px; color: var(--sg-faint); direction: ltr; white-space: nowrap; }
.vstage.active { border-color: var(--sg-ink); background: #fff; box-shadow: 0 0 0 3px rgba(17,24,39,.04); }
.vstage.active .vstage-dot { background: var(--sg-ink); border-color: var(--sg-ink); }
.vstage.s-ok .vstage-dot { background: var(--sg-success); border-color: var(--sg-success); box-shadow: 0 0 0 3px var(--sg-success-100); }
.vstage.s-ok .vstage-status { color: var(--sg-success-700); }
.vstage.s-block .vstage-dot { background: var(--sg-brand); border-color: var(--sg-brand); box-shadow: 0 0 0 3px var(--sg-brand-wash); }
.vstage.s-block { border-color: #f2c9d1; background: var(--sg-brand-wash); }
.vstage.s-block .vstage-status { color: var(--sg-brand-hover); font-weight: 600; }
.vstage.s-observe .vstage-dot { background: var(--sg-warn); border-color: var(--sg-warn); box-shadow: 0 0 0 3px var(--sg-warn-100); }
.vstage.s-observe .vstage-status { color: var(--sg-warn-700); }
.vstage.s-na { opacity: .45; }
.vstage.s-na .vstage-status { color: var(--sg-faint); }

.viz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sg-hairline-soft); }
.viz-origin { font-size: 12.5px; font-weight: 600; color: var(--sg-success-700); transition: opacity .25s; direction: ltr; }
.viz-origin.blocked { color: var(--sg-brand-hover); }
.viz-legend { display: flex; gap: 12px; font-size: 10.5px; color: var(--sg-faint); }
.viz-legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.viz-legend i { width: 7px; height: 7px; border-radius: 999px; display: inline-block; }
.d-g { background: var(--sg-success); }
.d-a { background: var(--sg-warn); }
.d-r { background: var(--sg-brand); }
.viz-caption { text-align: center; font-size: 11.5px; color: var(--sg-faint); margin-top: 16px; letter-spacing: .02em; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.strip { border-block: 1px solid var(--sg-hairline); background: var(--sg-surface); }
.strip-inner { display: flex; align-items: center; justify-content: center; gap: 18px; padding-block: 16px; flex-wrap: wrap; }
.strip-item { font-size: 12.5px; color: var(--sg-muted); }
.strip-item b { font-weight: 700; }
.strip-dot { width: 4px; height: 4px; border-radius: 999px; background: var(--sg-hairline); }

/* ============================================================
   THREE LAYERS
   ============================================================ */
.layers-grid { margin-top: 8px; }
.layer-card { display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s, transform .2s; }
.layer-card:hover { border-color: #d8dbe0; box-shadow: var(--sg-shadow-card); transform: translateY(-2px); }
.layer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.layer-title { font-size: 21px; margin-bottom: 10px; }
.layer-body { font-size: 14.5px; color: var(--sg-muted); line-height: 1.55; flex: 1; }
.layer-foot { font-size: 11.5px; color: var(--sg-faint); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--sg-hairline-soft); letter-spacing: .02em; }
html[dir="rtl"] .layer-foot { direction: ltr; text-align: right; }

/* ============================================================
   MEASURE BEFORE YOU BLOCK
   ============================================================ */
.measure { background: var(--sg-surface); border-block: 1px solid var(--sg-hairline); }
.measure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.measure-copy .kicker { margin-bottom: 16px; }
.measure-copy .section-title { margin-bottom: 16px; }
.measure-copy .lede { margin-bottom: 26px; }
.measure-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.measure-list li { position: relative; padding-inline-start: 26px; font-size: 15px; color: var(--sg-body); }
.measure-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--sg-brand);
}
.measure-list li b { color: var(--sg-ink); font-weight: 600; }

.demo-card { background: #fff; border: 1px solid var(--sg-hairline); border-radius: var(--sg-r-lg); padding: 20px; box-shadow: var(--sg-shadow-card); }
.demo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-rule { font-size: 12.5px; color: var(--sg-ink); font-weight: 600; direction: ltr; }
.seg { display: inline-flex; background: var(--sg-surface); border: 1px solid var(--sg-hairline); border-radius: 999px; padding: 2px; }
.seg button { border: none; background: transparent; font-size: 12px; font-weight: 600; color: var(--sg-muted); padding: 5px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.seg button.on[data-mode="shadow"] { background: var(--sg-warn); color: #fff; }
.seg button.on[data-mode="enforce"] { background: var(--sg-brand); color: #fff; }
.demo-divider { height: 1px; background: var(--sg-hairline-soft); margin: 16px 0; }
.demo-feed { display: flex; flex-direction: column; gap: 8px; }
.demo-item { display: grid; grid-template-columns: 12px 1fr auto auto; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--sg-hairline-soft); border-radius: var(--sg-r-sm); background: var(--sg-surface); }
.demo-item-dot { width: 8px; height: 8px; border-radius: 999px; }
.demo-item-req { font-size: 12px; color: var(--sg-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; }
.demo-item-meta { font-size: 11px; color: var(--sg-faint); }
.demo-item-pill { font-size: 10.5px; padding: 2px 8px; }
.demo-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sg-hairline-soft); font-size: 12px; color: var(--sg-muted); }
html[dir="rtl"] .demo-foot, html[dir="rtl"] .demo-rule, html[dir="rtl"] .demo-item-req { text-align: right; }
.demo-caption { text-align: center; font-size: 11.5px; color: var(--sg-faint); margin-top: 14px; }

/* ============================================================
   AI RULE-ASSIST
   ============================================================ */
.ai-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: stretch; }
.ai-panel { background: var(--sg-dark); border-radius: var(--sg-r-lg); padding: 24px; color: #e7e9ec; display: flex; flex-direction: column; }
.ai-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ai-panel-title { font-size: 12px; color: #8b8f96; letter-spacing: .04em; }
.ai-code { background: #141414; border: 1px solid #242424; border-radius: var(--sg-r-md); padding: 18px; font-size: 13px; line-height: 1.9; flex: 1; direction: ltr; }
.ai-ln { color: #c8ccd2; white-space: nowrap; overflow-x: auto; }
.ai-k { color: #6b7280; display: inline-block; min-width: 56px; }
.ai-op { color: var(--sg-info); }
.ai-s { color: #e06a7c; }
.ai-c { color: #6b7280; }
.ai-ok { color: var(--sg-success); }
.ai-panel-actions { display: flex; gap: 10px; margin-top: 18px; }
.ai-panel-actions .btn-secondary { background: transparent; color: #c8ccd2; border-color: #2c2c2c; }
.ai-panel-actions .btn-secondary:hover { border-color: #4a4a4a; color: #fff; }

.ai-side { background: #fff; border: 1px solid var(--sg-hairline); border-radius: var(--sg-r-lg); padding: 24px; display: flex; flex-direction: column; }
.ai-side-title { font-size: 18px; margin-bottom: 6px; }
.ai-side-sub { font-size: 13.5px; color: var(--sg-muted); margin-bottom: 18px; }
.provider { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--sg-hairline); border-radius: var(--sg-r-sm); margin-bottom: 8px; }
.provider-name { font-size: 13.5px; color: var(--sg-ink); font-weight: 600; direction: ltr; }
.provider-hi { border-color: #bbecd5; background: #f3fcf8; }
.ai-side-note { font-size: 12.5px; color: var(--sg-muted); line-height: 1.55; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sg-hairline-soft); }

/* ============================================================
   WHO IT'S FOR
   ============================================================ */
.whofor { background: var(--sg-surface); border-block: 1px solid var(--sg-hairline); }
.who-card { background: #fff; border: 1px solid var(--sg-hairline); border-radius: var(--sg-r-md); padding: 22px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.who-card:hover { border-color: #d8dbe0; box-shadow: var(--sg-shadow-card); transform: translateY(-2px); }
.who-card .ico { margin-bottom: 16px; }
.who-card h4 { font-size: 16px; margin-bottom: 8px; line-height: 1.25; }
.who-card p { font-size: 13.5px; color: var(--sg-muted); line-height: 1.5; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--sg-dark); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 64px; flex-wrap: wrap; }
.kicker-dark { color: #8b8f96; }
.kicker-dark::before { background: var(--sg-brand-light); }
.cta-title { color: #fff; font-size: clamp(26px, 3.4vw, 38px); max-width: 18ch; line-height: 1.08; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-dark-btn { background: #fff; color: var(--sg-ink); }
.cta-dark-btn:hover { background: #e9eaec; }
.footer-tag { font-size: 14px; color: #9ca3af; margin-top: 14px; max-width: 30ch; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .measure-grid, .ai-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   INNER PAGE HEADER
   ============================================================ */
.page-head { padding-top: 64px; padding-bottom: 8px; border-bottom: 1px solid var(--sg-hairline); }
.page-head .wrap { max-width: 820px; }
.page-head .kicker { margin-bottom: 18px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.035em; margin-bottom: 18px; }
.page-head .lede { margin-bottom: 40px; }

/* ============================================================
   FEATURE GROUPS
   ============================================================ */
.feat-group { padding-block: 56px; border-bottom: 1px solid var(--sg-hairline-soft); }
.feat-group:last-of-type { border-bottom: none; }
.feat-layout { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.feat-aside { position: sticky; top: 92px; }
.feat-aside .kicker { margin-bottom: 14px; }
.feat-aside h2 { font-size: 26px; letter-spacing: -0.025em; margin-bottom: 12px; }
.feat-aside p { font-size: 14px; color: var(--sg-muted); line-height: 1.55; margin-bottom: 16px; }
.feat-aside .pill { margin-inline-end: 6px; }

.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feat-item { display: flex; gap: 13px; padding: 16px; border: 1px solid var(--sg-hairline); border-radius: var(--sg-r-md); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.feat-item:hover { border-color: #d8dbe0; box-shadow: var(--sg-shadow-sm); transform: translateY(-1px); }
.feat-check { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--sg-brand-wash); color: var(--sg-brand); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.feat-check svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.feat-item h4 { font-size: 14.5px; margin-bottom: 4px; line-height: 1.3; }
.feat-item p { font-size: 13px; color: var(--sg-muted); line-height: 1.5; }
.feat-item code { font-family: var(--sg-font-mono); font-size: 12px; color: var(--sg-body); background: var(--sg-surface); padding: 1px 5px; border-radius: 4px; }

@media (max-width: 880px) {
  .feat-layout { grid-template-columns: 1fr; gap: 24px; }
  .feat-aside { position: static; }
  .feat-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ARCHITECTURE PAGE
   ============================================================ */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--sg-hairline); border-radius: var(--sg-r-lg); overflow: hidden; background: #fff; }
.stat { padding: 28px 24px; border-inline-end: 1px solid var(--sg-hairline); }
.stat:last-child { border-inline-end: none; }
.stat .num { font-family: var(--sg-font-display); font-size: 34px; font-weight: 600; color: var(--sg-ink); letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.stat .num .text-brand { color: var(--sg-brand); }
.stat .lbl { font-size: 13px; color: var(--sg-muted); line-height: 1.4; }

.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stack-card { border: 1px solid var(--sg-hairline); border-radius: var(--sg-r-md); padding: 20px; background: #fff; }
.stack-card .stack-name { font-family: var(--sg-font-mono); font-size: 15px; font-weight: 600; color: var(--sg-ink); margin-bottom: 6px; direction: ltr; }
.stack-card .stack-role { font-size: 13px; color: var(--sg-muted); line-height: 1.5; }
.stack-card .stack-tag { font-family: var(--sg-font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--sg-faint); margin-bottom: 14px; }

.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.flow-step { border: 1px solid var(--sg-hairline); border-radius: var(--sg-r-md); padding: 20px; background: #fff; position: relative; }
.flow-step .step-n { font-family: var(--sg-font-mono); font-size: 12px; color: var(--sg-brand); font-weight: 600; margin-bottom: 12px; display: block; }
.flow-step h4 { font-size: 16px; margin-bottom: 8px; }
.flow-step p { font-size: 13px; color: var(--sg-muted); line-height: 1.5; }
.flow-step .arrow { position: absolute; top: 50%; inset-inline-end: -11px; transform: translateY(-50%); color: var(--sg-faint); z-index: 2; }
html[dir="rtl"] .flow-step .arrow { transform: translateY(-50%) scaleX(-1); }
.flow-step:last-child .arrow { display: none; }
.flow-step .arrow svg { width: 16px; height: 16px; }

.gloss { width: 100%; border-collapse: collapse; border: 1px solid var(--sg-hairline); border-radius: var(--sg-r-md); overflow: hidden; }
.gloss thead th { background: var(--sg-surface); font-family: var(--sg-font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--sg-muted); text-align: start; padding: 12px 18px; font-weight: 500; border-bottom: 1px solid var(--sg-hairline); }
.gloss tbody td { padding: 14px 18px; font-size: 14px; color: var(--sg-body); border-bottom: 1px solid var(--sg-hairline-soft); vertical-align: top; }
.gloss tbody tr:last-child td { border-bottom: none; }
.gloss tbody tr:hover { background: #fafbfc; }
.gloss .term { font-family: var(--sg-font-mono); font-weight: 600; color: var(--sg-ink); white-space: nowrap; }

@media (max-width: 880px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-inline-end: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--sg-hairline); }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-step .arrow { display: none; }
}

/* ============================================================
   PRICING PAGE
   ============================================================ */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.price-card { border: 1px solid var(--sg-hairline); border-radius: var(--sg-r-lg); padding: 32px; background: #fff; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--sg-ink); box-shadow: var(--sg-shadow-card); position: relative; }
.price-card.featured::before { content: ""; position: absolute; inset: 0; border-radius: var(--sg-r-lg); border: 1px solid var(--sg-ink); pointer-events: none; }
.price-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.price-name { font-size: 22px; }
.price-sub { font-size: 14px; color: var(--sg-muted); margin-bottom: 24px; line-height: 1.5; min-height: 42px; }
.price-amount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 24px; }
.price-amount .big { font-family: var(--sg-font-display); font-size: 44px; font-weight: 600; color: var(--sg-ink); letter-spacing: -0.03em; line-height: 1; }
.price-amount .per { font-size: 14px; color: var(--sg-muted); }
.price-card .btn { width: 100%; }
.price-card .btn[disabled], .price-card .btn.is-soon { pointer-events: none; }
.price-feats { list-style: none; margin: 24px 0 0; padding: 24px 0 0; border-top: 1px solid var(--sg-hairline-soft); display: flex; flex-direction: column; gap: 12px; }
.price-feats li { display: flex; gap: 10px; font-size: 14px; color: var(--sg-body); align-items: flex-start; }
.price-feats li .pc { flex: none; width: 18px; height: 18px; color: var(--sg-success); margin-top: 1px; }
.price-feats li .pc svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.price-feats li.muted { color: var(--sg-faint); }
.price-feats li.muted .pc { color: var(--sg-faint); }
.price-note { text-align: center; font-size: 13px; color: var(--sg-muted); margin-top: 28px; }

.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--sg-hairline); padding: 22px 0; }
.faq-item h4 { font-size: 17px; margin-bottom: 8px; }
.faq-item p { font-size: 14.5px; color: var(--sg-muted); line-height: 1.6; }

@media (max-width: 760px) {
  .price-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FORMS / CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 28px; align-items: start; }
.form-card { background:#fff; border:1px solid var(--sg-hairline); border-radius: var(--sg-r-lg); padding: 28px; }
.field { display:flex; flex-direction:column; gap:7px; margin-bottom:16px; }
.field label { font-size:12.5px; color:var(--sg-muted); font-weight:600; letter-spacing:.01em; }
.field label .req { color:var(--sg-brand); }
.field input, .field textarea, .field select {
  font-family: var(--sg-font-sans); font-size:14px; color:var(--sg-ink);
  background:#fff; border:1px solid var(--sg-hairline); border-radius: var(--sg-r-sm);
  padding:11px 13px; width:100%; transition:border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color:var(--sg-faint); }
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color:var(--sg-brand); box-shadow:0 0 0 3px var(--sg-brand-wash); }
.field textarea { resize:vertical; min-height:120px; line-height:1.5; }
.field.mono-field input { font-family:var(--sg-font-mono); }
html[dir="rtl"] .field.mono-field input { direction:ltr; text-align:right; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-seg { display:inline-flex; flex-wrap:wrap; gap:8px; }
.form-seg button { border:1px solid var(--sg-hairline); background:#fff; color:var(--sg-muted); font-size:13px; font-weight:600; padding:8px 14px; border-radius:999px; transition:border-color .15s, color .15s, background .15s; }
.form-seg button.on { background:var(--sg-ink); color:#fff; border-color:var(--sg-ink); }
.form-actions { display:flex; align-items:center; gap:14px; margin-top:6px; }
.form-actions .btn { padding:12px 22px; }
.form-hint { font-size:12px; color:var(--sg-faint); }
.form-error { font-size:12.5px; color:var(--sg-brand-hover); margin-top:2px; min-height:0; }

.form-success { text-align:center; padding:40px 24px; }
.form-success .ok-badge { width:54px; height:54px; border-radius:999px; background:var(--sg-success-100); color:var(--sg-success-700); display:inline-flex; align-items:center; justify-content:center; margin-bottom:18px; }
.form-success .ok-badge svg { width:26px; height:26px; stroke:currentColor; stroke-width:2.4; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.form-success h3 { font-size:22px; margin-bottom:10px; }
.form-success p { color:var(--sg-muted); font-size:14.5px; max-width:42ch; margin:0 auto; }

.contact-aside .info-card { background:var(--sg-surface); border:1px solid var(--sg-hairline); border-radius: var(--sg-r-md); padding:22px; margin-bottom:16px; }
.contact-aside h4 { font-size:14px; margin-bottom:10px; }
.contact-aside .mail { font-family:var(--sg-font-mono); font-size:14px; color:var(--sg-ink); font-weight:600; direction:ltr; display:inline-block; }
.contact-aside p { font-size:13.5px; color:var(--sg-muted); line-height:1.6; }
.contact-aside ul { list-style:none; margin:10px 0 0; padding:0; display:flex; flex-direction:column; gap:10px; }
.contact-aside ul li { display:flex; gap:10px; font-size:13.5px; color:var(--sg-body); align-items:flex-start; }
.contact-aside ul li .pc { flex:none; width:16px; height:16px; color:var(--sg-success); margin-top:2px; }
.contact-aside ul li .pc svg { width:16px; height:16px; stroke:currentColor; stroke-width:2.2; fill:none; stroke-linecap:round; stroke-linejoin:round; }

@media (max-width: 860px){
  .contact-grid { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }
}

/* ============================================================
   ENTERPRISE PAGE
   ============================================================ */
.ent-hero { padding-top:64px; padding-bottom:8px; }
.ent-hero .wrap { max-width:840px; }
.ent-hero .pill { margin-bottom:18px; }
.ent-hero h1 { font-size:clamp(34px,5vw,52px); letter-spacing:-0.035em; margin-bottom:18px; }
.ent-hero .lede { margin-bottom:28px; }
.ent-hero .ent-cta { display:flex; gap:12px; flex-wrap:wrap; }

.ent-feats { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.ent-feat { border:1px solid var(--sg-hairline); border-radius:var(--sg-r-md); padding:24px; background:#fff; transition:border-color .2s, box-shadow .2s, transform .2s; }
.ent-feat:hover { border-color:#d8dbe0; box-shadow:var(--sg-shadow-card); transform:translateY(-2px); }
.ent-feat .ico { margin-bottom:16px; }
.ent-feat h3 { font-size:17px; margin-bottom:8px; }
.ent-feat p { font-size:13.5px; color:var(--sg-muted); line-height:1.55; }

@media (max-width:880px){ .ent-feats { grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .ent-feats { grid-template-columns:1fr; } }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare-wrap { overflow-x:auto; border:1px solid var(--sg-hairline); border-radius:var(--sg-r-lg); -webkit-overflow-scrolling:touch; }
.compare { width:100%; border-collapse:collapse; min-width:760px; }
.compare th, .compare td { padding:15px 20px; text-align:start; border-bottom:1px solid var(--sg-hairline-soft); vertical-align:middle; }
.compare thead th { background:var(--sg-surface); font-family:var(--sg-font-mono); font-size:11px; letter-spacing:.07em; text-transform:uppercase; color:var(--sg-muted); font-weight:500; border-bottom:1px solid var(--sg-hairline); white-space:nowrap; }
.compare thead th.sg-col { background:var(--sg-brand-wash); color:var(--sg-brand-hover); border-top:2px solid var(--sg-brand); }
.compare thead th.sg-col .sg-name { color:inherit; }
.compare thead th.sg-col .sg-name .sg-stark, .compare thead th.sg-col .sg-name .sg-gate { color:var(--sg-brand-hover); }
.compare .cap { color:var(--sg-ink); font-weight:500; font-size:14px; width:30%; }
.compare td.sg-col { background:#fdf6f7; }
.compare tbody tr:last-child td { border-bottom:none; }
.compare .val { color:var(--sg-muted); font-size:13.5px; }
.compare td.sg-col .val { color:var(--sg-ink); font-weight:500; }
html[dir="rtl"] .compare .val[data-ltr], html[dir="rtl"] .compare .cap[data-ltr] { direction:ltr; text-align:right; }
.cmp-mark { display:inline-flex; align-items:center; gap:8px; font-size:13px; color:var(--sg-muted); }
.cmp-ic { width:20px;height:20px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;flex:none; }
.cmp-yes .cmp-ic { background:var(--sg-success-100); color:var(--sg-success-700); }
.sg-col .cmp-yes .cmp-ic { background:var(--sg-brand); color:#fff; }
.cmp-yes svg, .cmp-no svg { width:12px;height:12px;stroke:currentColor;stroke-width:2.6;fill:none;stroke-linecap:round;stroke-linejoin:round; }
.cmp-no .cmp-ic { background:var(--sg-hairline); color:var(--sg-faint); }
.cmp-part .cmp-ic { background:var(--sg-warn-100); color:var(--sg-warn-700); font-family:var(--sg-font-mono); font-size:13px; font-weight:700; }
.cmp-yes { color:var(--sg-success-700); }
.sg-col .cmp-yes { color:var(--sg-brand-hover); }
.cmp-part { color:var(--sg-warn-700); }
.compare-note { font-size:12px; color:var(--sg-faint); margin-top:16px; line-height:1.6; }
