/* ============================================================
   Synapsa — Design System (Light)
   Fonts: Instrument Serif · Geist · JetBrains Mono
   ============================================================ */

:root {
  --bg:        #0d0a1a;
  --bg-2:      #13102a;
  --bg-3:      #1c1840;
  --line:      rgba(255,255,255,.11);
  --line-soft: rgba(255,255,255,.06);
  --fg:        #f0eeff;
  --fg-2:      rgba(240,238,255,.66);
  --fg-3:      rgba(240,238,255,.38);

  --accent:     #d73d59;
  --accent-2:   #854788;
  --accent-ink: #ffffff;

  /* gradient shorthand */
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));

  --radius:    14px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 12px rgba(0,0,0,.32);
  --shadow:    0 6px 28px rgba(0,0,0,.45);
  --shadow-lg: 0 16px 56px rgba(0,0,0,.62);

  --font-display: "Instrument Serif","Times New Roman",serif;
  --font-body:    "Geist",-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;
  --font-mono:    "JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;

  --maxw: 1280px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a  { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

/* ---------- typography ---------- */
.display { font-family: var(--font-display); font-weight: 400; line-height: 1.0; letter-spacing: -.025em; }
.mono    { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 36px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

section { position: relative; }
.section { padding: 100px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } }

.rule { height: 1px; background: var(--line-soft); width: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: .92rem; font-weight: 500;
  letter-spacing: -.005em;
  transition: transform .18s, box-shadow .18s, filter .18s, border-color .18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(215,61,89,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(215,61,89,.38); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--fg-3); }
.btn-arrow {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .9rem;
}
.btn-ghost .btn-arrow { background: var(--bg-3); color: var(--accent); }

/* ---------- section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.0;
  letter-spacing: -.024em;
  margin: 10px 0 0;
}
.section-head h2 em { color: var(--accent); font-style: italic; }
.section-head .lead { font-size: 1.02rem; color: var(--fg-2); line-height: 1.6; max-width: 52ch; }

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,10,26,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -.01em; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad);
  position: relative;
}
.brand-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.nav-links { display: flex; gap: 28px; font-size: .88rem; color: var(--fg-2); }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  padding: 80px 0 70px;
  overflow: hidden;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .hero-layout { grid-template-columns: 1fr; gap: 40px; } }

.hero-text { max-width: 580px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(215,61,89,.18); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: .96;
  letter-spacing: -.028em;
  margin: 0 0 22px;
}
.hero h1 em   { font-style: italic; color: var(--accent-2); }
.hero h1 .ac  { font-style: italic; color: var(--accent); }
.hero-sub     { font-size: 1.06rem; color: var(--fg-2); line-height: 1.6; margin: 0 0 32px; max-width: 48ch; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-proof { display: flex; align-items: center; gap: 12px; }
.hero-avatars { display: flex; }
.hero-avatars span {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2.5px solid #fff;
  background: var(--grad);
  margin-left: -10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: #fff; font-weight: 600;
}
.hero-avatars span:first-child { margin-left: 0; }
.hero-proof-text { font-size: .88rem; color: var(--fg-2); }
.hero-proof-text strong { color: var(--fg); font-weight: 600; }

/* hero illustration */
.hero-visual { position: relative; height: 480px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 900px) { .hero-visual { height: 300px; } }
#hero-svg { width: 100%; height: 100%; }

/* logos strip */
.logos {
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-top: 60px;
}
.logos-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.logo-item { font-family: var(--font-body); font-size: .94rem; font-weight: 600; color: var(--fg-3); letter-spacing: -.01em; opacity: .7; }

/* marquee */
.marquee { overflow: hidden; position: relative; }
.marquee-track { display: inline-flex; gap: 48px; animation: scroll 50s linear infinite; white-space: nowrap; padding-left: 48px; }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; color: var(--fg-3); font-size: .92rem; }
.marquee-item::before { content: "✦"; color: var(--accent); font-size: .95em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* =============================================================
   SERVICES GRID
   ============================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.svc {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  position: relative;
  transition: box-shadow .22s, transform .22s, border-color .22s;
  overflow: hidden;
}
.svc:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-soft); }

