/* ============ TOKENS ============ */
:root {
  --navy:      #16223d;   /* Deep Navy  */
  --navy-2:    #1d2c4c;
  --slate:     #3c62a6;   /* Slate Blue (accent, was docuchat gold) */
  --slate-2:   #567cc4;
  --slate-ink: #2f4f88;
  --white:     #ffffff;   /* Crisp White */
  --ink:       #17233d;
  --body:      #5c6678;
  --muted:     #8a93a6;
  --line:      #e8ebf2;
  --line-soft: #eef1f7;
  --bg:        #ffffff;
  --bg-tint:   #f6f8fc;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --shadow-lg: 0 40px 80px -32px rgba(22, 34, 61, .30), 0 8px 24px -12px rgba(22, 34, 61, .18);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* subtle warm-cool wash behind the hero, like docuchat */
  background-image:
    radial-gradient(900px 460px at 50% -60px, rgba(60,98,166,.07), transparent 70%);
  background-repeat: no-repeat;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { border-radius: 8px; display: block; }
.brand-word {
  font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--navy);
}
.brand-accent { color: var(--slate); }
.brand.small .brand-word { font-size: 16px; }

.gh-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--navy); color: #fff;
  font-weight: 600; font-size: 14.5px; letter-spacing: -.01em;
  padding: 11px 18px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 20px -10px rgba(22,34,61,.55);
  transition: transform .18s ease, background .18s ease;
}
.gh-btn:hover { background: var(--navy-2); transform: translateY(-1px); }
.gh-btn svg { opacity: .95; }

