/* ===== Reset & base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* dark palette (hero, header, footer, dark sections) */
  --navy-950: hsl(220, 50%, 6%);
  --navy-900: hsl(220, 50%, 9%);
  --navy-800: hsl(220, 40%, 12%);
  --navy-700: hsl(220, 30%, 18%);
  --navy-600: hsl(220, 28%, 26%);
  --gradient-dark: linear-gradient(135deg, rgb(8,16,33), rgb(17,31,59), rgb(20,51,82));
  --ink-100: hsl(210, 40%, 96%);
  --ink-300: hsl(215, 20%, 72%);
  --ink-500: hsl(215, 20%, 55%);
  --line: hsla(220, 30%, 60%, 0.16);
  --card-dark: hsla(220, 51%, 12%, 0.6);
  --card-dark-border: hsla(220, 20%, 70%, 0.16);

  /* light palette (content sections) */
  --bg-light: hsl(220, 30%, 97%);
  --surface: #ffffff;
  --ink-d900: hsl(220, 50%, 12%);
  --ink-d500: hsl(220, 15%, 42%);
  --line-light: hsla(220, 25%, 40%, 0.14);

  /* shared accent */
  --accent: hsl(210, 80%, 55%);
  --accent-2: hsl(210, 100%, 80%);
  --accent-soft: hsla(210, 80%, 55%, 0.1);

  --font-display: "Plus Jakarta Sans", sans-serif;
  --font-logo: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --center-w: 1180px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-light);
  color: var(--ink-d900);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.center {
  max-width: var(--center-w);
  margin: 0 auto;
  padding: 0 32px;
}

em {
  font-style: normal; font-weight: 700; font-family: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Loader ===== */
.loader {
  position: fixed; inset: 0; z-index: 999;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.loader-mark { width: 92px; }
.loader-bar { width: 170px; height: 1px; background: hsla(0,0%,100%,.14); position: relative; overflow: hidden; }
.loader-bar-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.loader-pct {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .16em;
  color: var(--ink-500);
}
.loader-pct b { color: var(--accent-2); font-weight: 500; }
body.is-loaded .loader { opacity: 0; visibility: hidden; pointer-events: none; }
html.no-loader .loader { display: none; }

/* ===== Background canvas (scoped to hero only) ===== */
#bg-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: .9;
}
.hero .grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .site-header, .site-footer, .marquee { position: relative; z-index: 2; }

/* ===== Header (always dark chrome) ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 40px;
  transition: padding .4s ease, background .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding: 16px 40px;
  background: hsla(220, 50%, 6%, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; }
.brand-name { font-family: var(--font-logo); font-weight: 800; letter-spacing: .02em; font-size: 15px; text-transform: uppercase; color: var(--ink-100); }
.brand-name b { font-weight: 500; color: var(--ink-500); margin-left: 3px; }

.main-nav { display: flex; gap: 36px; }
.main-nav a {
  font-size: 14px; font-weight: 600; color: var(--ink-300);
  position: relative; padding-bottom: 4px;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent-2); transition: width .3s ease;
}
.main-nav a:hover { color: var(--ink-100); }
.main-nav a:hover::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; padding: 12px 22px; border-radius: 12px;
  transition: all .3s ease; white-space: nowrap;
}
.btn--ghost { border: 1px solid var(--line); color: var(--ink-100); }
.btn--ghost:hover { border-color: var(--accent-2); background: hsla(210, 100%, 80%, .08); }
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* light-context ghost/solid variants */
.on-light .btn--ghost { border-color: var(--line-light); color: var(--ink-d900); }
.on-light .btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); }

.header-cta { display: inline-flex; }

.menu-toggle {
  display: none; width: 40px; height: 40px; border: none; background: none;
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { width: 22px; height: 1.5px; background: var(--ink-100); transition: all .3s ease; }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .4s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 20px; text-align: center; max-height: 84vh; overflow-y: auto; padding: 20px; }
.mobile-menu a { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--ink-100); }