.svc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc-icon-wrap {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem;
  flex-shrink: 0;
}
.svc-n {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -.04em;
  user-select: none;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: .38;
  transition: opacity .25s;
}
.svc h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -.015em;
}
.svc p { color: var(--fg-2); font-size: .9rem; line-height: 1.55; margin: 0; flex: 1; }
.svc-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.svc-chips { display: flex; flex-wrap: wrap; gap: 5px 8px; }
.chip {
  font-family: var(--font-mono);
  font-size: .65rem; text-transform: uppercase; letter-spacing: .08em;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-3);
}
.svc-arrow {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-3); font-size: .9rem; flex-shrink: 0;
  transition: background .2s, color .2s, border-color .2s;
}
.svc:hover .svc-arrow { background: var(--grad); color: #fff; border-color: transparent; }

/* =============================================================
   SERVICE DETAIL
   ============================================================= */
.detail-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  border: 1.5px solid rgba(215,61,89,.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
@media (max-width: 900px) { .detail-wrap { grid-template-columns: 1fr; } }
.detail-tabs { display: flex; flex-direction: column; border-right: 1.5px solid var(--line); background: var(--bg-2); }
@media (max-width: 900px) { .detail-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1.5px solid var(--line); } }

.detail-tab {
  text-align: left; padding: 14px 20px; font-size: .88rem; color: var(--fg-2);
  border-bottom: 1px solid var(--line-soft); white-space: nowrap;
  transition: background .18s, color .18s; display: flex; align-items: center; gap: 10px;
  position: relative;
}
.detail-tab:hover { color: var(--fg); background: #fff; }
.detail-tab.active { color: var(--fg); background: #fff; }
.detail-tab.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.detail-tab-num { font-family: var(--font-mono); font-size: .68rem; color: var(--fg-3); }

.detail-panel { padding: 44px 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
@media (max-width: 900px) { .detail-panel { padding: 28px 22px; grid-template-columns: 1fr; gap: 24px; } }
.detail-panel h3 { font-family: var(--font-display); font-weight: 400; font-size: 2.4rem; line-height: 1.0; margin: 12px 0 16px; letter-spacing: -.022em; }
.who-it-helps { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-3); }
.body { color: var(--fg-2); font-size: .98rem; line-height: 1.62; }

.metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 20px; }
.metric { padding: 14px; border: 1.5px solid rgba(215,61,89,.18); border-radius: 12px; background: linear-gradient(135deg, rgba(215,61,89,.05), rgba(133,71,136,.06)); }
.metric .v { font-family: var(--font-display); font-size: 1.7rem; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.metric .k { font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-3); margin-top: 2px; }

.examples { display: flex; flex-direction: column; gap: 12px; }
.examples li { padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg-2); transition: border-color .2s, transform .2s; }
.examples li:hover { border-color: rgba(215,61,89,.3); transform: translateX(3px); }
.ex-label { font-family: var(--font-mono); font-size: .66rem; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 5px; }
.ex-title { font-size: .97rem; color: var(--fg); margin-bottom: 4px; font-weight: 500; }
.ex-desc  { font-size: .86rem; color: var(--fg-2); }

/* =============================================================
   CHATBOT
   ============================================================= */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; gap: 32px; } }

