/* ==========================================================
   S7 Intelligence — website styles
   ========================================================== */

:root {
  --navy-900: #0a1338;
  --navy-800: #0e1a48;
  --navy-700: #16225a;
  --navy-100: #eef1fb;
  --navy-50:  #f6f8ff;

  --red-500: #ea3556;
  --red-600: #d92948;
  --red-100: #ffe5eb;

  --ink-900: #0b1230;
  --ink-700: #2b345f;
  --ink-500: #5b6386;
  --ink-300: #a8afca;
  --ink-100: #dfe3f2;

  --bg:      #ffffff;
  --bg-alt:  #f6f8ff;
  --bg-dark: #0a1338;

  --ok:  #2ea36b;
  --warn:#f6b02e;

  --radius:   14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(14,26,72,.06), 0 2px 6px rgba(14,26,72,.05);
  --shadow-md: 0 10px 30px rgba(14,26,72,.10);
  --shadow-lg: 0 30px 80px rgba(14,26,72,.15);

  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Inter', sans-serif; color: var(--ink-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.05; font-weight: 800; margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.15; font-weight: 800; margin: 0 0 .75rem; }
h3 { font-size: 1.1rem; margin: 0 0 .35rem; font-weight: 700; }
p  { color: var(--ink-700); margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.1rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-primary { background: var(--red-500); color: #fff; box-shadow: 0 6px 20px rgba(234,53,86,.25); }
.btn-primary:hover { background: var(--red-600); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--ink-100); }
.btn-ghost:hover { border-color: var(--navy-800); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav-scrolled { border-color: var(--ink-100); box-shadow: var(--shadow-sm); }
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.brand { display: inline-flex; align-items: center; }
.logo { height: 40px; width: auto; }
.logo-foot { height: 36px; opacity: .95; margin-bottom: 12px; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--ink-700); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--navy-800); }
.nav-cta { padding: .55rem .95rem; }

@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 40px;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(234,53,86,.10), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(14,26,72,.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--navy-800); font-weight: 600; font-size: .85rem;
  padding: .35rem .7rem; border: 1px solid var(--ink-100);
  border-radius: 999px; background: #fff;
  margin-bottom: 1.1rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--red-500); }