/* ===== Hero (always dark, canvas) ===== */
.hero {
  min-height: 100svh; display: flex; align-items: center; position: relative;
  padding: 140px 40px 80px;
  overflow: hidden;
  background: var(--gradient-dark);
  color: var(--ink-100);
}

.hero-inner { max-width: var(--center-w); margin: 0 auto; width: 100%; position: relative; z-index: 2; }

.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 22px;
}
.on-light .eyebrow, .on-light .section-label { color: var(--accent); }

.hero-title {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 8.4vw, 122px);
  line-height: 1.08; letter-spacing: -.03em;
}
.hero-title .line { display: block; overflow: hidden; margin-bottom: -0.08em; padding-bottom: 0.08em; }

.hero-foot {
  margin-top: 48px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  flex-wrap: wrap;
}
.hero-lead { max-width: 480px; color: var(--ink-300); font-size: 17px; line-height: 1.6; }

.scroll-cue { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-300); flex-shrink: 0; }
.scroll-cue i {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  position: relative; display: block;
}
.scroll-cue i::before {
  content: ""; position: absolute; left: 50%; top: 8px; width: 5px; height: 5px;
  border-right: 1.5px solid var(--accent-2); border-bottom: 1.5px solid var(--accent-2);
  transform: translateX(-50%) rotate(45deg);
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob { 0%,100% { top: 8px; opacity: 1; } 50% { top: 13px; opacity: .4; } }

/* ===== Marquee (light strip) ===== */
.marquee {
  background: var(--bg-light);
  border-bottom: 1px solid var(--line-light);
  overflow: hidden; white-space: nowrap; padding: 20px 0;
}
.marquee-track { display: inline-flex; gap: 18px; animation: scroll-left 48s linear infinite; will-change: transform; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink-d500); }
.marquee-track span:nth-child(2n) { color: var(--accent); font-family: var(--font-mono); font-weight: 500; font-size: 13px; align-self: center; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Section shared ===== */
section { padding: 140px 0; position: relative; }
.section-label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.08; margin-bottom: 70px; max-width: 700px; letter-spacing: -.02em;
}

/* ===== Dark / light section surfaces ===== */
.on-dark { background: var(--gradient-dark); color: var(--ink-100); }
.on-dark .section-title, .on-dark h2, .on-dark h3 { color: var(--ink-100); }
.on-light { background: var(--bg-light); color: var(--ink-d900); }
.on-light .section-title, .on-light h2 { color: var(--ink-d900); }

/* ===== Verticals (icon cards, used on dark sections) ===== */
.vertical-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.vertical-item {
  background: var(--card-dark); border: 1px solid var(--card-dark-border);
  border-radius: 16px; padding: 40px; transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.vertical-item:hover { background: hsla(220, 51%, 16%, 0.75); border-color: hsla(210,80%,55%,0.4); transform: translateY(-3px); }
.vertical-item > a { display: block; }
.vertical-icn {
  width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft);
  color: var(--accent-2); display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.vertical-item-top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.vertical-index { font-family: var(--font-display); font-size: 15px; color: var(--ink-500); }
.vertical-tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.vertical-item h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; margin-bottom: 14px; letter-spacing: -.01em; }
.vertical-item p { color: var(--ink-300); font-size: 15px; line-height: 1.65; max-width: 420px; }

/* ===== About (light) ===== */
.about-title {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.14; margin-bottom: 64px; letter-spacing: -.02em; color: var(--ink-d900);
}
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: start; }
.about-text p { color: var(--ink-d500); font-size: 18px; line-height: 1.75; }
.about-stats { display: flex; flex-direction: column; gap: 30px; border-left: 1px solid var(--line-light); padding-left: 36px; }
.stat-number { display: block; font-family: var(--font-display); font-weight: 700; font-size: 44px; color: var(--accent); }
.stat-label { display: block; font-size: 13px; color: var(--ink-d500); margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; }

