/* =========================================================
   NexSupport Technologies · site styles
   Tokens first, then base, layout, components, pages.
   ========================================================= */

:root {
  --ink: #081328;
  --ink-2: #0d1d3d;
  --navy: #122c5a;
  --brand: #183e71;
  --blue: #2a5fc4;
  --sky: #9dbcff;
  --paper: #f5f2eb;
  --paper-2: #ece7dc;
  --white: #ffffff;
  --text: #0c1a33;
  --muted: #56627a;
  --muted-dark: #a3b0c8;
  --line: rgba(12, 26, 51, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);
  --amber: #f2a33a;
  --amber-soft: #fbe3bf;
  --mint: #3ddc97;
  --mint-soft: #c9f5e1;

  --font-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(8, 19, 40, 0.06), 0 12px 40px -12px rgba(8, 19, 40, 0.18);
  --shadow-lg: 0 30px 80px -30px rgba(8, 19, 40, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 76px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--amber); color: var(--ink); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.mono { font-family: var(--font-mono); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 860px; }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-sm { padding: clamp(56px, 7vw, 90px) 0; }
.section + .section.tight-top { padding-top: 0; }

.dark { background: var(--ink); color: var(--white); }
.dark .muted, .dark .lead { color: var(--muted-dark); }
.navy { background: var(--navy); color: var(--white); }
.navy .muted, .navy .lead { color: #c3cfe6; }
.paper-2 { background: var(--paper-2); }
.white { background: var(--white); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
.grid-2 > *, .split-40 > * { min-width: 0; }
@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.dark .eyebrow, .navy .eyebrow { color: var(--sky); }
.eyebrow.amber { color: #b86e0c; }
.dark .eyebrow.amber { color: var(--amber); }

.display {
  font-size: clamp(46px, 7.4vw, 104px);
  line-height: 0.98; letter-spacing: -0.045em; font-weight: 600;
}
.display .serif { letter-spacing: -0.02em; font-size: 1.06em; }
.h1 { font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.04em; line-height: 1; }
.h2 { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.035em; line-height: 1.04; }
.h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.025em; line-height: 1.15; }
.h4 { font-size: 20px; letter-spacing: -0.015em; line-height: 1.3; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.accent-amber { color: var(--amber); }
.accent-mint { color: var(--mint); }
.accent-blue { color: var(--blue); }
.dark .accent-blue { color: var(--sky); }

.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head .h2 + .lead { margin-top: 22px; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.section-head.split > div { max-width: 720px; flex: 1 1 520px; }
.section-head.split > .lead { flex: 0 1 400px; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 16px; line-height: 1; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #ffb452; box-shadow: 0 10px 30px -10px rgba(242, 163, 58, 0.7); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--brand); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.dark .btn-ghost, .navy .btn-ghost { border-color: var(--line-dark); color: var(--white); }
.dark .btn-ghost:hover, .navy .btn-ghost:hover { border-color: var(--white); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-sm { padding: 11px 18px; font-size: 14.5px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
  color: var(--text);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
body.hero-dark .site-header:not(.scrolled) { color: var(--white); }
.site-header.scrolled {
  background: rgba(245, 242, 235, 0.86);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
body.hero-dark .site-header:not(.scrolled) .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.28); }
body.hero-dark .site-header:not(.scrolled) .btn-ghost:hover { border-color: var(--white); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 19px; width: auto; }
.brand .logo-light { display: none; }
body.hero-dark .site-header:not(.scrolled) .brand .logo-light { display: block; }
body.hero-dark .site-header:not(.scrolled) .brand .logo-dark { display: none; }
body.menu-open .brand .logo-light { display: block !important; }
body.menu-open .brand .logo-dark { display: none !important; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; background: none; border: 0; opacity: 0.86;
  transition: opacity 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link.active { opacity: 1; }
.nav-link.active::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.nav-link .chev { width: 10px; height: 10px; transition: transform 0.25s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 560px;
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  background: var(--white); color: var(--text); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 10px; border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.dropdown.open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: block; padding: 14px 16px; border-radius: 12px; transition: background 0.2s; }
.dropdown a:hover { background: var(--paper); }
.dropdown strong { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.dropdown span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.dropdown .dd-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; background: var(--paper); font-size: 14px; font-weight: 500; }
.dropdown .dd-foot:hover { background: var(--paper-2); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor;
  background: transparent; align-items: center; justify-content: center; position: relative; z-index: 120;
  border-color: color-mix(in srgb, currentColor 30%, transparent);
}
.menu-toggle span { position: absolute; width: 16px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-toggle span:nth-child(1) { transform: translateY(-4px); }
.menu-toggle span:nth-child(2) { transform: translateY(4px); }
body.menu-open .menu-toggle { color: var(--white); }
body.menu-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110; background: var(--ink); color: var(--white);
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { color: var(--white); background: transparent; box-shadow: none; backdrop-filter: none; }
.mobile-menu .mm-group { border-bottom: 1px solid var(--line-dark); padding: 18px 0; }
.mobile-menu .mm-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 8px; }
.mobile-menu a { display: block; padding: 8px 0; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.mobile-menu .btn { margin-top: 28px; width: 100%; font-size: 17px; }

@media (max-width: 1080px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 520px) {
  .header-cta .btn-primary { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 60px; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(42, 95, 196, 0.28), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(24, 62, 113, 0.5), transparent 60%),
    var(--ink);
  color: var(--white);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 40%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, black 10%, transparent 70%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .display { font-size: clamp(46px, 5.7vw, 88px); }
.hero .lead { color: #c1cbe0; margin: 28px 0 36px; }
.hero-note { margin-top: 26px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted-dark); }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18); }
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 48px); }
}

/* Flow visual */
.flow-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-dark); box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 0.92;
}
.flow-card canvas { width: 100%; height: 100%; }
.flow-top {
  position: absolute; inset: 18px 18px auto 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; z-index: 2;
}
.flow-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(8, 19, 40, 0.7); border: 1px solid var(--line-dark); }
.flow-toggle button {
  border: 0; background: transparent; color: var(--muted-dark); padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; transition: background 0.25s, color 0.25s;
}
.flow-toggle button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.flow-status { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dark); display: flex; align-items: center; gap: 8px; }
.flow-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); display: inline-block; transition: background 0.3s; }
.flow-card[data-mode="flow"] .flow-status i { background: var(--mint); }
.flow-bottom {
  position: absolute; inset: auto 18px 18px 18px; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.flow-metric { background: rgba(8, 19, 40, 0.72); border: 1px solid var(--line-dark); border-radius: 12px; padding: 10px 12px; backdrop-filter: blur(6px); }
.flow-metric b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.flow-metric span { font-size: 11.5px; color: var(--muted-dark); line-height: 1.3; display: block; }
.flow-label {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--amber); color: var(--ink); padding: 6px 10px; border-radius: 999px; white-space: nowrap;
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.flow-card[data-mode="flow"] .flow-label { opacity: 0; transform: translate(-50%, -30%); }
@media (max-width: 520px) {
  .flow-card { aspect-ratio: 1 / 1.15; }
  .flow-metric b { font-size: 17px; }
}

/* ---------- Ticker ---------- */
.ticker { background: var(--amber); color: var(--ink); overflow: hidden; padding: 16px 0; border-block: 1px solid rgba(0, 0, 0, 0.08); }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: ticker 48s linear infinite; }
.ticker-track span { font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 2.2vw, 28px); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.ticker-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); opacity: 0.5; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Pain cards ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .pain-grid { grid-template-columns: 1fr; } }
.pain-card {
  position: relative; display: flex; flex-direction: column; min-height: 460px;
  background: var(--white); border-radius: var(--radius-lg); padding: 34px; overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pain-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pain-card.featured { background: var(--ink); color: var(--white); border-color: transparent; }
.pain-card .num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.pain-card.featured .num { color: var(--muted-dark); }
.pain-card .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--amber); color: var(--ink); padding: 4px 9px; border-radius: 999px; }
.pain-card blockquote { margin: 36px 0 20px; font-family: var(--font-serif); font-style: italic; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.01em; }
.pain-card p { color: var(--muted); font-size: 16px; }
.pain-card.featured p { color: var(--muted-dark); }
.pain-card .fix { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 500; font-size: 15.5px; }
.pain-card.featured .fix { border-color: var(--line-dark); }
.pain-card .fix .arrow { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); flex-shrink: 0; transition: background 0.3s, transform 0.3s var(--ease); }
.pain-card.featured .fix .arrow { background: var(--amber); color: var(--ink); }
.pain-card:hover .fix .arrow { transform: rotate(-45deg); }
.pain-card .fix .arrow svg { width: 16px; height: 16px; }

