/* ═══════════════════════════════════════════════════════════
   RostrOps — Landing page
   Brand: IBM Plex Sans/Mono · dark industrial · amber accent
═══════════════════════════════════════════════════════════ */

:root {
  --bg:            #0d0e11;
  --bg-2:          #0a0b0e;
  --surface:       #12141a;
  --surface-alt:   #15171f;
  --elevated:      #181b22;
  --hover:         #1e2230;

  --border:        rgba(255,255,255,.07);
  --border-strong: rgba(255,255,255,.13);
  --border-amber:  rgba(245,166,35,.22);

  --amber:         #f5a623;
  --amber-dim:     rgba(245,166,35,.09);
  --amber-soft:    rgba(245,166,35,.14);

  --green:         #1fae63;
  --green-dim:     rgba(31,174,99,.12);
  --red:           #e5484d;
  --red-dim:       rgba(229,72,77,.12);
  --blue:          #4a90d9;
  --blue-dim:      rgba(74,144,217,.13);

  --text:          #e8eaf0;
  --text-2:        #9aa0b4;
  --text-3:        #6b7185;
  --text-faint:    #4a5064;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --maxw: 1180px;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
}

img, iframe, svg { max-width: 100%; }

a { color: var(--amber); text-decoration: none; transition: color .15s; }
a:hover { color: #ffbb44; }

::selection { background: var(--amber-soft); color: #fff; }

/* ── Scroll reveal ── */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.6,.2,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* anchor offset under sticky nav */
section[id], header[id] { scroll-margin-top: 82px; }

/* ── Layout helpers ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 108px 0; position: relative; }
.section-tight { padding: 72px 0; }

/* Monospace eyebrow label */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--amber);
  opacity: .6;
}
.eyebrow.center::after {
  content: "";
  width: 22px; height: 1px;
  background: var(--amber);
  opacity: .6;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }

.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin: 20px 0 0;
  text-wrap: balance;
}
.section-head p {
  color: var(--text-2);
  font-size: 17.5px;
  margin-top: 20px;
  max-width: 620px;
}
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans);
  font-size: 14.5px; font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .16s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--amber);
  color: #17130a;
  font-weight: 600;
  border-color: var(--amber);
}
.btn-primary:hover { background: #ffbb44; color: #17130a; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text-3); background: rgba(255,255,255,.03); color: var(--text); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ═══════════ NAV ═══════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,14,17,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  height: 66px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--text-2); font-size: 14px; font-weight: 450;
  transition: color .14s;
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-login {
  color: var(--text-2); font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color .14s;
}
.nav-login:hover { color: var(--text); }
.nav-login::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  border: 1.5px solid currentColor;
}

/* ── Logo wordmark (Rostr◯ps) ── */
.logo {
  display: inline-flex; align-items: center;
  font-family: var(--sans);
  font-weight: 700; font-size: 19px; letter-spacing: -.01em;
  line-height: 1; color: var(--text);
  cursor: pointer;
}
.logo .l-rostr { color: var(--amber); }
.logo .l-o {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border: 3.5px solid var(--text);
  border-radius: 50%;
  margin: 0 1.5px;
  vertical-align: middle;
}
.logo .l-ps { color: var(--text); }

/* ═══════════ HERO ═══════════ */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  opacity: .5;
  pointer-events: none;
}
.hero-glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(245,166,35,.10), transparent 62%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }

/* ═══════════ LEGAL PAGES ═══════════ */
.legal-page {
  background:
    linear-gradient(180deg, rgba(245,166,35,.035), transparent 280px),
    var(--bg);
}
.legal-main { min-height: calc(100vh - 66px); }
.legal-hero { padding: 82px 0 34px; }
.legal-wrap { max-width: 900px; }
.legal-hero h1,
.legal-doc h1 {
  font-size: clamp(38px, 6vw, 68px);
  margin-top: 18px;
  letter-spacing: -.03em;
}
.legal-hero p {
  color: var(--text-2);
  font-size: 19px;
  margin-top: 18px;
  max-width: 760px;
}
.legal-notice {
  margin-top: 28px;
  border: 1px solid var(--border-amber);
  background: var(--amber-dim);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  max-width: 860px;
}
.legal-section { padding: 30px 0 90px; }
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.legal-card {
  display: block;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  min-height: 190px;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.legal-card:hover {
  border-color: var(--border-amber);
  background: var(--surface-alt);
  transform: translateY(-2px);
  color: var(--amber);
}
.legal-card span,
.legal-meta,
.legal-back {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber);
}
.legal-card h2 {
  color: var(--text);
  font-size: 25px;
  margin-top: 18px;
}
.legal-card p {
  color: var(--text-2);
  margin-top: 12px;
}
.legal-doc {
  max-width: 900px;
  padding-top: 72px;
  padding-bottom: 96px;
}
.legal-back {
  display: inline-flex;
  margin-bottom: 30px;
}
.legal-doc .eyebrow { margin-top: 4px; }
.legal-doc .legal-meta {
  margin-top: 18px;
  color: var(--text-3);
}
.legal-doc h2 {
  color: var(--text);
  font-size: 25px;
  margin-top: 42px;
}
.legal-doc p,
.legal-doc li {
  color: var(--text-2);
  font-size: 17px;
}
.legal-doc p { margin-top: 14px; }
.legal-doc ul {
  margin-top: 16px;
  padding-left: 22px;
}
.legal-doc li + li { margin-top: 10px; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 68px);
  margin: 26px auto 0;
  text-wrap: balance;
  max-width: 100%;
}
.hero h1 .h1-line { display: block; }
.hero h1 .hl { color: var(--amber); }
.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-2);
  max-width: 640px;
  width: 100%;
  margin: 26px auto 0;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 38px; }

/* status pill */
.hero-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .04em;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text-2);
  background: var(--surface);
}
.dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(31,174,99,.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31,174,99,.45); }
  70%  { box-shadow: 0 0 0 7px rgba(31,174,99,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,174,99,0); }
}

/* ═══════════ HERO PRODUCT MOCK ═══════════ */
.mock-composite {
  position: relative;
  margin: 62px auto 0;
  max-width: 1060px;
}
.mock-frame {
  position: relative;
  max-width: 880px;
  margin: 0 auto 0 0;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
}
.mock-topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.mock-dots { display: flex; gap: 7px; }
.mock-dots span { width: 11px; height: 11px; border-radius: 50%; background: #2a2e3a; }
.mock-url {
  font-family: var(--mono); font-size: 12px; color: var(--text-3);
  background: var(--bg); border: 1px solid var(--border);
  padding: 5px 14px; border-radius: 6px; flex: 1; max-width: 340px;
  margin: 0 auto; text-align: center;
}
.mock-body { display: grid; grid-template-columns: 210px 1fr; min-height: 440px; }

/* live embedded product UI */
.mock-live { position: relative; overflow: hidden; background: var(--bg-2); }
.mock-live iframe {
  position: absolute; top: 0; left: 0;
  width: 1440px; height: 900px;
  border: 0;
  transform-origin: top left;
  pointer-events: none;
}
.mock-live::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
  background: linear-gradient(180deg, transparent, rgba(10,11,14,.9));
  pointer-events: none;
}

/* overlapping phone embed */
.hero-phone {
  position: absolute;
  right: 0; bottom: -52px;
  width: 236px;
  z-index: 5;
  filter: drop-shadow(0 34px 60px rgba(0,0,0,.75));
  overflow: hidden;
}
.hero-phone iframe {
  position: absolute; top: 0; left: 0;
  width: 400px; height: 856px;
  border: 0;
  transform-origin: top left;
  pointer-events: none;
}

/* mock sidebar */
.mock-side { border-right: 1px solid var(--border); padding: 16px 0; background: var(--surface); }
.mock-side .ms-logo { padding: 0 18px 16px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.mock-nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 18px; font-size: 13px; color: var(--text-3);
  border-left: 3px solid transparent;
}
.mock-nav-item svg { width: 15px; height: 15px; stroke-width: 1.75; }
.mock-nav-item.active { color: var(--amber); background: var(--amber-dim); border-left-color: var(--amber); }

/* mock main / headcount */
.mock-main { padding: 22px 24px; }
.mock-h-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mock-h-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.mock-h-sub { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-top: 3px; letter-spacing: .04em; }
.mock-tabs { display: flex; gap: 4px; }
.mock-tab {
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  padding: 5px 11px; border-radius: 5px; color: var(--text-3);
}
.mock-tab.on { background: var(--elevated); color: var(--text); border: 1px solid var(--border); }