/* ===== Approach (dark cards) ===== */
.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.approach-card { background: var(--card-dark); border: 1px solid var(--card-dark-border); border-radius: 16px; padding: 30px 26px; }
.approach-num { font-family: var(--font-display); font-size: 14px; color: var(--accent-2); }
.approach-card h3 { font-size: 18px; font-weight: 700; margin: 16px 0 10px; color: var(--ink-100); }
.approach-card p { color: var(--ink-300); font-size: 14.5px; line-height: 1.6; }

/* ===== CTA (dark) ===== */
.cta { text-align: center; }
.cta-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 6vw, 70px); line-height: 1.06; margin-bottom: 26px; letter-spacing: -.02em; color: var(--ink-100); }
.cta-lead { color: var(--ink-300); font-size: 18px; margin-bottom: 46px; }
.cta-btn { font-size: 16px; padding: 18px 34px; }

/* ===== Footer (always dark) ===== */
.site-footer { padding: 60px 0 40px; background: var(--navy-950); border-top: 1px solid var(--line); }
.footer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 40px; flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .06em; color: var(--ink-100); }
.footer-mark { width: 22px; }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { font-size: 14px; color: var(--ink-300); }
.footer-nav a:hover { color: var(--ink-100); }
.footer-bottom {
  display: flex; justify-content: space-between; padding-top: 30px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-500); flex-wrap: wrap; gap: 10px;
}

/* ===== Reveal animations ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-word { opacity: 0; transform: translateY(100%); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.hero-title.in-view .reveal-word { opacity: 1; transform: translateY(0); }
.hero-title .reveal-word:nth-child(1) { transition-delay: .1s; }
.hero-title .reveal-word:nth-child(2) { transition-delay: .22s; }
.hero-title .reveal-word:nth-child(3) { transition-delay: .34s; }

.vertical-item.reveal { transition-delay: calc(var(--i) * .08s); }
.approach-card.reveal { transition-delay: calc(var(--i) * .08s); }
.feature-item.reveal { transition-delay: calc(var(--i) * .08s); }

/* ===== Topbar (always dark) ===== */
.topbar {
  background: var(--navy-900); border-bottom: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-500);
}
.topbar-in {
  max-width: var(--center-w); margin: 0 auto; padding: 9px 40px;
  display: flex; align-items: center; gap: 18px;
}
.topbar-in a { color: var(--ink-500); }
.topbar-in a:hover { color: var(--ink-100); }
.topbar-divider { width: 1px; height: 11px; background: var(--line); }
.topbar-spacer { flex: 1; }

.lang-switch { position: relative; }
.lang-switch-btn {
  display: flex; align-items: center; gap: 6px; background: none; border: none;
  font: inherit; font-size: 12.5px; color: var(--ink-500); cursor: pointer; padding: 0;
}
.lang-switch-btn:hover { color: var(--ink-100); }
.lang-switch-btn .chev { transition: transform .2s ease; flex: none; }
.lang-switch.is-open .lang-switch-btn .chev { transform: rotate(180deg); }
.lang-flag { display: inline-flex; flex: none; width: 16px; height: 12px; border-radius: 2px; overflow: hidden; line-height: 0; }
.lang-flag svg { display: block; width: 100%; height: 100%; }
.lang-switch-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 150px;
  background: var(--navy-700); border: 1px solid var(--line); border-radius: 10px;
  padding: 6px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.lang-switch.is-open .lang-switch-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switch-menu button {
  display: flex; align-items: center; gap: 8px; background: none; border: none;
  font: inherit; font-size: 13px; color: var(--ink-300); text-align: left;
  padding: 8px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.lang-switch-menu button .lang-flag { width: 18px; height: 13px; }
.lang-switch-menu button:hover { background: var(--navy-600); color: var(--ink-100); }
.lang-switch-menu button.is-active { color: var(--ink-100); font-weight: 600; }

.site-header { flex-direction: column; align-items: stretch; padding: 0; }
.site-header.is-scrolled { padding: 0; }
.site-header .nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px; transition: padding .4s ease;
}
.site-header.is-scrolled .nav-row { padding: 14px 40px; }
.site-header.is-scrolled .topbar { max-height: 0; opacity: 0; overflow: hidden; border: none; }
.topbar { transition: max-height .3s ease, opacity .3s ease; max-height: 40px; }

