/* Betha Engineering — corporate site v1
   Brand tokens from Betha-brand-tokens.css (Brand ID 2026-10-02) */
:root {
  --betha-purple: #713A97;
  --betha-deep-plum: #4B2368;
  --betha-ink: #16131A;
  --betha-off-white: #F7F5F8;
  --betha-border: #EDE5F2;

  --purple-50: #F5EFF9;
  --purple-100: #EADDF2;
  --purple-300: #B48FCF;
  --purple-400: #9B6BBE;
  --ink-2: #221C29;
  --ink-3: #2E2537;
  --text: #16131A;
  --text-2: #4A4352;
  --text-3: #6B6474;
  --line: #E4DCEA;
  --white: #FFFFFF;
  --ok: #1F7A4D;
  --err: #B42318;

  --font-head: "Montserrat", Arial, Helvetica, sans-serif;
  --font-body: "Inter", Arial, Helvetica, sans-serif;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(22, 19, 26, .06), 0 1px 1px rgba(22, 19, 26, .04);
  --shadow-md: 0 8px 24px -8px rgba(22, 19, 26, .18);
  --shadow-lg: 0 24px 60px -20px rgba(22, 19, 26, .35);
  --container: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --z-nav: 30;
  --z-assistant: 50;
  --z-toast: 60;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--betha-purple); text-decoration: none; }
