/* Aurea World — v2
   Identity: the "Ativação" mark, a dot field where one gold focus lights up, on warm paper with navy ink.
   One bold thing: the activation field in the hero. Everything else is hairlines and quiet type.
   Light theme only, by design. */

:root {
  --paper: #FAF8F3;
  --paper-2: #F4F0E6;
  --surface: #FFFFFF;
  --ink: #14223A;
  --ink-2: #4A576B;
  --ink-3: #616C7F;
  --line: #E6E0D3;
  --line-2: #EEE9DF;
  --gold: #F4AE22;
  --amber: #EE7A2C;
  --gold-ink: #8A5300;
  --gold-wash: #FDF4DE;
  --green: #1D7A4E;
  --focus: #1F4FD6;
  --aurea: linear-gradient(135deg, #FFC21A 0%, #EE7A2C 100%);

  --f-display: "Libre Caslon Display", "Didot", "Bodoni 72", Georgia, serif;
  --f-text: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 77.5rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(5.5rem, 4rem + 6vw, 10rem);
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* film grain: one fixed layer, static, cheap */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90;
  opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 400; }
svg { display: block; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.sprite { position: absolute; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 8px; }
.skip:focus { left: 1rem; top: 1rem; }
.muted { color: var(--ink-3); }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.02;
  text-wrap: balance;
  font-kerning: normal;
}
.h-xl { font-size: clamp(2.25rem, 1.2rem + 3.9vw, 4.6rem); line-height: 1.04; }
.h-lg { font-size: clamp(2rem, 1.25rem + 2.6vw, 3.5rem); line-height: 1.06; }
.section-head { display: grid; gap: 1.25rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head p { color: var(--ink-2); font-size: 1.125rem; max-width: 38rem; }


/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.35rem; border-radius: var(--r-sm);
  font-weight: 560; font-size: 1rem; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s;
}
.btn-sm { min-height: 38px; padding: 0 .95rem; font-size: .92rem; }
.btn-gold {
  color: var(--ink);
  background: linear-gradient(180deg, #FFC542 0%, #F5A623 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(160,80,0,.18), 0 1px 2px rgba(120,70,0,.2), 0 8px 20px -8px rgba(238,122,44,.55);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(160,80,0,.18), 0 2px 4px rgba(120,70,0,.2), 0 14px 28px -10px rgba(238,122,44,.6); }
.btn-ink { color: #fff; background: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 2px rgba(20,34,58,.3); }
.btn-ink:hover { background: #1E2F4D; }
.btn-line { color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(20,34,58,.05); }
.btn-line:hover { border-color: #CFC6B4; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(250, 248, 243, .9); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; color: var(--ink); }
.brand-name { font-weight: 640; font-size: 1.06rem; letter-spacing: -.02em; }
.nav { margin-inline: auto; }
.nav ul { display: flex; gap: .25rem; }
.nav a { display: block; padding: .45rem .8rem; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: .95rem; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: rgba(20, 34, 58, .05); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.lang {
  min-width: 44px; min-height: 38px; padding: 0 .7rem; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; font-size: .85rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-2);
  transition: border-color .2s, color .2s;
}
.lang:hover { border-color: #CFC6B4; color: var(--ink); }

/* ================= HERO ================= */
.hero { position: relative; padding-top: clamp(2.75rem, 1.5rem + 3.4vw, 5rem); padding-bottom: clamp(4rem, 3rem + 4vw, 7rem); isolation: isolate; }
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 78% 8%, rgba(255, 194, 26, .16), transparent 62%),
    radial-gradient(50rem 26rem at 50% 78%, rgba(238, 122, 44, .10), transparent 65%);
}
.hero-head { position: relative; }
.hero-copy { position: relative; z-index: 1; max-width: 50rem; }
.hero-kicker { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink-2); font-size: .98rem; margin-bottom: 1.75rem; max-width: 34rem; }
.kicker-mark { width: 20px; height: 20px; flex: none; color: var(--ink); }
.hero h1 { font-size: clamp(3rem, 1.5rem + 5.4vw, 6.5rem); line-height: .97; letter-spacing: -.02em; margin-bottom: 1.75rem; }
.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36rem; margin-bottom: 2.25rem; }

.hero-field {
  position: absolute; right: calc(var(--gutter) + .5rem); top: -1rem; width: clamp(15rem, 24vw, 22rem); height: auto; overflow: visible;
}
.hero-field circle { transform-box: fill-box; transform-origin: center; }
.js .hero-field circle { animation: dot-in .9s var(--ease) both; animation-delay: calc(var(--d) * 1s); }
.js .hero-field circle.hot {
  animation: dot-in .9s var(--ease) both, breathe 3.8s ease-in-out infinite;
  animation-delay: calc(var(--d) * 1s), calc(1.3s + var(--d) * 1.6s);
}
@keyframes dot-in { from { opacity: 0; transform: scale(0); } }
@keyframes breathe { 50% { transform: scale(.7); opacity: .7; } }
@keyframes fade { from { opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.hero-product { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); position: relative; z-index: 2; }
.mock-caption { margin-top: 1rem; font-size: .85rem; color: var(--ink-3); text-align: center; }

/* entrance: one orchestrated sequence on load */
.js .hero-copy > * { animation: rise .9s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .hero-product .app { animation: rise-big 1.1s .3s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise-big { from { opacity: 0; transform: translateY(36px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- product mockup ---------- */
.app {
  container-type: inline-size;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  font-size: 13px; line-height: 1.4;
  font-variant-numeric: tabular-nums;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, .55),
    0 1px 1px rgba(20, 34, 58, .04),
    0 24px 48px -24px rgba(20, 34, 58, .22),
    0 60px 120px -40px rgba(176, 106, 12, .28);
}
.app-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line-2); background: #FCFBF8; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #E3DED3; }
.app-title { font-weight: 600; color: var(--ink); }
.app-search { flex: 1; max-width: 360px; margin-inline: auto; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink-3); background: #fff; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-chip { flex: none; padding: 3px 9px; border: 1px dashed #DFA54C; border-radius: 999px; font-size: 11.5px; color: var(--gold-ink); background: var(--gold-wash); white-space: nowrap; }

.app-body { display: grid; grid-template-columns: 196px minmax(0, 1fr) 286px; }
.app-side { padding: 16px 12px; border-right: 1px solid var(--line-2); background: #FCFBF8; display: flex; flex-direction: column; gap: 14px; }
.side-brand { display: flex; align-items: center; gap: 8px; font-weight: 650; padding: 4px 8px 10px; }
.side-brand svg { width: 16px; height: 16px; color: var(--ink); }
.app-side ul { display: grid; gap: 2px; }
.app-side li { padding: 7px 10px; border-radius: 7px; color: var(--ink-2); }
.app-side li.on { background: #fff; color: var(--ink); font-weight: 560; box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(20,34,58,.05); position: relative; }
.app-side li.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--aurea); }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: var(--ink-3); font-size: 12px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: #2DAA6B; box-shadow: 0 0 0 3px rgba(45,170,107,.15); }

.app-main { padding: 18px; display: grid; gap: 16px; align-content: start; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpi { position: relative; display: grid; gap: 2px; padding: 12px 14px 10px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.kpi-label { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value { font-size: 22px; font-weight: 620; letter-spacing: -.02em; }
.kpi-delta { font-size: 11.5px; color: var(--ink-3); }
.kpi-delta.up { color: var(--green); }
.spark { width: 100%; height: 30px; margin-top: 6px; fill: none; stroke: #E59A1E; stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark path { vector-effect: non-scaling-stroke; }
.spark .band { fill: rgba(244, 174, 34, .16); stroke: none; }
.spark .dash { stroke-dasharray: 3 3; }
.kpi-forecast { background: linear-gradient(180deg, #FFFCF3, #fff); }

.customer { border: 1px solid var(--line-2); border-radius: 12px; }
.cust-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.cust-head > div { display: grid; min-width: 0; }
.cust-head strong { font-weight: 620; font-size: 14px; }
.cust-head .muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust-head .tag { margin-left: auto; }
.avatar { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 11.5px; font-weight: 650; color: #6B4300; background: linear-gradient(135deg, #FFE3A3, #FBC27A); }
.tag { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 560; }
.tag-gold { color: var(--gold-ink); background: var(--gold-wash); box-shadow: inset 0 0 0 1px #F3DDA8; }

.timeline { position: relative; padding: 6px 14px 8px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 0; border-radius: 8px; transition: background-color .2s; }
.timeline li:hover { background: #FBF8F1; }
.src { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.src svg { width: 15px; height: 15px; }
.src-mail { color: #B66A00; box-shadow: inset 0 0 0 1px #F0D49A; background: #FFF8E8; }
.t-what { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-when { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.js .timeline li { animation: rise .6s calc(.9s + var(--i) * .11s) var(--ease) both; }

.app-ai { padding: 18px; border-left: 1px solid var(--line-2); background: linear-gradient(180deg, #FFFAEE 0%, #FFFFFF 55%); display: grid; gap: 16px; align-content: start; }
.ai-head { display: flex; align-items: center; gap: 8px; font-weight: 620; }
.ai-head svg { width: 16px; height: 16px; color: #E5941C; }
.ai-ring { display: flex; align-items: center; gap: 14px; }
.ai-ring svg { width: 70px; height: 70px; flex: none; transform: rotate(-90deg); }
.ai-ring circle { fill: none; stroke-width: 7; }
.ring-bg { stroke: #F3ECDD; }
.ring-fg { stroke: url(#aurea); stroke-linecap: round; stroke-dasharray: 78 100; }
.js .ring-fg { animation: ring 1.4s 1.2s var(--ease) both; }
@keyframes ring { from { stroke-dasharray: 0 100; } }
.ai-ring strong { display: block; font-size: 24px; font-weight: 640; letter-spacing: -.02em; }
.ai-ring span { color: var(--ink-2); font-size: 12px; }
.ai-next { display: grid; gap: 6px; padding: 12px 14px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #F1DFB6, 0 8px 20px -12px rgba(176,106,12,.35); }
.ai-next .muted { font-size: 11.5px; }
.ai-next p { font-weight: 560; color: var(--ink); }
.ai-btn { justify-self: start; margin-top: 4px; padding: 5px 11px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 560; }
.js .ai-next { animation: rise .7s 1.6s var(--ease) both; }
.ai-why { display: grid; gap: 6px; }
.ai-why .muted { font-size: 11.5px; }
.ai-why ul { display: grid; gap: 5px; }
.ai-why li { position: relative; padding-left: 16px; color: var(--ink-2); font-size: 12px; }
.ai-why li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--aurea); }

@container (max-width: 1000px) {
  .app-body { grid-template-columns: minmax(0, 1fr) 260px; }
  .app-side { display: none; }
}
@container (max-width: 820px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-forecast { display: none; }
}
@container (max-width: 680px) {
  .app-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-ai { border-left: 0; border-top: 1px solid var(--line-2); }
  .app-search { display: none; }
  .app-bar .app-chip { margin-left: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-forecast { display: none; }
  .app-main { padding: 14px; }
  .timeline li:nth-child(n+4) { display: none; }
  .ai-why { display: none; }
}
@container (max-width: 380px) {
  .kpi-value { font-size: 19px; }
  .cust-head .tag { display: none; }
}

/* ================= PROBLEM / FLOW ================= */
.problem { padding-top: var(--section); padding-bottom: var(--section); border-top: 1px solid var(--line); }
.problem-head { max-width: 58rem; margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); }

.flow {
  position: relative;
  display: grid; grid-template-columns: minmax(180px, 230px) 1fr minmax(260px, 330px); align-items: center; gap: 0;
  min-height: 460px; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background:
    radial-gradient(28rem 18rem at 58% 50%, rgba(255, 194, 26, .12), transparent 70%),
    var(--surface);
  overflow: hidden;
}
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow-lines .wire { fill: none; stroke: #D9D1C1; stroke-width: 1.2; }
.flow-lines .main { fill: none; stroke: url(#aurea-flow); stroke-width: 3; stroke-linecap: round; }
.flow-lines .pulse { fill: #F0A12A; }
.flow-lines .pulse-ink { fill: var(--ink-2); }
.js .flow-lines .wire, .js .flow-lines .main { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease); }
.js .flow.is-in .flow-lines .wire { stroke-dashoffset: 0; }
.js .flow.is-in .flow-lines .main { stroke-dashoffset: 0; transition-delay: .8s; }
.js .flow-lines .pulse, .js .flow-lines .pulse-ink { opacity: 0; transition: opacity .4s 1.6s; }
.js .flow.is-in .flow-lines .pulse, .js .flow.is-in .flow-lines .pulse-ink { opacity: 1; }

.flow-sources { position: relative; z-index: 1; display: grid; gap: 12px; }
.flow-sources li {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  font-size: .95rem; color: var(--ink); box-shadow: 0 1px 2px rgba(20,34,58,.04);
  transition: transform 1s var(--ease), border-color .2s;
}
.flow-sources svg { width: 18px; height: 18px; color: var(--ink-2); flex: none; }
/* scattered until the section is in view */
.js .flow:not(.is-in) .flow-sources li:nth-child(1) { transform: translate(-8px, -6px) rotate(-3deg); }
.js .flow:not(.is-in) .flow-sources li:nth-child(2) { transform: translate(14px, 4px) rotate(2.5deg); }
.js .flow:not(.is-in) .flow-sources li:nth-child(3) { transform: translate(-12px, 2px) rotate(-1.5deg); }
.js .flow:not(.is-in) .flow-sources li:nth-child(4) { transform: translate(10px, -4px) rotate(3deg); }
.js .flow:not(.is-in) .flow-sources li:nth-child(5) { transform: translate(-6px, 6px) rotate(-2.5deg); }
.js .flow:not(.is-in) .flow-sources li:nth-child(6) { transform: translate(12px, -2px) rotate(1.5deg); }

.flow-hub {
  position: relative; z-index: 1; justify-self: center;
  display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 0 0 12px rgba(255, 194, 26, .08), 0 0 0 26px rgba(255, 194, 26, .05), 0 20px 40px -16px rgba(176,106,12,.45);
}
.flow-hub svg { width: 46px; height: 46px; color: var(--ink); }
.js .flow-hub { transform: scale(.9); opacity: .6; transition: transform .8s .6s var(--ease), opacity .8s .6s; }
.js .flow.is-in .flow-hub { transform: none; opacity: 1; }

.flow-out { position: relative; z-index: 1; display: grid; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 50px -28px rgba(20,34,58,.3); }
.out-card { display: flex; align-items: center; gap: 12px; }
.out-card > div { display: grid; }
.out-card strong { font-weight: 620; }
.out-card .muted { font-size: .88rem; }
.out-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); padding-top: 12px; gap: 8px; }
.out-stats dt { font-size: .76rem; color: var(--ink-3); }
.out-stats dd { font-weight: 620; font-variant-numeric: tabular-nums; }
.js .flow-out { opacity: 0; transform: translateX(12px); transition: opacity .7s 1.4s, transform .9s 1.4s var(--ease); }
.js .flow.is-in .flow-out { opacity: 1; transform: none; }

.pains { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.pains li { padding: 1.5rem 2rem 0 0; border-top: 1px solid var(--ink); }
.pains li + li { padding-left: 2rem; border-left: 1px solid var(--line); }
.pains h3 { font-size: 1.15rem; font-weight: 620; letter-spacing: -.01em; margin-bottom: .6rem; }
.pains p { color: var(--ink-2); max-width: 30rem; }

/* ================= CAPABILITIES ================= */
.capabilities { padding-bottom: var(--section); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 1.75rem; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .3s, box-shadow .3s var(--ease);
}
.tile:hover { border-color: #DCCFB4; box-shadow: 0 22px 44px -30px rgba(120, 80, 10, .35); }
.tile-profile, .tile-forecast { grid-column: span 3; }
.tile-ai, .tile-auto, .tile-seg { grid-column: span 2; }
.tile h3 { font-size: 1.2rem; font-weight: 620; letter-spacing: -.015em; margin-bottom: .45rem; }
.tile-text p { color: var(--ink-2); font-size: .98rem; max-width: 34rem; }
.viz { margin-top: auto; font-size: .86rem; }
.note { margin-top: 1rem; font-size: .85rem; color: var(--ink-3); }

/* merge */
.viz-merge { position: relative; height: 210px; background: radial-gradient(closest-side, #FFF1CF, rgba(255,241,207,0)); }
.id-chip {
  position: absolute; left: 50%; top: 50%; padding: 6px 11px; border-radius: 999px; white-space: nowrap;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: .8rem; font-variant-numeric: tabular-nums;
  transform: translate(-50%, -50%) translate(calc(var(--x) * min(9rem, 22cqw)), calc(var(--y) * 62px));
  transition: transform 1.1s var(--ease), border-color .3s;
}
.viz-merge { container-type: inline-size; }
.js .tile-profile:not(.is-in) .id-chip { transform: translate(-50%, -50%) translate(calc(var(--x) * min(13rem, 34cqw)), calc(var(--y) * 84px)); }
.tile-profile:hover .id-chip { border-color: #EBCB86; }
.merge-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #F1DFB6, 0 0 0 10px rgba(255,194,26,.10), 0 12px 24px -10px rgba(176,106,12,.45); }
.merge-core .avatar { width: 44px; height: 44px; font-size: .9rem; }

/* chart */
.viz-chart svg { width: 100%; height: auto; overflow: visible; }
.viz-chart .grid path { stroke: var(--line-2); stroke-width: .8; }
.viz-chart .band { fill: rgba(244, 174, 34, .16); }
.viz-chart .line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.viz-chart .dashed { stroke: #E28A1F; stroke-dasharray: 4 4; }
.viz-chart .now { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.js .viz-chart .line:not(.dashed) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
.js .is-in .viz-chart .line:not(.dashed) { stroke-dashoffset: 0; }
.js .viz-chart .band, .js .viz-chart .dashed { opacity: 0; transition: opacity .8s 1.2s; }
.js .is-in .viz-chart .band, .js .is-in .viz-chart .dashed { opacity: 1; }
.chart-legend { display: flex; gap: 1.25rem; margin-top: .75rem; color: var(--ink-3); font-size: .82rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.chart-legend span::before { content: ""; width: 16px; height: 0; border-top: 2px solid var(--ink); }
.chart-legend .lg-fc::before { border-top: 2px dashed #E28A1F; }

/* list */
.viz-list { display: grid; gap: 8px; }
.viz-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: #FCFAF5; border: 1px solid var(--line-2); color: var(--ink); line-height: 1.4; transition: transform .6s var(--ease), opacity .6s; }
.viz-list svg { width: 14px; height: 14px; margin-top: 2px; color: #E5941C; flex: none; }
.js .tile-ai:not(.is-in) .viz-list li { opacity: 0; transform: translateY(8px); }
.viz-list li:nth-child(2) { transition-delay: .12s; }
.viz-list li:nth-child(3) { transition-delay: .24s; }

/* automation */
.viz-steps { display: grid; gap: 0; }
.viz-steps li { position: relative; padding-left: 22px; }
.viz-steps li + li { padding-top: 16px; }
.viz-steps li::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.viz-steps li:first-child::before { top: 50%; }
.viz-steps li:last-child::before { bottom: 50%; }
.viz-steps li::after { content: ""; position: absolute; left: 0; top: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px #C9BFAE; }
.viz-steps li:first-child::after { top: 50%; transform: translateY(-50%); }
.viz-steps li + li::after { transform: translateY(-50%); }
.node { display: block; padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.node-gold { border-color: #EFCF8C; background: var(--gold-wash); }
.viz-steps li:last-child::after { background: var(--aurea); box-shadow: none; }

/* segments */
.viz-seg { display: grid; gap: 12px; }
.viz-seg li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.viz-seg span { color: var(--ink); }
.viz-seg b { font-weight: 620; font-variant-numeric: tabular-nums; position: relative; }
.viz-seg li::after { content: ""; grid-column: 1 / -1; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #FFC21A, #EE7A2C) 0 0 / calc(var(--w, .5) * 100%) 100% no-repeat, #F3EEE3; }
.viz-seg li:nth-child(1) { --w: .72; } .viz-seg li:nth-child(2) { --w: .48; } .viz-seg li:nth-child(3) { --w: .26; }
.js .tile-seg:not(.is-in) .viz-seg li::after { background-size: 0 100%, auto; }
.viz-seg li::after { transition: background-size 1.2s var(--ease); }

/* ================= HOW + INTEGRATIONS ================= */
.how { padding-top: var(--section); padding-bottom: var(--section); background: linear-gradient(180deg, #F5F1E8, #F8F5EE); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-top: 2.75rem; }
.steps::before, .steps::after { content: ""; position: absolute; top: 15px; left: 0; height: 2px; border-radius: 2px; }
.steps::before { right: 0; background: var(--line); }
.steps::after { width: 100%; background: var(--aurea); transform-origin: left; transition: transform 1.8s var(--ease); }
.js .steps:not(.is-in)::after { transform: scaleX(0); }
.step-n {
  position: absolute; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 4px 10px -4px rgba(20,34,58,.2);
  font-weight: 650; font-size: .9rem; font-variant-numeric: tabular-nums; z-index: 1;
}
.steps li { position: relative; padding-top: 1.25rem; }
.steps li .step-n { top: -2.75rem; }
.steps h3 { font-family: var(--f-display); font-size: 1.85rem; line-height: 1.1; margin-bottom: .6rem; }
.steps p { color: var(--ink-2); max-width: 22rem; }

.integrations { margin-top: clamp(4rem, 3rem + 4vw, 6.5rem); }
.integrations h3 { font-size: 1.15rem; font-weight: 620; letter-spacing: -.01em; margin-bottom: 1.25rem; }
.integrations ul { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.integrations li { display: grid; gap: .9rem; padding: 1.4rem 1.25rem; font-size: .95rem; line-height: 1.35; transition: background-color .25s; }
.integrations li + li { border-left: 1px solid var(--line-2); }
.integrations li:hover { background: #FFFBF1; }
.integrations li svg { width: 24px; height: 24px; color: var(--ink); transition: color .25s, transform .4s var(--ease); }
.integrations li:hover svg { color: #D9861A; transform: translateY(-2px); }

/* ================= AI SHOWCASE ================= */
.ai { padding-top: var(--section); padding-bottom: var(--section); }
.ai-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.ai-copy > p { color: var(--ink-2); font-size: 1.125rem; margin: 1.25rem 0 2.25rem; max-width: 30rem; }
.tabs { display: grid; gap: 6px; }
.tabs button {
  position: relative; display: grid; gap: .2rem; text-align: left; cursor: pointer;
  padding: 1rem 1.15rem 1rem 1.35rem; border-radius: var(--r-md); border: 1px solid transparent; background: transparent;
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.tabs button::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--line); transition: background .25s; }
.tabs button strong { font-weight: 620; font-size: 1.05rem; }
.tabs button span { color: var(--ink-2); font-size: .95rem; }
.tabs button:hover { background: rgba(255, 255, 255, .6); }
.tabs button[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(20,34,58,.35); }
.tabs button[aria-selected="true"]::before { background: var(--aurea); }

.ai-stage { position: relative; }
.ai-stage::before { content: ""; position: absolute; inset: -10% 0 -10% 10%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 194, 26, .16), transparent); pointer-events: none; }
.panel { padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 40px 80px -48px rgba(120, 80, 10, .45), 0 2px 4px rgba(20,34,58,.04); }
.panel:not([hidden]) { animation: panel-in .5s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.ai-badge { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; }
.ai-badge svg { width: 16px; height: 16px; color: #E5941C; }
.panel-title { font-family: var(--f-display); font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem); line-height: 1.18; margin-bottom: 1.5rem; max-width: 30ch; text-wrap: balance; }
.panel-chart { width: 100%; height: auto; margin-bottom: 1.5rem; overflow: visible; }
.panel-chart .grid path { stroke: var(--line-2); }
.panel-chart .bars rect { fill: #2B3B57; transform-box: fill-box; transform-origin: bottom; }
.panel-chart .bars.fc rect { fill: url(#aurea); opacity: .85; }
.panel-chart .whisk path { stroke: var(--gold-ink); stroke-width: 1.5; }
.panel:not([hidden]) .bars rect { animation: grow .8s var(--ease) both; }
.panel:not([hidden]) .bars rect:nth-child(2) { animation-delay: .04s; } .panel:not([hidden]) .bars rect:nth-child(3) { animation-delay: .08s; }
.panel:not([hidden]) .bars rect:nth-child(4) { animation-delay: .12s; } .panel:not([hidden]) .bars rect:nth-child(5) { animation-delay: .16s; }
.panel:not([hidden]) .bars rect:nth-child(6) { animation-delay: .2s; }
.panel:not([hidden]) .bars.fc rect { animation-delay: .3s; }
@keyframes grow { from { transform: scaleY(0); } }

.signals { display: grid; gap: .55rem; padding-top: 1.1rem; border-top: 1px solid var(--line-2); }
.signals li { position: relative; padding-left: 1.4rem; color: var(--ink-2); font-size: .95rem; }
.signals li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--aurea); }

.risk, .channels { display: grid; gap: .5rem; margin-bottom: 1.5rem; }
.risk li { display: grid; grid-template-columns: auto 6.5rem 1fr 3rem; align-items: center; gap: .9rem; padding: .55rem .6rem; border-radius: 10px; transition: background-color .2s; }
.risk li:hover, .channels li:hover { background: #FCF8EF; }
.r-name { font-weight: 560; }
.r-meter, .c-bar { height: 8px; border-radius: 8px; background: linear-gradient(90deg, #FFC21A, #EE7A2C) 0 0 / calc(var(--v) * 100%) 100% no-repeat, #F3EEE3; }
.panel:not([hidden]) .r-meter, .panel:not([hidden]) .c-bar { animation: fill 1s .15s var(--ease) both; }
@keyframes fill { from { background-size: 0 100%, auto; } }
.r-v, .c-v { text-align: right; font-weight: 620; font-variant-numeric: tabular-nums; }
.avatar.a2 { background: linear-gradient(135deg, #E3E8F2, #C9D3E6); color: #233456; }
.avatar.a3 { background: linear-gradient(135deg, #F2E6DC, #E7CDB8); color: #6A3A12; }
.avatar.a4 { background: linear-gradient(135deg, #E4EFE7, #C8DFCF); color: #1E4D2E; }
.avatar.a5 { background: linear-gradient(135deg, #EEE6F2, #DACBE5); color: #4A2A5E; }
.channels li { display: grid; grid-template-columns: 8.5rem 1fr 3.5rem; align-items: center; gap: .9rem; padding: .7rem .6rem; border-radius: 10px; }

/* ================= PRICING ================= */
.pricing { padding-top: var(--section); padding-bottom: var(--section); border-top: 1px solid var(--line); }
.pricing .section-head .status-note { font-size: 1rem; justify-self: start; }
.plans { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.plan { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); }
.plan + .plan { border-left: 1px solid var(--line); }
.plan h3 { font-size: 1rem; font-weight: 620; color: var(--ink-2); }
.plan > p:not(.price) { color: var(--ink-2); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; color: var(--ink-2); }
.price strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.3rem, 1.8rem + 1.6vw, 3.2rem); line-height: 1; color: var(--ink); letter-spacing: -.01em; }
.plan-main { position: relative; border-radius: var(--r-lg) 0 0 var(--r-lg); background: linear-gradient(180deg, #FFFBF0 0%, #fff 60%); }
.plan-main::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; background: var(--aurea); border-radius: 2px; }

/* ================= COMPANY ================= */
.company { padding-bottom: var(--section); }
.company-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: start; }
.company-copy > p { color: var(--ink-2); font-size: 1.125rem; margin: 1.25rem 0 2.25rem; max-width: 32rem; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.5rem; }
.facts dt { font-size: .85rem; color: var(--ink-3); }
.facts dd { font-weight: 600; }
.services { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.services li { padding: 1.5rem 1.5rem 1.75rem 0; border-bottom: 1px solid var(--line); }
.services li:nth-child(even) { padding-left: 1.5rem; padding-right: 0; border-left: 1px solid var(--line); }
.services h3 { font-weight: 620; font-size: 1.08rem; letter-spacing: -.01em; margin-bottom: .45rem; }
.services p { color: var(--ink-2); font-size: .98rem; }

/* ================= CONTACT ================= */
.contact { padding-bottom: clamp(4rem, 3rem + 4vw, 7rem); }
.contact-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0;
  padding: clamp(2rem, 1rem + 5vw, 5.5rem);
  border-radius: 28px; border: 1px solid #EFD9A9;
  background:
    radial-gradient(40rem 24rem at 100% 0%, rgba(255, 194, 26, .32), transparent 60%),
    radial-gradient(30rem 20rem at 0% 100%, rgba(238, 122, 44, .12), transparent 60%),
    #FFF8E9;
}
.contact-mark { position: absolute; right: clamp(-3rem, 2vw, 4rem); top: 50%; transform: translateY(-50%); width: clamp(13rem, 24vw, 22rem); height: auto; z-index: -1; opacity: .55; overflow: visible; }
.contact-copy { max-width: 44rem; }
.contact-copy p { color: var(--ink-2); font-size: 1.125rem; margin: 1.5rem 0 2.25rem; max-width: 34rem; }
.contact-addr { font-style: normal; color: var(--ink-2); font-size: .95rem; line-height: 1.55; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-top: 1.25rem; border-top: 1px solid #EBD3A0; max-width: 44rem; }
.contact-addr span { display: block; color: var(--ink-3); font-size: .85rem; margin-bottom: .2rem; }

/* ================= FOOTER ================= */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 3rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; }
.legal { margin-top: 1.25rem; color: var(--ink-2); line-height: 1.7; }
.legal strong { color: var(--ink); font-weight: 620; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-nav ul { display: grid; gap: .6rem; align-content: start; }
.footer-nav a { color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-nav li { color: var(--ink-3); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px) {
  .hero-field { opacity: .55; }
  .flow { grid-template-columns: minmax(170px, 210px) 1fr minmax(240px, 290px); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero-field { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-profile, .tile-forecast { grid-column: span 2; }
  .tile-ai, .tile-auto { grid-column: span 1; }
  .tile-seg { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 3.5rem; }
  .steps::before, .steps::after { display: none; }
  .steps li { border-top: 2px solid var(--line); padding-top: 2rem; }
  .steps li .step-n { top: -17px; }
  .integrations ul { grid-template-columns: repeat(3, 1fr); }
  .integrations li:nth-child(4) { border-left: 0; }
  .integrations li:nth-child(n+4) { border-top: 1px solid var(--line-2); }
  .ai-grid { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan-main { grid-column: 1 / -1; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .plan:last-child { border-left: 1px solid var(--line); }
  .contact-mark { opacity: .35; right: -3.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { max-width: 32rem; }
}
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 3.5rem; min-height: 0; padding: clamp(1.25rem, 4vw, 2.5rem); }
  .flow-sources { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .flow-out { justify-self: center; width: min(100%, 26rem); }
  .js .flow-out { transform: translateY(12px); }
  .pains { grid-template-columns: 1fr; }
  .pains li, .pains li + li { padding: 1.4rem 0 1.6rem; border-left: 0; }
  .pains li + li { border-top-color: var(--line); }
}
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; gap: 3.5rem; min-height: 0; padding: 1.25rem; }
  .flow-sources { grid-template-columns: 1fr 1fr; gap: 10px; }
  .flow-sources li { font-size: .86rem; padding: 8px 10px 8px 8px; gap: 8px; }
  .flow-hub { width: 84px; height: 84px; }
  .flow-hub svg { width: 38px; height: 38px; }
  .js .flow-out { transform: translateY(12px); }
  .pains { grid-template-columns: 1fr; }
  .pains li, .pains li + li { padding: 1.4rem 0 1.6rem; border-left: 0; }
  .pains li + li { border-top-color: var(--line); }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .header-inner { gap: 1rem; height: 60px; }
  .btn-sm { padding: 0 .8rem; }
  .hero h1 { letter-spacing: -.015em; }
  .hero-kicker { font-size: .92rem; align-items: flex-start; }
  .kicker-mark { margin-top: .2rem; }
  .actions .btn { flex: 1 1 auto; }
  .app { border-radius: 14px; }
  .bento { grid-template-columns: 1fr; }
  .tile-profile, .tile-forecast, .tile-ai, .tile-auto, .tile-seg { grid-column: auto; }
  .tile { padding: 22px; }
  .steps { grid-template-columns: 1fr; }
  .integrations ul { grid-template-columns: 1fr 1fr; }
  .integrations li:nth-child(n) { border-left: 0; border-top: 1px solid var(--line-2); }
  .integrations li:nth-child(-n+2) { border-top: 0; }
  .integrations li:nth-child(even) { border-left: 1px solid var(--line-2); }
  .risk li { grid-template-columns: auto 1fr 2.75rem; }
  .risk .r-meter { grid-column: 2 / 3; grid-row: 2; }
  .risk .avatar { grid-row: span 2; }
  .risk .r-v { grid-row: 1; grid-column: 3; }
  .channels li { grid-template-columns: 1fr 3.25rem; gap: .4rem .9rem; }
  .channels .c-bar { grid-column: 1 / -1; grid-row: 2; }
  .plans { grid-template-columns: 1fr; }
  .plan:last-child { border-left: 0; }
  .services { grid-template-columns: 1fr; }
  .services li:nth-child(even) { padding-left: 0; border-left: 0; }
  .services li { padding-right: 0; }
  .facts { grid-template-columns: repeat(2, auto); gap: 1.25rem 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ================= MOTION PREFERENCES ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .hero-field circle, .js .hero-field circle.hot { animation: none !important; }
}