.mock-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.kpi {
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 8px; padding: 13px 14px;
}
.kpi .k-val { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.kpi .k-lab { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-top: 8px; }
.kpi .k-val.green { color: var(--green); }
.kpi .k-val.amber { color: var(--amber); }
.kpi .k-val.red { color: var(--red); }

/* headcount tree rows */
.hc-tree { display: flex; flex-direction: column; gap: 8px; }
.hc-row {
  display: grid; grid-template-columns: 1fr 132px 58px;
  align-items: center; gap: 14px;
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 15px;
  transition: border-color .15s;
}
.hc-row:hover { border-color: var(--border-strong); }
.hc-row.indent { margin-left: 22px; background: var(--surface); }
.hc-name { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.hc-name .tag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em;
  padding: 2px 6px; border-radius: 4px; text-transform: uppercase;
  border: 1px solid var(--border-strong); color: var(--text-3);
}
.hc-bar { height: 7px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; position: relative; }
.hc-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; display:block; transition: width 1.1s cubic-bezier(.22,.8,.26,1); }
.hc-count { font-family: var(--mono); font-size: 12.5px; text-align: right; }
.hc-count b { font-weight: 600; }
.hc-count .of { color: var(--text-3); }
.s-green i { background: var(--green); } .s-green .st { color: var(--green); }
.s-amber i { background: var(--amber); } .s-amber .st { color: var(--amber); }
.s-red i   { background: var(--red); }   .s-red .st   { color: var(--red); }
.s-blue i  { background: var(--blue); }  .s-blue .st  { color: var(--blue); }

/* ═══════════ LOGO STRIP ═══════════ */
.logostrip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.logostrip .wrap { padding-top: 42px; padding-bottom: 42px; }
.logostrip .ls-lab {
  text-align: center; font-family: var(--mono); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 30px;
}
.ls-row { display: flex; align-items: center; justify-content: center; gap: 46px; flex-wrap: wrap; }
.ls-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-3); opacity: .72; transition: opacity .2s;
  font-weight: 600; font-size: 17px; letter-spacing: -.01em;
}
.ls-logo:hover { opacity: 1; }
.ls-logo .glyph { width: 22px; height: 22px; display: grid; place-items: center; }
.ls-logo .glyph svg { width: 22px; height: 22px; }
.ls-note {
  text-align: center; margin-top: 26px;
  font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); letter-spacing: .04em;
}

/* ═══════════ STAT BAND ═══════════ */
.stats { background: var(--surface); border-bottom: 1px solid var(--border); }
.stats .grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat { padding: 46px 28px; border-right: 1px solid var(--border); text-align: center; }
.stat:last-child { border-right: none; }
.stat .s-num {
  font-size: 44px; font-weight: 600; letter-spacing: -.03em; line-height: 1;
  color: var(--text);
}
.stat .s-num .u { color: var(--amber); }
.stat .s-lab { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--text-2); margin-top: 12px; text-transform: uppercase; }
.stat .s-note { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ═══════════ FLOW CHAIN ═══════════ */
.flow { background: var(--bg-2); }
.flow-chain {
  display: flex; align-items: stretch; gap: 0;
  margin-top: 54px; flex-wrap: wrap; justify-content: center;
}
.flow-step {
  flex: 1; min-width: 150px;
  position: relative;
  padding: 24px 18px;
  text-align: center;
}
.flow-step .fs-idx {
  font-family: var(--mono); font-size: 11px; color: var(--amber);
  letter-spacing: .1em; margin-bottom: 14px;
}
.flow-step .fs-ico {
  width: 46px; height: 46px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border: 1px solid var(--border-amber); border-radius: 11px;
  background: var(--amber-dim); color: var(--amber);
}
.flow-step .fs-ico svg { width: 22px; height: 22px; stroke-width: 1.6; }
.flow-step h4 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.flow-step p { font-size: 12.5px; color: var(--text-3); margin-top: 7px; line-height: 1.45; }
.flow-arrow { align-self: center; color: var(--text-faint); padding: 0 2px; flex: 0 0 auto; }
.flow-arrow svg { width: 20px; height: 20px; }
.flow-caption {
  margin: 46px auto 0; max-width: 760px; text-align: center;
  font-size: 16px; color: var(--text-2); line-height: 1.6;
}
.flow-caption b { color: var(--text); font-weight: 600; }

/* ═══════════ FEATURES (bento) ═══════════ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card::after {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0; transition: opacity .3s;
}
.card:hover::after { opacity: .5; }
.card .c-ico {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--amber-dim); border: 1px solid var(--border-amber);
  color: var(--amber); margin-bottom: 18px;
}
.card .c-ico svg { width: 21px; height: 21px; stroke-width: 1.7; }
.card .c-kick { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 9px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.card .c-list { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.card .c-list li { list-style: none; display: flex; gap: 10px; font-size: 13.5px; color: var(--text-2); align-items: flex-start; }
.card .c-list li svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; margin-top: 3px; }

.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }

/* big feature card with visual */
.card-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; padding: 34px 34px; }
.card-hero .ch-copy h3 { font-size: 25px; }