/* ===== Mega menu ===== */
.nav-item { position: relative; }
.nav-item > button {
  background: none; border: none; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink-300); cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.nav-item > button:hover, .nav-item.is-open > button { color: var(--ink-100); }
.nav-item > button svg { transition: transform .25s ease; }
.nav-item.is-open > button svg { transform: rotate(180deg); }

.mega {
  position: absolute; left: 50%; top: calc(100% + 18px); transform: translateX(-50%) translateY(6px);
  width: 460px; background: var(--navy-800); border: 1px solid var(--line); border-radius: 16px;
  padding: 10px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.55); z-index: 50;
}
.nav-item.is-open .mega { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border-radius: 12px; transition: background .2s ease;
}
.mega a:hover { background: rgba(255,255,255,0.04); }
.mega-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 4px; }
.mega-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink-100); }
.mega-arrow {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-300);
}
.mega-foot {
  border-top: 1px solid var(--line); padding: 12px 16px; margin-top: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2);
}

/* ===== Subpage hero (always dark, static gradient) ===== */
.pg-hero { padding: 190px 0 90px; background: var(--gradient-dark); color: var(--ink-100); }
.pg-hero-title {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 6vw, 72px);
  line-height: 1.06; max-width: 780px; margin-bottom: 26px; letter-spacing: -.02em; color: var(--ink-100);
}
.pg-lead { max-width: 560px; color: var(--ink-300); font-size: 18px; line-height: 1.65; }

/* ===== Contact cards (light) ===== */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-card { background: var(--surface); border: 1px solid var(--line-light); border-radius: 16px; padding: 40px; transition: all .25s ease; display: block; box-shadow: 0 1px 3px rgba(16,24,40,.05); }
.contact-card:hover { border-color: hsla(210,80%,55%,0.4); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(16,24,40,.08); }
.contact-icn {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); font-size: 19px; margin-bottom: 24px;
}
.contact-card .card-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-d500); }
.contact-card .card-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 10px 0; color: var(--ink-d900); }
.contact-card p.card-desc { color: var(--ink-d500); font-size: 14px; line-height: 1.6; }
button.contact-card { font: inherit; text-align: left; width: 100%; cursor: pointer; }

/* ===== Lead capture modal (Orçamento / Contato -> WhatsApp) ===== */
.lead-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
  padding: 24px;
}
.lead-modal.open { opacity: 1; visibility: visible; }
.lead-modal-backdrop { position: absolute; inset: 0; background: hsla(220,50%,4%,.7); backdrop-filter: blur(4px); }
.lead-modal-box {
  position: relative; width: 100%; max-width: 480px; background: var(--surface);
  border-radius: 20px; padding: 44px 40px; box-shadow: 0 40px 100px -20px rgba(0,0,0,.5);
  transform: translateY(14px); transition: transform .3s ease;
}
.lead-modal.open .lead-modal-box { transform: translateY(0); }
.lead-modal-close {
  position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--bg-light); color: var(--ink-d500); cursor: pointer; font-size: 15px;
}
.lead-modal-progress { height: 3px; background: var(--line-light); border-radius: 100px; overflow: hidden; margin-bottom: 32px; }
.lead-modal-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s ease; }
.lead-step-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.lead-question { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--ink-d900); margin-bottom: 26px; line-height: 1.3; }
.lead-input {
  width: 100%; border: none; border-bottom: 2px solid var(--line-light); padding: 10px 2px;
  font-size: 18px; font-family: var(--font-body); color: var(--ink-d900); outline: none; margin-bottom: 34px;
  background: transparent; transition: border-color .2s ease;
}
.lead-input:focus { border-color: var(--accent); }
.lead-actions { display: flex; justify-content: space-between; align-items: center; }