.chatbot { border: 1.5px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; height: 520px; }
.chatbot-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.chatbot-head .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); position: relative; flex-shrink: 0; }
.chatbot-head .avatar::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.chatbot-head .name { font-size: .92rem; font-weight: 500; }
.chatbot-head .status { font-family: var(--font-mono); font-size: .66rem; color: var(--fg-3); }
.chatbot-head .live { color: #22c55e; }

.chatbot-stream { flex: 1; padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; background: var(--bg-2); }
.msg { max-width: 80%; padding: 11px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.5; animation: msgIn .3s ease both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.msg.bot  { background: #fff; color: var(--fg); align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid var(--line); }
.msg.user { background: var(--grad); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.typing { background: #fff; color: var(--fg-3); align-self: flex-start; font-family: var(--font-mono); font-size: .78rem; border: 1px solid var(--line); }
.typing-dots { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 6px; }
.typing-dots span { width: 4px; height: 4px; border-radius: 50%; background: var(--fg-3); animation: blink 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }

.chatbot-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line-soft); background: #fff; }
.quick { font-size: .78rem; padding: 5px 12px; border-radius: 999px; background: var(--bg-2); color: var(--fg-2); border: 1px solid var(--line); transition: background .18s, color .18s; }
.quick:hover { background: var(--bg-3); color: var(--fg); }

.chatbot-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line-soft); background: #fff; }
.chatbot-input input { flex: 1; background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 8px; color: var(--fg); font: inherit; padding: 8px 12px; outline: none; }
.chatbot-input input:focus { border-color: var(--accent); }
.chatbot-input button { padding: 8px 16px; background: var(--grad); color: #fff; border-radius: 8px; font-weight: 500; font-size: .88rem; }

.demo-side .eyebrow { display: block; margin-bottom: 10px; }
.demo-side h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 52px); line-height: 1.0; margin: 0 0 16px; letter-spacing: -.02em; }
.demo-side h2 em { color: var(--accent); font-style: italic; }
.demo-side > p { color: var(--fg-2); margin-bottom: 24px; }
.demo-checks { display: flex; flex-direction: column; gap: 10px; }
.demo-check { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.demo-check svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.demo-check b { font-weight: 600; }
.demo-check p { font-size: .87rem; color: var(--fg-2); margin: 4px 0 0; }

/* =============================================================
   ROI
   ============================================================= */
.roi { border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow-sm); }
@media (max-width: 860px) { .roi { grid-template-columns: 1fr; } }
.roi-input  { padding: 44px 48px; background: var(--bg-2); }
.roi-output { padding: 44px 48px; background: #fff; border-left: 1.5px solid var(--line); }
@media (max-width: 860px) { .roi-output { border-left: 0; border-top: 1.5px solid var(--line); } }
.roi h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; margin: 0 0 24px; letter-spacing: -.02em; }
.roi-field { margin-bottom: 24px; }
.roi-field label { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-2); margin-bottom: 10px; }
.roi-field label .val { font-family: var(--font-display); font-size: 1.2rem; color: var(--fg); text-transform: none; letter-spacing: 0; }
.roi-field input[type="range"] { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 999px; outline: none; background: linear-gradient(to right, var(--accent) var(--pct, 0%), var(--line) var(--pct, 0%)); }
.roi-field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--accent); }
.roi-field input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 3px solid #fff; }
.roi-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.roi-card { padding: 18px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.roi-card .lbl { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); }
.roi-card .num { font-family: var(--font-display); font-size: 2.1rem; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-top: 4px; letter-spacing: -.025em; }
.roi-card .unit { font-family: var(--font-mono); font-size: .66rem; color: var(--fg-3); margin-top: 4px; }

/* =============================================================
   PROCESS (horizontal)
   ============================================================= */
.process-h {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 860px) { .process-h { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 540px) { .process-h { grid-template-columns: 1fr; gap: 20px; } }

.process-h::before {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(100% / 8);
  right: calc(100% / 8);
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  z-index: 0;
}
@media (max-width: 860px) { .process-h::before { display: none; } }

.step-h {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.step-h-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step-h-icon::after {
  content: attr(data-n);
  position: absolute; top: -8px; right: -8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad); color: #fff;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.step-h h4 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; margin: 0 0 8px; letter-spacing: -.015em; }
.step-h p  { color: var(--fg-2); font-size: .88rem; margin: 0; }
.step-h .when { margin-top: 12px; font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }

/* =============================================================
   INDUSTRIES
   ============================================================= */
.industries { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@media (max-width: 860px) { .industries { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .industries { grid-template-columns: 1fr; } }
.industry { padding: 28px 24px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 8px; min-height: 210px; transition: box-shadow .2s, transform .2s; }
.industry:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.industry .ico { font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.industry h4 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; margin: 0; letter-spacing: -.015em; }
.industry p  { font-size: .88rem; color: var(--fg-2); margin: 0; }
.industry ul { margin: auto 0 0; display: flex; flex-direction: column; gap: 4px; }
.industry li { font-size: .82rem; color: var(--fg-2); padding-left: 14px; position: relative; }
.industry li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* =============================================================
   STATS
   ============================================================= */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2,1fr); } }
.stat { padding: 36px 28px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); }
.stat .v { font-family: var(--font-display); font-size: clamp(44px, 5vw, 72px); line-height: .95; letter-spacing: -.025em; }
.stat .v em { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: italic; }
.stat .k { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); margin-top: 10px; }
.stat .d { font-size: .87rem; color: var(--fg-2); margin-top: 8px; }

