/* ==========================================================================
   AgentSupply — site styles
   Warm dark · Inter Tight · Instrument Serif italic · JetBrains Mono · #3a6dff
   ========================================================================== */

:root {
  --bg: #0e0d0c;
  --bg-2: #15130f;
  --bg-3: #1c1916;
  --line: #2a2622;
  --line-2: #3a342d;
  --ink: #f4eee5;
  --ink-2: #d8d1c4;
  --mute: #9a9082;
  --mute-2: #6f6759;
  --blue: #3a6dff;
  --blue-2: #6a8cff;
  --blue-tint: rgba(58, 109, 255, 0.12);
  --warn: #e8b66b;

  --r: 4px;
  --r-lg: 4px;

  --sans: "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Type ---------- */
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: var(--mono); font-weight: 400; letter-spacing: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
  box-shadow: 0 0 0 4px rgba(58,109,255,0.18);
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.025em; }
h1 { font-family: var(--sans); font-size: clamp(48px, 7.6vw, 112px); line-height: 0.96; letter-spacing: -0.04em; }
h2 { font-family: var(--sans); font-size: clamp(32px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.035em; }
h3 { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
h4 { font-size: 18px; line-height: 1.3; }

p { margin: 0; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(72px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.row { display: flex; gap: 24px; }
.grid { display: grid; gap: 24px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 13, 12, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
}
.brand img.logo { height: 32px; width: auto; display: block; }
.footer .brand img.logo { height: 28px; }
.brand-legacy {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 22px; height: 22px;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  border-radius: var(--r);
}
.brand .dim { color: var(--mute); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin-left: 6px; }

.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav-links a {
  position: relative;
  padding: 8px 2px;
  color: var(--ink-2);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--blue);
}

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn .arrow { font-family: var(--mono); font-size: 14px; line-height: 1; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #2f5cf0; }
.btn-ghost { color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--mute); background: rgba(255,255,255,0.02); }
.btn-light { background: var(--ink); color: var(--bg); }
.btn-light:hover { background: #fff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 22px; font-size: 15px; }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.link:hover { color: var(--ink); border-color: var(--mute); }
.link .arrow { font-family: var(--mono); font-size: 13px; }
.link-blue { color: var(--blue-2); border-color: rgba(106,140,255,0.3); }
.link-blue:hover { color: #93afff; border-color: var(--blue-2); }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.tag-blue { border-color: rgba(58,109,255,0.45); color: var(--blue-2); background: var(--blue-tint); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
}
.card-hover { transition: border-color .2s ease, transform .2s ease; }
.card-hover:hover { border-color: var(--line-2); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 36px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer h5 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--ink-2); font-size: 14px; }
.footer ul a:hover { color: var(--ink); }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--mute);
  transition: color .15s ease, border-color .15s ease;
}
.social a:hover { color: var(--ink); border-color: var(--mute); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.footer-bottom .links { display: flex; gap: 24px; }

/* ---------- Decorative bits ---------- */
.kbd {
  display: inline-grid; place-items: center;
  height: 22px; min-width: 22px; padding: 0 6px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
}
.divider { height: 1px; background: var(--line); width: 100%; }
.vrule { width: 1px; background: var(--line); }
.dot-grid {
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 14px 14px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(72px, 10vw, 132px);
  padding-bottom: clamp(72px, 10vw, 132px);
  border-top: 0;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}
.hero-eyebrow { margin-bottom: 28px; }
.hero h1 { max-width: 14ch; }
.hero-sub {
  margin-top: 28px;
  max-width: 56ch;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  margin-top: 56px;
  display: flex; gap: 32px; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  letter-spacing: 0.06em; text-transform: uppercase;
  flex-wrap: wrap;
}
.hero-meta .pulse {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #5fd07a; box-shadow: 0 0 0 4px rgba(95,208,122,0.18);
  margin-right: 8px; vertical-align: 1px;
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--sans);
  font-size: clamp(40px, 5.2vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1;
  font-weight: 500;
}
.stat-num em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--blue-2); }
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- Product cards (homepage) ---------- */
.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px;
  min-height: 520px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.product-card:hover { border-color: var(--line-2); }
.product-card .visual { margin: -32px -32px 28px; height: 220px; border-bottom: 1px solid var(--line); }
.product-card h3 .serif { color: var(--blue-2); }
.product-card .desc { margin-top: 16px; color: var(--ink-2); max-width: 44ch; font-size: 15.5px; line-height: 1.55; }
.product-card .footerline { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.product-card .feature-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step { padding: 36px 32px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; min-height: 260px; }
.step:last-child { border-right: 0; }
.step-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--mute); }
.step h3 { font-size: 28px; letter-spacing: -0.025em; }
.step h3 em { font-family: var(--serif); font-style: italic; color: var(--blue-2); font-weight: 400; }
.step p { color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 30ch; }

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: end;
}
.section-head h2 { max-width: 16ch; }
.section-head h2 em { font-family: var(--serif); font-style: italic; color: var(--blue-2); font-weight: 400; }
.section-head .lede { color: var(--mute); font-size: 15px; max-width: 40ch; }