/* transfer chip visual */
.xfer-vis { display: flex; flex-direction: column; gap: 10px; }
.xfer-card {
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 9px; padding: 13px 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.xfer-card .xc-left { display: flex; align-items: center; gap: 12px; }
.xfer-card .xc-badge {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  width: 38px; height: 38px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--elevated); border: 1px solid var(--border-strong); color: var(--text-2);
}
.xfer-card .xc-name { font-size: 13.5px; font-weight: 500; }
.xfer-card .xc-meta { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-top: 2px; letter-spacing: .03em; }
.pill {
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .06em;
  padding: 4px 9px; border-radius: 5px; text-transform: uppercase;
}
.pill.wait { background: var(--amber-dim); color: var(--amber); border: 1px solid var(--border-amber); }
.pill.ok   { background: var(--green-dim); color: var(--green); border: 1px solid rgba(31,174,99,.28); }
.pill.esc  { background: var(--red-dim); color: var(--red); border: 1px solid rgba(229,72,77,.28); }

/* AI insight visual */
.ai-vis { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 11px; padding: 18px; }
.ai-head { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.ai-head .ai-badge {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--amber); background: var(--amber-dim); border: 1px solid var(--border-amber);
  padding: 3px 8px; border-radius: 5px;
}
.ai-line { font-size: 13.5px; color: var(--text-2); line-height: 1.62; }
.ai-line .code { font-family: var(--mono); color: var(--amber); font-size: 12.5px; }
.ai-tags { display: flex; gap: 7px; margin-top: 15px; flex-wrap: wrap; }
.ai-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 100px; border: 1px solid var(--border-strong); color: var(--text-3);
  display: inline-flex; align-items: center; gap: 6px;
}
.ai-tag .d { width: 6px; height: 6px; border-radius: 50%; }
.ai-tag .d.r { background: var(--red); } .ai-tag .d.a { background: var(--amber); } .ai-tag .d.b { background: var(--blue); }

/* audit log visual */
.audit-vis { font-family: var(--mono); font-size: 12px; }
.audit-row {
  display: grid; grid-template-columns: 74px 1fr; gap: 14px;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
}
.audit-row:last-child { border-bottom: none; }
.audit-row .a-time { color: var(--text-faint); }
.audit-row .a-act b { color: var(--text); font-weight: 600; }
.audit-row .a-act { color: var(--text-2); }
.audit-row .a-chg { color: var(--text-3); }
.audit-row .a-chg .old { color: var(--red); } .audit-row .a-chg .new { color: var(--green); }

/* ═══════════ HOW IT WORKS ═══════════ */
.how { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.how-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 54px; }
.how-step { position: relative; padding-top: 26px; border-top: 2px solid var(--border-strong); }
.how-step.active { border-top-color: var(--amber); }
.how-step .hs-num { font-family: var(--mono); font-size: 12px; color: var(--amber); letter-spacing: .1em; }
.how-step h4 { font-size: 18px; margin: 12px 0 8px; }
.how-step p { font-size: 14px; color: var(--text-2); line-height: 1.55; }

/* ═══════════ ROLES ═══════════ */
.roles-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 50px; }
.role {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px; transition: border-color .18s;
}
.role:hover { border-color: var(--border-amber); }
.role .r-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.role .r-ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--elevated); border: 1px solid var(--border); color: var(--amber); }
.role .r-ico svg { width: 17px; height: 17px; stroke-width: 1.7; }
.role .r-plat { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); border: 1px solid var(--border); padding: 3px 7px; border-radius: 4px; }
.role h4 { font-size: 16px; margin-bottom: 5px; }
.role p { font-size: 13px; color: var(--text-3); line-height: 1.5; }
.authority-note {
  margin-top: 26px; text-align: center; font-family: var(--mono);
  font-size: 13px; color: var(--text-2); letter-spacing: .02em;
}
.authority-note .chain { color: var(--amber); }