/* =============================================================
   FAQ
   ============================================================= */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 22px 4px; text-align: left; }
.faq-q h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; margin: 0; letter-spacing: -.015em; }
.faq-q .plus { font-family: var(--font-mono); font-size: 1.4rem; color: var(--fg-3); transition: transform .3s, color .3s; flex-shrink: 0; }
.faq-item.open .plus { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a-inner { padding: 0 4px 24px; color: var(--fg-2); max-width: 68ch; line-height: 1.65; }

/* =============================================================
   CTA FINAL (gradient banner)
   ============================================================= */
.cta-final {
  background: var(--grad);
  border-radius: var(--radius-xl);
  padding: 80px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='white' stroke-width='.5' opacity='.15'%3E%3Ccircle cx='30' cy='30' r='25'/%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3Ccircle cx='30' cy='30' r='5'/%3E%3C/g%3E%3C/svg%3E") center / 80px 80px;
  pointer-events: none;
}
.cta-final h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 5.5vw, 80px); line-height: .98; margin: 0 0 16px; letter-spacing: -.025em; color: #fff; max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta-final h2 em { font-style: italic; color: rgba(255,255,255,.75); }
.cta-final p { color: rgba(255,255,255,.82); max-width: 50ch; margin: 0 auto 28px; font-size: 1.04rem; }
.cta-final .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-final .btn-primary { background: #fff; color: var(--accent); box-shadow: 0 4px 20px rgba(0,0,0,.18); }
.cta-final .btn-primary:hover { box-shadow: 0 8px 32px rgba(0,0,0,.22); }
.cta-final .btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.cta-final .btn-ghost:hover { border-color: rgba(255,255,255,.8); }

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  padding: 64px 0 36px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

/* gradient top border */
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad);
}

/* ambient glow blob */
.footer-glow {
  position: absolute; bottom: -40%; left: 50%;
  transform: translateX(-50%);
  width: 80%; height: 80%;
  background: radial-gradient(ellipse, rgba(133,71,136,.18) 0%, transparent 65%);
  pointer-events: none;
}

/* ── top strip: brand + CTA ── */
.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; margin-bottom: 48px;
}
@media (max-width: 860px) { .footer-top { flex-direction: column; gap: 28px; } }

.footer-brand-block { max-width: 340px; }
.footer-tagline { color: var(--fg-2); font-size: .9rem; line-height: 1.6; margin: 12px 0 20px; }

/* social icon buttons */
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-2);
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.social-btn:hover {
  background: var(--grad); color: #fff; border-color: transparent;
  transform: translateY(-3px); box-shadow: 0 8px 20px rgba(215,61,89,.35);
}

/* CTA strip */
.footer-cta-strip {
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  padding: 28px 32px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  flex-shrink: 0;
  position: relative; overflow: hidden;
}
.footer-cta-strip::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--grad);
}
.footer-cta-strip p {
  font-family: var(--font-display);
  font-size: 1.3rem; letter-spacing: -.015em;
  margin: 0; color: var(--fg);
}
@media (max-width: 860px) { .footer-cta-strip { align-items: flex-start; width: 100%; } }

/* divider */
.footer-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.1), transparent);
  margin-bottom: 48px;
}

/* ── links grid ── */
.footer-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 860px) { .footer-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .footer-row { grid-template-columns: 1fr; } }

.footer h5 {
  font-family: var(--font-mono); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent); margin: 0 0 16px;
}
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer li a, .footer li {
  font-size: .88rem; color: var(--fg-2);
  transition: color .18s, padding-left .18s;
  cursor: pointer; display: block;
}
.footer li a:hover, .footer li:hover { color: var(--fg); padding-left: 4px; }

/* ── bottom bar ── */
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.07);
  font-family: var(--font-mono); font-size: .66rem;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: .1em;
}

