/* =============================================================
   NOREVAK — website
   Art direction: dark, restrained, typography-led. Brand DNA:
   deep navy, electric blue, cyan, violet. Accent used sparingly;
   the hero scenario is the one place that moves on its own.
   ============================================================= */

/* ---------------------------- Tokens ------------------------- */
:root {
  /* surfaces */
  --bg:      #01030E;   /* brand Deep Navy */
  --bg-soft: #04060E;
  --panel:   #070A13;
  --raised:  #0A0E1A;

  /* ink (all ≥ 4.5:1 on --bg and --panel) */
  --ink:   #EEF2FA;
  --ink-2: #A3ADC2;
  --ink-3: #8A93A8;

  /* lines */
  --line:   rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);

  /* brand (exact) */
  --blue:   #017FFF;
  --cyan:   #00DAFF;
  --violet: #2E31FB;
  --white:  #FFFFFF;
  --blue-ink: #5AA8FF; /* readable blue for text links on navy */
  --ok:     #37D67A;
  --err:    #FF8A8A;

  --grad: linear-gradient(118deg, #00DAFF 0%, #017FFF 52%, #2E31FB 100%);

  /* type */
  --f-display: 'Heebo', 'Assistant', system-ui, sans-serif;
  --f-body:    'Assistant', 'Heebo', system-ui, sans-serif;
  --f-latin:   'Space Grotesk', 'Heebo', system-ui, sans-serif;

  /* metrics */
  --wrap: 1200px;
  --wrap-narrow: 900px;
  --gutter: clamp(16px, 5vw, 56px);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 76px;

  --pad-section: clamp(72px, 10vw, 136px);
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--cyan);
}

/* ---------------------------- Reset -------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { margin: 0; font-family: var(--f-display); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
::selection { background: rgba(0,218,255,0.28); color: #fff; }

/* focus: always visible for keyboard users */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .burger:focus-visible, .sheet-close:focus-visible { outline: 0; box-shadow: var(--focus); }
main:focus, [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

/* ---------------------------- Helpers ------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--wrap-narrow); }
.latin { font-family: var(--f-latin); direction: ltr; unicode-bidi: isolate; }
.section { padding-block: var(--pad-section); position: relative; }
.h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.lead { color: var(--ink-2); font-size: clamp(1.05rem, 1.5vw, 1.18rem); line-height: 1.7; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--bg);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .15s; }
.skip-link:focus { top: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--f-body); font-weight: 700;
  font-size: 1rem; line-height: 1.3; padding: 13px 24px; min-height: 48px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background-color .25s, border-color .25s, color .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { color: #fff; background: #0070E0; box-shadow: 0 8px 24px -12px rgba(1,127,255,.9); }
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); }
.btn-outline { color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--cyan); color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 1.04rem; min-height: 54px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.linklike { color: var(--ink-2); font-size: 15px; padding: 6px 0; text-align: start; }
.linklike:hover { color: var(--ink); }

/* section heading block */
.head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 60px); }
.head.center { margin-inline: auto; text-align: center; }
.head .lead { margin-top: 16px; }

