/* ==========================================================================
   TechnologyNow — Brand System v2
   Anchor: violet | Accents: deep navy (executive gravitas) + coral (energy)
   Voice: Confident, plainspoken, visionary, outcomes-driven.
   ========================================================================== */

:root {
  /* Brand — violet anchor */
  --violet:        #6D3FD8;
  --violet-deep:   #4A1F8E;
  --violet-soft:   #B59CE8;
  --violet-tint:   #F2EDFB;

  /* Accents */
  --coral:         #FF6E5C;
  --coral-soft:    #FFD2C9;

  /* Executive neutrals */
  --navy:          #0B1230;   /* primary dark surface */
  --navy-soft:     #141B3A;
  --slate:         #2A3247;
  --ink:           #0B1230;
  --ink-mute:      #4B5263;
  --mute:          #8B92A6;
  --line:          #E6E4ED;

  /* Paper */
  --paper:         #FFFFFF;
  --paper-soft:    #FAF9FC;
  --paper-tint:    #F4F1FA;

  /* Master gradients */
  --grad:          linear-gradient(135deg, #4A1F8E 0%, #6D3FD8 55%, #FF6E5C 100%);
  --grad-soft:     linear-gradient(135deg, #6D3FD8 0%, #B59CE8 100%);
  --grad-dark:     linear-gradient(160deg, #0B1230 0%, #1A1248 55%, #4A1F8E 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(11,18,48,.05), 0 2px 8px rgba(11,18,48,.05);
  --shadow-md: 0 10px 30px rgba(74,31,142,.10), 0 2px 6px rgba(11,18,48,.06);
  --shadow-lg: 0 30px 70px rgba(74,31,142,.18);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--violet); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--violet-deep); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 .4em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.4rem, 4.8vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
p  { margin: 0 0 1em; color: var(--ink-mute); }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 16px;
}
.eyebrow.coral { color: var(--coral); }
.eyebrow.light { color: var(--violet-soft); }

.muted { color: var(--mute); }
.lead  { font-size: 1.2rem; color: var(--ink-mute); max-width: 64ch; }
.lead-lg { font-size: 1.35rem; line-height: 1.55; color: var(--ink-mute); max-width: 72ch; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------- Header / Nav (dark) --------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(11,18,48,.88);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 24px;
}
.nav .brand { display: inline-flex; align-items: center; }
.nav .brand img { height: 64px; width: auto; }
.nav ul {
  list-style: none; display: flex; gap: 28px; margin: 0; padding: 0;
}
.nav a.navlink {
  color: #DCD7EE; font-weight: 500; font-size: .98rem;
  position: relative; padding: 6px 2px;
  transition: color .15s ease;
}
.nav a.navlink:hover, .nav a.navlink.active { color: #fff; }
.nav a.navlink.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--grad); border-radius: 2px;
}
.nav-toggle {
  display: none; background: none; border: 0; color: #fff;
  padding: 6px; cursor: pointer;
}

/* --------- Buttons --------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: .98rem;
  transition: all .2s ease; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
}
.btn-sm {
  padding: 9px 18px;
  font-size: .88rem;
  font-weight: 600;
  gap: 6px;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(109,63,216,.32);
}
.btn-primary:hover {
  color: #fff; transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(109,63,216,.42);
}
.btn-ghost {
  background: transparent;
  color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }
.btn-dark {
  background: var(--ink); color: #fff;
}
.btn-dark:hover { color: #fff; background: var(--navy-soft); }
.btn-coral {
  background: var(--coral); color: #fff;
}
.btn-coral:hover { color: #fff; background: #e85a48; transform: translateY(-1px); }

/* --------- Hero --------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--grad-dark);
  color: #fff;
  padding: clamp(70px, 12vw, 140px) 0 clamp(70px, 12vw, 140px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.hero canvas.network-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .35; pointer-events: none;
}
.hero .inner { position: relative; max-width: 920px; }
.hero h1 { color: #fff; }
.hero .grad { background: linear-gradient(90deg, #B59CE8 0%, #FF9F8E 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { color: #C7C4D9; font-size: 1.25rem; max-width: 60ch; }
.hero .cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero .hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 56px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1);
  max-width: 720px;
}
.hero .hero-stats .stat strong {
  display: block; font-size: 1.9rem; font-weight: 700;
  background: linear-gradient(90deg, #fff 0%, #B59CE8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -.02em;
}
.hero .hero-stats .stat span { color: #9C99B5; font-size: .92rem; }

/* --- Hero Proof Strip (replaces vanity stats) --- */

