/* ============================================================
   IBUDATA — studio site
   Neutral canvas, soft hairline cards, product-preview panels.
   Light + dark, driven by tokens below.
   ============================================================ */

:root {
  /* ------------------------------------------------------------
     PALETTE: four colours, nothing else.
       Ink       #0B0D12  base
       Graphite  #151821  base (one step up from Ink)
       Blue      #4F7BFF  accent: primary, actions, links
       Cyan      #67E8F9  accent: light, status, highlights
     Text and hairlines are white at different opacities.
     ------------------------------------------------------------ */
  --ink: #0b0d12;
  --graphite: #151821;
  --blue: #4f7bff;
  --cyan: #67e8f9;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;

  --bg: var(--ink);
  --bg-frame: var(--ink);
  --surface: var(--graphite);
  --surface-2: color-mix(in srgb, var(--graphite) 92%, white);
  --surface-inset: color-mix(in srgb, var(--ink) 60%, var(--graphite));
  --text: rgb(255 255 255 / 0.94);
  --text-2: rgb(255 255 255 / 0.66);
  --text-muted: rgb(255 255 255 / 0.42);
  --hair: rgb(255 255 255 / 0.08);
  --hair-strong: rgb(255 255 255 / 0.16);
  --fill: rgb(255 255 255 / 0.04);

  --accent: var(--blue);
  --accent-text: color-mix(in srgb, var(--blue) 70%, white);
  --accent-soft: color-mix(in srgb, var(--blue) 16%, transparent);
  /* the second accent covers every "highlight" role */
  --new: var(--cyan);
  --new-soft: color-mix(in srgb, var(--cyan) 14%, transparent);
  --ok: var(--cyan);
  --ok-soft: color-mix(in srgb, var(--cyan) 12%, transparent);
  --warn: rgb(255 255 255 / 0.7);
  --warn-soft: rgb(255 255 255 / 0.07);

  --action: rgb(255 255 255 / 0.96);
  --action-fg: var(--ink);

  --shadow-window: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 40px 90px -30px rgb(0 0 0 / 0.7);

  --radius: 18px;
  --radius-sm: 12px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); }