/* ---------------------------- Header ------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s; }
.site-header.stuck { background: rgba(1,3,14,.9); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-badge { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex: none;
  box-shadow: 0 0 0 1px rgba(0,218,255,.22); }
.brand-badge img { width: 100%; height: 100%; object-fit: cover; }
.brand-word { font-weight: 600; font-size: 20px; letter-spacing: 0.2px; direction: ltr; }
.brand-word b { font-weight: 600; color: var(--cyan); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.nav a { color: var(--ink-2); font-size: 15.5px; font-weight: 600; padding: 6px 0; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.burger { display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }

/* mobile menu dialog */
.sheet { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0;
  background: rgba(1,3,14,.985); color: var(--ink); padding: 14px var(--gutter) 40px; }
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgba(1,3,14,.6); }
.sheet-top { display: flex; align-items: center; justify-content: space-between; height: 62px; margin-bottom: 18px; }
.sheet nav { display: flex; flex-direction: column; }
.sheet a.n { font-family: var(--f-display); font-size: 1.45rem; font-weight: 700; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sheet .btn { margin-top: 28px; }
.sheet-close { width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 12px; display: grid; place-items: center; }
.sheet-close svg { width: 22px; height: 22px; }

/* ---------------------------- Hero --------------------------- */
.hero { position: relative; padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(48% 46% at 78% 6%, rgba(1,127,255,.14), transparent 62%),
    radial-gradient(40% 40% at 6% 0%, rgba(0,218,255,.07), transparent 60%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.hero-copy .tagline { display: inline-block; font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 15px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin-top: 24px; }
.hero h1 .soft { color: var(--ink-2); font-weight: 700; }
.hero .lead { margin-top: 24px; max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Hero scenario card */
.flowcard { position: relative; margin: 0; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 24px 22px 22px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.flow-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.flow-title .t { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.sample-tag { flex: none; font-size: 12.5px; font-weight: 700; color: var(--ink-2); border: 1px dashed var(--line-2); border-radius: 999px; padding: 3px 10px; }

.flow-steps { display: grid; gap: 22px; position: relative; }
.flow-steps::before { content: ""; position: absolute; inset-inline-start: 36px; top: 30px; bottom: 30px; width: 1.5px;
  background: linear-gradient(180deg, rgba(0,218,255,.6), rgba(46,49,251,.35)); }
.node { position: relative; display: flex; align-items: center; gap: 14px; padding: 13px 15px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--raised); transition: filter .5s ease, border-color .5s ease, box-shadow .5s ease; }
.node .ic { width: 42px; height: 42px; border-radius: 11px; flex: none; display: grid; place-items: center; position: relative; z-index: 1; }
.node .ic svg { width: 21px; height: 21px; }
.node .nx { flex: 1; min-width: 0; }
.node .k { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.node .v { font-size: 15px; font-weight: 700; color: var(--ink); }
.node .bubbletext { font-weight: 600; color: var(--ink); font-size: 15px; }
.node.msg .ic   { background: #0C1F18; color: var(--ok); }
.node.agent .ic { overflow: hidden; background: var(--bg); }
.node.agent .ic img { width: 100%; height: 100%; object-fit: cover; }
.node.check .ic { background: #0B1830; color: var(--blue-ink); }
.node.reply .ic { background: #071F27; color: var(--cyan); }
.flow-note { margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }
.flow-replay { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; color: var(--blue-ink); font-weight: 700; font-size: 14px; padding: 6px 2px; }
.flow-replay svg { width: 16px; height: 16px; }

/* step-through: the single orchestrated motion on the page */
.flowcard.playing .node { filter: brightness(.45) saturate(.4); }
.flowcard.playing .node.on { filter: none; border-color: rgba(0,218,255,.35); box-shadow: 0 0 30px -18px rgba(0,218,255,.8); }
.flowcard.static .node.agent { border-color: rgba(0,218,255,.35); }

/* ---------------------------- Solutions ---------------------- */
.auto-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px,5vw,72px); align-items: start; }
.auto-aside { position: sticky; top: calc(var(--header-h) + 28px); }
.auto-aside .note { color: var(--ink-2); margin-top: 18px; }
.systems { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.systems-label { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.systems-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; direction: ltr; justify-content: flex-end; }
.systems-list li { font-size: 13.5px; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; }
.auto-list { display: grid; }
.auto-item { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 20px; padding: 24px 4px; border-top: 1px solid var(--line); }
.auto-item:last-child { border-bottom: 1px solid var(--line); }
.auto-item .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--cyan); background: var(--panel); }
.auto-item .ic svg { width: 23px; height: 23px; }
.auto-item h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.18rem; }
.auto-item p { color: var(--ink-2); font-size: 15.5px; margin-top: 4px; }
.auto-item .gain { color: var(--ink); font-weight: 600; font-size: 14.5px; margin-top: 8px; padding-inline-start: 14px; border-inline-start: 2px solid var(--blue); }

/* ---------------------------- Demos -------------------------- */
.demos { background: var(--bg-soft); border-block: 1px solid var(--line); }
.demos .head { margin-bottom: 20px; }
.demos-status { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 15px; margin-bottom: 28px; max-width: 70ch; }
.demos-status svg { width: 19px; height: 19px; color: var(--cyan); flex: none; margin-top: 4px; }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.demo-card { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--panel); overflow: hidden; }
.demo-media { position: relative; aspect-ratio: 16 / 9; background:
    radial-gradient(70% 90% at 50% 120%, rgba(1,127,255,.18), transparent 70%),
    linear-gradient(180deg, #060A16, #03050F);
  border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.demo-media video, .demo-media iframe, .demo-media .demo-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.demo-schema { display: flex; align-items: center; gap: 6px; padding: 0 16px; flex-wrap: nowrap; }
.demo-schema .sn { font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: var(--raised); border: 1px solid var(--line-2);
  border-radius: 9px; padding: 6px 9px; white-space: nowrap; }
.demo-schema .sn.agent { color: var(--cyan); border-color: rgba(0,218,255,.4); }
.demo-schema .sn.human { color: #fff; border-color: rgba(46,49,251,.7); background: rgba(46,49,251,.18); }
.demo-schema .sl { width: 14px; height: 1.5px; background: var(--line-2); flex: none; }
.demo-badge { position: absolute; top: 12px; inset-inline-end: 12px; font-size: 12.5px; font-weight: 700; color: var(--ink);
  background: rgba(1,3,14,.85); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 11px; }
.demo-badge.sample { top: auto; bottom: 12px; inset-inline-end: auto; inset-inline-start: 12px; z-index: 2; pointer-events: none; }
.demo-play { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  background: rgba(1,3,14,.85); border: 1px solid var(--line-2); font-weight: 700; }
.demo-play:hover { border-color: var(--cyan); }
.demo-play-ic { width: 0; height: 0; border-block: 7px solid transparent; border-inline-end: 11px solid var(--cyan); }
.demo-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.demo-body h3 { font-size: 1.2rem; }
.demo-body > p { color: var(--ink-2); font-size: 15.5px; }
.demo-caps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.demo-caps li { font-size: 13px; color: var(--ink-2); background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; }
.demo-3p { font-size: 13px; color: var(--ink-3); }
.demo-transcript summary { cursor: pointer; color: var(--blue-ink); font-weight: 700; font-size: 14px; }
.demo-transcript p { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; }

/* ---------------------------- How we work -------------------- */
.how { border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: none; }
.step { padding: 0 22px; position: relative; }
.step:not(:first-child)::after { content:""; position: absolute; top: 27px; inset-inline-start: -22px; width: 44px; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.step:first-child { padding-inline-start: 0; }
.step .dot { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 22px;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--cyan); position: relative; }
.step .dot svg { width: 25px; height: 25px; }
.step .dot .n { position: absolute; top: -9px; inset-inline-end: -9px; width: 23px; height: 23px; border-radius: 50%;
  background: #0070E0; color: #fff; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
.step h3 { font-size: 1.18rem; }
.step p { color: var(--ink-2); font-size: 15.5px; margin-top: 8px; }

/* ---------------------------- Why ---------------------------- */
.why-points { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 56px; }
.why-point { display: grid; grid-template-columns: auto 1fr; gap: 18px; }
.why-point .mk { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--cyan); border: 1px solid var(--line-2); background: var(--panel); }
.why-point .mk svg { width: 22px; height: 22px; }
.why-point h3 { font-size: 1.15rem; }
.why-point p { color: var(--ink-2); font-size: 15.5px; margin-top: 6px; }

/* ---------------------------- Trust -------------------------- */
.trust { background: var(--bg-soft); border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px,5vw,72px); align-items: start; }
.trust-grid .lead { margin-top: 18px; }
.trust-note { margin-top: 22px; color: var(--ink-2); font-size: 15px; padding-inline-start: 16px; border-inline-start: 2px solid var(--violet); }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.trust-list li { padding: 20px 0; border-top: 1px solid var(--line); }
.trust-list h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.08rem; }
.trust-list p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }

/* ---------------------------- Pricing ------------------------ */
.price-panel { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px,5vw,72px); align-items: start;
  border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: clamp(28px,4.5vw,56px);
  background: linear-gradient(165deg, rgba(1,127,255,.07), rgba(46,49,251,.04) 60%, transparent); }
.price-panel .lead { margin-top: 16px; max-width: 46ch; }
.price-panel .btn { margin-top: 28px; }
.factors-label { font-weight: 700; color: var(--ink); }
.factors { margin-top: 12px; display: grid; gap: 2px; }
.factors li { position: relative; padding: 9px 0; padding-inline-start: 22px; color: var(--ink-2); border-bottom: 1px solid var(--line); font-size: 15.5px; }
.factors li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 19px; width: 7px; height: 7px; border-radius: 2px; background: var(--cyan); }

/* ---------------------------- FAQ ---------------------------- */
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; }
.faq summary h3 { font-size: clamp(1.05rem,1.8vw,1.24rem); font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -2px; }
.faq .pm { position: relative; width: 22px; height: 22px; flex: none; }
.faq .pm::before, .faq .pm::after { content:""; position: absolute; background: var(--cyan); border-radius: 2px; transition: transform .25s ease, opacity .25s; }
.faq .pm::before { top: 10px; left: 2px; right: 2px; height: 2px; }
.faq .pm::after { left: 10px; top: 2px; bottom: 2px; width: 2px; }
.faq[open] .pm::after { transform: rotate(90deg); opacity: 0; }
.faq .a { padding: 0 4px 26px; color: var(--ink-2); font-size: 16px; line-height: 1.8; max-width: 68ch; }

/* ---------------------------- Contact ------------------------ */
.cta { position: relative; overflow: hidden; }
.cta::before { content:""; position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 80% 20%, rgba(1,127,255,.13), transparent 60%),
             radial-gradient(50% 80% at 10% 90%, rgba(46,49,251,.12), transparent 60%); }