/* =============================================================
   SCROLL REVEAL
   ============================================================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =============================================================
   VISUAL RICHNESS UPGRADES
   ============================================================= */

/* ── Hero background ambient glow ── */
.hero {
  background:
    radial-gradient(ellipse 60% 55% at 80% 55%, rgba(133,71,136,.28) 0%, transparent 60%),
    radial-gradient(ellipse 45% 45% at 90% 75%, rgba(215,61,89,.16) 0%, transparent 55%);
}

/* ── Service card gradient top bar + richer hover ── */
.svc::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  opacity: .45;
  transition: opacity .32s ease;
}
.svc:hover::before, .svc.active::before { opacity: 1; }
.svc:hover {
  box-shadow: 0 20px 60px rgba(133,71,136,.2), 0 4px 12px rgba(215,61,89,.1);
  transform: translateY(-7px);
  border-color: rgba(215,61,89,.22);
  background: linear-gradient(160deg, rgba(215,61,89,.04) 0%, #fff 45%);
}

.svc:hover .svc-n { opacity: .55; }
.svc.active .svc-n { opacity: .7; }

/* Chip color on hover */
.svc:hover .chip, .svc.active .chip {
  border-color: rgba(215,61,89,.3);
  color: var(--accent);
  background: rgba(215,61,89,.06);
}

/* ── Industry card gradient top bar ── */
.industry { position: relative; overflow: hidden; }
.industry::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  opacity: .35;
  transition: opacity .25s, transform .25s;
}
.industry:hover::before { opacity: 1; }
.industry:hover {
  box-shadow: 0 14px 44px rgba(133,71,136,.16);
  transform: translateY(-5px);
  border-color: rgba(133,71,136,.28);
}

/* ── Process connecting line — thicker + glow ── */
.process-h::before {
  height: 3px;
  box-shadow: 0 0 12px rgba(215,61,89,.45), 0 0 32px rgba(133,71,136,.3);
}

/* ── ROI card hover ── */
.roi-card { transition: transform .22s ease, box-shadow .22s ease; }
.roi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* =============================================================
   DARK SECTION VARIANT  (.dark-bg)
   ============================================================= */