/* ============ HERO ============ */
.hero { text-align: center; padding: 74px 28px 40px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 74px);
  line-height: 1.04;
  letter-spacing: -.015em;
  color: var(--navy);
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--slate);
}
.hero-sub {
  max-width: 600px; margin: 26px auto 0;
  font-size: 18px; line-height: 1.62; color: var(--body);
}

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 14px 24px; border-radius: 999px; text-decoration: none;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary {
  background: var(--slate); color: #fff;
  box-shadow: 0 14px 30px -12px rgba(60,98,166,.7);
}
.btn-primary:hover { background: var(--slate-ink); transform: translateY(-1px); }
.btn-ghost {
  background: #fff; color: var(--navy);
  border: 1px solid var(--line); box-shadow: 0 6px 16px -12px rgba(22,34,61,.4);
}
.btn-ghost:hover { border-color: #d6dbe7; transform: translateY(-1px); }
.soon {
  font-family: var(--mono); font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; margin-left: 2px;
}

.hero-micro {
  margin-top: 22px;
  font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: -.01em;
}

/* ============ MOCKUP WINDOW ============ */
.mockup-stage { padding: 26px 28px 60px; }
.window {
  max-width: 940px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.window-bar {
  height: 40px; display: flex; align-items: center; gap: 8px;
  padding: 0 16px; background: #fbfcfe; border-bottom: 1px solid var(--line-soft);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #f0655a; } .dot-y { background: #f4bd4e; } .dot-g { background: #66c258; }
.window-url {
  margin: 0 auto; font-family: var(--mono); font-size: 12px; color: var(--muted);
  background: #fff; border: 1px solid var(--line-soft); border-radius: 7px; padding: 4px 40px;
}

.app { display: grid; grid-template-columns: 232px 1fr; height: 468px; }

/* --- sidebar --- */
.sidebar {
  background: var(--navy); color: #cdd6e6;
  display: flex; flex-direction: column; padding: 18px 14px;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 16px; }
.side-brand img { border-radius: 7px; }
.side-brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.side-brand-text strong { color: #fff; font-size: 14px; letter-spacing: -.01em; }
.badge-pipeline {
  font-family: var(--mono); font-size: 8.5px; text-transform: uppercase; letter-spacing: .12em;
  color: #8ea6d8; background: rgba(86,124,196,.16); border: 1px solid rgba(86,124,196,.3);
  padding: 1px 6px; border-radius: 4px; width: max-content;
}
.side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.side-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #aebbd2; padding: 9px 10px; border-radius: 8px; cursor: default;
}
.side-item i {
  width: 15px; height: 15px; border-radius: 4px; flex: none;
  background: rgba(174,187,210,.28);
}
.side-item.active { background: rgba(86,124,196,.20); color: #fff; }
.side-item.active i { background: var(--slate-2); }
.side-foot { margin-top: auto; padding: 12px 8px 4px; border-top: 1px solid rgba(255,255,255,.08); }
.side-foot-label {
  font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; color: #7f8db0;
}
.side-foot em { display: block; font-style: normal; font-weight: 600; color: #eef2f9; font-size: 13px; margin-top: 5px; }

/* --- main --- */
.main { display: flex; flex-direction: column; background: #fff; }
.main-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
}
.meeting-select {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; color: var(--ink);
  background: #fcfdff;
}
.ms-label { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ms-value { font-size: 13px; font-weight: 500; }
.meeting-select svg { color: var(--muted); }
.new-btn {
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 14px; cursor: default;
}

/* --- animated stage --- */
.stage { position: relative; flex: 1; overflow: hidden; }
.panel {
  position: absolute; inset: 0; padding: 22px;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .5s ease, transform .5s ease;
  display: flex; flex-direction: column;
}
.panel.show { opacity: 1; transform: none; }

/* stage 1: transcript */
.panel-head { margin-bottom: 14px; }
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; color: var(--slate-ink);
  background: rgba(60,98,166,.08); border: 1px solid rgba(60,98,166,.18);
  padding: 5px 10px; border-radius: 999px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #34c47a; box-shadow: 0 0 0 0 rgba(52,196,122,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,196,122,.55)} 70%{box-shadow:0 0 0 7px rgba(52,196,122,0)} 100%{box-shadow:0 0 0 0 rgba(52,196,122,0)} }

.chat { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.line { display: flex; gap: 10px; align-items: flex-start; max-width: 90%; opacity: 0; transform: translateY(6px); }
.line.in { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s ease; }
.line.right { align-self: flex-end; flex-direction: row-reverse; }
.who { width: 30px; height: 30px; border-radius: 50%; flex: none; font-size: 12px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center; }
.who.s { background: linear-gradient(135deg,#5b7fc7,#3c62a6); }
.who.j { background: var(--navy); }
.bubble {
  font-size: 13.5px; line-height: 1.5; color: var(--ink);
  background: var(--bg-tint); border: 1px solid var(--line-soft);
  padding: 9px 13px; border-radius: 13px;
}
.line.right .bubble { background: var(--navy); color: #eaf0fb; border-color: transparent; }
.caret { border-right: 2px solid var(--slate); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { border-color: transparent; } }

.gate {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease;
}
.gate.in { opacity: 1; transform: none; }
.gate-chip { font-family: var(--mono); font-size: 11px; color: var(--body); background: #f0f3f9; border: 1px solid var(--line); padding: 4px 9px; border-radius: 6px; }
.gate-val { font-family: var(--mono); font-size: 12px; font-weight: 600; color: #1f9d5b; }

/* stage 2: pipeline */
.panel-pipeline { justify-content: center; }
.pipe-title { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--navy); text-align: center; margin-bottom: 22px; }
.pipe { list-style: none; display: flex; flex-direction: column; gap: 10px; max-width: 440px; margin: 0 auto; width: 100%; }
.pipe li {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 11px; padding: 13px 16px; background: #fff;
  opacity: .45; transition: opacity .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.pipe li .pdot { width: 9px; height: 9px; border-radius: 50%; background: #cdd5e3; flex: none; transition: background .35s; }
.pipe li .pname { font-weight: 600; font-size: 14px; color: var(--ink); }
.pipe li .pmeta { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-left: auto; }
.pipe li .pcheck { color: #1f9d5b; font-weight: 700; opacity: 0; transition: opacity .3s; margin-left: 8px; }
.pipe li.run { opacity: 1; border-color: rgba(60,98,166,.4); box-shadow: 0 8px 22px -16px rgba(60,98,166,.7); }
.pipe li.run .pdot { background: var(--slate); animation: spinpulse 1s ease-in-out infinite; }
.pipe li.done { opacity: 1; }
.pipe li.done .pdot { background: #1f9d5b; }
.pipe li.done .pcheck { opacity: 1; }
@keyframes spinpulse { 0%,100%{ transform: scale(.8); } 50%{ transform: scale(1.25); } }

/* stage 3: proposal */
.panel-proposal { padding: 20px; }
.doc { border: 1px solid var(--line); border-radius: 13px; padding: 20px; flex: 1; display: flex; flex-direction: column; background: linear-gradient(180deg,#fff, #fcfdff); }
.doc-head { display: flex; align-items: flex-start; justify-content: space-between; }
.doc-kicker { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--slate); }
.doc-title { font-family: var(--serif); font-weight: 500; font-size: 21px; color: var(--navy); margin-top: 4px; }
.doc-ready { font-size: 11px; font-weight: 600; color: #1f9d5b; background: rgba(31,157,91,.1); border: 1px solid rgba(31,157,91,.25); padding: 4px 10px; border-radius: 999px; }
.doc-lines { display: flex; flex-direction: column; gap: 7px; margin: 16px 0 18px; }
.dl { height: 7px; border-radius: 4px; background: linear-gradient(90deg,#eef1f7,#e3e8f1); }

.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.tier {
  border: 1px solid var(--line); border-radius: 11px; padding: 14px 12px 15px; text-align: center; position: relative;
  opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease;
}
.panel-proposal.show .tier { opacity: 1; transform: none; }
.panel-proposal.show .tier:nth-child(1) { transition-delay: .15s; }
.panel-proposal.show .tier:nth-child(2) { transition-delay: .3s; }
.panel-proposal.show .tier:nth-child(3) { transition-delay: .45s; }
.tier-rec { border-color: var(--slate); box-shadow: 0 14px 30px -18px rgba(60,98,166,.75); background: #fff; }
.tier-flag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff;
  background: var(--slate); padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.tier-name { display: block; font-size: 12px; font-weight: 600; color: var(--body); text-transform: uppercase; letter-spacing: .05em; }
.tier-price { display: block; font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--navy); margin: 7px 0 3px; }
.tier-price small { font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.tier-sub { display: block; font-size: 11px; color: var(--muted); }

.doc-foot { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 16px; }
.file { font-family: var(--mono); font-size: 11.5px; color: var(--body); }
.file b { color: var(--ink); font-weight: 600; }
.approve { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--slate); }

.stage-caption {
  text-align: center; margin-top: 22px; min-height: 20px;
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  transition: opacity .3s ease;
}

/* ============ THE PROBLEM ============ */
.problem {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 60px; align-items: center; padding: 70px 28px 60px;
}
.problem-media img {
  width: 100%; height: auto; display: block; border-radius: 22px;
  border: 1px solid rgba(22,34,61,.10);
  box-shadow: 0 40px 80px -34px rgba(22,34,61,.42), 0 8px 24px -14px rgba(22,34,61,.20);
}
.problem-copy .kicker { margin-bottom: 20px; }
.problem-title {
  font-family: var(--serif); font-weight: 500; color: var(--navy);
  font-size: clamp(34px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -.015em;
}
.problem-title em { font-style: italic; color: var(--slate); }
.problem-copy p {
  font-size: 17.5px; line-height: 1.65; color: var(--body); margin-top: 18px;
}

/* ============ INTEGRATIONS ============ */
.integrations { padding: 30px 28px 40px; }
.int-top {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr); gap: 30px; align-items: center;
  margin-bottom: 44px;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em;
  color: var(--slate); background: rgba(60,98,166,.08); border: 1px solid rgba(60,98,166,.16);
  padding: 7px 13px; border-radius: 999px;
}
.int-title {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; color: var(--navy);
  font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; margin-top: 18px;
}
.int-title em { font-style: italic; color: var(--slate); }
.int-sub { margin-top: 20px; font-size: 17px; line-height: 1.6; color: var(--body); }
.int-sub-muted { color: var(--muted); }

/* --- hub scene --- */
.eco { position: relative; width: 100%; min-width: 0; overflow: hidden; }
.eco-scale { position: relative; width: 1000px; height: 560px; transform-origin: top left; }

.eco-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eco-wire-base { fill: none; stroke: #c7d1e6; stroke-width: 1.4; opacity: .5; }
.eco-wire {
  fill: none; stroke: var(--slate-2); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 0.5 11; opacity: .9;
  animation: flow 1.5s linear infinite;
}
.eco-wire.out { animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -11.5; } }

.eco-node, .eco-hub { position: absolute; transform: translate(-50%, -50%); }

.eco-hub { z-index: 3; display: grid; place-items: center; }
.eco-hub-tile {
  width: 116px; height: 116px; border-radius: 28px;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 26px 54px -16px rgba(47,79,136,.55), 0 0 0 1px rgba(60,98,166,.10),
              0 0 44px -6px rgba(79,121,201,.45);
}
.eco-hub-tile img { width: 80px; height: 80px; display: block; }
.ring {
  position: absolute; top: 50%; left: 50%; border-radius: 50%; border: 1px solid rgba(60,98,166,.28);
  animation: ringpulse 3.6s ease-out infinite;
}
.ring-1 { width: 170px; height: 170px; margin: -85px 0 0 -85px; }
.ring-2 { width: 236px; height: 236px; margin: -118px 0 0 -118px; animation-delay: 1.8s; }
@keyframes ringpulse {
  0%   { transform: scale(.7); opacity: .0; }
  35%  { opacity: .8; }
  100% { transform: scale(1.15); opacity: 0; }
}

.eco-node { z-index: 2; animation: floaty 5.5s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 7px)); } }
.eco-card {
  min-width: 74px; height: 62px; padding: 0 14px; border-radius: 15px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 16px 34px -18px rgba(22,34,61,.32), 0 3px 8px -4px rgba(22,34,61,.14);
  display: grid; place-items: center;
}
.eco-card .ico { width: 30px; height: 30px; display: block; }
.eco-card .brand-logo { width: 38px; height: 38px; display: block; object-fit: contain; }

/* --- support cards --- */
.int-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.int-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px;
  box-shadow: 0 14px 40px -28px rgba(22,34,61,.4);
}
.int-card-head {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em;
  color: var(--slate); padding-bottom: 6px; margin-bottom: 6px;
}
.int-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft);
}
.int-row:last-child { border-bottom: 0; }
.int-chip {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  background: #fafbfe; border: 1px solid var(--line-soft);
  display: grid; place-items: center;
}
.int-chip .ico { width: 22px; height: 22px; }
.int-chip .brand-logo { width: 26px; height: 26px; object-fit: contain; display: block; }
.int-name { font-size: 16px; font-weight: 600; color: var(--ink); }
.pill-ok {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
  color: var(--slate); background: rgba(60,98,166,.07); border: 1px solid rgba(60,98,166,.16);
  padding: 4px 10px; border-radius: 999px;
}

/* --- security bar --- */
.int-secure {
  display: flex; align-items: center; gap: 16px; margin-top: 20px;
  background: linear-gradient(180deg, #f7f9fd, #f1f4fb);
  border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px;
}
.secure-badge {
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  background: rgba(60,98,166,.1); color: var(--slate); display: grid; place-items: center;
}
.secure-lead { font-weight: 700; font-size: 16px; color: var(--navy); letter-spacing: -.01em; }
.secure-lead span { color: var(--slate); }
.secure-note { color: var(--muted); font-size: 14px; margin-left: 4px; }
.secure-shield { color: var(--slate); margin-left: auto; flex: none; }

/* ============ THE ENGINE / MODELS ============ */
.engine { padding: 60px 28px 70px; text-align: center; }
.engine-head { max-width: 720px; margin: 0 auto; }
.engine-title {
  font-family: var(--serif); font-weight: 500; color: var(--navy);
  font-size: clamp(32px, 4vw, 50px); line-height: 1.07; letter-spacing: -.015em; margin-top: 18px;
}
.engine-title em { font-style: italic; color: var(--slate); }
.engine-sub { margin-top: 20px; font-size: 17.5px; line-height: 1.62; color: var(--body); }

.model-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  max-width: 780px; margin: 40px auto 0;
}
.model-chip {
  display: inline-flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 12px 18px;
  box-shadow: 0 10px 26px -20px rgba(22,34,61,.5);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.model-chip:hover { transform: translateY(-2px); border-color: #d6dbe7; box-shadow: 0 16px 32px -20px rgba(22,34,61,.5); }
.model-chip img { width: 30px; height: 30px; object-fit: contain; display: block; }
.model-chip span { font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.model-chip-more {
  background: transparent; border-style: dashed; border-color: rgba(60,98,166,.35);
  box-shadow: none;
}
.model-chip-more span { color: var(--slate); }

.engine-loop {
  display: flex; align-items: center; gap: 16px; text-align: left;
  max-width: 720px; margin: 34px auto 0;
  background: linear-gradient(180deg, #f7f9fd, #eef2fb);
  border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px;
}
.loop-icon {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  background: var(--slate); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 26px -12px rgba(60,98,166,.7);
}
.engine-loop p { font-size: 15.5px; line-height: 1.55; color: var(--body); }
.engine-loop strong { color: var(--navy); font-weight: 700; }

/* Agent-call example: a chat exchange inside the .engine-loop card shell */
.engine-loop.agent-call { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.agent-call .ac-head { display: flex; align-items: center; gap: 9px; }
.agent-call .ac-eyebrow {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--slate);
}
.agent-call .ac-badge {
  font-family: var(--mono); font-size: 9px; letter-spacing: .06em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; background: #fff;
}
.agent-call .chatline { display: flex; align-items: flex-end; gap: 9px; }
.agent-call .chatline-out { flex-direction: row-reverse; }
.agent-call .chatav {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; font-weight: 700; color: #fff;
}
.agent-call .chatav-oc { background: linear-gradient(135deg, #5b7fc7, #3c62a6); }
.agent-call .chatav-pa { background: #fff; border: 1px solid var(--line); }
.agent-call .chatav-pa img { display: block; border-radius: 5px; }
.agent-call .chatbubble {
  max-width: 80%; padding: 10px 13px; border-radius: 15px;
  font-size: 14px; line-height: 1.5;
}
.agent-call .chatname {
  display: block; font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .04em; margin-bottom: 3px;
}
.agent-call .chatbubble-out {
  background: var(--navy); color: #e7eefb; border-bottom-right-radius: 5px;
}
.agent-call .chatbubble-out .chatname { color: #a9bce0; }
.agent-call .chatbubble-in {
  background: #fff; color: var(--body); border: 1px solid var(--line);
  border-bottom-left-radius: 5px; box-shadow: 0 8px 22px -16px rgba(22,34,61,.28);
}
.agent-call .chatbubble-in .chatname { color: var(--slate-ink); }
.agent-call .chatbubble-in strong { color: var(--navy); font-weight: 600; }
.agent-call .ac-foot {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: -.005em; margin-top: 2px; text-align: center;
}

/* ============ FAQ ============ */
.faq { padding: 20px 28px 80px; }
.faq-head { text-align: center; margin-bottom: 40px; }
.faq-title {
  font-family: var(--serif); font-weight: 500; color: var(--navy);
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.02em; margin-top: 16px;
}
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-item[open] { border-color: #d6dbe7; box-shadow: 0 16px 40px -28px rgba(22,34,61,.45); }
.faq-item summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px;
  font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--navy); letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 18px; height: 18px; flex: none; }
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; background: var(--slate); border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.faq-plus::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-plus::after  { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] .faq-plus::after { transform: scaleY(0); opacity: 0; }
.faq-a { padding: 0 26px 24px; margin-top: -4px; }
.faq-a p { font-size: 16.5px; line-height: 1.62; color: var(--body); max-width: 90%; }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--line-soft); margin-top: 20px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; flex-wrap: wrap; gap: 12px; }
.foot-note { font-size: 13.5px; color: var(--muted); }

/* ============ RESPONSIVE ============ */
@media (max-width: 760px) {
  .hero { padding-top: 48px; }
  .header-inner { height: 64px; }
  .brand-word { font-size: 17px; white-space: nowrap; }
  .gh-btn { font-size: 13.5px; padding: 10px 15px; }
  .gh-btn span { white-space: nowrap; }
  .app { grid-template-columns: 1fr; height: auto; }
  .sidebar { display: none; }
  .stage { flex: none; height: 430px; }
  .window-url { padding: 4px 20px; }

  .panel-proposal { padding: 14px; }
  .doc { padding: 15px; }
  .doc-title { font-size: 18px; }
  .doc-lines { margin: 12px 0 14px; }
  .tiers { gap: 6px; }
  .tier { padding: 11px 6px 12px; }
  .tier-flag { font-size: 8px; padding: 2px 6px; }
  .tier-name { font-size: 10px; }
  .tier-price { font-size: 15px; }
  .tier-price small { display: block; font-size: 9px; margin: 2px 0 0; }
  .tier-sub { font-size: 9.5px; }
  .doc-foot { gap: 10px; }
  .file { font-size: 10px; }
  .approve { font-size: 12px; }
}

@media (max-width: 900px) {
  .int-top { grid-template-columns: 1fr; gap: 8px; }
  .int-intro { text-align: center; }
  .eco { margin-top: 6px; }
  .problem { grid-template-columns: 1fr; gap: 26px; padding-top: 48px; }
  .problem-media { order: 1; } /* photo below the text on mobile */
}
@media (max-width: 620px) {
  .int-cards { grid-template-columns: 1fr; }
  .int-secure { flex-wrap: wrap; }
  .secure-note { margin-left: 0; flex-basis: 100%; }
  .secure-shield { display: none; }
  .engine-loop { flex-direction: column; align-items: flex-start; gap: 12px; }
  .faq-item summary { font-size: 17px; padding: 18px 20px; gap: 14px; }
  .faq-a { padding: 0 20px 20px; }
  .faq-a p { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse, .caret, .pipe li.run .pdot,
  .eco-wire, .ring, .eco-node { animation: none; }
}