.hero .hero-proof {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
  max-width: 980px;
}
.hero-proof-head {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 14px;
  margin-bottom: 26px;
}
.hero-proof-eyebrow {
  font-size: .76rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--violet-soft);
}
.hero-proof-link {
  font-size: .86rem; font-weight: 600;
  color: var(--coral);
  border-bottom: 1px solid rgba(255,110,92,.4);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.hero-proof-link:hover {
  color: #FFA694; border-color: var(--coral);
}
.hero-proof-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.hero-proof-grid .hp-stat {
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.hero-proof-grid .hp-stat:first-child { padding-left: 0; }
.hero-proof-grid .hp-stat:last-child { border-right: 0; padding-right: 0; }
.hero-proof-grid .hp-stat strong {
  display: block;
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  background: linear-gradient(135deg, #FFFFFF 0%, #B59CE8 60%, #FF9F8E 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-proof-grid .hp-stat strong i {
  font-style: normal;
  font-size: .65em;
  letter-spacing: -.02em;
  margin-left: 1px;
}
.hero-proof-grid .hp-unit {
  display: inline-block;
  margin-top: 8px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral);
}
.hero-proof-grid .hp-label {
  display: block;
  margin-top: 14px;
  font-size: .94rem;
  color: #C7C4D9;
  line-height: 1.5;
}
.hero-proof-grid .hp-label em {
  font-style: normal;
  color: #9C99B5;
  font-size: .82rem;
  letter-spacing: .04em;
}

@media (max-width: 720px) {
  .hero-proof-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-proof-grid .hp-stat {
    padding: 0 0 24px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .hero-proof-grid .hp-stat:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* --------- Sections --------- */

section { padding: clamp(70px, 10vw, 120px) 0; }
section.tight { padding: clamp(50px, 7vw, 80px) 0; }
section.tint { background: var(--paper-soft); }
section.dark { background: var(--navy); color: #fff; }
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }
section.dark p { color: #C7C4D9; }
section.dark .eyebrow { color: var(--violet-soft); }
section.dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
section.dark .card h3 { color: #fff; }
section.dark .card p { color: #C7C4D9; }

.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 18px; }

/* --------- Grids & Cards --------- */

.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--violet-soft);
}
.card .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--violet-tint);
  color: var(--violet);
  margin-bottom: 18px;
}
.card.coral .ico { background: var(--coral-soft); color: var(--coral); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-mute); margin-bottom: 0; }

.card-feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad);
}
.card-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-feature .kpi {
  display: inline-block; padding: 4px 10px;
  background: var(--violet-tint); color: var(--violet);
  border-radius: 999px; font-size: .78rem; font-weight: 600;
  letter-spacing: .04em; margin-bottom: 4px; width: fit-content;
}

/* --------- Agent Hub --------- */

.hub-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.hub-tab {
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-weight: 600; font-size: .94rem; color: var(--ink-mute);
  cursor: pointer; transition: all .15s ease;
}
.hub-tab.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.hub-tab:hover:not(.active) { border-color: var(--violet); color: var(--violet); }

.agent-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all .2s ease;
}
.agent-card:hover { transform: translateY(-2px); border-color: var(--violet-soft); box-shadow: var(--shadow-md); }
.agent-card .agent-tag {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet);
}
.agent-card h3 { font-size: 1.18rem; margin: 2px 0 6px; }
.agent-card .agent-outcome {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: .9rem; color: var(--coral); font-weight: 600;
}

/* --------- Hub cards (home agent hub) --------- */