/* ---------- buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--action); color: var(--action-fg); }
.btn--primary:hover { opacity: .88; }
.btn--ghost { background: var(--fill); border-color: var(--hair); }
.btn--ghost:hover { border-color: var(--hair-strong); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  background: var(--fill); color: var(--text-2);
}
.pill--new { background: var(--new-soft); color: var(--new); }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--accent { background: var(--accent-soft); color: var(--accent-text); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok .dot { box-shadow: 0 0 0 0 currentColor; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--hair); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .06em; font-size: 15px; }
.brand-mark { width: 28px; height: 28px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--text); background: var(--fill); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--hair); background: var(--fill); cursor: pointer;
}
.icon-btn:hover { border-color: var(--hair-strong); }
.icon-btn svg { width: 16px; height: 16px; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-wa { display: none; }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    padding: 8px var(--gutter) 16px; background: var(--bg); border-bottom: 1px solid var(--hair); margin: 0;
  }
  .site-header.is-open .nav a { padding: 12px; font-size: 16px; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 112px) 0 0; text-align: center; isolation: isolate; }
.hero-glow {
  position: absolute; inset: -10% 0 auto; height: 620px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 40%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(35% 45% at 72% 30%, color-mix(in srgb, var(--new) 11%, transparent), transparent 70%);
  filter: blur(20px);
}
.availability {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--hair); background: var(--surface);
  font-size: 13px; color: var(--text-2);
}
.availability:hover { border-color: var(--hair-strong); }
.hero h1 {
  margin: 28px auto 0; max-width: 15ch;
  font-size: clamp(42px, 7.4vw, 84px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700;
}
.hero h1 .soft { color: var(--text-muted); }
.hero-sub { margin: 22px auto 0; max-width: 600px; font-size: clamp(17px, 2vw, 19px); color: var(--text-2); }
.hero-actions { margin-top: 32px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-tags { margin-top: 22px; display: flex; gap: 6px 14px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.hero-tags span + span::before { content: '·'; margin-right: 14px; color: var(--hair-strong); }

/* ---------- preview window ---------- */
.preview { margin: clamp(48px, 7vw, 80px) auto 0; max-width: 1040px; padding: 0 var(--gutter); }
.window {
  border-radius: 20px; background: var(--surface); border: 1px solid var(--hair);
  box-shadow: var(--shadow-window); overflow: hidden; text-align: left;
}
.window-bar { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--hair); background: var(--surface-2); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--hair-strong); }
.window-bar .title { margin: 0 auto; font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); padding-right: 40px; }
.window-body { display: grid; grid-template-columns: 220px 1fr; min-height: 420px; }
.win-side { border-right: 1px solid var(--hair); padding: 14px 10px; background: var(--surface-2); font-size: 13px; }
.win-side h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 600; padding: 10px 10px 6px; }
.win-side li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; color: var(--text-2); }
.win-side li.is-active { background: var(--fill); color: var(--text); font-weight: 600; }
.win-side li .lock { margin-left: auto; opacity: .55; width: 12px; height: 12px; }
.win-side li .count { margin-left: auto; font-size: 11px; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 6px; font-weight: 700; }
.win-main { display: flex; flex-direction: column; min-width: 0; }
.win-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--hair); }
.win-head strong { font-size: 15px; white-space: nowrap; }
.win-head span { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed { flex: 1; padding: 18px 20px 8px; display: flex; flex-direction: column; gap: 16px; }
.msg { display: grid; grid-template-columns: 34px 1fr; gap: 12px; opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
.js .msg.is-pending { opacity: 0; transform: translateY(8px); }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; }
.av-1 { background: var(--blue); }
.av-2 { background: color-mix(in srgb, var(--cyan) 85%, var(--ink)); color: var(--ink); }
.av-3 { background: color-mix(in srgb, var(--blue) 45%, var(--graphite)); }
.av-4 { background: var(--surface-2); border: 1px solid var(--hair-strong); }
.msg-meta { font-size: 13px; display: flex; gap: 8px; align-items: baseline; }
.msg-meta b { font-weight: 650; }
.msg-meta time { color: var(--text-muted); font-size: 12px; }
.msg p { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.msg-card { margin-top: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--hair); background: var(--surface-2); font-size: 13px; max-width: 460px; }
.msg-card .mono { font-size: 12px; color: var(--text-muted); }
.composer { margin: 8px 20px 18px; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 14px; border: 1px solid var(--hair); background: var(--surface-2); font-size: 14px; color: var(--text-muted); }
.composer .send { margin-left: auto; width: 30px; height: 30px; border-radius: 9px; background: var(--action); color: var(--action-fg); display: grid; place-items: center; }
.typing { display: inline-flex; gap: 3px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

@media (max-width: 760px) {
  .window-body { grid-template-columns: 1fr; min-height: 0; }
  .win-side { display: none; }
  .window-bar .title { padding-right: 0; }
}

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0 0; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.section-head h2 { margin-top: 12px; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--text-2); }

.card {
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hair);
  transition: border-color .2s ease, transform .2s ease;
}
a.card:hover, .card--hover:hover { border-color: var(--hair-strong); }

/* ---------- capabilities (feature blocks) ---------- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature { display: flex; flex-direction: column; overflow: hidden; }
.feature-copy { padding: 28px 28px 0; }
.feature-copy h3 { font-size: 21px; letter-spacing: -0.02em; font-weight: 650; }
.feature-copy p { margin-top: 8px; color: var(--text-2); font-size: 15px; max-width: 46ch; }
.feature-proof { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.feature-proof a { font-size: 12px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; }
.feature-proof a:hover { text-decoration: underline; }
.feature-visual {
  margin: 24px 16px 16px; flex: 1; min-height: 220px; border-radius: 14px; background: var(--surface-inset);
  border: 1px solid var(--hair); padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  font-size: 13px; position: relative; overflow: hidden;
}
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* demo: doc -> rows */
.demo-doc { display: grid; grid-template-columns: 92px 24px 1fr; align-items: center; gap: 12px; }
.doc-file { height: 116px; border-radius: 10px; background: var(--surface); border: 1px solid var(--hair); padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.doc-file b { font-size: 10px; font-family: var(--font-mono); color: var(--new); }
.doc-file i { height: 5px; border-radius: 3px; background: var(--hair-strong); }
.doc-file i:nth-child(3) { width: 70%; } .doc-file i:nth-child(5) { width: 55%; }
.demo-arrow { color: var(--text-muted); }
.rows { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 11.5px; }
.rows div { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; padding: 7px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--hair); }
.rows .neg { color: var(--text-2); } .rows .pos { color: var(--cyan); }
@media (max-width: 480px) {
  .demo-doc { grid-template-columns: minmax(0, 1fr); }
  .doc-file, .demo-arrow { display: none; }
  .rows div { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; }
}
.rows .head { background: transparent; border-color: transparent; color: var(--text-muted); padding-top: 0; padding-bottom: 0; }