/* ═══════════ TRUST ═══════════ */
.trust { background: var(--bg-2); }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 50px; }
.trust-item { display: flex; gap: 15px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.trust-item .t-ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: var(--amber-dim); border: 1px solid var(--border-amber); color: var(--amber); }
.trust-item .t-ico svg { width: 20px; height: 20px; stroke-width: 1.7; }
.trust-item h4 { font-size: 15.5px; margin-bottom: 5px; }
.trust-item p { font-size: 13px; color: var(--text-3); line-height: 1.5; }

/* ═══════════ CTA ═══════════ */
.cta-sec { position: relative; overflow: hidden; }
.cta-box {
  position: relative;
  border: 1px solid var(--border-amber);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 70% 130% at 50% -20%, rgba(245,166,35,.12), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 66px 40px;
  text-align: center;
  overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 0%, #000, transparent 75%);
  opacity: .4; pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box h2 { font-size: clamp(30px, 4.4vw, 50px); text-wrap: balance; }
.cta-box p { color: var(--text-2); font-size: 18px; max-width: 540px; margin: 20px auto 0; }
.cta-btns { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.cta-fine { margin-top: 24px; font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); letter-spacing: .04em; }

/* ═══════════ FOOTER ═══════════ */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 56px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .f-tag { color: var(--text-3); font-size: 13.5px; margin-top: 16px; max-width: 280px; line-height: 1.6; }
.footer h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.footer .f-col a { display: block; color: var(--text-2); font-size: 14px; margin-bottom: 11px; }
.footer .f-col a:hover { color: var(--amber); }
.footer-bot {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); letter-spacing: .03em;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1100px) {
  .col-4 { grid-column: span 6; }
  .col-2 { grid-column: span 6; }
}
@media (max-width: 900px) {
  .hero-phone { position: static; margin: 26px auto 0; }
  .nav-links { display: none; }
  .nav-inner { padding: 0 24px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .col-2, .col-3, .col-4, .col-6 { grid-column: span 2; }
  .card-hero { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .stats .grid { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .how-steps { grid-template-columns: repeat(2,1fr); }
  .roles-grid { grid-template-columns: repeat(2,1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .mock-kpis { grid-template-columns: repeat(2,1fr); }
  .flow-arrow { transform: rotate(90deg); }
  .flow-step { min-width: 45%; }
}
@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .wrap { padding: 0 20px; }
  .nav-inner { height: 60px; padding: 0 18px; gap: 14px; }
  .nav-right .btn { display: none; }
  .nav-right { gap: 0; }
  .legal-hero { padding: 58px 0 24px; }
  .legal-doc { padding-top: 54px; padding-bottom: 72px; }
  .legal-hero h1,
  .legal-doc h1 { font-size: 34px; }
  .legal-hero p,
  .legal-doc p,
  .legal-doc li { font-size: 15.5px; }
  .legal-card { min-height: auto; padding: 20px; }
  .hero { padding: 62px 0 54px; }
  .hero h1 {
    font-size: 30px;
    line-height: 1.08;
    max-width: calc(100vw - 40px);
  }
  .hero h1 .h1-line {
    display: block;
  }
  .hero-sub {
    font-size: 15.5px;
    max-width: calc(100vw - 40px);
  }
  .hero-pill {
    max-width: calc(100vw - 40px);
    white-space: normal;
    justify-content: center;
    text-align: center;
    font-size: 10.5px;
    padding: 6px 10px;
  }
  .btn {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .mock-composite {
    margin-top: 44px;
    max-width: calc(100vw - 40px);
    overflow: hidden;
  }
  .mock-live iframe,
  .hero-phone iframe {
    max-width: none;
  }
  .mock-frame { border-radius: 10px; }
  .mock-topbar { padding: 10px 12px; }
  .mock-url { min-width: 0; padding-inline: 10px; overflow: hidden; text-overflow: ellipsis; }
  .bento { grid-template-columns: 1fr; }
  .col-2, .col-3, .col-4, .col-6 { grid-column: span 1; }
  .roles-grid, .stats .grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat .s-num { font-size: 34px; }
  .stat .s-lab { font-size: 10.5px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .card { padding: 22px; border-radius: 12px; }
  .hc-row { grid-template-columns: 1fr; align-items: stretch; gap: 8px; }
  .hc-count { text-align: left; }
  .how-steps { grid-template-columns: 1fr; }
  .roles-grid { gap: 12px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bot { align-items: flex-start; flex-direction: column; }
}