/* ---------- Statement / quote ---------- */
.statement { font-size: clamp(30px, 4.2vw, 58px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 500; max-width: 1080px; }
.statement .dim { color: rgba(12, 26, 51, 0.32); }
.dark .statement .dim, .navy .statement .dim { color: rgba(255, 255, 255, 0.32); }

/* ---------- Media ---------- */
.media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media.tall { aspect-ratio: 4 / 5; }
.media.wide { aspect-ratio: 16 / 10; }
.media.cinema { aspect-ratio: 21 / 9; }
@media (max-width: 640px) { .media.cinema { aspect-ratio: 4 / 3; } }
.media:hover img { transform: scale(1.03); }
.media-caption {
  position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-end;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 13.5px; font-weight: 500;
  backdrop-filter: blur(8px); box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.35);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.chip.ok i { background: var(--mint); }
.float-card {
  position: absolute; background: var(--white); color: var(--ink); border-radius: 16px; padding: 14px 16px;
  box-shadow: var(--shadow-lg); font-size: 14px; max-width: 260px; line-height: 1.4;
}
.float-card b { display: block; font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.04em; color: var(--muted); font-weight: 500; margin-bottom: 4px; }

/* ---------- Checklists / feature lists ---------- */
.checks li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); }
.dark .checks li, .navy .checks li { border-color: var(--line-dark); }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23107a4c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.crosses li::before { background: var(--amber-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' fill='none' stroke='%23a3600a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/20px no-repeat; }

/* ---------- Before / After ---------- */
.ba { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.ba > div { padding: clamp(28px, 4vw, 48px); }
.ba .before { background: var(--white); }
.ba .after { background: var(--ink); color: var(--white); }
.ba h3 { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.ba .before h3 { color: #a3600a; }
.ba .after h3 { color: var(--mint); }
.ba .after .checks li { border-color: var(--line-dark); }
@media (max-width: 760px) { .ba { grid-template-columns: 1fr; } }

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.dark .steps, .navy .steps { border-color: var(--line-dark); }
.step { padding: 32px 28px 8px 0; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: 13px; color: var(--blue); display: block; margin-bottom: 44px;
}
.dark .step::before, .navy .step::before { color: var(--sky); }
.step::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.step h3 { font-size: 24px; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15.5px; }
.dark .step p, .navy .step p { color: var(--muted-dark); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step::before { margin-bottom: 16px; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.dark .stats, .navy .stats { border-color: var(--line-dark); }
.stat { padding: 32px 24px 0 0; }
.stat b { display: block; font-size: clamp(48px, 5.8vw, 84px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat b small { font-size: 0.5em; letter-spacing: -0.02em; margin-left: 2px; }
.stat span { display: block; margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 240px; }
.dark .stat span, .navy .stat span { color: var(--muted-dark); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }

/* ---------- Case cards ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .case-grid { grid-template-columns: 1fr; } }
.case-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.dark .case-card { background: var(--ink-2); border-color: var(--line-dark); }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-card .media { border-radius: 0; aspect-ratio: 16 / 10; }
.case-card .body { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case-card .meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dark .case-card .meta { color: var(--muted-dark); }
.case-card h3 { font-size: 26px; }
.case-card .result { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 14px; }
.dark .case-card .result { border-color: var(--line-dark); }
.case-card .result b { font-size: 40px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.case-card .result span { font-size: 14.5px; color: var(--muted); line-height: 1.35; }
.dark .case-card .result span { color: var(--muted-dark); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .product-grid { grid-template-columns: 1fr; } }
.product-card {
  position: relative; display: flex; flex-direction: column; padding: 34px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); min-height: 380px; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.product-card .mark { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: var(--white); }
.product-card .mark svg { width: 26px; height: 26px; }
.product-card h3 { font-size: 34px; margin-bottom: 6px; }
.product-card .kicker { font-weight: 500; margin-bottom: 14px; }
.product-card p { color: var(--muted); }
.product-card .foot { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); }
.product-card .price { font-size: 15px; color: var(--muted); }
.product-card .price b { color: var(--text); font-size: 18px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.pill.soon i { background: var(--amber); }
.dark .pill, .navy .pill { border-color: var(--line-dark); }
.mark-cast { background: linear-gradient(135deg, #2a5fc4, #183e71); }
.mark-chat { background: linear-gradient(135deg, #25d366, #0f8a4a); }
.mark-hire { background: linear-gradient(135deg, #f2a33a, #c96a0b); }
.mark-kept { background: linear-gradient(135deg, #0d1d3d, #3b4f7d); }

/* ---------- Service / capability list ---------- */
.cap-list { border-top: 1px solid var(--line); }
.dark .cap-list { border-color: var(--line-dark); }
.cap-row { display: grid; grid-template-columns: 80px 1.1fr 1.4fr 40px; gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); transition: padding 0.3s var(--ease); }
.dark .cap-row { border-color: var(--line-dark); }
.cap-row:hover { padding-left: 12px; }
.cap-row .i { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.cap-row h3 { font-size: clamp(22px, 2.3vw, 30px); }
.cap-row p { margin: 0; color: var(--muted); font-size: 16px; }
.dark .cap-row p, .dark .cap-row .i { color: var(--muted-dark); }
.cap-row .go svg { width: 20px; height: 20px; transition: transform 0.3s var(--ease); }
.cap-row:hover .go svg { transform: translateX(4px); }
@media (max-width: 760px) {
  .cap-row { grid-template-columns: 1fr 32px; gap: 8px 16px; }
  .cap-row .i { grid-column: 1 / -1; }
  .cap-row p { grid-column: 1 / 2; }
  .cap-row .go { grid-row: 2; grid-column: 2; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(60px, 9vw, 120px)) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.page-hero.dark {
  background:
    radial-gradient(900px 480px at 90% 0%, rgba(42, 95, 196, 0.3), transparent 60%),
    var(--ink);
}
.page-hero .crumbs { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.page-hero.dark .crumbs { color: var(--muted-dark); }
.page-hero .crumbs a:hover { color: var(--blue); }
.page-hero .h1 { max-width: 1000px; }
.page-hero .grid-2 .h1 { font-size: clamp(38px, 4.8vw, 66px); }
.page-hero .lead { margin-top: 26px; }
.page-hero .btn-row { margin-top: 36px; }
.page-hero-media { margin-top: clamp(48px, 6vw, 80px); }

/* ---------- Quote ---------- */
.quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.1; letter-spacing: -0.01em; max-width: 1000px; }
.quote-by { margin-top: 28px; display: flex; align-items: center; gap: 14px; font-size: 15px; }
.quote-by b { display: block; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative; font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 300; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); margin: 0; max-width: 780px; }

/* ---------- Product page parts ---------- */
.product-hero-mark { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; color: var(--white); margin-bottom: 30px; }
.product-hero-mark svg { width: 34px; height: 34px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.dark .feature-grid { background: var(--line-dark); border-color: var(--line-dark); }
.feature { background: var(--paper); padding: 32px; }
.white .feature { background: var(--white); }
.dark .feature { background: var(--ink); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--white); display: grid; place-items: center; margin-bottom: 22px; border: 1px solid var(--line); color: var(--brand); }
.white .feature .ico { background: var(--paper); }
.dark .feature .ico { background: var(--ink-2); border-color: var(--line-dark); color: var(--sky); }
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15.5px; margin: 0; }
.dark .feature p { color: var(--muted-dark); }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.agent-chain { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.agent-chain .node { padding: 12px 16px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line-dark); font-size: 14.5px; font-weight: 500; }
.agent-chain .node small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--muted-dark); letter-spacing: 0.06em; font-weight: 400; }
.agent-chain .link { width: 18px; height: 1px; background: var(--amber); }

.price-card { border-radius: var(--radius-lg); padding: 36px; background: var(--ink); color: var(--white); }
.price-card .amount { font-size: clamp(48px, 6vw, 72px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; margin: 18px 0 6px; }
.price-card .amount small { font-size: 18px; letter-spacing: 0; color: var(--muted-dark); font-weight: 400; }

/* Mock UI */
.mock {
  border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; color: var(--text);
}
.mock-bar { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--paper); align-items: center; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9d3c6; }
.mock-bar span { margin-left: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.mock-body { padding: 22px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.mock-row:last-child { border-bottom: 0; }
.mock-row .who { display: flex; align-items: center; gap: 10px; }
.mock-row .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--paper-2); }
.mock-row .av svg { width: 15px; height: 15px; }
.status { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.status.ok { background: var(--mint-soft); color: #0e6b43; }
.status.wait { background: var(--amber-soft); color: #8a5208; }
.status.info { background: #dfe8fb; color: var(--brand); }

.chat { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: #efeae2; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); }
.bubble.in { background: var(--white); align-self: flex-start; border-top-left-radius: 4px; }
.bubble.out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 4px; }
.bubble small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; text-align: right; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: var(--white); padding: clamp(90px, 12vw, 160px) 0; }
.cta-band::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 95, 196, 0.45), transparent 65%);
}
.cta-band .container { position: relative; }
.cta-band .display { max-width: 1000px; }
.cta-band .lead { color: #c1cbe0; margin: 28px 0 40px; }
.cta-band .contact-line { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-dark); display: flex; gap: 32px; flex-wrap: wrap; font-size: 15px; color: var(--muted-dark); }
.cta-band .contact-line a { color: var(--white); border-bottom: 1px solid var(--line-dark); }
.cta-band .contact-line a:hover { border-color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 80px 0 36px; border-top: 1px solid var(--line-dark); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.footer-top h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--white); margin-bottom: 18px; }
.footer-top li { margin-bottom: 10px; font-size: 15px; }
.footer-top a:hover { color: var(--white); }
.footer-brand img { height: 20px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-size: 15px; max-width: 300px; }
.footer-wordmark { margin: 72px 0 28px; font-size: clamp(56px, 13.5vw, 196px); line-height: 0.85; font-weight: 600; letter-spacing: -0.06em; color: rgba(255, 255, 255, 0.06); white-space: nowrap; overflow: hidden; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: background 0.25s, color 0.25s; }
.socials a:hover { background: var(--white); color: var(--ink); }
.socials svg { width: 16px; height: 16px; }
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: var(--white); display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42, 95, 196, 0.14); }
.form-msg { display: none; padding: 16px 18px; border-radius: 12px; font-size: 15px; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--mint-soft); color: #0e6b43; }
.form-msg.err { background: var(--amber-soft); color: #8a5208; }

.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: border-color 0.25s, transform 0.25s var(--ease); }
.contact-card:hover { border-color: var(--text); transform: translateY(-2px); }
.contact-card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); flex-shrink: 0; }
.contact-card .ico svg { width: 20px; height: 20px; }
.contact-card b { display: block; font-size: 16px; }
.contact-card span { font-size: 14.5px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }

.calendly-inline-widget { min-width: 300px; height: 700px; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span { font-size: 13.5px; padding: 7px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.dark .tag-list span { background: transparent; border-color: var(--line-dark); color: #d4dcec; }
.kpi-inline { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 36px; }
.kpi-inline div b { display: block; font-size: 40px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.kpi-inline div span { font-size: 14px; color: var(--muted-dark); }
.prose { font-size: 18px; line-height: 1.7; }
.prose p { margin-bottom: 1.2em; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); margin: 1.6em 0 0.6em; }
.prose h3 { font-size: 22px; margin: 1.4em 0 0.5em; }
.prose ul { margin: 0 0 1.4em; }
.prose ul li { padding-left: 22px; position: relative; margin-bottom: 8px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1.5px; background: var(--amber); }
.sticky-side { position: sticky; top: calc(var(--header-h) + 32px); }
.case-facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.case-facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.case-facts dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.case-facts dd { margin: 0; font-weight: 500; }
.split-40 { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .split-40 { grid-template-columns: 1fr; } .sticky-side { position: static; } }

.founder-card { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: center; }
.founder-photo { width: 240px; height: 300px; border-radius: 20px; background: linear-gradient(160deg, var(--brand), var(--ink)); display: grid; place-items: center; color: rgba(255, 255, 255, 0.85); font-size: 54px; font-weight: 600; letter-spacing: -0.04em; overflow: hidden; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .founder-card { grid-template-columns: 1fr; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.split-line { display: block; overflow: hidden; }
.split-line > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease); }
.in .split-line > span, .split-line.in > span { transform: none; }
.split-line:nth-child(2) > span { transition-delay: 0.08s; }
.split-line:nth-child(3) > span { transition-delay: 0.16s; }
.split-line:nth-child(4) > span { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .split-line > span { opacity: 1; transform: none; transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }
.no-js .split-line > span { transform: none; }