/* demo: workflow */
.flow { display: flex; flex-direction: column; gap: 6px; }
.flow li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--hair); }
.flow .n { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.flow .ok { margin-left: auto; color: var(--ok); }
.flow li:last-child { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.approve-slot { margin-left: auto; display: inline-flex; }
.approve-btn { height: 26px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--action); color: var(--action-fg); font-size: 12px; font-weight: 600; }

/* demo: dashboard */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--hair); }
.kpi small { display: block; font-size: 11px; color: var(--text-muted); }
.kpi b { font-size: 18px; letter-spacing: -0.02em; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 84px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--hair); }
.bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--accent) 30%, transparent); height: var(--h); transform-origin: bottom; }
.bars i:last-child { background: var(--accent); }
.in-view .bars i { animation: grow .8s cubic-bezier(.3,.7,0,1) both; animation-delay: calc(var(--i) * 50ms); }
@keyframes grow { from { transform: scaleY(0); } }

/* demo: certificate */
.cert { margin: 0 auto; width: min(100%, 340px); border-radius: 12px; background: var(--surface); border: 1px solid var(--hair); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.cert-top { display: flex; justify-content: space-between; align-items: center; }
.cert h5 { margin: 0; font-size: 15px; letter-spacing: -0.01em; }
.cert dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 12px; }
.cert dt { color: var(--text-muted); }
.cert dd { font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* demo: campaigns */
.kol { display: flex; flex-direction: column; gap: 6px; }
.kol li { display: grid; grid-template-columns: 26px 1fr 90px 44px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--hair); }
.kol .ch { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--text-2); background: var(--fill); border: 1px solid var(--hair); }
.kol .meter { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.kol .meter i { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: 3px; }
.kol .pct { font-family: var(--font-mono); font-size: 11px; text-align: right; color: var(--text-muted); }

/* demo: platforms */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.platforms div { padding: 14px 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--hair); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.platforms small { font-weight: 400; color: var(--text-muted); font-size: 11px; }
.platforms svg { width: 22px; height: 22px; color: var(--text-2); }
@media (max-width: 420px) { .platforms { grid-template-columns: repeat(2, 1fr); } .kol li { grid-template-columns: 26px 1fr 44px; } .kol .meter { display: none; } }

/* ---------- products ---------- */
.filters { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hair); margin-bottom: 20px; }
.filters button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.filters button[aria-pressed='true'] { background: var(--action); color: var(--action-fg); }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.product { padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.product[hidden] { display: none; }
.product-top { display: flex; align-items: center; gap: 12px; }
.p-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none;
  color: var(--accent-text); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent); }