/* ---------- Generic visuals (placeholders) ---------- */
.visual-receptionist {
  background:
    radial-gradient(80% 100% at 0% 100%, rgba(58,109,255,0.18), transparent 60%),
    radial-gradient(60% 80% at 100% 0%, rgba(232,182,107,0.10), transparent 60%),
    linear-gradient(180deg, #1a1714, #131110);
  position: relative;
}
.visual-setter {
  background:
    radial-gradient(80% 100% at 100% 100%, rgba(58,109,255,0.22), transparent 60%),
    linear-gradient(180deg, #14131a, #0f0e10);
  position: relative;
}

/* call viz inside cards */
.call-viz {
  position: absolute;
  inset: 24px 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.06em;
}
.call-viz .top { display: flex; justify-content: space-between; }
.call-viz .wave { display: flex; align-items: end; gap: 3px; height: 60px; }
.call-viz .wave span {
  width: 3px; background: var(--blue);
  border-radius: 2px;
  opacity: 0.85;
}
.call-viz .meta-row { display: flex; justify-content: space-between; align-items: end; }
.call-viz .big {
  font-family: var(--sans); font-weight: 500;
  font-size: 28px; letter-spacing: -0.025em;
  color: var(--ink);
}
.call-viz .big em { font-family: var(--serif); font-style: italic; color: var(--blue-2); font-weight: 400; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.price-col { padding: 36px 32px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; background: var(--bg-2); }
.price-col:last-child { border-right: 0; }
.price-col.featured { background: linear-gradient(180deg, rgba(58,109,255,0.06), transparent 60%), var(--bg-2); }
.price-col.featured .feat-tag { color: var(--blue-2); }
.price-num { font-family: var(--sans); font-size: 56px; letter-spacing: -0.04em; line-height: 1; font-weight: 500; }
.price-num em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--blue-2); }
.price-num .per { font-family: var(--mono); font-size: 12px; color: var(--mute); letter-spacing: 0.06em; text-transform: uppercase; margin-left: 6px; }
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feat-list li { display: flex; gap: 10px; align-items: start; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.feat-list .check { color: var(--blue-2); font-family: var(--mono); font-size: 13px; margin-top: 2px; }

/* ---------- Comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; }
.compare th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.compare td.col-name { color: var(--ink-2); }
.compare td.col-val { color: var(--ink); }
.compare tr:last-child td { border-bottom: 0; }

/* ---------- Detail page hero ---------- */
.subhero { padding: clamp(64px, 8vw, 100px) 0; }
.subhero h1 { font-size: clamp(40px, 6vw, 84px); max-width: 18ch; }
.subhero .lede { margin-top: 24px; max-width: 56ch; color: var(--ink-2); font-size: 18px; line-height: 1.55; }

/* ---------- Feature row (detail pages) ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feat-cell { padding: 36px 32px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-height: 220px; }
.feat-cell:last-child { border-right: 0; }
.feat-cell h4 { font-size: 22px; letter-spacing: -0.02em; font-weight: 500; }
.feat-cell h4 em { font-family: var(--serif); font-style: italic; color: var(--blue-2); font-weight: 400; }
.feat-cell p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* ---------- Two col content block ---------- */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.twocol .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--mute); text-transform: uppercase; margin-bottom: 16px; display: block; }

/* ---------- Transcript / call mock ---------- */
.transcript {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  padding: 28px;
  font-family: var(--mono);
  font-size: 13px;
  display: grid; gap: 14px;
}
.transcript .turn { display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: start; }
.transcript .who { color: var(--mute); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10.5px; padding-top: 2px; }
.transcript .who.agent { color: var(--blue-2); }
.transcript .said { color: var(--ink-2); font-family: var(--sans); font-size: 14.5px; line-height: 1.55; letter-spacing: -0.005em; }
.transcript .said em { font-family: var(--serif); font-style: italic; color: var(--ink); }
.transcript .meta { font-family: var(--mono); font-size: 10.5px; color: var(--mute); margin-top: 4px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Logo strip ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.logos .ml { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--mute-2); letter-spacing: -0.01em; }
.logos .mm { font-family: var(--mono); font-size: 18px; color: var(--mute-2); letter-spacing: 0.04em; }

/* ---------- Misc ---------- */
.muted { color: var(--mute); }
.dim { color: var(--mute-2); }
.center { text-align: center; }
.no-wrap { white-space: nowrap; }
em.s { font-family: var(--serif); font-style: italic; color: var(--blue-2); font-weight: 400; }
em.sw { font-family: var(--serif); font-style: italic; color: var(--ink); font-weight: 400; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .products { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .price-grid { grid-template-columns: 1fr; }
  .price-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .price-col:last-child { border-bottom: 0; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .feat-cell:last-child { border-bottom: 0; }
  .twocol { grid-template-columns: 1fr; gap: 32px; }
}