/* ===== Numbers / stats strip (light) ===== */
.numbers { border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); background: var(--bg-light); padding: 0; }
.numbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.numbers-grid > div { padding: 50px 32px; border-left: 1px solid var(--line-light); }
.numbers-grid > div:first-child { border-left: none; }
.numbers-grid .stat-number { font-size: 48px; }

/* ===== Process list (dark) ===== */
.proc-list { max-width: 780px; }
.proc-item { display: grid; grid-template-columns: 70px 1fr; gap: 26px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.proc-item:first-child { border-top: 1px solid var(--line); }
.proc-num { font-family: var(--font-display); font-size: 20px; color: var(--accent-2); }
.proc-item h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; color: var(--ink-100); }
.proc-item p { color: var(--ink-300); font-size: 15px; line-height: 1.6; max-width: 520px; }

/* ===== FAQ accordion (light) ===== */
.faq-list { max-width: 860px; border-top: 1px solid var(--line-light); }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 4px; background: none; border: none; text-align: left; cursor: pointer; color: var(--ink-d900);
}
.faq-q span.faq-q-text { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.faq-icn {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-light);
  display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--accent);
  transition: transform .3s ease;
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 4px 28px; max-width: 640px; color: var(--ink-d500); font-size: 15px; line-height: 1.7; }
.faq-item.open .faq-icn { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== Vertical detail page: feature list (light) ===== */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-item { background: var(--surface); border: 1px solid var(--line-light); border-radius: 16px; padding: 36px; box-shadow: 0 1px 3px rgba(16,24,40,.05); }
.feature-item h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 12px; color: var(--ink-d900); }
.feature-item p { color: var(--ink-d500); font-size: 14.5px; line-height: 1.65; }
.feature-icn { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }

/* ===== Footer (multi-column, always dark) ===== */
.footer-top { align-items: flex-start; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-col h5 {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-500); margin-bottom: 18px;
}
.footer-col a, .footer-col p { display: block; font-size: 14px; margin-bottom: 12px; color: var(--ink-300); }
.footer-col a:hover { color: var(--accent-2); }
.footer-col a.footer-address { display: flex; align-items: center; gap: 6px; }
.footer-col a.footer-address svg { flex: none; }
.footer-blurb { max-width: 230px; color: var(--ink-500); font-size: 13.5px; line-height: 1.6; }