.product[data-status='soon'] .p-icon { color: var(--text-muted); background: var(--fill); border-color: var(--hair); }
a.product:hover .p-icon { color: var(--ink); background: var(--cyan); border-color: var(--cyan); }
.p-icon { transition: background-color .2s ease, color .2s ease; }
.product h3 { font-size: 17px; letter-spacing: -0.015em; font-weight: 650; }
.product .cat { font-size: 12px; color: var(--text-muted); }
.product-top .pill { margin-left: auto; }
.product p { color: var(--text-2); font-size: 14.5px; flex: 1; }
.product .domain { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
a.product:hover .domain { color: var(--accent-text); }
@media (max-width: 980px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .products { grid-template-columns: 1fr; } }

/* ---------- client work ---------- */
.cases { display: grid; gap: 16px; }
.case { display: grid; grid-template-columns: 280px 1fr; overflow: hidden; }
.case-meta { padding: 28px; border-right: 1px solid var(--hair); background: var(--surface-2); display: flex; flex-direction: column; gap: 18px; }
.case-meta dl { display: grid; gap: 12px; }
.case-meta dt { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.case-meta dd { font-size: 14px; font-weight: 550; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.redact { display: inline-block; width: 92px; height: 12px; border-radius: 3px; background: repeating-linear-gradient(135deg, var(--text) 0 6px, color-mix(in srgb, var(--text) 80%, transparent) 6px 12px); opacity: .85; vertical-align: middle; }
.case-body { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.case-body h3 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.025em; line-height: 1.15; font-weight: 700; }
.case-body > p { color: var(--text-2); max-width: 62ch; }
.case-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-cols h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 500; margin-bottom: 8px; }
.ticks li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--text-2); margin-bottom: 6px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.nda-note { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 22px; border-radius: var(--radius); border: 1px dashed var(--hair-strong); color: var(--text-2); font-size: 15px; }
.nda-note .btn { margin-left: auto; }
@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; }
  .case-meta { border-right: 0; border-bottom: 1px solid var(--hair); }
  .case-meta dl { grid-template-columns: repeat(2, 1fr); }
  .case-cols { grid-template-columns: 1fr; }
  .nda-note .btn { margin-left: 0; }
}

/* ---------- services list ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.service { padding: 24px; }
.service svg { width: 22px; height: 22px; color: var(--accent-text); }
.service h3 { margin-top: 18px; font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.service p { margin-top: 6px; font-size: 14.5px; color: var(--text-2); }
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* ---------- labs ---------- */
.labs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lab { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.lab-top { display: flex; align-items: center; justify-content: space-between; }
.lab h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.lab p { font-size: 14px; color: var(--text-2); flex: 1; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; }
.stack span { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); border: 1px solid var(--hair); padding: 2px 8px; border-radius: 6px; }
.lab .gh { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
a.lab:hover .gh { color: var(--accent-text); }
.lab .gh svg { width: 15px; height: 15px; }
@media (max-width: 980px) { .labs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .labs { grid-template-columns: 1fr; } }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.step { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step .count { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.step .count b { color: var(--text); font-weight: 600; }
.step-bar { height: 3px; border-radius: 2px; background: var(--fill); overflow: hidden; }
.step-bar i { display: block; height: 100%; width: var(--p); background: var(--accent); border-radius: 2px; }
.step h3 { margin-top: 6px; font-size: 18px; font-weight: 650; letter-spacing: -0.015em; }
.step p { font-size: 14.5px; color: var(--text-2); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 6vw, 80px); align-items: start; }
.faq-layout .section-head { margin-bottom: 0; position: sticky; top: 96px; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq details:first-child { border-top: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 22px; line-height: 1; color: var(--text-muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--text-2); max-width: 62ch; }
.faq-contact { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-text); }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout .section-head { position: static; } }

/* ---------- closing cta ---------- */
.closing { margin-top: clamp(80px, 11vw, 140px); }
.closing-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px; padding: clamp(48px, 8vw, 96px) var(--gutter); text-align: center;
  background: var(--surface); border: 1px solid var(--hair);
}
.closing-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 80% at 50% 120%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(30% 50% at 85% 0%, color-mix(in srgb, var(--new) 10%, transparent), transparent 70%);
}
.closing-card h2 { font-size: clamp(34px, 5.4vw, 64px); letter-spacing: -0.04em; line-height: 1.02; font-weight: 700; }
.closing-card p { margin: 18px auto 0; max-width: 540px; color: var(--text-2); font-size: 17px; }
.closing-card .hero-actions { margin-top: 30px; }
.contact-line { margin-top: 26px; display: flex; gap: 8px 24px; justify-content: center; flex-wrap: wrap; font-size: 14px; color: var(--text-muted); }
.contact-line a:hover { color: var(--text); }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(64px, 9vw, 112px); border-top: 1px solid var(--hair); padding: 56px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { margin-top: 14px; color: var(--text-2); max-width: 30ch; }
.footer-col h4 { font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.footer-col li { margin-bottom: 9px; color: var(--text-2); }
.footer-col a:hover { color: var(--text); }
.footer-col .soon { color: var(--text-muted); font-size: 12px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--text-muted); font-size: 13px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,0,1); }
.js .reveal.in-view { opacity: 1; transform: none; }

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