.dark-bg {
  background: linear-gradient(145deg, #0e0b1a 0%, #18112e 55%, #0c1320 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.dark-bg > .container { position: relative; z-index: 1; }

/* Ambient radial blobs */
.dark-bg::before {
  content: "";
  position: absolute; top: -30%; left: -15%;
  width: 70%; height: 80%;
  background: radial-gradient(ellipse, rgba(215,61,89,.24) 0%, transparent 65%);
  pointer-events: none;
}
.dark-bg::after {
  content: "";
  position: absolute; bottom: -25%; right: -10%;
  width: 60%; height: 70%;
  background: radial-gradient(ellipse, rgba(133,71,136,.28) 0%, transparent 65%);
  pointer-events: none;
}

/* Typography overrides */
.dark-bg .section-head h2 { color: #fff; }
.dark-bg .section-head h2 em { color: #ffb8cd; }
.dark-bg .section-head .lead { color: rgba(255,255,255,.58); }
.dark-bg .eyebrow { color: rgba(255,160,185,.9); }

/* ── Stats on dark ── */
.dark-bg .stats { position: relative; z-index: 1; }
.dark-bg .stat {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
}
.dark-bg .stat::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
}
.dark-bg .stat .v { color: #fff; }
.dark-bg .stat .v em {
  background: linear-gradient(135deg, #ff8fab, #c47aff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.dark-bg .stat-num { color: #fff; -webkit-text-fill-color: #fff; }
.dark-bg .stat .k { color: rgba(255,255,255,.45); }
.dark-bg .stat .d { color: rgba(255,255,255,.42); }

/* ── Demo section on dark ── */
.dark-bg .chatbot {
  box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1);
}
.dark-bg .demo-side h2 { color: #fff; }
.dark-bg .demo-side h2 em { color: #ffb8cd; }
.dark-bg .demo-side > p { color: rgba(255,255,255,.6); }
.dark-bg .demo-check {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dark-bg .demo-check b { color: #fff; }
.dark-bg .demo-check p { color: rgba(255,255,255,.55); }
.dark-bg .demo-check svg { color: #ff8fab; }

/* =============================================================
   SUBTLE TINTED SECTION  (.tint-bg)
   ============================================================= */
.tint-bg {
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(133,71,136,.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 70% at 80% 40%, rgba(215,61,89,.12) 0%, transparent 65%),
    var(--bg-2);
}

/* =============================================================
   FLOATING ANIMATION
   ============================================================= */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* =============================================================
   GLOBAL DARK THEME — card & component overrides
   (hardcoded #fff backgrounds flipped to dark glass)
   ============================================================= */

/* ── Navigation ── */
.btn-ghost { border-color: rgba(255,255,255,.2); color: var(--fg); }
.btn-ghost:hover { border-color: rgba(255,255,255,.4); }
.btn-ghost .btn-arrow { background: rgba(255,255,255,.1); color: var(--fg-2); }

/* ── Service cards ── */
.svc { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.svc:hover { background: rgba(215,61,89,.1); border-color: rgba(215,61,89,.3); }

/* ── Service detail ── */
.detail-wrap    { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.detail-tabs    { background: rgba(0,0,0,.3); border-right-color: rgba(255,255,255,.08); }
.detail-tab     { border-bottom-color: rgba(255,255,255,.06); color: var(--fg-2); }
.detail-tab:hover { background: rgba(255,255,255,.06); color: var(--fg); }
.detail-tab.active { background: rgba(255,255,255,.1); color: var(--fg); }
.examples li    { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.metric         { background: rgba(215,61,89,.12); border-color: rgba(215,61,89,.3); }

/* ── ROI ── */
.roi            { border-color: rgba(255,255,255,.1); }
.roi-output     { background: rgba(255,255,255,.04); border-left-color: rgba(255,255,255,.08); }

/* ── Chatbot ── */
.chatbot        { background: rgba(18,14,36,.97); border-color: rgba(255,255,255,.1); box-shadow: 0 32px 80px rgba(0,0,0,.5); }
.chatbot-head   { border-bottom-color: rgba(255,255,255,.08); }
.chatbot-stream { background: rgba(8,6,18,.5); }
.msg.bot        { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.12); color: var(--fg); }
.chatbot-quick  { background: rgba(255,255,255,.04); border-top-color: rgba(255,255,255,.08); }
.quick          { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: var(--fg-2); }
.quick:hover    { background: rgba(215,61,89,.2); border-color: rgba(215,61,89,.4); color: var(--fg); }
.chatbot-input  { background: rgba(255,255,255,.04); border-top-color: rgba(255,255,255,.08); }
.chatbot-input input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: var(--fg); }
.chatbot-input input::placeholder { color: var(--fg-3); }

/* ── Demo side checks ── */
.demo-check { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); }
.demo-check b { color: var(--fg); }
.demo-check p { color: var(--fg-2); }
.demo-check svg { color: #ff8fab; }

/* ── Process ── */
.step-h-icon         { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
.pp-list li          { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.process-panel-inner { background: rgba(215,61,89,.07); border-color: rgba(215,61,89,.22); }

/* ── Industry cards ── */
.industry { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.industry:hover { background: rgba(133,71,136,.1); border-color: rgba(133,71,136,.3); }

/* ── Stats ── */
.stat { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }

/* ── Service expander ── */
.svc-expand-inner { background: rgba(215,61,89,.07); border-color: rgba(215,61,89,.25); }
.exp-metric       { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); }
.exp-ex           { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.exp-close        { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: var(--fg-2); }

/* ── Process panel ── */
.svc-expand-inner .exp-metric .emv { -webkit-text-fill-color: transparent; }

/* ── FAQ ── */
.faq-q h4 { color: var(--fg); }

/* ── CTA banner — white button override ── */
.cta-final .btn-primary { background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(8px); }
.cta-final .btn-primary:hover { background: rgba(255,255,255,.2); }

/* =============================================================
   SECTION ACCENT PILL (eyebrow upgrade)
   ============================================================= */
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(215,61,89,.1), rgba(133,71,136,.1));
  border: 1px solid rgba(215,61,89,.2);
  font-family: var(--font-mono);
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.eyebrow-pill::before { content: "✦"; font-size: .6rem; }