/* ===== Chat widget (always dark) ===== */
.chat-fab {
  position: fixed; bottom: 26px; right: 26px; z-index: 400;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 14px 34px -8px hsla(210, 80%, 55%, 0.55);
  transition: transform .25s ease;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { stroke: #fff; }

.chat-panel {
  position: fixed; bottom: 0; right: 0; top: 0; z-index: 400;
  width: 400px; max-width: 100vw; background: var(--navy-900);
  border-left: 1px solid var(--line); display: none; flex-direction: column;
  box-shadow: -30px 0 60px rgba(0,0,0,0.4);
}
.chat-panel.open { display: flex; }
.chat-head { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.chat-head-l { display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-700); padding: 7px; }
.chat-head b { font-size: 15px; color: var(--ink-100); }
.chat-head .status { font-size: 11px; color: var(--accent-2); display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.chat-head .status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); display: inline-block; }
.chat-close { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-500); border: none; background: none; font-size: 16px; }
.chat-close:hover { background: var(--navy-800); color: var(--ink-100); }
.chat-body { flex: 1; padding: 20px 22px; overflow-y: auto; font-size: 13.5px; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { max-width: 86%; padding: 12px 15px; border-radius: 14px; line-height: 1.5; }
.chat-msg.bot { background: var(--navy-800); color: var(--ink-100); align-self: flex-start; }
.chat-msg.user { background: var(--accent); color: #fff; align-self: flex-end; font-weight: 600; }

.chat-msg.bot p { margin: 0 0 8px; }
.chat-msg.bot p:last-child { margin-bottom: 0; }
.chat-msg.bot h3, .chat-msg.bot h4, .chat-msg.bot h5, .chat-msg.bot h6 {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  margin: 2px 0 6px; color: var(--ink-100);
}
.chat-msg.bot ul { margin: 0 0 8px 18px; }
.chat-msg.bot li { margin-bottom: 4px; }
.chat-msg.bot li:last-child { margin-bottom: 0; }
.chat-msg.bot strong { font-weight: 700; color: #fff; }
.chat-msg.bot em { font-style: italic; }
.chat-msg.bot .chat-table-wrap { overflow-x: auto; margin: 4px 0 8px; }
.chat-msg.bot table.chat-table { border-collapse: collapse; width: 100%; font-size: 12px; }
.chat-msg.bot table.chat-table th, .chat-msg.bot table.chat-table td {
  border: 1px solid var(--line); padding: 5px 8px; text-align: left; white-space: nowrap;
}
.chat-msg.bot table.chat-table th { background: var(--navy-700); font-weight: 700; color: var(--ink-100); }
.chat-msg.typing { display: flex; gap: 5px; padding: 15px; }
.chat-msg.typing span { width: 6px; height: 6px; background: var(--ink-500); border-radius: 50%; animation: bounce 1.2s infinite; }
.chat-msg.typing span:nth-child(2) { animation-delay: .15s; }
.chat-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--navy-800); border: 1px solid var(--line); color: var(--ink-100);
  font-size: 12.5px; font-family: var(--font-body); font-weight: 500; padding: 9px 14px;
  border-radius: 100px; cursor: pointer; transition: all .2s ease;
}
.chip:hover { border-color: var(--accent-2); background: hsla(210,100%,80%,.08); color: var(--accent-2); }

.chat-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.chat-input-row {
  display: flex; align-items: center; gap: 8px; background: var(--navy-800);
  border: 1px solid var(--line); border-radius: 100px; padding: 5px 5px 5px 18px;
}
.chat-input-row input { flex: 1; background: transparent; border: none; color: var(--ink-100); font-size: 13.5px; outline: none; font-family: var(--font-body); }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.icon-btn.mic { background: var(--navy-700); color: var(--ink-300); }
.icon-btn.mic.recording { background: #ff5b5b; color: #fff; animation: pulse-rec 1s infinite; }
@keyframes pulse-rec { 0%,100% { opacity: 1; } 50% { opacity: .6; } }

.recording-timer { flex: 1; display: flex; align-items: center; gap: 8px; padding-left: 10px; }
.recording-timer .rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5b5b; flex: none; animation: pulse-rec 1s infinite; }
.recording-timer .rec-time { font-family: var(--font-mono); font-size: 13.5px; color: var(--ink-100); }
.icon-btn.send { background: var(--accent); color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { border-left: none; padding-left: 0; flex-direction: row; flex-wrap: wrap; border-top: 1px solid var(--line-light); padding-top: 30px; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .numbers-grid { grid-template-columns: 1fr; }
  .numbers-grid > div { border-left: none; border-top: 1px solid var(--line-light); }
  .numbers-grid > div:first-child { border-top: none; }
}

@media (max-width: 815px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .site-header .nav-row { padding: 20px 24px; }
  .site-header.is-scrolled .nav-row { padding: 14px 24px; }
  .topbar-in { padding: 9px 24px; }
  .topbar-in a:not(:first-child), .topbar-divider { display: none; }
  .hero { padding: 120px 24px 60px; }
  .center { padding: 0 24px; }
  section { padding: 90px 0; }
  .pg-hero { padding: 150px 0 60px; }
  .vertical-list { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-bottom { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid, .feature-list { grid-template-columns: 1fr; }
  .chat-panel { width: 100vw; }
}