/* ============================================================
   v2: wordmark, 3D hero, AI assistant
   ============================================================ */

/* ---------- wordmark ---------- */
.wordmark, .footer-lockup {
  font-weight: 800; letter-spacing: -0.055em; line-height: 1; text-transform: none;
}
.wordmark { font-size: 25px; display: inline-flex; align-items: baseline; }
.brand { letter-spacing: 0; }
.brand--lg .wordmark { font-size: 34px; }
.wm-i { position: relative; display: inline-block; }
.wm-dot {
  /* sits exactly on Inter 800's own i-dot (centre 0.138em from the glyph origin,
     0.695em above the baseline) and covers it; measured in Chrome */
  position: absolute; left: 0.138em; top: 0.02em; width: 0.205em; height: 0.205em; border-radius: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 0.35em color-mix(in srgb, var(--cyan) 45%, transparent);
}
.brand:hover .wm-dot { animation: dot-hop .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes dot-hop { 40% { transform: translate(-50%, -0.18em); } }
.footer-lockup {
  font-weight: 800; letter-spacing: -0.055em; line-height: 1; text-transform: none;
}
.wordmark { font-size: 25px; display: inline-flex; align-items: baseline; }
.brand { letter-spacing: 0; }
.brand--lg .wordmark { font-size: 34px; }
.wm-i { position: relative; display: inline-block; }
.wm-i::before {
  content: ''; position: absolute; left: calc(50% + 0.045em); top: 0.01em; width: 0.24em; height: 0.24em; border-radius: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--new));
  box-shadow: 0 0 0.35em color-mix(in srgb, var(--accent) 55%, transparent);
}
.brand:hover .wm-i::before { animation: dot-hop .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes dot-hop { 40% { transform: translate(-50%, -0.18em); } }
.footer-lockup {
  margin-top: 56px; font-size: clamp(96px, 23vw, 300px); letter-spacing: -0.07em; line-height: .8;
  color: transparent; -webkit-text-stroke: 1px var(--hair-strong);
  background: linear-gradient(180deg, color-mix(in srgb, var(--text) 9%, transparent), transparent 85%);
  -webkit-background-clip: text; background-clip: text; user-select: none; white-space: nowrap; overflow: hidden;
}
.footer-lockup .wm-dot { box-shadow: none; }

/* ---------- hero: wordmark under a beam of light ---------- */
.hero { text-align: center; padding-top: clamp(40px, 6vw, 72px); }
.hero-glow { display: none; }
.hero-center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-word {
  position: relative; margin-top: clamp(150px, 20vw, 230px);
  font-weight: 800; letter-spacing: -0.065em; line-height: .86;
  font-size: clamp(92px, 21vw, 260px);
  /* lit from the dot: brightest under the beam, fading into the ink */
  background: radial-gradient(85% 160% at var(--lx, 26%) -10%, #fff 0%, color-mix(in srgb, var(--cyan) 55%, white) 16%, color-mix(in srgb, var(--blue) 80%, var(--graphite)) 42%, color-mix(in srgb, var(--blue) 30%, var(--graphite)) 70%, color-mix(in srgb, var(--graphite) 75%, white) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; padding: 0 .04em .06em;
}
.hero-word .wm-dot {
  background: #fff; box-shadow: 0 0 .12em #fff, 0 0 .4em var(--cyan), 0 0 1em color-mix(in srgb, var(--blue) 70%, transparent);
  transition: box-shadow .6s ease, background-color .6s ease;
}
.js .hero-word .wm-dot { background: var(--graphite); box-shadow: none; }
.hero.is-struck .hero-word .wm-dot { background: #fff; box-shadow: 0 0 .12em #fff, 0 0 .4em var(--cyan), 0 0 1em color-mix(in srgb, var(--blue) 70%, transparent); }
.hero h1 { margin: 26px auto 0; max-width: 20ch; font-size: clamp(28px, 4vw, 46px); letter-spacing: -0.035em; line-height: 1.08; }
.hero-sub { margin: 16px auto 0; max-width: 560px; }
.hero-actions, .hero-tags { justify-content: center; }

.beam { position: absolute; left: 50%; transform: translateX(-50%); width: 100vw; top: -64px; height: calc(100% + 64px); pointer-events: none; z-index: 0; }
.beam canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.beam-fallback {
  position: absolute; top: 0; left: var(--bx, 50%); width: 2px; height: var(--by, 300px); transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--cyan) 70%, transparent) 40%, #fff);
  box-shadow: 0 0 18px 3px color-mix(in srgb, var(--blue) 50%, transparent);
}
.beam.is-live .beam-fallback { display: none; }

/* 3D core now sits in the Ask section */
.core { position: relative; width: min(100%, 300px); aspect-ratio: 1 / 1; margin: -24px 0 4px -24px; }
.core canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1s ease; }
.core.is-live canvas { opacity: 1; }
.core-fallback {
  position: absolute; inset: 20%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--blue) 55%, transparent), color-mix(in srgb, var(--cyan) 25%, transparent) 55%, transparent 72%);
  filter: blur(2px); animation: breathe 6s ease-in-out infinite; transition: opacity 1s ease;
}
.core.is-live .core-fallback { opacity: 0; }
@keyframes breathe { 50% { transform: scale(1.05); } }
@media (max-width: 900px) { .core { margin: -16px auto 0; width: 240px; } .ask-grid .section-head { text-align: left; } }