a:hover { color: var(--betha-deep-plum); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--betha-ink); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--purple-300); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--betha-purple); color: #fff; padding: 10px 16px; border-radius: var(--radius); z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  border-radius: var(--radius); border: 1.5px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary { background: var(--betha-purple); color: #fff; }
.btn-primary:hover { background: var(--betha-deep-plum); color: #fff; box-shadow: 0 8px 20px -8px rgba(113, 58, 151, .6); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline { background: transparent; color: var(--betha-purple); border-color: var(--betha-purple); }
.btn-outline:hover { background: var(--betha-purple); color: #fff; }
.btn-white { background: #fff; color: var(--betha-deep-plum); }
.btn-white:hover { background: var(--betha-off-white); color: var(--betha-deep-plum); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  height: var(--nav-h);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex: none; }
.brand img { width: 46px; height: auto; }
.brand .logo-dark { display: none; }
.nav.is-solid .brand .logo-light { display: none; }
.nav.is-solid .brand .logo-dark { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--font-head); font-weight: 800; font-size: 17px; letter-spacing: .16em; }
.brand-text span { font-family: var(--font-head); font-weight: 600; font-size: 10px; letter-spacing: .32em; margin-top: 5px; opacity: .75; }
.nav.is-solid .brand { color: var(--betha-ink); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 10px 14px; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: rgba(255, 255, 255, .85); white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-links a:hover, .nav-links a.is-active { color: #fff; }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav.is-solid .nav-links a { color: var(--text-2); }
.nav.is-solid .nav-links a:hover, .nav.is-solid .nav-links a.is-active { color: var(--betha-purple); }
.nav-cta { min-height: 42px; padding: 0 18px; font-size: 14px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; border-radius: var(--radius); }
.nav.is-solid .nav-toggle { color: var(--betha-ink); }
.nav-toggle svg { width: 26px; height: 26px; margin: auto; }

@media (max-width: 1120px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav.is-open { background: #fff; border-color: var(--line); }
  .nav.is-open .brand { color: var(--betha-ink); }
  .nav.is-open .brand .logo-light { display: none; }
  .nav.is-open .brand .logo-dark { display: block; }
  .nav.is-open .nav-toggle { color: var(--betha-ink); }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; padding: 8px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); gap: 0;
  }
  .nav.is-open .nav-links a { color: var(--betha-ink); padding: 14px 8px; border-bottom: 1px solid var(--betha-border); font-size: 16px; }
  .nav.is-open .nav-links a::after { display: none; }
  .nav.is-open .nav-links .mobile-cta { display: flex; margin-top: 16px; border: 0; color: #fff; justify-content: center; }
}
.nav-links .mobile-cta { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--betha-ink);
  padding: calc(var(--nav-h) + 72px) 0 96px;
  isolation: isolate;
}
.hero::before { /* blueprint grid */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(180, 143, 207, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 143, 207, .07) 1px, transparent 1px),
    linear-gradient(rgba(180, 143, 207, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 143, 207, .035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  mask-image: linear-gradient(180deg, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.hero::after { /* plum glow, solid brand hue, no pink */
  content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -260px; top: -280px;
  background: radial-gradient(closest-side, rgba(113, 58, 151, .45), rgba(75, 35, 104, .18) 55%, transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple-300); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 { color: #fff; font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--purple-300); }
.hero-lead { font-size: 18px; color: rgba(255, 255, 255, .78); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-meta li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.hero-meta svg { width: 18px; height: 18px; color: var(--purple-300); flex: none; }

/* Hero schematic */
.schematic { position: relative; width: 100%; max-width: 540px; margin-left: auto; aspect-ratio: 1 / .92; }
.schematic svg { width: 100%; height: 100%; overflow: visible; }
.schematic .draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); animation: draw 2.4s var(--ease) forwards; animation-delay: var(--d, 0s); }
.schematic .fade { opacity: 0; animation: fadeIn .8s var(--ease) forwards; animation-delay: var(--d, 0s); }
.schematic .node { transform-box: fill-box; transform-origin: center; animation: pulse 2.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
.schematic .scan { animation: scan 6s linear infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .9; } 90% { opacity: .9; } 100% { transform: translateY(400px); opacity: 0; } }

.callout {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(34, 28, 41, .88); border: 1px solid rgba(180, 143, 207, .28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 10px 14px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  font-size: 13px; line-height: 1.3; color: #fff;
  opacity: 0; transform: translateY(8px); animation: rise .7s var(--ease) forwards; animation-delay: var(--d, 0s);
}
.callout b { display: block; font-family: var(--font-head); font-size: 13px; }
.callout small { color: rgba(255, 255, 255, .62); font-size: 12px; }
.callout .ic { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; background: var(--betha-purple); flex: none; }
.callout .ic svg { width: 18px; height: 18px; color: #fff; }
.callout.c1 { left: -4%; top: 14%; }
.callout.c2 { right: -2%; top: 40%; }
.callout.c3 { left: 6%; bottom: 4%; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.callout.float { animation: rise .7s var(--ease) forwards, bob 6s ease-in-out infinite; animation-delay: var(--d, 0s), calc(var(--d, 0s) + .7s); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

@media (max-width: 960px) {
  .hero { padding: calc(var(--nav-h) + 48px) 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .schematic { margin: 0 auto; max-width: 440px; }
}
@media (max-width: 480px) {
  .callout { padding: 8px 10px; }
  .callout small { display: none; }
  .callout .ic { width: 26px; height: 26px; }
  .callout.c1 { left: 0; }
  .callout.c2 { right: 0; }
  .hero-lead { font-size: 16.5px; }
}

/* ---------- BETHA acronym band ---------- */
.acronym { background: var(--betha-deep-plum); color: #fff; }
.acronym .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-top: 26px; padding-bottom: 26px; }
.acronym-label { font-family: var(--font-head); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--purple-100); opacity: .85; }
.acronym-words { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--font-head); font-size: clamp(15px, 1.8vw, 19px); font-weight: 500; }
.acronym-words span { opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 110ms); }
.acronym-words b { font-weight: 800; color: #fff; font-size: 1.25em; margin-right: 1px; }
.acronym-words span { color: rgba(255, 255, 255, .78); }
.acronym.is-in .acronym-words span { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; position: relative; }
.section-alt { background: var(--betha-off-white); }
.section-dark { background: var(--betha-ink); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
@media (max-width: 760px) { .section { padding: 80px 0; } }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head .eyebrow { color: var(--betha-purple); }
.section-dark .section-head .eyebrow { color: var(--purple-300); }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.section-head p { font-size: 17.5px; color: var(--text-2); margin: 0; }
.section-dark .section-head p { color: rgba(255, 255, 255, .72); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-copy p { color: var(--text-2); font-size: 17px; }
.about-copy .lead { font-size: 20px; color: var(--betha-ink); font-weight: 500; line-height: 1.55; }
.leader {
  display: flex; align-items: center; gap: 16px; margin-top: 32px; padding: 18px 20px;
  border: 1px solid var(--line); border-left: 4px solid var(--betha-purple); border-radius: var(--radius); background: #fff;
}
.leader-mono { width: 52px; height: 52px; border-radius: 50%; background: var(--purple-50); color: var(--betha-purple); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 17px; flex: none; }
.leader b { display: block; font-family: var(--font-head); font-size: 16px; }
.leader span { color: var(--text-3); font-size: 14px; }

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pillar {
  padding: 28px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.pillar:hover { border-color: var(--purple-300); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pillar .ic { width: 46px; height: 46px; border-radius: 8px; background: var(--purple-50); color: var(--betha-purple); display: grid; place-items: center; margin-bottom: 18px; }
.pillar .ic svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 17px; margin-bottom: 6px; }
.pillar p { font-size: 14.5px; color: var(--text-3); margin: 0; line-height: 1.55; }
.pillars .pillar:nth-child(2) { transform: translateY(28px); }
.pillars .pillar:nth-child(4) { transform: translateY(28px); }
.pillars .pillar:nth-child(2):hover, .pillars .pillar:nth-child(4):hover { transform: translateY(25px); }
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .pillars .pillar:nth-child(2), .pillars .pillar:nth-child(4) { transform: none; }
  .pillars .pillar:nth-child(2):hover, .pillars .pillar:nth-child(4):hover { transform: translateY(-3px); }
}
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px 28px; overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.service::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--betha-purple); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.service:hover { border-color: var(--purple-300); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service:hover::before { transform: scaleX(1); }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.service .ic { width: 52px; height: 52px; border-radius: 8px; background: var(--betha-ink); color: #fff; display: grid; place-items: center; transition: background-color .25s var(--ease); }
.service:hover .ic { background: var(--betha-purple); }
.service .ic svg { width: 26px; height: 26px; }
.service .num { font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--purple-300); letter-spacing: .1em; }
.service h3 { font-size: 20px; margin-bottom: 10px; }
.service > p { color: var(--text-2); font-size: 15px; margin-bottom: 18px; }
.service ul { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.service li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.service li svg { width: 16px; height: 16px; color: var(--betha-purple); flex: none; margin-top: 2px; }
.service .ask {
  margin-top: 20px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--betha-purple);
  background: none; border: 0; padding: 6px 0; min-height: 44px;
}
.service .ask svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.service .ask:hover svg { transform: translateX(3px); }
@media (max-width: 1024px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }

/* ---------- Radiation specialist band ---------- */
.specialist { overflow: hidden; }
.specialist::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(180, 143, 207, .14) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.specialist .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.specialist .section-head { margin-bottom: 32px; }
.spec-list { display: grid; gap: 14px; }
.spec-list li {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.spec-list li:hover { background: rgba(113, 58, 151, .16); border-color: rgba(180, 143, 207, .35); }
.spec-list .ic { width: 38px; height: 38px; border-radius: 6px; display: grid; place-items: center; background: var(--betha-purple); flex: none; }
.spec-list .ic svg { width: 20px; height: 20px; color: #fff; }
.spec-list b { display: block; font-family: var(--font-head); font-size: 15.5px; margin-bottom: 2px; }
.spec-list span { font-size: 14px; color: rgba(255, 255, 255, .68); line-height: 1.5; }
.trefoil { width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 1; }
.trefoil .spin { transform-origin: 200px 200px; animation: spin 40s linear infinite; }
.trefoil .spin-rev { transform-origin: 200px 200px; animation: spin 60s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 960px) {
  .specialist .container { grid-template-columns: 1fr; gap: 40px; }
  .trefoil { max-width: 260px; order: -1; }
}

/* ---------- Sectors ---------- */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sector {
  position: relative; padding: 36px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff;
  transition: background-color .3s var(--ease);
}
.sector:hover { background: var(--betha-off-white); }
.sector .ic { width: 40px; height: 40px; color: var(--betha-purple); margin-bottom: 20px; transition: transform .3s var(--ease); }
.sector:hover .ic { transform: translateY(-3px); }
.sector .num { position: absolute; top: 32px; right: 30px; font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--purple-300); }
.sector h3 { font-size: 18px; margin-bottom: 6px; }
.sector p { color: var(--text-3); font-size: 14.5px; margin: 0; }
@media (max-width: 960px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sectors { grid-template-columns: 1fr; } .sector { padding: 28px 22px; } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: step; }
.process::before { content: ""; position: absolute; top: 27px; left: 28px; right: calc(25% - 46px); height: 2px; background: var(--line); }
.process .bar { position: absolute; top: 27px; left: 28px; height: 2px; width: calc(75% + 18px); background: var(--betha-purple); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.process.is-in .bar { transform: scaleX(1); }
.step { position: relative; }
.step .dot {
  width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid var(--line);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: var(--betha-purple); font-size: 18px;
  margin-bottom: 22px; position: relative; transition: border-color .4s var(--ease), background-color .4s var(--ease), color .4s var(--ease);
  transition-delay: calc(var(--i) * .35s);
}
.process.is-in .step .dot { border-color: var(--betha-purple); background: var(--betha-purple); color: #fff; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15px; margin: 0; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: 32px; }
  .process::before, .process .bar { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .process .bar { transform: scaleY(0); transform-origin: top; height: calc(100% - 56px); }
  .process.is-in .bar { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 20px; }
  .step .dot { grid-row: span 2; margin: 0; }
}

/* ---------- AI assistant feature ---------- */
.ai-feature { background: var(--betha-off-white); overflow: hidden; }
.ai-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--betha-ink); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); color: #fff;
}
.ai-copy { padding: 56px 52px; position: relative; }
.ai-copy h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.ai-copy p { color: rgba(255, 255, 255, .74); font-size: 16.5px; }
.ai-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(113, 58, 151, .3); border: 1px solid rgba(180, 143, 207, .4);
  font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-100);
  margin-bottom: 20px;
}
.ai-badge svg { width: 14px; height: 14px; }
.ai-points { display: grid; gap: 10px; margin: 24px 0 0; }
.ai-points li { display: flex; gap: 10px; font-size: 15px; color: rgba(255, 255, 255, .82); }
.ai-points svg { width: 18px; height: 18px; color: var(--purple-300); flex: none; margin-top: 3px; }
.ai-try { padding: 48px 44px; background: var(--ink-2); border-left: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; justify-content: center; }
.ai-try label { font-family: var(--font-head); font-weight: 600; font-size: 14px; margin-bottom: 10px; display: block; }
.ai-input { position: relative; }
.ai-input textarea {
  width: 100%; min-height: 128px; resize: vertical; padding: 16px 16px 60px;
  background: var(--ink-3); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg);
  color: #fff; font: inherit; font-size: 15.5px; line-height: 1.5;
  transition: border-color .2s var(--ease);
}
.ai-input textarea::placeholder { color: rgba(255, 255, 255, .45); }
.ai-input textarea:focus { outline: none; border-color: var(--purple-300); }
.ai-input .btn { position: absolute; right: 10px; bottom: 12px; min-height: 42px; padding: 0 16px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: rgba(255, 255, 255, .82);
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px; min-height: 38px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { background: rgba(113, 58, 151, .35); border-color: var(--purple-300); color: #fff; }
.ai-note { font-size: 12.5px; color: rgba(255, 255, 255, .5); margin: 16px 0 0; }
@media (max-width: 960px) {
  .ai-card { grid-template-columns: 1fr; }
  .ai-copy, .ai-try { padding: 40px 28px; }
  .ai-try { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
}
@media (max-width: 480px) { .ai-copy, .ai-try { padding: 32px 20px; } }

/* ---------- Compliance ---------- */
.frameworks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.framework { padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; display: flex; gap: 14px; align-items: flex-start; }
.framework .ic { width: 40px; height: 40px; border-radius: 6px; background: var(--purple-50); color: var(--betha-purple); display: grid; place-items: center; flex: none; }
.framework .ic svg { width: 20px; height: 20px; }
.framework b { display: block; font-family: var(--font-head); font-size: 15px; line-height: 1.3; margin-bottom: 4px; }
.framework span { font-size: 13.5px; color: var(--text-3); line-height: 1.45; display: block; }
@media (max-width: 1024px) { .frameworks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .frameworks { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-wrap .section-head { position: sticky; top: calc(var(--nav-h) + 32px); margin: 0; }
.faq-wrap .section-head .btn { margin-top: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--betha-ink);
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--betha-purple); }
.faq summary .pm { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease); }
.faq summary .pm svg { width: 14px; height: 14px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--betha-purple); border-color: var(--betha-purple); color: #fff; }
.faq .answer { padding: 0 4px 24px; color: var(--text-2); font-size: 15.5px; max-width: 640px; }
.faq .answer p:last-child { margin: 0; }
@media (max-width: 960px) { .faq-wrap { grid-template-columns: 1fr; gap: 32px; } .faq-wrap .section-head { position: static; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.info {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  transition: border-color .2s var(--ease);
}
a.info:hover { border-color: var(--purple-300); }
.info .ic { width: 44px; height: 44px; border-radius: 8px; background: var(--betha-purple); color: #fff; display: grid; place-items: center; flex: none; }
.info .ic svg { width: 20px; height: 20px; }
.info small { display: block; font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.info span { color: var(--betha-ink); font-size: 15.5px; line-height: 1.5; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--betha-off-white); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 40px; box-shadow: var(--shadow-md); }
.form-card h3 { font-size: 22px; }
.form-card > p { color: var(--text-3); font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--betha-ink); }
.field label .req { color: var(--betha-purple); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--betha-off-white); border: 1.5px solid transparent; border-radius: var(--radius);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--betha-purple); background: #fff; }
.field .err { color: var(--err); font-size: 13px; min-height: 0; display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--err); background: #fff; }
.field.is-invalid .err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-3); grid-column: 1 / -1; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--betha-purple); flex: none; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.form-status { font-size: 14.5px; margin: 0; }
.form-status.ok { color: var(--ok); }
.form-status.bad { color: var(--err); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-card { padding: 28px 20px; } .form-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--betha-purple); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px;
  background: url("../img/symbol-white.png") center / contain no-repeat; opacity: .07; transform: rotate(-8deg);
}
.cta-band .container { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding-top: 72px; padding-bottom: 72px; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; margin-bottom: 8px; max-width: 640px; }
.cta-band p { color: rgba(255, 255, 255, .82); margin: 0; font-size: 17px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--betha-ink); color: rgba(255, 255, 255, .7); padding: 72px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer .flogo { width: 96px; margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer a { color: rgba(255, 255, 255, .7); transition: color .2s var(--ease); }
.footer a:hover { color: #fff; }
.footer address { font-style: normal; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer-bottom a { color: rgba(255, 255, 255, .65); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating actions ---------- */
.fab-wa {
  position: fixed; right: 21px; bottom: 88px; z-index: var(--z-assistant);
  width: 54px; height: 54px; border-radius: 50%; background: #1F7A4D; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.fab-wa:hover { background: #18633E; color: #fff; transform: translateY(-2px); }
.fab-wa svg { width: 26px; height: 26px; }

/* ---------- Assistant widget ---------- */
.asst-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-assistant);
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 8px;
  background: var(--betha-ink); color: #fff; border: 1px solid rgba(180, 143, 207, .35); border-radius: 999px; box-shadow: var(--shadow-lg);
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px;
  transition: transform .2s var(--ease), background-color .2s var(--ease), opacity .2s var(--ease);
}
.asst-launch:hover { background: var(--betha-deep-plum); transform: translateY(-2px); }
.asst-launch .orb { width: 40px; height: 40px; border-radius: 50%; background: var(--betha-purple); display: grid; place-items: center; position: relative; }
.asst-launch .orb::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--purple-300); opacity: 0; animation: ring 2.6s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
.asst-launch .orb svg { width: 20px; height: 20px; }
.asst-launch.is-hidden, .asst-launch.is-hidden ~ .fab-wa { opacity: 0; pointer-events: none; transform: translateY(10px); }
@media (max-width: 480px) { .asst-launch .lbl { display: none; } .asst-launch { padding: 0 8px; } }

.asst {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-assistant);
  width: 400px; max-width: calc(100vw - 32px); height: 620px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  background: #fff; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(22, 19, 26, .5); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.98); transform-origin: bottom right; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.asst.is-open { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 480px) { .asst { right: 8px; left: 8px; bottom: 8px; width: auto; max-width: none; height: calc(100dvh - 16px); max-height: none; } }
.asst-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; background: var(--betha-ink); color: #fff; }
.asst-head img { width: 36px; height: auto; }
.asst-head .t { flex: 1; min-width: 0; }
.asst-head b { display: block; font-family: var(--font-head); font-size: 15px; }
.asst-head small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .65); }
.asst-head small i { width: 7px; height: 7px; border-radius: 50%; background: #3DD68C; }
.asst-head button { width: 40px; height: 40px; border: 0; background: transparent; color: #fff; border-radius: var(--radius); display: grid; place-items: center; }
.asst-head button:hover { background: rgba(255, 255, 255, .1); }
.asst-head button svg { width: 20px; height: 20px; }
.asst-body { flex: 1; overflow-y: auto; padding: 18px 16px; background: var(--betha-off-white); display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; animation: msgIn .25s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--text); }
.msg.user { background: var(--betha-purple); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.typing { display: flex; gap: 5px; padding: 14px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--purple-300); animation: dot 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.asst-quick { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.asst-quick button { border: 1px solid var(--purple-300); background: #fff; color: var(--betha-deep-plum); border-radius: 999px; padding: 7px 12px; font-size: 13px; min-height: 36px; transition: background-color .2s var(--ease); }
.asst-quick button:hover { background: var(--purple-50); }
.handoff { align-self: stretch; background: #fff; border: 1px solid var(--purple-300); border-radius: 12px; padding: 14px; font-size: 13.5px; }
.handoff b { font-family: var(--font-head); display: block; margin-bottom: 6px; color: var(--betha-deep-plum); }
.handoff pre { white-space: pre-wrap; font: inherit; margin: 0 0 12px; color: var(--text-2); background: var(--betha-off-white); padding: 10px; border-radius: 8px; max-height: 180px; overflow: auto; }
.handoff .row { display: flex; flex-wrap: wrap; gap: 8px; }
.handoff .btn { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
.asst-foot { border-top: 1px solid var(--line); padding: 10px 12px 12px; background: #fff; }
.asst-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.asst-actions button { border: 0; background: none; color: var(--betha-purple); font-family: var(--font-head); font-weight: 600; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; min-height: 32px; }
.asst-actions button svg { width: 15px; height: 15px; }
.asst-actions button:hover { color: var(--betha-deep-plum); }
.asst-form { display: flex; gap: 8px; align-items: flex-end; }
.asst-form textarea { flex: 1; resize: none; overflow-y: auto; scrollbar-width: none; min-height: 46px; max-height: 120px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; line-height: 1.4; color: var(--text); }
.asst-form textarea:focus { outline: none; border-color: var(--betha-purple); }
.asst-form button { width: 46px; height: 46px; border-radius: 10px; border: 0; background: var(--betha-purple); color: #fff; display: grid; place-items: center; flex: none; transition: background-color .2s var(--ease); }
.asst-form button:hover { background: var(--betha-deep-plum); }
.asst-form button[disabled] { opacity: .5; cursor: not-allowed; }
.asst-form button svg { width: 20px; height: 20px; }
.asst-disclaimer { font-size: 11.5px; color: var(--text-3); margin: 8px 2px 0; line-height: 1.4; }

/* ---------- Legal page ---------- */
.legal { padding: calc(var(--nav-h) + 64px) 0 96px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.legal h2 { font-size: 21px; margin-top: 40px; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-bottom: 1em; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .acronym-words span { opacity: 1; transform: none; }
  .schematic .draw { stroke-dashoffset: 0; }
  .schematic .fade, .callout { opacity: 1; transform: none; }
}