.lede { font-size: 1.15rem; color: var(--ink-700); max-width: 60ch; }
.grad {
  background: linear-gradient(90deg, var(--red-500), var(--navy-800));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-ctas { display: flex; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.hero-badges {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.hero-badges li {
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  color: var(--navy-800); background: #fff;
  padding: .35rem .65rem; border-radius: 999px; border: 1px solid var(--ink-100);
}

/* Hero visual */
.hero-visual { position: relative; min-height: 460px; }
.galaxy {
  position: relative;
  width: 100%; aspect-ratio: 1;
  border-radius: 24px;
  background: linear-gradient(160deg, #0e1a48 0%, #16225a 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.galaxy svg { width: 100%; height: 100%; }
.chip {
  position: absolute; background: #fff; padding: .6rem .8rem;
  border-radius: 12px; box-shadow: var(--shadow-md);
  border: 1px solid var(--ink-100);
}
.chip-k { font-size: .72rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: .06em; }
.chip-v { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 600; color: var(--navy-800); }
.chip-v .ok { color: var(--ok); }
.chip-v .warn { color: var(--warn); }
.chip-1 { top: 6%;  left: -14px; }
.chip-2 { top: 44%; right: -18px; }
.chip-3 { bottom: 8%; left: 10%; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 48px; }
  .chip-1 { left: 0; }
  .chip-2 { right: 0; }
}

/* Trust strip */
.trust {
  margin-top: 56px;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  padding: 16px 24px; background: #fff;
  border: 1px solid var(--ink-100); border-radius: 14px;
  color: var(--ink-500); font-size: .9rem;
  box-shadow: var(--shadow-sm);
}
.trust strong { color: var(--navy-800); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(234,53,86,.15), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(122,162,255,.15), transparent 60%),
    linear-gradient(180deg, #0a1338 0%, #0e1a48 100%);
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #c9d1f2; }
.section-dark .eyebrow { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.15); }

.section-head { max-width: 780px; margin: 0 0 3rem; }
.section-head p { color: var(--ink-700); font-size: 1.05rem; }
.section-head.light p { color: #c9d1f2; }
.tag { display: inline-block; margin-left: .5rem; font-size: .8rem; font-weight: 500; color: var(--ink-500); vertical-align: middle; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
.feature {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #cfd6ef; }
.feature p { margin: 0; color: var(--ink-700); font-size: .95rem; }
.ficon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(234,53,86,.12), rgba(14,26,72,.10));
  color: var(--navy-800);
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Product ---------- */
.product-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start;
}
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 1rem 0 0; }
.checklist li {
  position: relative; padding: 10px 0 10px 30px; border-bottom: 1px dashed var(--ink-100);
  color: var(--ink-700);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 16px; height: 16px; border-radius: 999px;
  background: var(--red-500);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--red-100);
}
.checklist b { color: var(--ink-900); font-weight: 600; }

/* Mock UI */
.mock {
  background: #fff; border: 1px solid var(--ink-100); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.mock-top {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: #f4f6fd; border-bottom: 1px solid var(--ink-100);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 999px; background: #d9dff0; display: inline-block; }
.dots i:nth-child(1) { background: #ff6058; }
.dots i:nth-child(2) { background: #ffbd2f; }
.dots i:nth-child(3) { background: #28c840; }
.mock-url { font-family: 'JetBrains Mono', monospace; font-size: .8rem; color: var(--ink-500); }
.mock-body { padding: 16px; display: grid; gap: 12px; }
.mock-list .row {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  padding: 10px; border-radius: 10px; background: #fbfbff;
  border: 1px solid var(--ink-100); font-size: .9rem;
}
.mock-list .row-add { background: #fff7e6; border-color: #ffe6b3; }
.pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem; padding: .15rem .45rem; border-radius: 6px;
  border: 1px solid var(--ink-100); background: #fff;
}
.p-code { color: var(--navy-800); font-weight: 600; }
.p-hcc  { background: #fff2c9; border-color: #ffd977; color: #7a4a00; }
.p-raf  { background: #e6ecff; border-color: #b9c6ff; color: var(--navy-800); }
.p-warn { background: #fff2c9; border-color: #ffd977; color: #7a4a00; }
.p-block{ background: var(--red-100); border-color: #ffb7c4; color: var(--red-600); font-weight: 600; }

.mock-raf {
  display: grid; grid-template-columns: 140px 1fr; gap: 14px;
  padding: 12px; border-radius: 10px; background: #0e1a48; color: #fff;
}
.raf-total { display: grid; align-content: center; }
.raf-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #c9d1f2; }
.raf-val   { font-size: 2.2rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.raf-bars { display: grid; gap: 6px; align-content: center; }
.raf-bars > div {
  display: grid; grid-template-columns: 100px 1fr 46px; align-items: center; gap: 8px;
  font-size: .8rem; color: #dbe2ff;
}
.raf-bars i {
  display: block; height: 6px; border-radius: 4px;
  background: linear-gradient(90deg, var(--red-500), #ffb99f);
}
.raf-bars b { font-family: 'JetBrains Mono', monospace; text-align: right; color: #fff; }

/* KPI strip */
.kpi-strip {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.kpi {
  background: #fff; border: 1px solid var(--ink-100); border-radius: 14px;
  padding: 20px; text-align: center; box-shadow: var(--shadow-sm);
}
.kpi-n { font-size: 2rem; font-weight: 800; color: var(--navy-800); font-family: 'JetBrains Mono', monospace; }
.kpi-l { font-size: .85rem; color: var(--ink-500); }
@media (max-width: 900px) { .kpi-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- API ---------- */
.api-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 1000px) { .api-grid { grid-template-columns: 1fr; } }

.api-list { display: grid; gap: 12px; }
.api-card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: 12px;
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.api-head { display: flex; align-items: center; gap: 10px; margin-bottom: .3rem; }
.api-head code { font-family: 'JetBrains Mono', monospace; font-size: .95rem; color: var(--navy-800); }
.method {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 6px; letter-spacing: .04em;
}
.method.get  { background: #e6ecff; color: var(--navy-800); }
.method.post { background: var(--red-100); color: var(--red-600); }
.api-card p { margin: 0; font-size: .92rem; color: var(--ink-700); }
.api-card p code { font-family: 'JetBrains Mono', monospace; background: #f2f4fb; padding: 0 4px; border-radius: 4px; }

.api-side { display: grid; gap: 16px; position: sticky; top: 90px; }
.code {
  background: #0a1338; color: #dbe2ff; border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,.06);
}
.code-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: rgba(255,255,255,.04);
  font-size: .78rem; color: #c9d1f2; letter-spacing: .06em; text-transform: uppercase;
}
.code-head .lang { color: var(--red-500); font-weight: 700; }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; }
.code code { font-family: 'JetBrains Mono', monospace; font-size: .82rem; line-height: 1.55; }
.c-kw { color: #ffb0be; }

.api-facts { display: grid; gap: 6px; padding: 14px 16px; background: #fff; border: 1px solid var(--ink-100); border-radius: 12px; box-shadow: var(--shadow-sm); font-size: .88rem; color: var(--ink-700); }
.api-facts b { color: var(--navy-800); margin-right: 6px; }

/* ---------- Knowledge (dark) ---------- */
.k-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.k-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 22px;
}
.k-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.2rem; font-weight: 800; color: #fff;
  background: linear-gradient(90deg, #ffb0be, #ea3556);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.k-l { color: #c9d1f2; font-size: .95rem; }
@media (max-width: 900px) { .k-grid { grid-template-columns: 1fr; } }

/* ==========================================================
   See it in action — Ask AI player + product tour tiles
   ========================================================== */
.ask-wrap {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start;
}
@media (max-width: 1000px) { .ask-wrap { grid-template-columns: 1fr; } }

/* Player chrome */
.askai {
  background: #fff; border: 1px solid var(--ink-100); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.askai-top {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: #f4f6fd; border-bottom: 1px solid var(--ink-100);
  font-size: .82rem;
}
.askai-title { color: var(--navy-800); font-weight: 600; }
.askai-status {
  margin-left: auto; color: var(--ok); font-weight: 600; font-size: .78rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(46,163,107,.6);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46,163,107,.6); }
  70%  { box-shadow: 0 0 0 10px rgba(46,163,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,163,107,0); }
}

.askai-body { padding: 18px; display: grid; gap: 16px; }

.msg { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.msg-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: #fff; font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: .78rem;
}
.avatar-ai { background: linear-gradient(135deg, var(--red-500), #ff8797); }
.msg-name { font-size: .82rem; color: var(--ink-500); font-weight: 600; margin-bottom: 4px; }
.msg-role {
  font-size: .68rem; padding: .1rem .4rem; border-radius: 6px;
  background: #f2f4fb; color: var(--ink-500); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; margin-left: 6px;
}
.msg-text {
  padding: 12px 14px; border-radius: 12px;
  background: #f6f8ff; border: 1px solid var(--ink-100);
  color: var(--ink-900); font-size: .95rem; line-height: 1.5;
}
.msg-ai .msg-text { background: #fff; }

/* --- animation orchestration --- */
/* The whole workflow runs on a 12s loop, orchestrated from the .askai container. */
.u-anim { opacity: 0; transform: translateY(6px); animation: fadeUp .5s ease-out .2s forwards; }
.a-anim { opacity: 0; transform: translateY(6px); animation: fadeUp .5s ease-out 1.2s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Tool trace */
.tool-trace {
  display: grid; gap: 6px;
  background: #0a1338; color: #dbe2ff;
  border-radius: 10px; padding: 10px 12px;
  font-family: 'JetBrains Mono', monospace; font-size: .78rem;
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 12px;
}
.tool {
  display: grid; grid-template-columns: 22px 130px 1fr 22px; align-items: center; gap: 6px;
  opacity: 0; transform: translateX(-4px);
  animation: toolIn .5s ease-out forwards;
}
.tool-1 { animation-delay: 1.9s; }
.tool-2 { animation-delay: 2.6s; }
.tool-3 { animation-delay: 3.3s; }
.tool-4 { animation-delay: 4.0s; }
@keyframes toolIn { to { opacity: 1; transform: none; } }
.tool-name { color: #ffb0be; font-weight: 700; }
.tool code {
  color: #dbe2ff; font-family: 'JetBrains Mono', monospace;
  background: rgba(255,255,255,.04); padding: 0 6px; border-radius: 4px;
  font-size: .74rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tool-status { color: var(--ok); font-weight: 700; text-align: right; }

/* Answer streaming */
.answer {
  padding: 14px 16px; border-radius: 12px;
  background: #fff; border: 1px solid var(--ink-100);
}
.answer p { margin: 0 0 .55rem; font-size: .95rem; color: var(--ink-900); line-height: 1.55; }
.answer p:last-of-type { margin-bottom: 0; }
.a-line { opacity: 0; transform: translateY(4px); animation: fadeUp .5s ease-out forwards; }
.l1 { animation-delay: 5.0s; }
.l2 { animation-delay: 5.9s; }
.l3 { animation-delay: 6.8s; }
.hl {
  background: linear-gradient(180deg, transparent 60%, #ffe6b3 60%);
  padding: 0 2px; font-family: 'JetBrains Mono', monospace;
  color: var(--navy-800);
}
.chip-inline {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: .78rem; padding: .1rem .45rem; border-radius: 6px;
  border: 1px solid var(--ink-100); margin: 0 2px;
  vertical-align: baseline;
}
.chip-hcc  { background: #fff2c9; border-color: #ffd977; color: #7a4a00; }
.chip-code { background: #e6ecff; border-color: #b9c6ff; color: var(--navy-800); }

.answer-cite {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed var(--ink-100);
  font-size: .82rem; color: var(--ink-500);
  opacity: 0; animation: fadeUp .5s ease-out 7.6s forwards;
}
.answer-cite strong { color: var(--navy-800); font-family: 'JetBrains Mono', monospace; }
.cite-link { color: var(--red-600); font-weight: 600; }

/* --- master loop trigger --- */
/* Restart the whole animation every 12 seconds by re-animating the outer key. */
.askai-body { animation: loopKey 12s linear infinite; }
@keyframes loopKey { 0%, 100% { --k: 0; } }
/* Each animation is one-shot; to actually loop, we clone the pattern on a
   staggered offset via forwards + iteration on the parent via SMIL-free trick:
   use `animation-iteration-count: infinite` on children with matching
   delays and a "hidden" reset at 100%. Simpler: re-run using JS below. */

/* --- side copy --- */
.ask-side {
  background: #fff; border: 1px solid var(--ink-100); border-radius: 16px;
  padding: 22px; box-shadow: var(--shadow-sm);
}
.ask-side h3 { margin: 0 0 12px; }
.ask-bullets { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.ask-bullets li {
  display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start;
  font-size: .93rem; color: var(--ink-700);
}
.ask-bullets .k {
  width: 24px; height: 24px; border-radius: 8px;
  background: linear-gradient(135deg, var(--red-500), #ff8797);
  color: #fff; display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: .78rem; font-weight: 700;
}
.ask-facts {
  display: grid; gap: 6px; padding: 12px; border-radius: 12px;
  background: #fbfbff; border: 1px solid var(--ink-100);
  font-size: .85rem; color: var(--ink-700);
}
.ask-facts b { color: var(--navy-800); margin-right: 6px; font-weight: 600; }

/* --- Product tour tiles --- */
.tour-head { margin: 56px 0 20px; }
.tour-head h3 { font-size: 1.4rem; margin-bottom: .25rem; }
.tour-head p { color: var(--ink-500); }

.tour-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tour {
  background: #fff; border: 1px solid var(--ink-100); border-radius: 14px;
  padding: 16px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tour:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tour-label {
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red-600); font-weight: 700; margin-bottom: 12px;
}
.tour-shot { border-radius: 10px; overflow: hidden; border: 1px solid var(--ink-100); }
@media (max-width: 900px) { .tour-grid { grid-template-columns: 1fr; } }

/* Encounter tile */
.ts-encounter { display: grid; grid-template-columns: 130px 1fr; background: #fff; }
.ts-side { background: #f6f8ff; padding: 12px; border-right: 1px solid var(--ink-100); }
.ts-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: #fff; display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: .78rem;
  margin-bottom: 8px;
}
.ts-name { font-weight: 700; font-size: .85rem; color: var(--navy-800); }
.ts-meta { font-size: .72rem; color: var(--ink-500); margin-bottom: 10px; }
.ts-tabs { display: grid; gap: 4px; }
.ts-tab {
  font-size: .75rem; padding: 4px 8px; border-radius: 6px;
  color: var(--ink-500); background: transparent;
}
.ts-tab.active { background: #fff; color: var(--navy-800); font-weight: 600; box-shadow: var(--shadow-sm); }
.ts-main { padding: 12px; display: grid; gap: 8px; }
.ts-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 8px 10px; border-radius: 8px;
  background: #fbfbff; border: 1px solid var(--ink-100);
  font-size: .82rem;
}
.ts-row.ok    { border-color: #cde5d5; background: #f4faf6; }
.ts-row.warn  { border-color: #ffd977; background: #fff7e6; }
.ts-row.block { border-color: #ffb7c4; background: #ffeef1; }
.ts-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; padding: .1rem .4rem; border-radius: 5px;
  background: #fff; border: 1px solid var(--ink-100);
  color: var(--navy-800); font-weight: 700;
}
.ts-pill.hdr { background: #eef1fb; color: var(--ink-500); }
.ts-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem; padding: .1rem .4rem; border-radius: 5px;
  margin-left: auto;
}
.ts-tag.hcc   { background: #fff2c9; color: #7a4a00; border: 1px solid #ffd977; }
.ts-tag.raf   { background: #e6ecff; color: var(--navy-800); border: 1px solid #b9c6ff; }
.ts-tag.warn  { background: #fff2c9; color: #7a4a00; border: 1px solid #ffd977; }
.ts-tag.block { background: var(--red-100); color: var(--red-600); border: 1px solid #ffb7c4; }

/* Search tile */
.ts-search { padding: 12px; display: grid; gap: 6px; background: #fff; }
.ts-search-input {
  display: flex; gap: 8px; align-items: center;
  padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--navy-800);
  background: #fff; color: var(--ink-900);
  font-family: 'JetBrains Mono', monospace; font-size: .8rem;
}
.ts-search-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 6px; font-size: .8rem;
}
.ts-search-row.hit { background: #fff5d1; }
.ts-search-row.header { color: var(--ink-500); font-style: italic; }
.ts-search-title { color: var(--ink-900); flex: 1; }
.ts-search-title em { color: var(--ink-500); }

/* RAF tile */
.ts-raf { display: grid; grid-template-columns: 160px 1fr; background: #fff; }
.ts-raf-total { background: #0e1a48; color: #fff; padding: 16px; }
.ts-raf-l { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #c9d1f2; }
.ts-raf-v { font-family: 'JetBrains Mono', monospace; font-size: 2rem; font-weight: 800; margin: 4px 0; }
.ts-raf-delta { color: var(--ok); font-size: .78rem; font-weight: 700; }
.ts-raf-list { padding: 12px; display: grid; gap: 8px; align-content: center; }
.ts-raf-list > div {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .82rem; color: var(--ink-700);
  padding-bottom: 6px; border-bottom: 1px dashed var(--ink-100);
}
.ts-raf-list b { font-family: 'JetBrains Mono', monospace; color: var(--navy-800); }

/* Graph tile */
.ts-graph { background: #0e1a48; }
.ts-graph svg { width: 100%; display: block; }
.ts-graph-cap { padding: 8px 12px; background: #0a1338; color: #c9d1f2; font-size: .78rem; }
.ts-graph-cap b { color: #fff; font-family: 'JetBrains Mono', monospace; }


/* ---------- Case Studies ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--ink-100); border-radius: 16px;
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfd6ef; }
.case-head { padding: 22px 22px 10px; }
.case-tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--red-600); background: var(--red-100);
  padding: .25rem .6rem; border-radius: 999px; margin-bottom: .8rem;
}
.case-head h3 { font-size: 1.2rem; line-height: 1.3; color: var(--ink-900); }
.case-body { padding: 4px 22px 8px; flex: 1; }
.case-body p { font-size: .95rem; color: var(--ink-700); }
.case-body p code {
  font-family: 'JetBrains Mono', monospace;
  background: #f2f4fb; padding: 0 5px; border-radius: 4px; font-size: .82rem;
}
.case-kpis {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.case-kpis li {
  background: #fbfbff; border: 1px solid var(--ink-100);
  border-radius: 10px; padding: 10px 12px;
  font-size: .85rem; color: var(--ink-700);
}
.case-kpis b {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  color: var(--navy-800); font-size: 1.1rem; margin-bottom: 2px;
}
.case-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 14px 22px; margin-top: 12px;
  background: #fbfbff; border-top: 1px solid var(--ink-100);
  font-size: .82rem; color: var(--ink-500);
}
.case-foot strong { color: var(--navy-800); }
@media (max-width: 900px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-kpis { grid-template-columns: 1fr; }
}


/* ---------- Leadership & Careers ---------- */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.tm {
  background: #fff; border: 1px solid var(--ink-100); border-radius: 14px;
  padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tm:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tm h3 { margin: 0 0 .1rem; font-size: 1.1rem; }
.tm .role {
  font-size: .82rem; font-weight: 600; color: var(--red-600);
  letter-spacing: .02em; margin-bottom: .6rem;
}
.tm p { margin: 0; font-size: .92rem; color: var(--ink-700); }

.avatar {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 1.15rem; color: #fff;
  margin-bottom: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.av-navy { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); }
.av-red  { background: linear-gradient(135deg, var(--red-500), #ff8797); }

@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

.careers {
  margin-top: 48px;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px;
  background: #fff; border: 1px solid var(--ink-100); border-radius: 16px;
  padding: 28px; box-shadow: var(--shadow-sm);
}
.careers h3 { font-size: 1.5rem; margin-top: .5rem; }
.careers-jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.job {
  display: block; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--ink-100); background: #fbfbff;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.job:hover { transform: translateY(-2px); border-color: var(--red-500); background: #fff; }
.job-title { color: var(--ink-900); font-weight: 600; font-size: .95rem; }
.job-meta  { color: var(--ink-500); font-size: .82rem; margin-top: 2px; }
@media (max-width: 900px) {
  .careers { grid-template-columns: 1fr; padding: 22px; }
  .careers-jobs { grid-template-columns: 1fr; }
}


/* ---------- Compliance ---------- */
.comp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.comp {
  background: #fff; border: 1px solid var(--ink-100); border-radius: 14px;
  padding: 22px; box-shadow: var(--shadow-sm);
}
.comp-badge {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: #fff; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: .8rem;
  margin-bottom: 14px;
}
.comp p { margin: 0; font-size: .92rem; }
@media (max-width: 900px) { .comp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .comp-grid { grid-template-columns: 1fr; } }

/* ---------- Locations ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.loc {
  background: #fff; border: 1px solid var(--ink-100); border-radius: 14px;
  padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.loc:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.loc-kind {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: .5rem;
}
.loc-kind .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--red-500); }
.loc h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.loc p  { margin: 0; color: var(--ink-700); font-size: .95rem; }
.loc-us { border-color: #ffd977; box-shadow: 0 0 0 3px #fff5d1 inset, var(--shadow-sm); }
@media (max-width: 900px) { .loc-grid { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.section-cta {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(234,53,86,.14), transparent 60%),
    linear-gradient(180deg, #0e1a48 0%, #0a1338 100%);
  color: #fff;
}
.cta-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.cta-copy h2 { color: #fff; }
.cta-copy p  { color: #c9d1f2; }
.cta-bullets { padding-left: 1rem; color: #c9d1f2; }
.cta-form {
  background: #fff; color: var(--ink-900);
  border-radius: 16px; padding: 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  box-shadow: var(--shadow-lg);
}
.cta-form label { display: grid; gap: 6px; font-size: .82rem; color: var(--ink-500); font-weight: 600; }
.cta-form input, .cta-form select, .cta-form textarea {
  font: inherit; color: var(--ink-900);
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--ink-100); background: #fbfbff;
  outline: none; transition: border-color .12s ease, box-shadow .12s ease;
}
.cta-form input:focus, .cta-form select:focus, .cta-form textarea:focus {
  border-color: var(--navy-800); box-shadow: 0 0 0 4px rgba(14,26,72,.08);
}
.cta-form .full { grid-column: 1 / -1; }
.cta-form button { grid-column: 1 / -1; justify-self: start; }
.form-ok { grid-column: 1 / -1; color: var(--ok); font-weight: 600; }
@media (max-width: 900px) { .cta-wrap, .cta-form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot {
  background: #0a1338; color: #c9d1f2;
  padding: 56px 0 20px;
}
.foot h4 { color: #fff; margin: 0 0 12px; font-size: .95rem; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px;
}
.foot-brand p { color: #c9d1f2; font-size: .92rem; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-col a { color: #c9d1f2; font-size: .92rem; }
.foot-col a:hover { color: #fff; }
.foot-badges { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.foot-badges li {
  font-size: .72rem; padding: .25rem .55rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15); color: #fff;
}
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .82rem; color: #8b93b8; flex-wrap: wrap; gap: 8px;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