.cta-inner { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px,5vw,72px); align-items: start;
  border: 1px solid var(--line-2); border-radius: 28px; padding: clamp(24px,5vw,60px);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008)); }
.cta h2 { font-size: clamp(1.9rem,3.8vw,2.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.cta-inner > div:first-child > p { margin-top: 18px; color: var(--ink-2); font-size: 1.1rem; max-width: 42ch; }
.cta .direct { margin-top: 26px; display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; }
.cta .direct .ig { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--line-2); flex: none; }
.cta .direct .ig svg { width: 20px; height: 20px; }
.cta .direct small { display: block; color: var(--ink-3); font-weight: 500; font-size: 13px; }

.form-offline { border: 1px solid rgba(0,218,255,.3); background: rgba(0,218,255,.05); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; }
.form-offline h3 { font-size: 1.05rem; }
.form-offline p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
fieldset[disabled] .field input, fieldset[disabled] .field textarea { opacity: .55; cursor: not-allowed; }

.form fieldset { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--ink-3); font-weight: 600; font-size: 13px; }
.field input, .field textarea { width: 100%; padding: 13px 14px; font-family: inherit; font-size: 16px; color: var(--ink);
  background: rgba(1,3,14,.6); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.field input[dir="ltr"] { text-align: left; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,218,255,.18); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field textarea { min-height: 110px; resize: vertical; }
.field-hint, .field-count { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }
.field-count { font-size: 12.5px; }
.field-err { font-size: 14px; color: var(--err); font-weight: 600; margin-top: 6px; }
.field-err::before { content: "⚠ "; }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { font-size: 14px; color: var(--ink-2); }
.privacy-note a, .form-offline a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.form .btn { width: 100%; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-summary { border: 1px solid var(--err); background: rgba(255,138,138,.07); border-radius: 12px; padding: 14px 16px; }
.error-summary p { font-weight: 700; }
.error-summary ul { margin-top: 6px; list-style: disc; padding-inline-start: 20px; }
.error-summary a { color: var(--err); text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin-top: 12px; font-size: 15px; color: var(--ink-2); min-height: 1.5em; }
.form-status.error { color: var(--err); font-weight: 600; }
.form-done { text-align: center; padding: 40px 24px; border: 1px solid rgba(55,214,122,.4); border-radius: var(--radius-lg); background: rgba(55,214,122,.06); }
.form-done svg { width: 46px; height: 46px; color: var(--ok); margin: 0 auto 16px; }
.form-done h3 { font-size: 1.4rem; }
.form-done p { color: var(--ink-2); margin-top: 8px; }
.form-done .ref { font-size: 14px; color: var(--ink-3); }
.form-done .ref span { color: var(--ink); }

/* ---------------------------- Footer ------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .brand-badge { width: 46px; height: 46px; }
.foot-brand .slogan { color: var(--cyan); font-size: 15px; margin-top: 14px; direction: ltr; text-align: right; }
.foot-brand p:not(.slogan) { color: var(--ink-3); font-size: 14.5px; margin-top: 10px; max-width: 34ch; }
.foot-col h2 { font-family: var(--f-body); font-size: 14px; font-weight: 700; color: var(--ink-3); margin: 0 0 14px; }
.foot-col a, .foot-col .linklike { display: block; color: var(--ink-2); font-size: 15px; padding: 6px 0; transition: color .2s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }

/* ---------------------------- Consent ------------------------ */
.consent { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin-inline: auto;
  background: #070B18; border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.9); }
.consent-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 18px 20px; }
.consent h2 { font-size: 1.05rem; }
.consent p { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }
.consent a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 10px; }

.privacy-dialog { width: min(560px, calc(100% - 32px)); border: 1px solid var(--line-2); border-radius: 20px; background: #070B18; color: var(--ink); padding: 0; }
.privacy-dialog::backdrop { background: rgba(1,3,14,.75); }
.pd-inner { padding: 26px 24px; display: grid; gap: 18px; }
.pd-inner > h2 { font-size: 1.35rem; }
.pd-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pd-row h3 { font-family: var(--f-body); font-size: 1rem; font-weight: 700; }
.pd-row p { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.pd-fixed { font-size: 13px; font-weight: 700; color: var(--ink-3); flex: none; }
.pd-off { font-size: 14px; color: var(--ink-3); }
.pd-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.switch { position: relative; flex: none; width: 52px; height: 30px; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: #2A3142; border: 1px solid var(--line-2); transition: background-color .2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .track { background: #0070E0; }
.switch input:checked + .track::after { transform: translateX(-22px); }
.switch input:focus-visible + .track { box-shadow: var(--focus); }
.switch input:disabled + .track { opacity: .45; }

/* ---------------------------- Legal pages -------------------- */
.doc { padding-block: clamp(40px, 7vw, 88px); }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.doc .draft { margin-top: 18px; border: 1px solid rgba(255,200,87,.45); background: rgba(255,200,87,.07); color: #FFE2A8; border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.doc .updated { color: var(--ink-3); font-size: 14px; margin-top: 12px; }
.doc h2 { font-size: 1.4rem; margin-top: 40px; }
.doc h3 { font-size: 1.12rem; margin-top: 24px; }
.doc p, .doc li { color: var(--ink-2); margin-top: 12px; max-width: 72ch; }
.doc ul { list-style: disc; padding-inline-start: 22px; }
.doc a:not(.btn), .foot-bottom a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.doc .todo { background: rgba(255,200,87,.14); color: #FFE2A8; border-radius: 4px; padding: 0 4px; font-weight: 600; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.doc th, .doc td { text-align: start; border-bottom: 1px solid var(--line); padding: 10px 8px; color: var(--ink-2); vertical-align: top; }
.doc th { color: var(--ink); }
.doc-back { display: inline-flex; margin-top: 40px; }

/* ---------------------------- Motion ------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .flowcard.playing .node { filter: none; }
  .spinner { animation: none; border-top-color: rgba(255,255,255,.35); }
}

/* ---------------------------- Forced colors ------------------ */
@media (forced-colors: active) {
  .btn, .node, .demo-card, .field input, .field textarea { border: 1px solid CanvasText; }
  .switch .track { border: 1px solid CanvasText; }
}

/* ---------------------------- Responsive --------------------- */
@media (max-width: 1080px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .flowcard { max-width: 520px; width: 100%; }
  .auto-grid, .trust-grid, .price-panel, .cta-inner { grid-template-columns: 1fr; }
  .auto-aside { position: static; }
  .demo-grid { grid-template-columns: 1fr; max-width: 560px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .step:nth-child(3)::after { display: none; }
  .step:nth-child(3) { padding-inline-start: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .step { padding: 16px 0; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
  .step .dot { margin-bottom: 0; }
  .step::after { display: none !important; }
  .why-points, .trust-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .consent-inner { grid-template-columns: 1fr; }
  .consent-actions .btn { flex: 1; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .demo-schema .sn { font-size: 11.5px; padding: 5px 7px; }
  .demo-schema .sl { width: 8px; }
  .flow-steps::before { inset-inline-start: 34px; }
}

/* ---------------------------- Floating WhatsApp -------------------- */
.wa-float {
  position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 45;
  display: inline-flex; align-items: center; justify-content: center;
  background: #25D366; border-radius: 999px; padding: 14px;
  box-shadow: 0 10px 28px -8px rgba(0,0,0,.6);
  text-decoration: none; transition: transform .18s ease, box-shadow .25s ease;
}
.wa-float svg { width: 28px; height: 28px; display: block; }
.wa-float .wa-label {
  max-width: 0; overflow: hidden; white-space: nowrap; margin: 0;
  color: #06301b; font-family: var(--f-body); font-weight: 800; font-size: 15px;
  transition: max-width .25s ease, margin .25s ease;
}
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(37,211,102,.55); }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { max-width: 110px; margin-inline-start: 9px; }
.wa-float:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
@media (max-width: 560px) {
  /* keep the last footer line clear of the floating button */
  .site-footer { padding-block-end: 92px; }
  .wa-float { inset-block-end: 16px; inset-inline-end: 16px; padding: 13px; }
  .wa-float svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float .wa-label { transition: none; }
}

/* ---------------------------- Domains (5 areas) ------------------- */
.domains-section { background: var(--bg-soft); border-block: 1px solid var(--line); }
.dhead { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.dhead .eyebrow {
  display: inline-block; font-family: var(--f-latin); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px;
}
.dhead .sub { color: var(--ink-2); margin-top: 14px; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.domains-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.domain {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  border: 1px solid var(--line); border-radius: 16px; padding: 26px 20px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.domain:hover { border-color: rgba(0, 218, 255, 0.35); transform: translateY(-4px); box-shadow: 0 0 40px -22px rgba(0,218,255,.6); }
.domain-ic {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(0, 218, 255, 0.07); border: 1px solid rgba(0, 218, 255, 0.2); color: var(--cyan);
}
.domain-ic svg { width: 25px; height: 25px; }
.domain h3 { font-family: var(--f-latin); font-size: 1.15rem; font-weight: 600; letter-spacing: .2px; }
.domain .dsub { font-family: var(--f-latin); font-size: 11.5px; color: var(--blue-ink); margin-top: 5px; }
.domain .ddesc { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin-top: 12px; }
@media (max-width: 980px) { .domains-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .domains-grid { grid-template-columns: 1fr; } }

/* ---------------------------- Work: FORGE feature ----------------- */
.work-feature {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  border: 1px solid var(--line-2); border-radius: 22px; padding: clamp(26px, 4vw, 44px);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008)); margin-bottom: 30px;
}
.wf-tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--blue-ink); margin-bottom: 14px; }
.work-feature h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.wf-copy > p { color: var(--ink-2); margin-top: 14px; font-size: 1.05rem; line-height: 1.7; }
.wf-caps { display: grid; gap: 11px; margin-top: 20px; }
.wf-caps li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink); font-size: 15.5px; }
.wf-caps li::before {
  content: ""; width: 9px; height: 9px; flex: none; margin-top: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px rgba(0,218,255,.6);
}
.wf-badge { display: inline-block; margin-top: 22px; font-size: 13px; font-weight: 700; color: var(--cyan); border: 1px solid rgba(0,218,255,0.3); border-radius: 999px; padding: 6px 14px; }
.wf-visual { display: grid; place-items: center; }
/* FORGE's own brand language (black / red), shown as a product we built */
.forge-mock { width: min(360px, 100%); background: var(--raised); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px -30px #000; }
.fm-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fm-logo { font-family: var(--f-latin); font-weight: 700; color: var(--ink); letter-spacing: .5px; font-size: 1.1rem; }
.fm-logo span { color: #FF4568; }  /* small FORGE signature accent */
.fm-chip { font-size: 12px; color: #051018; background: var(--cyan); padding: 3px 11px; border-radius: 999px; font-weight: 700; }
.fm-banner { background: linear-gradient(135deg, rgba(0,218,255,0.1), rgba(46,49,251,0.08)); border: 1px solid rgba(0,218,255,0.3); border-radius: 14px; padding: 16px; color: var(--ink); font-weight: 800; font-size: 1.1rem; line-height: 1.35; }
.fm-cta { display: block; margin-top: 12px; color: var(--cyan); font-size: 13px; font-weight: 700; }
.fm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.fm-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.fm-stat b { display: block; font-size: 1.4rem; color: var(--cyan); font-weight: 800; }
.fm-stat span { font-size: 12px; color: var(--ink-3); }
@media (max-width: 860px) { .work-feature { grid-template-columns: 1fr; } .wf-visual { order: -1; } }
.wf-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.wf-actions .wf-badge { margin-top: 0; }
a.wf-visual { text-decoration: none; border-radius: 20px; }
a.wf-visual .forge-mock { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
a.wf-visual:hover .forge-mock, a.wf-visual:focus-visible .forge-mock { transform: translateY(-4px); border-color: rgba(0,218,255,0.45); box-shadow: 0 40px 70px -35px rgba(0,218,255,.4); }
a.wf-visual:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

/* ---------------------------- Loop pause/play button -------------- */
.loop-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 12px; min-height: 36px;
  border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font-size: 13.5px; font-weight: 700; }
.loop-toggle:hover { color: var(--ink); border-color: var(--cyan); }
.loop-toggle svg { width: 14px; height: 14px; }
.loop-toggle .i-play, .loop-toggle.is-paused .i-pause { display: none; }
.loop-toggle.is-paused .i-play { display: block; }

/* ---------------------------- Sample WhatsApp chats ----------------- */
.chats { border-top: 1px solid var(--line); }
.chat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chat-tabs [role="tab"] { padding: 9px 18px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--ink-2); font-weight: 700; font-size: 15px; transition: background-color .2s, color .2s, border-color .2s; }
.chat-tabs [role="tab"]:hover { color: var(--ink); border-color: var(--cyan); }
.chat-tabs [role="tab"][aria-selected="true"] { background: #0070E0; border-color: #0070E0; color: #fff; }
.chat-tabs [role="tab"]:focus-visible { outline: 0; box-shadow: var(--focus); }
.chat-panel { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.chat-panel[hidden] { display: none; }
.chat-panel:focus-visible { outline: 2px solid var(--cyan); outline-offset: 6px; border-radius: 12px; }

.phone { border: 1px solid var(--line-2); border-radius: 26px; overflow: hidden; background: #0B141A;
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.9); }
.phone-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #202C33; }
.ph-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: #005C4B; color: #E9EDEF; font-weight: 800; }
.ph-name { display: flex; flex-direction: column; color: #E9EDEF; font-weight: 700; font-size: 15px; line-height: 1.3; }
.ph-name small { color: #AEBAC1; font-weight: 600; font-size: 12.5px; }
.chat-log { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px 14px 20px; min-height: 300px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(0,92,75,.12), transparent 60%), #0B141A; }
.cm { position: relative; max-width: 82%; padding: 8px 11px 20px; border-radius: 12px; font-size: 15px; line-height: 1.5;
  color: #E9EDEF; transition: opacity .35s ease, transform .35s ease; }
.cm.in { align-self: flex-start; background: #202C33; border-start-start-radius: 4px; }
.cm.out { align-self: flex-end; background: #005C4B; border-start-end-radius: 4px; }
.cm time { position: absolute; bottom: 4px; inset-inline-end: 10px; font-size: 11.5px; color: #AEBAC1; }
.cm.out time { color: #B9D3CC; }
.cm .who { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat-panel.playing .cm:not(.on) { opacity: 0; transform: translateY(6px); }
.cm.typing { display: none; position: absolute; inset-inline-end: 14px; padding: 12px 14px; gap: 4px; }
.cm.typing.on { display: inline-flex; }
.cm.typing i { width: 7px; height: 7px; border-radius: 50%; background: #B9D3CC; animation: typing 1s infinite ease-in-out; }
.cm.typing i:nth-child(2) { animation-delay: .15s; }
.cm.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.behind { border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 30px); background: var(--panel); }
.behind h3 { font-size: 1.15rem; }
.acts { margin-top: 16px; display: grid; gap: 10px; counter-reset: act; }
.acts li { counter-increment: act; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--ink-2); font-size: 15px; transition: border-color .35s, color .35s, background-color .35s; }
.acts li::before { content: counter(act); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; color: var(--ink-2); font-family: var(--f-latin); }
.acts li.on { color: var(--ink); border-color: rgba(0,218,255,.4); background: rgba(0,218,255,.05); }
.acts li.on::before { background: var(--cyan); border-color: var(--cyan); color: #01030E; }
.chat-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 18px; }
.chat-foot .loop-toggle { margin-top: 0; }
.chat-note { color: var(--ink-3); font-size: 14px; max-width: 70ch; }
@media (max-width: 860px) { .chat-panel { grid-template-columns: 1fr; } .phone { max-width: 440px; } }
@media (prefers-reduced-motion: reduce) { .cm.typing i { animation: none; } }

/* ---------------------------- Apps + agent demos ----------------- */
.apps { border-top: 1px solid var(--line); }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.app-card .demo-body h3 { font-size: 1.5rem; letter-spacing: .01em; }
.app-card .wf-tag { margin-bottom: 0; }
.app-actions { margin-top: auto; padding-top: 10px; }
.demo-media .demo-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.agent-feature { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 48px);
  padding: clamp(16px, 2.5vw, 24px); margin-bottom: 22px; }
.agent-feature .demo-media.vertical { aspect-ratio: 9 / 16; border: 1px solid var(--line-2); border-radius: 22px; }
.agent-feature .demo-body { padding: 0; }
.agent-feature .demo-body h3 { font-size: 1.45rem; }
@media (max-width: 860px) {
  .app-grid { grid-template-columns: 1fr; }
  .agent-feature { grid-template-columns: 1fr; }
  .agent-feature .demo-media.vertical { max-width: 320px; width: 100%; margin-inline: auto; }
}
/* sample-data label: top corner, clear of the native video controls */
.demo-media .demo-badge.sample { top: 12px; bottom: auto; inset-inline-start: 12px; inset-inline-end: auto; }
.agent-feature.compact { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.agent-feature.compact .demo-media { border-radius: 16px; border: 1px solid var(--line); }
@media (max-width: 860px) { .agent-feature.compact { grid-template-columns: 1fr; } }
/* sample-data label: top corner, clear of the native video controls */
.demo-media .demo-badge.sample { top: 12px; bottom: auto; inset-inline-start: 12px; inset-inline-end: auto; }
.agent-feature.compact { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.agent-feature.compact .demo-media { border-radius: 16px; border: 1px solid var(--line); }
@media (max-width: 860px) { .agent-feature.compact { grid-template-columns: 1fr; } }