.composer { transition: border-color .2s ease; }
.composer:hover { border-color: var(--accent); color: var(--text-2); }

/* ---------- ask ibudata AI ---------- */
.ask-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.ask-grid .section-head { margin-bottom: 0; }
.ask-points { margin-top: 22px; display: grid; gap: 10px; }
.ask-points li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 15px; }
.ask-points li::before { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--new)); opacity: .9; }
.ask-window { display: flex; flex-direction: column; height: 560px; position: relative; }
.ask-window::after {
  content: ''; position: absolute; inset: -1px; border-radius: 20px; pointer-events: none; padding: 1px;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--accent), var(--new), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease;
}
.ask-window.is-thinking::after { opacity: 1; animation: spin-border 2.4s linear infinite; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --ang: 360deg; } }
.ask-log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.bubble { max-width: 88%; font-size: 14.5px; line-height: 1.55; }
.bubble p { white-space: pre-wrap; }
.bubble--user { align-self: flex-end; background: var(--action); color: var(--action-fg); padding: 10px 14px; border-radius: 16px 16px 4px 16px; }
.bubble--ai { align-self: flex-start; color: var(--text); background: var(--surface-2); border: 1px solid var(--hair); padding: 12px 14px; border-radius: 4px 16px 16px 16px; }
.ai-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.ai-orb { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(from 0deg, var(--accent), var(--new), var(--ok), var(--accent)); animation: orb-spin 4s linear infinite; }
.is-thinking .bubble--ai:last-child .ai-orb { animation-duration: .9s; }
@keyframes orb-spin { to { transform: rotate(360deg); } }
.bubble .note { display: block; margin-top: 8px; font-size: 11.5px; color: var(--text-muted); }
.bubble .cta-row { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.bubble .cta-row a { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.caret { display: inline-block; width: 7px; height: 1em; vertical-align: -2px; background: var(--accent); margin-left: 2px; animation: blink 1s steps(2) infinite; }
.ask-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 20px 12px; }
.ask-chips[hidden] { display: none; }
.ask-chips button { border: 1px solid var(--hair); background: var(--fill); color: var(--text-2); font-size: 12.5px; padding: 6px 11px; border-radius: 999px; cursor: pointer; text-align: left; }
.ask-chips button:hover { border-color: var(--accent); color: var(--text); }
.ask-form { display: flex; gap: 8px; margin: 0 16px 16px; padding: 6px 6px 6px 16px; border-radius: 14px; border: 1px solid var(--hair-strong); background: var(--surface-2); }
.ask-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ask-form input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; outline: none; }
.ask-form .send { width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--action); color: var(--action-fg); display: grid; place-items: center; cursor: pointer; }
.ask-form .send:disabled { opacity: .4; cursor: default; }
@media (max-width: 900px) { .ask-grid { grid-template-columns: 1fr; } .ask-window { height: 520px; } }