.hub-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  position: relative; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.hub-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
}
.hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--violet-soft);
  background: rgba(255,255,255,.06);
}
.hub-card .hub-num {
  font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  color: var(--violet-soft); margin-bottom: 14px;
}
.hub-card h3 {
  font-size: 1.45rem; color: #fff;
  margin: 0 0 12px;
}
.hub-card .hub-pitch {
  color: #C7C4D9; font-size: 1rem; margin: 0 0 24px; line-height: 1.5;
}
.hub-card .hub-agents {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hub-card .hub-agents li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .96rem;
}
.hub-card .hub-agents li:last-child { border-bottom: 0; }
.hub-card .hub-agents span { color: #E0DAF0; font-weight: 500; }
.hub-card .hub-agents em {
  color: var(--coral);
  font-style: normal; font-weight: 600;
  font-size: .82rem;
  white-space: nowrap;
}

/* --------- Agent Matrix (products.html — visual all-agents grid) --------- */

.agent-matrix {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.amx-col {
  display: flex; flex-direction: column;
  gap: 14px;
  position: relative;
}
.amx-head {
  padding: 24px 26px 22px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  position: relative; overflow: hidden;
  color: #fff;
}
.amx-col[data-hub="supply"]    .amx-head { background: linear-gradient(135deg, #2A1054 0%, #4A1F8E 60%, #6D3FD8 110%); }
.amx-col[data-hub="finops"]    .amx-head { background: linear-gradient(135deg, #4A1F8E 0%, #6D3FD8 50%, #C84A8E 120%); }
.amx-col[data-hub="marketing"] .amx-head { background: linear-gradient(135deg, #6D3FD8 0%, #C84A8E 60%, #FF6E5C 120%); }
.amx-head::after {
  content: ""; position: absolute;
  right: -50px; bottom: -50px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16) 0%, transparent 70%);
}
.amx-head > * { position: relative; z-index: 2; }
.amx-head .amx-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 10px;
}
.amx-head h3 {
  font-size: 1.4rem; color: #fff;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}
.amx-head p {
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: .94rem;
}

.amx-tile {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  color: var(--ink);
  text-decoration: none;
}
.amx-tile:hover {
  transform: translateY(-2px);
  border-color: var(--violet-soft);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.amx-tile .amx-num {
  font-size: .82rem; font-weight: 700;
  letter-spacing: .04em;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}
.amx-tile .amx-name {
  font-size: 1rem; font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
.amx-tile .amx-metric {
  font-size: .8rem; font-weight: 600;
  letter-spacing: .02em;
  color: var(--coral);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .agent-matrix { grid-template-columns: 1fr; gap: 32px; }
}

/* --------- Case study cards --------- */

.case-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-card .case-hero {
  height: 160px;
  background: var(--grad-dark);
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 22px;
}
.case-card .case-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,110,92,.35) 0%, transparent 70%);
}
.case-card.coral .case-hero { background: linear-gradient(135deg, #4A1F8E 0%, #6D3FD8 50%, #FF6E5C 110%); }
.case-card.navy .case-hero { background: linear-gradient(160deg, #0B1230 0%, #2A1054 70%, #4A1F8E 100%); }
.case-card .case-tag {
  position: relative; z-index: 2;
  display: inline-block; padding: 5px 12px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: 999px;
}
.case-card .case-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.case-card .case-title {
  font-size: 1.22rem; font-weight: 700; letter-spacing: -.02em;
  margin: 0 0 10px; color: var(--ink);
}
.case-card .case-summary {
  color: var(--ink-mute); font-size: .96rem;
  margin: 0 0 18px; flex: 1;
}
.case-card .case-metrics {
  display: flex; gap: 18px; flex-wrap: wrap;
  padding: 14px 0; margin: 0 0 18px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.case-card .case-metrics .m {
  display: flex; flex-direction: column;
}
.case-card .case-metrics .m strong {
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: -.02em; color: var(--violet);
  line-height: 1.1;
}
.case-card .case-metrics .m span {
  font-size: .76rem; color: var(--mute);
  letter-spacing: .04em; margin-top: 2px;
}
.case-card .case-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--violet); font-weight: 600; font-size: .92rem;
  transition: gap .2s ease;
  width: fit-content;
}
.case-card:hover .case-link { gap: 10px; }

/* --------- Modal (case study detail) --------- */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(11, 18, 48, 0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  animation: fadeIn .25s ease;
}
.modal-backdrop.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--paper);
  border-radius: var(--radius-xl);
  max-width: 820px; width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideUp .35s cubic-bezier(.18,.89,.32,1.28);
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal .modal-hero {
  background: var(--grad-dark);
  color: #fff;
  padding: 48px 48px 36px;
  position: relative; overflow: hidden;
}
.modal .modal-hero::after {
  content: ""; position: absolute;
  right: -100px; top: -100px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,110,92,.32) 0%, transparent 70%);
}
.modal.coral .modal-hero { background: linear-gradient(135deg, #4A1F8E 0%, #6D3FD8 50%, #FF6E5C 110%); }
.modal.navy .modal-hero { background: linear-gradient(160deg, #0B1230 0%, #2A1054 70%, #4A1F8E 100%); }
.modal .modal-hero > * { position: relative; z-index: 2; }
.modal .modal-tag {
  display: inline-block; padding: 6px 14px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: .76rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: 999px; margin-bottom: 22px;
}
.modal .modal-hero h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -.025em;
}
.modal .modal-hero p {
  color: #D8D1ED;
  font-size: 1rem; margin: 0;
  max-width: 60ch;
}
.modal .modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3;
  font-size: 1.1rem;
  transition: background .15s ease;
}
.modal .modal-close:hover { background: rgba(255,255,255,.24); }

.modal .modal-body { padding: 36px 48px 48px; }
.modal .modal-section { margin-bottom: 24px; }
.modal .modal-section:last-child { margin-bottom: 0; }
.modal .modal-section h4 {
  font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 10px;
}
.modal .modal-section p {
  margin: 0 0 12px;
  color: var(--ink-mute);
  line-height: 1.6;
}

.modal .modal-metrics {
  background: var(--paper-tint);
  border-radius: var(--radius-md);
  padding: 24px; margin: 24px 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.modal .modal-metrics .m strong {
  display: block; font-size: 1.8rem; font-weight: 700;
  letter-spacing: -.025em; line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.modal .modal-metrics .m span {
  display: block; margin-top: 6px;
  font-size: .86rem; color: var(--ink-mute);
}
.modal .modal-note {
  margin-top: 28px;
  padding: 14px 18px;
  border-left: 3px solid var(--coral);
  background: var(--paper-soft);
  font-size: .86rem; color: var(--mute);
  border-radius: 0 8px 8px 0;
}

@media (max-width: 700px) {
  .modal .modal-hero { padding: 36px 28px 28px; }
  .modal .modal-body { padding: 28px 28px 36px; }
  .modal .modal-metrics { grid-template-columns: 1fr; gap: 18px; }
}

/* Body lock when modal open */
body.modal-open { overflow: hidden; }

/* --------- Industry strip --------- */

.industry-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.industry-card {
  border-radius: var(--radius-lg);
  padding: 36px;
  background: var(--grad-dark);
  color: #fff;
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.industry-card::after {
  content: ""; position: absolute; right: -60px; bottom: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,110,92,.4) 0%, transparent 70%);
}
.industry-card h3 { color: #fff; font-size: 1.4rem; }
.industry-card p { color: #C7C4D9; }
.industry-card .ind-tag {
  font-size: .76rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--violet-soft);
}

/* --------- Quote / Pull --------- */

.pull {
  border-left: 4px solid var(--coral);
  padding: 18px 0 18px 24px;
  font-size: 1.4rem; line-height: 1.45;
  color: var(--ink); font-weight: 500;
  letter-spacing: -.01em;
}
.pull cite { display: block; margin-top: 14px; font-style: normal; font-size: .95rem; color: var(--mute); font-weight: 500; }

/* --------- Capability list --------- */

.cap-list { list-style: none; padding: 0; margin: 0; }
.cap-list li {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 14px; align-items: flex-start;
}
.cap-list li:last-child { border-bottom: 0; }
.cap-list .cap-check {
  flex: 0 0 24px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--violet-tint);
  color: var(--violet);
  display: inline-flex; align-items: center; justify-content: center;
}
.cap-list .cap-check svg { width: 14px; height: 14px; }

/* --------- Footer --------- */

.site-footer {
  background: var(--navy);
  color: #C7C4D9;
  padding: 64px 0 40px;
}
.site-footer h4 {
  color: #fff; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .16em; margin-bottom: 18px;
}
.site-footer a { color: #C7C4D9; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer .brand-block img { height: 48px; margin-bottom: 16px; }
.site-footer .brand-block p { color: #9C99B5; font-size: .94rem; max-width: 36ch; }
.site-footer .footer-bottom {
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: .88rem; color: #8C8AA3;
}

/* --------- Forms --------- */

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--paper); transition: border-color .15s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(109,63,216,.14);
}

/* --------- Misc --------- */

.divider {
  height: 1px; background: var(--line); margin: 64px 0;
}
.pill {
  display: inline-block; padding: 6px 14px;
  background: var(--violet-tint); color: var(--violet);
  border-radius: 999px; font-size: .82rem; font-weight: 600;
  letter-spacing: .04em;
}
.pill.coral { background: var(--coral-soft); color: #c64938; }
.pill.dark  { background: var(--ink); color: #fff; }

.logos-row {
  display: flex; gap: 36px; align-items: center; justify-content: center;
  flex-wrap: wrap; opacity: .7;
}
.logos-row span { font-weight: 600; color: var(--mute); letter-spacing: .04em; }

/* --------- Responsive --------- */

@media (max-width: 900px) {
  .cols-3, .cols-4, .industry-row { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav ul {
    position: absolute; right: var(--gutter); top: 68px;
    flex-direction: column; gap: 14px;
    background: #0B1230; padding: 18px 22px;
    border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
    display: none; box-shadow: var(--shadow-lg);
  }
  .nav.open ul { display: flex; }
  .hero .hero-stats { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .cols-2, .cols-3, .cols-4, .industry-row { grid-template-columns: 1fr; }
  .hero .hero-stats { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .nav .brand img { height: 52px; }
}

/* ===== Mobile Polish (≤640px) — for components added in v2 ===== */

@media (max-width: 640px) {

  /* Body — tighten base */
  body { font-size: 16px; line-height: 1.55; }

  /* Containers — tighter gutters */
  :root { --gutter: 20px; }

  /* Headings — comfortable mobile sizes */
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); letter-spacing: -.025em; }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  h3 { font-size: 1.15rem; }
  .lead { font-size: 1rem; }
  .lead-lg { font-size: 1.05rem; line-height: 1.5; }

  /* Hero — tighter padding, stack & full-width CTAs */
  .hero { padding: 88px 0 64px; }
  .hero .lead { font-size: 1.05rem; max-width: none; }
  .hero .cta-row { gap: 12px; flex-direction: column; align-items: stretch; }
  .hero .cta-row .btn { justify-content: center; }

  /* Nav brand */
  .site-header { backdrop-filter: blur(10px); }
  .nav { padding: 12px 0; }
  .nav .brand img { height: 44px; }
  .nav-toggle { padding: 10px; }

  /* Buttons — comfortable touch targets */
  .btn { padding: 14px 22px; min-height: 44px; }
  .btn-sm { padding: 11px 18px; min-height: 42px; font-size: .92rem; }

  /* Section padding — tighter on mobile */
  section { padding: 64px 0; }
  section.tight { padding: 48px 0; }

  /* Cards — tighter padding */
  .card { padding: 24px; }
  .card-feature { padding: 28px 24px; }
  .section-head { margin-bottom: 36px; }

  /* Hero proof strip — vertical stack, more breathing room */
  .hero .hero-proof { margin-top: 48px; padding-top: 24px; }
  .hero-proof-head { margin-bottom: 20px; }
  .hero-proof-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-proof-grid .hp-stat {
    padding: 0 0 20px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .hero-proof-grid .hp-stat:last-child { border-bottom: 0; padding-bottom: 0; }
  .hero-proof-grid .hp-stat strong { font-size: 2.4rem; }
  .hero-proof-grid .hp-label { margin-top: 10px; }

  /* Hub cards (home agent hub) */
  .hub-card { padding: 28px 22px 24px; }
  .hub-card h3 { font-size: 1.25rem; }
  .hub-card .hub-agents li { padding: 12px 0; font-size: .92rem; }

  /* Agent matrix (products page) — already collapses, polish padding */
  .agent-matrix { gap: 28px; }
  .amx-head { padding: 22px 22px 20px; }
  .amx-head h3 { font-size: 1.25rem; }
  .amx-tile { padding: 16px 18px; gap: 12px; }
  .amx-tile .amx-name { font-size: .96rem; }

  /* Case cards */
  .case-card .case-hero { height: 120px; padding: 18px; }
  .case-card .case-body { padding: 22px 22px 24px; }
  .case-card .case-title { font-size: 1.1rem; }
  .case-card .case-metrics .m strong { font-size: 1.2rem; }

  /* Modal — full-screen feel on mobile */
  .modal-backdrop { padding: 0; align-items: stretch; }
  .modal { border-radius: 0; max-height: 100vh; height: 100%; overflow-y: auto; }
  .modal .modal-hero { padding: 64px 22px 24px; }
  .modal .modal-hero h2 { font-size: 1.5rem; }
  .modal .modal-body { padding: 24px 22px 36px; }
  .modal .modal-close { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 1.2rem; }
  .modal .modal-metrics { padding: 18px; gap: 16px; }
  .modal .modal-metrics .m strong { font-size: 1.5rem; }

  /* Industry cards */
  .industry-card { padding: 28px 24px; min-height: 240px; }

  /* Footer */
  .site-footer { padding: 48px 0 28px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; }
  .site-footer .brand-block img { height: 40px; }
  .site-footer .footer-bottom { font-size: .82rem; flex-direction: column; gap: 8px; }

  /* Pull quote */
  .pull { font-size: 1.15rem; padding: 14px 0 14px 18px; }

  /* Forms */
  .form-field input, .form-field textarea, .form-field select { font-size: 16px; /* prevents iOS zoom */ }
}

/* Very narrow (≤380px — iPhone SE) — final polish */
@media (max-width: 380px) {
  h1 { font-size: 1.85rem; }
  .hero { padding: 80px 0 56px; }
  .hero-proof-grid .hp-stat strong { font-size: 2.1rem; }
  .case-card .case-title { font-size: 1.05rem; }
  .nav ul { right: 12px; left: 12px; }
}
