/* ==========================================================================
   BlackBots AI — Global styles
   Style: Premium editorial — warm stone + ink, single cobalt accent
   Fonts: Manrope (display & body) / JetBrains Mono (labels)
   ========================================================================== */

:root {
  /* Palette */
  --stone: #eeeae8;
  --stone-2: #e5e0dd;
  --paper: #ffffff;
  --ink: #111111;
  --ink-2: #1a1a1a;
  --ink-3: #242424;
  --accent: #1d3be8;          /* cobalt — white text on it = 6.9:1 */
  --accent-hover: #1630c4;
  --accent-soft: rgba(29, 59, 232, 0.08);
  --whatsapp: #25d366;
  --danger: #c0262d;
  --success: #12805c;

  /* Light theme tokens (default) */
  --bg: var(--stone);
  --surface: var(--paper);
  --surface-2: #f6f4f2;
  --text: var(--ink);
  --text-2: #575960;          /* 5.9:1 on stone */
  --muted: #62656e;
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.28);
  --accent-ink: var(--accent);

  /* Type */
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section-y: clamp(80px, 10vw, 140px);

  --radius-sm: 10px;
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1240px;
  --header-h: 80px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 1px 2px rgba(17, 17, 17, 0.04), 0 12px 32px -16px rgba(17, 17, 17, 0.18);
}

/* Dark sections */
.dark {
  --bg: var(--ink);
  --surface: var(--ink-2);
  --surface-2: var(--ink-3);
  --text: #ffffff;
  --text-2: #c9cbd2;
  --muted: #9a9eab;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.3);
  --accent-ink: #8ea0ff;      /* readable accent on ink */
  background: var(--bg);
  color: var(--text-2);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--stone);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, summary, label, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 5vw + 1rem, 5.6rem); }
h2 { font-size: clamp(2.2rem, 3.2vw + 1rem, 4rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.025em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.section { padding-block: var(--section-y); position: relative; background: var(--bg); }
.section-sm { padding-block: clamp(56px, 7vw, 96px); background: var(--bg); }
.section + .section:not(.dark):not(.flush) { border-top: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: clamp(44px, 5vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--space-5); font-size: 1.15rem; color: var(--text-2); }

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-5);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text);
}
.eyebrow::before { content: "[ "; color: var(--accent-ink); }
.eyebrow::after { content: " ]"; color: var(--accent-ink); }
.eyebrow .dot { display: none; }

/* highlighted words */
.grad-text { color: var(--accent-ink); }
.dark .grad-text { color: var(--accent-ink); }

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Card ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section:not(.dark) .card { box-shadow: var(--shadow-card); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1; letter-spacing: -0.01em;
  border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.12s var(--ease-out), background-color 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease-out); }
.btn:hover svg.i-arrow { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }

.btn-primary { color: #fff; background: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline { color: var(--text); background: transparent; border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--text); background: var(--text); color: var(--bg); }

.btn-light { color: var(--ink); background: #fff; }
.btn-light:hover { background: var(--stone); }

.btn-whatsapp { color: #04220f; background: var(--whatsapp); }
.btn-whatsapp:hover { background: #3ee07f; }

.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s, gap 0.2s var(--ease-out);
}
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { color: var(--accent-ink); gap: 12px; }

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-badge {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 14px;
  color: #fff; background: var(--ink);
}
.dark .icon-badge { background: #fff; color: var(--ink); }
.icon-badge.accent, .dark .icon-badge.accent { background: var(--accent); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(17, 17, 17, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--space-5); }

.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: -0.03em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); outline: 1px solid rgba(255,255,255,.18); }
.brand b { font-weight: 800; color: var(--accent-ink, #8ea0ff); }
.site-header .brand b, .site-footer .brand b { color: #8ea0ff; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 14px;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::before { content: "["; margin-right: 6px; color: #8ea0ff; }
.nav-links a[aria-current="page"]::after { content: "]"; margin-left: 6px; color: #8ea0ff; }

.nav-cta { display: flex; align-items: center; gap: var(--space-3); }
.nav-cta .btn { min-height: 44px; padding: 10px 20px; font-size: 0.93rem; }

.nav-toggle {
  display: none; place-items: center; width: 46px; height: 46px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent; color: #fff;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
.nav-open .nav-toggle .i-menu { display: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(64px, 9vw, 130px)); padding-bottom: clamp(64px, 8vw, 110px); }
.page-hero .container { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: var(--space-7); align-items: end; }
.page-hero h1 { font-size: clamp(2.6rem, 4.6vw + 1rem, 5.2rem); }
.page-hero p { font-size: 1.15rem; color: var(--text-2); max-width: 460px; }
.page-hero .eyebrow, .page-hero h1 { grid-column: 1; }
.page-hero .eyebrow { margin-bottom: 0; }
.page-hero .hero-side { grid-column: 2; grid-row: 2; }
.page-hero .svc-nav { grid-column: 1 / -1; }

/* ---------- Home hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 90px)); padding-bottom: 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: var(--space-6); color: var(--muted); }
.hero-tags li { display: inline-flex; align-items: center; gap: 18px; }
.hero-tags li + li::before { content: "/"; color: #8ea0ff; }
.hero h1 { margin-bottom: var(--space-6); }
.hero-lead { font-size: clamp(1.08rem, 0.35vw + 1rem, 1.22rem); color: var(--text-2); max-width: 540px; }
.hero .btn-row { margin-top: var(--space-7); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: var(--space-6); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.hero-points .icon { width: 16px; height: 16px; color: #8ea0ff; stroke-width: 2.4; }

.hero-wordmark {
  margin-top: clamp(56px, 7vw, 100px);
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(4rem, 17.5vw, 17rem); line-height: 0.78; letter-spacing: -0.065em;
  text-align: center; white-space: nowrap; user-select: none;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 45%, rgba(255, 255, 255, 0.05) 100%);
  -webkit-background-clip: text; background-clip: text;
  transform: translateY(6%);
}

/* hero visual */
.hero-visual { position: relative; padding: 56px 0 96px; }
.agent-card { padding: 22px; width: min(100%, 450px); margin-left: auto; z-index: 2; background: var(--ink-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.agent-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.agent-head .avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; }
.agent-head .avatar .icon { width: 22px; height: 22px; color: var(--ink); }
.agent-head strong { display: block; font-family: var(--font-head); color: #fff; font-size: 1rem; line-height: 1.2; letter-spacing: -0.02em; }
.agent-head small { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: #9a9eab; }
.agent-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; }
.agent-head .tag { margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; color: #c9cbd2; border: 1px solid rgba(255, 255, 255, 0.16); }

.chat { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; min-height: 290px; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 18px; font-size: 0.95rem; line-height: 1.5; font-weight: 500; animation: msgIn 0.45s var(--ease-out) both; }
.msg.user { align-self: flex-end; color: #fff; background: var(--accent); border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; color: var(--ink); background: #fff; border-bottom-left-radius: 6px; }
.msg.typing { display: inline-flex; gap: 5px; padding: 15px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a9eab; animation: dots 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.15s; }
.msg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dots { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.float-card { position: absolute; padding: 14px 16px; display: flex; align-items: center; gap: 12px; z-index: 3; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); animation: bob 8s ease-in-out infinite; }
.float-card strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 0.95rem; line-height: 1.25; letter-spacing: -0.02em; }
.float-card small { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: #62656e; }
.float-card .icon-badge { width: 40px; height: 40px; border-radius: 11px; background: var(--ink); color: #fff; }
.float-card .icon-badge.accent { background: var(--accent); }
.float-card .icon-badge .icon { width: 20px; height: 20px; }
.float-card.fc-1 { left: 0; top: 0; }
.float-card.fc-2 { left: 0; bottom: 14px; animation-delay: -2.5s; }
.float-card.fc-3 { right: -10px; bottom: -14px; animation-delay: -4.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.flow { display: flex; align-items: center; gap: 6px; }
.flow span { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--stone); }
.flow span .icon { width: 14px; height: 14px; color: var(--ink); }
.flow span:last-child { background: var(--accent); }
.flow span:last-child .icon { color: #fff; }
.flow em { width: 14px; height: 2px; background: var(--ink); opacity: 0.25; border-radius: 2px; }

/* ---------- Home hero: centered showcase ---------- */
.site-header.light { color: var(--ink); }
.site-header.light .brand { color: var(--ink); }
.site-header.light .brand img { box-shadow: none; outline: 0; }
.site-header.light .brand b { color: var(--accent); }
.site-header.light .nav-links a { color: rgba(17, 17, 17, 0.62); }
.site-header.light .nav-links a:hover, .site-header.light .nav-links a[aria-current="page"] { color: var(--ink); }
.site-header.light .nav-links a[aria-current="page"]::before, .site-header.light .nav-links a[aria-current="page"]::after { color: var(--accent); }
.site-header.light .nav-cta .btn-light { background: var(--ink); color: #fff; }
.site-header.light .nav-cta .btn-light:hover { background: var(--accent); }
.site-header.light .nav-toggle { color: var(--ink); border-color: rgba(17, 17, 17, 0.2); }
.site-header.light.scrolled { background: rgba(255, 255, 255, 0.86); border-bottom-color: rgba(17, 17, 17, 0.08); }
.nav-open .site-header.light, .nav-open .site-header.light.scrolled { color: #fff; background: var(--ink); border-bottom-color: rgba(255, 255, 255, 0.08); }
.nav-open .site-header.light .brand { color: #fff; }
.nav-open .site-header.light .brand b { color: #8ea0ff; }
.nav-open .site-header.light .nav-toggle { color: #fff; border-color: rgba(255, 255, 255, 0.25); }

.hx { --hx-violet: #6d4aff; padding: calc(var(--header-h) + 8px) clamp(10px, 1.6vw, 24px) clamp(20px, 3vw, 40px); background: var(--bg); }
.hx-frame {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: 1440px; margin-inline: auto; min-height: 820px;
  padding: clamp(48px, 6vw, 76px) 24px clamp(48px, 6vw, 72px);
  border: 1px solid rgba(17, 17, 17, 0.08); border-radius: 32px;
  background: radial-gradient(60% 50% at 50% 38%, #ffffff 0%, #f6f6fb 70%, #f1f1f7 100%);
}
.hx-dots {
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(29, 59, 232, 0.22) 1px, transparent 1.3px);
  background-size: 20px 20px;
  mask-image: radial-gradient(75% 70% at 50% 45%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 70% at 50% 45%, #000 30%, transparent 100%);
}
.hx-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; fill: none; stroke: rgba(109, 74, 255, 0.35); stroke-width: 2; stroke-dasharray: 0.5 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hx-lines path { vector-effect: non-scaling-stroke; }

.hx-center { position: relative; z-index: 2; max-width: 840px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hx-logo { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 30px; border-radius: 22px; background: #fff; box-shadow: 0 1px 0 rgba(17,17,17,.04), 0 18px 40px -16px rgba(29, 59, 232, 0.35), inset 0 0 0 1px rgba(17,17,17,.06); }
.hx-logo img { width: 56px; height: 56px; border-radius: 14px; }
.hx h1 { font-size: clamp(2.3rem, 3.2vw + 1rem, 4.1rem); line-height: 1.04; letter-spacing: -0.05em; color: var(--ink); text-wrap: balance; }
.hx-accent { display: block; margin-top: 0.08em; color: var(--accent); background: linear-gradient(90deg, var(--accent) 0%, var(--hx-violet) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: 0.06em; }
.hx-lead { margin-top: 22px; max-width: 600px; font-size: clamp(1.02rem, 0.3vw + 0.95rem, 1.15rem); line-height: 1.6; color: var(--text-2); }
.hx-proof { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 6px 16px 6px 8px; border-radius: 999px; background: #fff; border: 1px solid rgba(17,17,17,.08); font-size: 0.9rem; font-weight: 600; color: var(--ink); text-align: left; }
.hx-stack { display: inline-flex; }
.hx-stack i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; background: var(--stone); color: var(--ink); }
.hx-stack i:first-child { margin-left: 0; }
.hx-stack i:nth-child(2) { background: #e4e8ff; color: var(--accent); }
.hx-stack i:nth-child(3) { background: #ffe6ea; color: #c4314b; }
.hx-stack i:nth-child(4) { background: #ece6ff; color: var(--hx-violet); }
.hx-stack i:nth-child(5) { background: #e3f6ec; color: #13804a; }
.hx-stack .icon { width: 15px; height: 15px; }
.hx-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.btn-glow { box-shadow: 0 14px 34px -10px rgba(29, 59, 232, 0.65), 0 0 0 6px rgba(29, 59, 232, 0.08); }
.btn-glow:hover { box-shadow: 0 18px 40px -10px rgba(29, 59, 232, 0.75), 0 0 0 8px rgba(29, 59, 232, 0.1); }
.btn-ghost { color: var(--ink); background: #fff; border-color: rgba(17,17,17,.12); }
.btn-ghost:hover { border-color: var(--ink); }
.hx-micro { margin-top: 14px; font-size: 0.88rem; font-weight: 600; color: var(--muted); }

.hx-platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }
.hx-platforms li { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #fff; box-shadow: 0 12px 26px -14px rgba(17, 17, 17, 0.35), inset 0 0 0 1px rgba(17,17,17,.06); animation: bob 7s ease-in-out infinite; }
.hx-platforms li:nth-child(2n) { animation-delay: -2s; translate: 0 10px; }
.hx-platforms li:nth-child(3n) { animation-delay: -4s; }
.hx-platforms svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-wa { color: #fff; background: #25d366 !important; }
.pf-ig { color: #fff; background: linear-gradient(45deg, #f9a03f, #e1306c 50%, #833ab4) !important; }
.pf-web { color: var(--accent); }
.pf-ph { color: #fff; background: var(--ink) !important; }
.pf-gm { color: #ea4335; }
.pf-gs { color: #fff; background: #0f9d58 !important; }
.pf-sh { color: #fff; background: #5e8e3e !important; }

.hx-card { position: absolute; z-index: 1; background: #fff; color: var(--ink); border-radius: 18px; padding: 14px 16px; box-shadow: 0 30px 60px -28px rgba(17, 17, 17, 0.35), inset 0 0 0 1px rgba(17,17,17,.06); animation: bob 9s ease-in-out infinite; }
.hc-label { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.hc-label .icon { width: 15px; height: 15px; color: var(--accent); }
.hx-card small { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.hx-card b { font-family: var(--font-head); }

.hc-chat { top: 9%; left: 3.5%; width: 230px; rotate: -4deg; }
.hc-bubble { display: block; width: fit-content; max-width: 100%; padding: 8px 12px; border-radius: 14px; font-size: 0.82rem; font-weight: 600; line-height: 1.35; }
.hc-bubble.in { background: var(--surface-2); border-bottom-left-radius: 4px; }
.hc-bubble.out { margin: 6px 0 0 auto; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }

.hc-voice { top: 36%; left: 5%; display: flex; align-items: center; gap: 12px; animation-delay: -3s; }
.hc-voice .icon-badge { width: 40px; height: 40px; border-radius: 12px; }
.hc-voice .icon-badge .icon { width: 19px; height: 19px; }
.hc-voice b { font-size: 0.95rem; }
.wave { display: flex; align-items: center; gap: 3px; height: 18px; margin-top: 4px; }
.wave i { width: 3px; border-radius: 2px; background: var(--accent); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(odd) { background: var(--hx-violet); }
.wave i:nth-child(1) { height: 6px; } .wave i:nth-child(2) { height: 12px; animation-delay: -.2s; } .wave i:nth-child(3) { height: 17px; animation-delay: -.4s; }
.wave i:nth-child(4) { height: 9px; animation-delay: -.6s; } .wave i:nth-child(5) { height: 15px; animation-delay: -.1s; } .wave i:nth-child(6) { height: 7px; animation-delay: -.5s; }
.wave i:nth-child(7) { height: 13px; animation-delay: -.3s; } .wave i:nth-child(8) { height: 16px; animation-delay: -.7s; } .wave i:nth-child(9) { height: 8px; animation-delay: -.25s; }
@keyframes wave { 50% { transform: scaleY(0.4); } }

.hc-media { top: 9%; right: 3.5%; width: 220px; rotate: 4deg; animation-delay: -5s; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.thumbs i { aspect-ratio: 3 / 4; border-radius: 10px; display: grid; place-items: center; }
.thumbs .t1 { background: linear-gradient(160deg, #ffd5c2, #ff7a59 60%, #6d4aff); }
.thumbs .t2 { background: linear-gradient(160deg, #c9f2ff, #1d3be8 70%); }
.thumbs .t3 { background: linear-gradient(160deg, #2b2b36, #111); color: #fff; }
.thumbs .icon { width: 18px; height: 18px; }

.hc-flow { top: 36%; right: 4%; animation-delay: -1.5s; }

.hc-demo { left: 2.5%; bottom: 32px; width: 310px; padding: 18px; rotate: -3deg; z-index: 3; animation-delay: -6s; }
.hc-demo .agent-head { border-bottom-color: rgba(17,17,17,.08); padding-bottom: 12px; }
.hc-demo .agent-head .avatar { background: var(--ink); }
.hc-demo .agent-head .avatar .icon { color: #fff; }
.hc-demo .agent-head strong { color: var(--ink); font-size: 0.95rem; }
.hc-demo .agent-head .tag { display: none; }
.hc-demo .chat { min-height: 250px; gap: 9px; padding-top: 14px; }
.hc-demo .msg { font-size: 0.84rem; padding: 9px 13px; }
.hc-demo .msg.bot { background: var(--surface-2); }

.hc-book { right: 2.5%; bottom: 52px; width: 300px; rotate: 3deg; animation-delay: -4s; }
.hc-book ul { display: grid; gap: 6px; }
.hc-book li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 0.8rem; }
.hc-book li span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }
.hc-book li em { font-style: normal; font-weight: 700; }
.hc-book li i { font-style: normal; font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.hc-book .ok { background: #e3f6ec; color: #13804a; }
.hc-book .new { background: #e4e8ff; color: var(--accent); }

@media (max-width: 1359px) {
  .hc-voice, .hc-flow { display: none; }
  .hc-chat, .hc-media { top: 7%; left: 2.5%; }
  .hc-media { left: auto; right: 2.5%; }
}
@media (max-width: 1199px) {
  .hx-frame { min-height: 0; }
  .hc-chat, .hc-voice, .hc-media, .hc-flow, .hc-book, .hx-lines { display: none; }
  .hc-demo { position: relative; inset: auto; rotate: none; margin: 48px auto 0; width: min(100%, 400px); animation: none; }
}
@media (max-width: 640px) {
  .hx { padding-inline: 8px; }
  .hx-frame { border-radius: 24px; padding: 40px 16px 32px; }
  .hx-logo { width: 68px; height: 68px; border-radius: 18px; margin-bottom: 22px; }
  .hx-logo img { width: 46px; height: 46px; }
  .hx-proof { border-radius: 18px; padding: 8px 12px; flex-direction: column; text-align: center; gap: 8px; }
  .hx-cta { width: 100%; }
  .hx-cta .btn { flex: 1 1 100%; }
  .hx-platforms { gap: 10px; margin-top: 32px; }
  .hx-platforms li { width: 46px; height: 46px; border-radius: 14px; }
  .hx-platforms li:nth-child(2n) { translate: none; }
  .hx-platforms svg { width: 22px; height: 22px; }
  .hc-demo { margin-top: 36px; }
}

/* ---------- Inner page heroes (same style as home) ---------- */
.hx-page .hx-frame { min-height: 640px; padding-top: clamp(56px, 7vw, 92px); padding-bottom: clamp(56px, 7vw, 92px); }
.hx-page .hx-center { max-width: 760px; }
.hx-page h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.9rem); }
.hx-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 7px 16px 7px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(17,17,17,.08), 0 10px 24px -16px rgba(29,59,232,.5); font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.hx-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--hx-violet)); box-shadow: 0 0 0 4px rgba(29,59,232,.12); }
.hx-page .svc-nav { justify-content: center; margin-top: 30px; }
.hx-page .svc-nav a { background: #fff; border-color: rgba(17,17,17,.12); }
.hx-page .svc-nav a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.hx-page .hx-cta .btn .icon { width: 18px; height: 18px; }

.hc-mini { display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; max-width: 260px; }
.hc-mini .icon-badge { width: 42px; height: 42px; border-radius: 12px; flex: none; background: var(--ink); color: #fff; }
.hc-mini .icon-badge.accent { background: var(--accent); }
.hc-mini .icon-badge .icon { width: 20px; height: 20px; }
.hc-mini b { display: block; font-size: 0.98rem; line-height: 1.2; letter-spacing: -0.02em; }
.hc-mini small { margin-top: 3px; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; }
.hx-cards .hx-card.pos-tl { top: 13%; left: 4%; right: auto; bottom: auto; rotate: -4deg; animation-delay: -1s; }
.hx-cards .hx-card.pos-tr { top: 13%; right: 4%; left: auto; bottom: auto; rotate: 4deg; animation-delay: -4s; }
.hx-cards .hx-card.pos-bl { bottom: 10%; left: 3%; top: auto; right: auto; rotate: 3deg; animation-delay: -6s; }
.hx-cards .hx-card.pos-br { bottom: 10%; right: 3%; top: auto; left: auto; rotate: -3deg; animation-delay: -2.5s; }
@media (max-width: 1440px) { .hx-cards .hc-mini { max-width: 230px; } }
@media (max-width: 1299px) { .hx-cards { display: none; } .hx-page .hx-frame { min-height: 0; } }

/* Pricing: quote-based cards */
.price.quote { flex-direction: column; align-items: flex-start; gap: 6px; }
.price.quote strong { font-size: clamp(1.8rem, 1.2vw + 1.2rem, 2.3rem); letter-spacing: -0.045em; }
.price-card .desc { min-height: 3.2em; }
@media (max-width: 640px) { .price-card .desc { min-height: 0; } }
.best-for { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.best-for span { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.addon-tag { display: inline-block; margin: 2px 0 8px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }

/* Pricing: quick quote builder */
.qb { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 64px); padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -50px rgba(29, 59, 232, 0.45); position: relative; overflow: hidden; }
.qb::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(rgba(29, 59, 232, 0.16) 1px, transparent 1.3px); background-size: 20px 20px; mask-image: linear-gradient(120deg, #000, transparent 45%); -webkit-mask-image: linear-gradient(120deg, #000, transparent 45%); }
.qb > * { position: relative; z-index: 1; }
.qb-head h2 { margin: 6px 0 14px; }
.qb-head p { color: var(--text-2); }
.qb-promises { display: grid; gap: 10px; margin-top: 24px; }
.qb-promises li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.qb-promises .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--accent); color: #fff; stroke-width: 3; flex: none; }
.qb-form { display: grid; gap: 22px; }
.qb-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.qb-form legend, .qb-form .field label { display: block; margin-bottom: 10px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.qb-form .req { color: var(--accent); }
.qb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qb-chip { position: relative; cursor: pointer; }
.qb-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qb-chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: 0.92rem; font-weight: 600; color: var(--text); transition: background 0.15s, color 0.15s, border-color 0.15s; }
.qb-chip span::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-strong); flex: none; transition: background 0.15s, border-color 0.15s; }
.qb-chip input[type="radio"] + span::before { border-radius: 50%; }
.qb-chip:hover span { border-color: var(--ink); }
.qb-chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.qb-chip input:checked + span::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; border-color: var(--accent); }
.qb-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.qb-row { display: grid; grid-template-columns: 1fr; }
.qb-error { min-height: 0; color: #c4314b; font-weight: 600; font-size: 0.92rem; }
.qb-error:empty { display: none; }
.qb-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 960px) { .qb { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .qb-actions .btn { flex: 1 1 100%; } .grid-4.steps { grid-template-columns: 1fr; } }

/* ---------- Marquee (tools) ---------- */
.marquee-wrap { padding-block: var(--space-6); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-label { text-align: center; margin-bottom: var(--space-5); color: var(--muted); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: scroll 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .chip { padding: 0; border: 0; background: none; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text); gap: 40px; }
.marquee .chip::before { content: "✦"; width: auto; height: auto; background: none; color: #8ea0ff; font-size: 0.9rem; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text); white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line);
}
@keyframes scroll { to { transform: translateX(calc(-50% - 20px)); } }

/* ---------- Service list (home) ---------- */
.svc-list { border-top: 1px solid var(--line-strong); }
.svc-row {
  position: relative; display: grid; grid-template-columns: 90px 1.1fr 1fr 56px; gap: var(--space-6); align-items: center;
  padding: clamp(24px, 3vw, 40px) clamp(8px, 1.5vw, 24px);
  border-bottom: 1px solid var(--line-strong);
  transition: background 0.18s var(--ease-out), color 0.18s;
}
.svc-row .num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }
.svc-row h3 { font-size: clamp(1.6rem, 1.6vw + 1rem, 2.5rem); letter-spacing: -0.045em; line-height: 1.05; }
.svc-row p { color: var(--text-2); font-size: 1rem; }
.svc-row .tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.svc-row .go { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--text); transition: background 0.3s, color 0.3s, transform 0.35s var(--ease-out), border-color 0.3s; }
.svc-row .go .icon { width: 22px; height: 22px; transform: rotate(-45deg); transition: transform 0.35s var(--ease-out); }
.svc-row::after { content: ""; position: absolute; inset: 0; }
.svc-row:hover { background: var(--ink); border-radius: var(--radius); }
.svc-row:hover h3 { color: #fff; }
.svc-row:hover p, .svc-row:hover .num, .svc-row:hover .tags { color: #c9cbd2; }
.svc-row:hover .go { background: var(--accent); border-color: var(--accent); color: #fff; }
.svc-row:hover .go .icon { transform: rotate(0); }
.svc-row a.cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.svc-row a.cover:focus-visible { outline-offset: -2px; }

/* ---------- Service cards (fallback) ---------- */
.service-card { padding: clamp(26px, 2.6vw, 36px); display: flex; flex-direction: column; gap: var(--space-4); }

.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; color: var(--text-2); }
.check-list .icon { width: 20px; height: 20px; color: var(--accent-ink); flex: none; margin-top: 3px; stroke-width: 2.4; }

/* ---------- Process ---------- */
.step { padding: 32px 4px 0; border-top: 1px solid var(--line-strong); background: none; border-radius: 0; box-shadow: none !important; border-left: 0; border-right: 0; border-bottom: 0; }
.step-num { display: block; font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-ink); margin-bottom: var(--space-7); }
.step-num::before { content: "["; margin-right: 4px; }
.step-num::after { content: "]"; margin-left: 4px; }
.step h3 { font-size: 1.6rem; margin-bottom: var(--space-3); letter-spacing: -0.04em; }
.step p { color: var(--text-2); font-size: 1rem; }

/* ---------- Use cases ---------- */
.usecase { padding: 28px; display: flex; flex-direction: column; gap: 22px; transition: transform 0.35s var(--ease-out), background 0.3s, color 0.3s; }
.usecase:hover { transform: translateY(-4px); }
.usecase .icon-badge { width: 48px; height: 48px; border-radius: 12px; }
.usecase h3 { font-size: 1.2rem; margin-bottom: 8px; }
.usecase p { color: var(--text-2); font-size: 0.98rem; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.split h2 { margin-bottom: var(--space-5); }
.split .lead { color: var(--text-2); font-size: 1.12rem; margin-bottom: var(--space-6); }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.stat { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: none !important; border-radius: 0 !important; box-shadow: none !important; }
.stat strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 2.4vw + 1.2rem, 3.8rem); line-height: 1; letter-spacing: -0.06em; color: var(--text); }
.stat span { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.5; color: var(--muted); }

/* ---------- Services page detail ---------- */
.svc-detail { display: grid; grid-template-columns: 90px 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line-strong); }
.svc-detail:last-child { border-bottom: 1px solid var(--line-strong); }
.svc-detail .num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-ink); padding-top: 10px; }
.svc-detail .icon-badge { margin-bottom: var(--space-5); width: 56px; height: 56px; border-radius: 16px; }
.svc-detail .icon-badge .icon { width: 26px; height: 26px; }
.svc-detail h2 { font-size: clamp(2rem, 2vw + 1rem, 3rem); margin-bottom: var(--space-5); }
.svc-detail .lead { color: var(--text-2); font-size: 1.08rem; margin-bottom: var(--space-6); }
.svc-detail h3 { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-5); }
.svc-panel { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.svc-panel + .svc-panel { margin-top: var(--space-4); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row span { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }

.svc-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-6); }
.svc-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); border: 1px solid var(--line-strong); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.svc-nav a:hover { color: var(--ink); background: #fff; border-color: #fff; }
.svc-nav .icon { width: 16px; height: 16px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); align-items: stretch; }
.price-card { padding: clamp(28px, 2.8vw, 40px); display: flex; flex-direction: column; gap: var(--space-6); }
.price-card.popular { background: var(--ink); border-color: var(--ink); --text: #fff; --text-2: #c9cbd2; --muted: #9a9eab; --accent-ink: #8ea0ff; --line-strong: rgba(255,255,255,.3); color: #c9cbd2; }
.price-card .badge { position: absolute; top: 24px; right: 24px; padding: 6px 12px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--accent); white-space: nowrap; }
.price-card h3 { font-size: 1.5rem; }
.price-card .desc { color: var(--text-2); font-size: 0.98rem; margin-top: 8px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-bottom: var(--space-6); border-bottom: 1px solid var(--line); }
.price-card.popular .price { border-color: rgba(255,255,255,.14); }
.price small { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.price small:first-child:not(:only-of-type) { flex-basis: 100%; }
.price strong { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 2vw + 1.6rem, 3.4rem); color: var(--text); line-height: 1; letter-spacing: -0.06em; }
.price-card .check-list { flex: 1; align-content: start; }
.price-card .check-list li { font-size: 0.98rem; }
.price-card.popular .btn-primary { background: var(--accent); }
.price-card.popular .btn-outline, .price-card .btn-outline { }
.price-note { text-align: center; color: var(--muted); font-size: 0.95rem; margin-top: var(--space-6); }

.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.98rem; }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--text); background: var(--surface-2); }
.compare tbody th { font-weight: 600; color: var(--text); }
.compare td { color: var(--text-2); text-align: center; }
.compare thead th:not(:first-child) { text-align: center; }
.compare thead th:nth-child(3) { background: var(--ink); color: #fff; }
.compare .icon { width: 20px; height: 20px; color: var(--accent); stroke-width: 2.4; margin-inline: auto; }
.compare .no { color: var(--line-strong); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 920px; margin-inline: auto; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); background: none !important; border-radius: 0 !important; box-shadow: none !important; border-left: 0; border-right: 0; border-top: 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 4px; min-height: 64px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.1rem, 0.5vw + 1rem, 1.35rem); letter-spacing: -0.025em; color: var(--text);
  transition: color 0.2s;
}
.faq summary:hover { color: var(--accent-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 40px; height: 40px; padding: 9px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text); transition: transform 0.3s var(--ease-out), background 0.2s, color 0.2s, border-color 0.2s; }
.faq details[open] summary .icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq .answer { padding: 0 64px 28px 4px; color: var(--text-2); }
.faq .answer a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(48px, 7vw, 100px) clamp(24px, 6vw, 80px); overflow: hidden; border-radius: var(--radius-lg); background: var(--accent); color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-7); align-items: end; }
.cta-band .eyebrow { color: #fff; }
.cta-band .eyebrow::before, .cta-band .eyebrow::after { color: rgba(255,255,255,.6); }
.cta-band h2 { color: #fff; font-size: clamp(2.2rem, 3.4vw + 1rem, 4.4rem); }
.cta-band p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; }
.cta-band .btn-row { margin-top: var(--space-6); }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-outline:hover { background: #fff; color: var(--accent); border-color: #fff; }

/* ---------- About ---------- */
.value-card { padding: 32px; }
.value-card .icon-badge { margin-bottom: var(--space-7); }
.value-card h3 { margin-bottom: var(--space-3); }
.value-card p { color: var(--text-2); }
.mission { padding: clamp(32px, 4vw, 56px); background: var(--ink) !important; border-color: var(--ink) !important; color: #c9cbd2; }
.mission .eyebrow { color: #fff; }
.mission .eyebrow::before, .mission .eyebrow::after { color: #8ea0ff; }
.mission blockquote { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 1.4vw + 1rem, 2.2rem); line-height: 1.2; color: #fff; letter-spacing: -0.035em; }
.mission .stat-grid { --line-strong: rgba(255,255,255,.18); --text: #fff; --muted: #9a9eab; }
.tools-cloud { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: var(--space-5); align-items: start; }
.form-card { padding: clamp(28px, 3.5vw, 52px); }
.form-card h2 { font-size: clamp(1.8rem, 1.4vw + 1rem, 2.6rem); margin-bottom: 10px; }
.form-card > p { color: var(--text-2); margin-bottom: var(--space-6); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.field label .req { color: var(--accent); }
.field .hint { font-size: 0.88rem; color: var(--muted); }
.input {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); font-size: 1rem; font-weight: 500; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder { color: #8b8e97; }
.input:hover { border-color: var(--line-strong); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(29, 59, 232, 0.15); background: #fff; }
textarea.input { min-height: 150px; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field.invalid .input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(192, 38, 45, 0.12); }
.field .error { display: none; font-size: 0.88rem; color: var(--danger); font-weight: 600; }
.field.invalid .error { display: block; }
.hp { position: absolute !important; left: -9999px !important; }

.form-status { display: none; margin-top: var(--space-5); padding: 16px 18px; border-radius: 14px; font-weight: 600; }
.form-status.show { display: flex; gap: 12px; align-items: flex-start; }
.form-status.success { background: #e6f5ee; border: 1px solid #9fd8bf; color: #0b5c41; }
.form-status.error { background: #fbeaea; border: 1px solid #efb1b4; color: #8f1c22; }
.form-status .icon { width: 22px; height: 22px; flex: none; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.form-foot small { color: var(--muted); font-size: 0.9rem; }
.btn .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin 0.8s linear infinite; }
.btn.loading .spinner { display: block; }
.btn.loading .i-arrow { display: none; }
.btn[disabled] { opacity: 0.75; cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-side { display: grid; gap: var(--space-3); }
.contact-item { padding: 22px; display: flex; gap: 16px; align-items: center; transition: transform 0.25s var(--ease-out), border-color 0.2s; }
a.contact-item:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.contact-item .icon-badge { width: 48px; height: 48px; border-radius: 12px; }
.contact-item .icon-badge.wa { background: var(--whatsapp); color: #04220f; }
.contact-item strong { display: block; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-item div > span { color: var(--text); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { padding-top: var(--space-9); padding-bottom: var(--space-6); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-7); }
.footer-about p { margin-top: var(--space-5); color: var(--text-2); max-width: 340px; }
.footer-col h2 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-4); }
.footer-col ul { display: grid; gap: 2px; }
.footer-col a { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; color: var(--text); font-weight: 600; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-col .icon { width: 18px; height: 18px; color: var(--muted); }
.footer-mark { margin-top: var(--space-8); font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 12.5vw, 12rem); line-height: 0.8; letter-spacing: -0.065em; color: var(--ink-3); white-space: nowrap; user-select: none; text-align: center; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line); color: var(--muted); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 8px; border-radius: 999px;
  background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s var(--ease-out), background 0.2s;
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float .wa-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--whatsapp); color: #04220f; }
.wa-float svg { width: 22px; height: 22px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out); transition-delay: calc(var(--d, 0s) * 0.6); }
.js .reveal.instant { transition: none; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .agent-card { margin-inline: auto; }
  .svc-row { grid-template-columns: 60px 1fr 56px; }
  .svc-row p { grid-column: 2; grid-row: 2; }
  .svc-row .go { grid-column: 3; grid-row: 1; }
  .svc-detail { grid-template-columns: 1fr 1fr; }
  .svc-detail .num { grid-column: 1 / -1; padding: 0; }
}

@media (max-width: 960px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: grid; }
  .mobile-menu {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    padding: 12px clamp(16px, 4vw, 40px) 28px;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
  }
  .nav-open .mobile-menu { opacity: 1; transform: none; visibility: visible; }
  .nav-open .site-header { background: var(--ink); }
  .mobile-menu a:not(.btn) { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 4px; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.04em; color: rgba(255,255,255,.7); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .mobile-menu a[aria-current="page"] { color: #fff; }
  .mobile-menu a[aria-current="page"]::after { content: "●"; font-size: 0.6rem; color: #8ea0ff; }
  .mobile-menu .btn-row { margin-top: 24px; flex-direction: column; }
  .mobile-menu .btn { width: 100%; }

  .grid-3, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid, .cta-band { grid-template-columns: 1fr; }
  .page-hero .container { grid-template-columns: 1fr; }
  .page-hero .hero-side { grid-column: 1; grid-row: auto; }
}
@media (min-width: 961px) { .mobile-menu { display: none; } }

@media (max-width: 640px) {
  :root { --header-h: 70px; }
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4, .pricing-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { padding: 0 0 8px; }
  .float-card { position: relative; inset: auto; margin-top: 12px; animation: none; width: fit-content; }
  .float-card.fc-1 { display: none; }
  .btn-row .btn { flex: 1 1 100%; }
  .wa-float { padding: 0; width: 56px; justify-content: center; }
  .wa-float > span:not(.wa-ico) { display: none; }
  .brand { font-size: 1.1rem; }
  .brand img { width: 34px; height: 34px; }
  .svc-row { grid-template-columns: 1fr 48px; gap: 12px 16px; }
  .svc-row .num { grid-column: 1 / -1; }
  .svc-row h3 { grid-column: 1; }
  .svc-row .go { grid-column: 2; grid-row: 2; width: 48px; height: 48px; }
  .svc-row p { grid-column: 1 / -1; grid-row: auto; }
  .svc-detail { grid-template-columns: 1fr; }
  .faq .answer { padding-right: 4px; }
  .marquee .chip { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 12px; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* ---------- SEO additions: keyword eyebrow in H1, breadcrumbs, text links ---------- */
.hx h1 .hx-eyebrow { display: flex; width: fit-content; margin: 0 auto 22px; line-height: 1.3; }
.hx-crumbs { position: absolute; top: 20px; left: 24px; z-index: 3; }
.hx-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hx-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--accent); }
.hx-crumbs a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(17,17,17,.25); }
.hx-crumbs a:hover { color: var(--accent); }
.hx-crumbs [aria-current] { color: var(--ink); }
.text-link { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }
.footer-loc { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.92rem; color: var(--muted); }
.footer-loc .icon { width: 16px; height: 16px; flex: none; }
a.chip { transition: background 0.15s, color 0.15s, border-color 0.15s; }
a.chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.area-row { justify-content: center; }
.area-row span { font-size: 0.8rem; padding: 9px 14px; background: #fff; }
.check-list .text-link { font-weight: 700; }
@media (max-width: 640px) {
  .hx-crumbs { position: static; margin-bottom: 18px; display: flex; justify-content: center; }
  .hx h1 .hx-eyebrow { margin-bottom: 16px; font-size: 0.68rem; }
}
