:root {
  color-scheme: dark;
  --bg: #030303;
  --panel: #0a0a0a;
  --panel-2: #0e0e0e;
  --panel-3: #131313;
  --text: #f4f4f2;
  --muted: #a0a0a0;
  --dim: #737373;
  --line: rgba(255,255,255,.14);
  --line-strong: rgba(255,255,255,.26);
  --soft: rgba(255,255,255,.055);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1240px;
  --shadow: 0 18px 60px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.035);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 68%);
}
body::after {
  content: "";
  position: fixed;
  width: 62vw;
  height: 62vw;
  left: 19vw;
  top: -42vw;
  border: 1px solid rgba(255,255,255,.03);
  border-radius: 50%;
  box-shadow: 0 0 120px rgba(255,255,255,.03);
  pointer-events: none;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img, svg { max-width: 100%; display: block; }
::selection { background: #f4f4f2; color: #060606; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 999;
  background: #fff; color: #000; padding: 10px 14px; border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.section { padding: 92px 0; }
.section-tight { padding: 58px 0; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.eyebrow {
  margin: 0 0 12px;
  color: #d9d9d9;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.kicker { color: var(--muted); font-size: 15px; max-width: 700px; }
.display {
  margin: 0;
  font-size: clamp(48px, 7.8vw, 104px);
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 560;
}
.display .muted-word { color: #666; }
.muted-word { color: #666; }
.h1 {
  margin: 0;
  font-size: clamp(46px, 6.2vw, 86px);
  line-height: .98;
  letter-spacing: -.052em;
  font-weight: 560;
}
.h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 560;
}
.h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.18; letter-spacing: -.025em; font-weight: 570; }
.body-lg { color: #c1c1c1; font-size: clamp(17px, 1.55vw, 20px); max-width: 740px; }
.small { font-size: 13px; color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(3,3,3,.84);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
}
.nav {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.brand-mark {
    width: 34px;
    height: 34px;
    border: .5px solid var(--line-strong);
    border-radius: 10px !important;
    display: grid;
    place-items: center;
    background: #0b0b0b;
    box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-sub { color: #777; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: #a8a8a8; font-size: 14px; padding: 9px 10px; border-radius: 10px; transition: .18s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.055); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 11px;
  background: #101010; color: #eee; font-size: 14px; font-weight: 630; cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn::before { content: "→"; display: inline-block; font-size: 1.08em; font-weight: 400; line-height: 1; transform: translateY(-.02em); }
.btn.btn-primary::before { content: "↗"; }
.btn.copy-btn::before, .btn.menu-btn::before, .btn.btn-iconless::before { content: none; }
.btn:hover { transform: translateY(-1px); border-color: var(--line-strong); background: #151515; }
.btn-primary { background: #f2f2ef; color: #090909; border-color: #f2f2ef; }
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn-quiet { background: transparent; }
.menu-btn { display: none; width: 42px; padding: 0; }

.hero { padding: 110px 0 52px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 20px; align-items: stretch; }
.hero-copy { padding: 36px 0 38px; }
.hero-copy .body-lg { margin: 28px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }
.metric strong { display: block; font-size: 20px; letter-spacing: -.025em; }
.metric span { color: var(--muted); font-size: 12px; }

.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #0c0c0c 0%, #080808 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}
.card-inner { padding: 28px; height: 100%; position: relative; z-index: 1; }
.card-label { color: #b4b4b4; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.card-copy { color: var(--muted); font-size: 14px; max-width: 48ch; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: #eee; }
.card-link::after { content: "↗"; color: #767676; }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.row-2 { grid-row: span 2; }
.min-h-280 { min-height: 280px; }
.min-h-340 { min-height: 340px; }
.min-h-420 { min-height: 420px; }

.visual { margin-top: 22px; min-height: 170px; display: flex; align-items: center; justify-content: center; }
.visual svg { width: 100%; height: auto; }
.visual-absolute { position: absolute; inset: auto 0 0; width: 100%; opacity: .86; }

.code-card { min-height: 100%; display: flex; flex-direction: column; padding: 28px; }
.code-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; }
.code-label { color: #c2c2c2; font-size: 12px; }
.code-block {
  margin: 20px 0 0; padding: 18px 0 20px; min-height: 0; overflow: visible;
  background: transparent; border: 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0;
  font: 11px/1.62 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #d7d7d7; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
}
.code-block .dim { color: #777; }
.code-block .bright { color: #fff; }
.copy-btn { min-height: 34px; padding: 0 10px; font-size: 12px; border-radius: 8px; }

/* Hero Code Card Bento Health Signal Object */
.hero-bento-foot {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  padding: 22px 0 0 !important;
  border-top: 0;
}
.hero-bento-foot > div:first-child { max-width: 34ch; }
.hero-bento-foot .card-copy { margin: 0; }
.hero-health-object {
  position: relative;
  margin-top: 16px;
  margin-left: -12px; margin-right: -12px; margin-bottom: -8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}
.hero-health-object img {
  width: 100%;
  height: auto;
  display: block;
}

.number { font-size: clamp(46px, 5vw, 76px); line-height: .9; letter-spacing: -.055em; font-weight: 540; }
.stat-card .card-inner { display: flex; flex-direction: column; justify-content: space-between; }
.stat-card .number { font-size: clamp(38px, 4.2vw, 60px); overflow-wrap: anywhere; }
.stat-card .stat-foot { color: var(--muted); font-size: 13px; padding-top: 50px; }

.diagram-lines { position: absolute; inset: 0; pointer-events: none; opacity: .42; }
.orbit {
  position: absolute; width: 340px; height: 340px; right: -130px; bottom: -185px;
  border: 1px solid rgba(255,255,255,.11); border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(255,255,255,.012), 0 0 0 96px rgba(255,255,255,.01);
}

.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module-card { min-height: 245px; }
.module-card .card-inner { display: flex; flex-direction: column; justify-content: flex-start; gap: 20px; }
.module-card .card-inner > div:last-child { display: flex; flex-direction: column; gap: 12px; }
.module-card .card-inner > div:last-child > .h3,
.module-card .card-inner > div:last-child > .card-copy,
.module-card .card-inner > div:last-child > .card-link { margin: 0; }
.module-icon { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; }
.module-icon svg { width: 22px; height: 22px; }
.module-icon + .h3 { margin-top: 20px !important; }
.module-icon + .h3 + .card-copy { margin-top: 0; }
.module-card:hover { border-color: rgba(255,255,255,.28); }

.feature-list { margin: 18px 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.075); color: #bcbcbc; font-size: 14px; }
.feature-list li::before { content: "—"; color: #fff; }

.locale-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 24px; }
.locale {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 84px; padding: 14px;
  background: #090909; cursor: pointer; text-align: left; transition: background .18s ease;
}
.locale:hover, .locale.active { background: #151515; }
.locale code { display: block; color: #fff; font-size: 13px; margin-bottom: 6px; }
.locale span { color: #7e7e7e; font-size: 11px; }
.locale-preview { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #060606; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.locale-preview code { color: #d3d3d3; font-size: 12px; }
.locale-preview strong { font-size: 14px; }

.process { counter-reset: steps; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #080808; }
.process-item { counter-increment: steps; min-height: 220px; padding: 28px; position: relative; border-right: 1px solid var(--line); }
.process-item:last-child { border-right: 0; }
.process-item::before { content: "0" counter(steps); display: block; color: #696969; font: 12px ui-monospace, monospace; margin-bottom: 52px; }

.cta-panel { padding: 38px; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.cta-panel .h2 { max-width: 740px; }
.cta-actions { display: flex; gap: 9px; flex-wrap: wrap; }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: transparent; border: 0; padding: 22px 0; display: flex; justify-content: space-between; gap: 24px; color: #e9e9e9; text-align: left; cursor: pointer; font-weight: 540; }
.faq-q span:last-child { color: #777; transition: transform .2s ease; }
.faq-q[aria-expanded="true"] span:last-child { transform: rotate(45deg); }
.faq-a { color: var(--muted); max-width: 840px; padding: 0 46px 22px 0; display: none; }
.faq-q[aria-expanded="true"] + .faq-a { display: block; }

.page-hero { padding: 100px 0 48px; }
.page-hero .body-lg { margin-top: 20px; }
.page-hero .hero-actions { margin-top: 26px; }

.price-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.price-card { min-height: 500px; }
.price-card .card-inner { display: flex; flex-direction: column; }
.price-card.featured { border-color: rgba(255,255,255,.42); }
.price-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.price-head strong { display: block; font-size: 24px; letter-spacing: -.03em; }
.price-head span { color: var(--muted); font-size: 13px; }
.price-option { padding: 20px 0; border-bottom: 1px solid var(--line); }
.price-option .amount { font-size: 30px; font-weight: 560; letter-spacing: -.035em; }
.price-option code { color: #737373; font-size: 11px; }
.price-card .feature-list { margin-bottom: 18px; }
.price-card .btn { margin-top: auto; width: 100%; }
.badge-rect { display: inline-flex; border: 1px solid var(--line-strong); padding: 4px 7px; border-radius: 6px; font-size: 10px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: #cfcfcf; }

.calculator { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-input { padding: 28px; }
.input-label { display: block; font-size: 12px; color: #a9a9a9; margin-bottom: 9px; }
.input, .textarea {
  width: 100%; border: 1px solid var(--line); background: #050505; color: #fff; border-radius: 11px; padding: 13px 14px; outline: 0;
}
.input:focus, .textarea:focus { border-color: rgba(255,255,255,.44); }
.textarea { min-height: 150px; resize: vertical; }
.calc-output { padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.calc-result { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #070707; }
.calc-result strong { display: block; font-size: 26px; letter-spacing: -.04em; }
.calc-result span { color: var(--muted); font-size: 12px; }

.status-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.status-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #090909; }
.status-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-state { font-size: 12px; color: #aaa; }
.status-bar { display: grid; grid-template-columns: repeat(24,1fr); gap: 3px; margin-top: 30px; }
.status-bar i { height: 26px; background: #2b2b2b; border-radius: 2px; }
.status-bar i:nth-child(5n) { background: #444; }
.status-note { color: var(--muted); font-size: 12px; margin-top: 12px; }

.timeline { border-left: 1px solid var(--line); margin-left: 12px; }
.release { position: relative; padding: 0 0 46px 34px; }
.release::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; background: #d6d6d6; border: 2px solid #0a0a0a; border-radius: 2px; }
.release h3 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.03em; }
.release-meta { color: #777; font-size: 12px; margin-bottom: 15px; }
.release p { color: var(--muted); max-width: 850px; }
.release-counts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.release-counts span { border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; font-size: 11px; color: #aaa; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.channel { padding: 18px 0; border-bottom: 1px solid var(--line); }
.channel:first-child { padding-top: 4px; }
.channel strong { display: block; margin-bottom: 5px; }
.channel a, .channel span { color: var(--muted); font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }

.legal { max-width: 900px; }
.legal h2 { margin: 48px 0 12px; font-size: 27px; letter-spacing: -.03em; }
.legal h3 { margin: 28px 0 8px; font-size: 19px; }
.legal p, .legal li { color: #aaa; }
.legal ul { padding-left: 20px; }
.notice { border: 1px solid var(--line); background: #090909; border-radius: 14px; padding: 18px; color: #c5c5c5; font-size: 14px; }

.site-footer { margin-top: 80px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, .7fr); gap: 28px; padding: 48px 0 36px; }
.footer-brand p { color: var(--muted); max-width: 350px; font-size: 14px; }
.social-links { display: flex; align-items: center; gap: 9px; margin-top: 22px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #0b0b0b; color: #a0a0a0; font-size: 15px; transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease; }
.social-links a:hover { transform: translateY(-1px); border-color: var(--line-strong); background: #151515; color: #fff; }
.social-links a:focus-visible { outline: 2px solid #f4f4f2; outline-offset: 3px; }
.footer-col h4 { margin: 0 0 12px; color: #d5d5d5; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.footer-col a { display: block; color: #878787; font-size: 13px; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0 26px; color: #696969; font-size: 12px; display: flex; justify-content: space-between; gap: 20px; }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .nav-links { display: none; position: absolute; left: 20px; right: 20px; top: 78px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #090909; box-shadow: var(--shadow); }
  .nav-links.open { display: grid; }
  .nav-links a { padding: 12px; }
  .nav-actions .btn-quiet { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: repeat(2,1fr); }
  .price-grid { grid-template-columns: repeat(2,1fr); }
  .locale-grid { grid-template-columns: repeat(4,1fr); }
  .span-8, .span-7, .span-6, .span-5, .span-4, .span-3 { grid-column: span 6; }
  .bento > .wide-tablet { grid-column: span 12; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 24px), var(--max)); }
  .section { padding: 66px 0; }
  .hero { padding-top: 72px; }
  .display { font-size: clamp(44px, 14vw, 72px); }
  .h1 { font-size: clamp(42px, 12vw, 66px); }
  .nav-actions .btn-primary { display: none; }
  .module-grid, .price-grid, .process, .calculator, .contact-grid, .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .process { border-radius: 20px; }
  .process-item { border-right: 0; border-bottom: 1px solid var(--line); min-height: 160px; }
  .process-item:last-child { border-bottom: 0; }
  .process-item::before { margin-bottom: 26px; }
  .locale-grid { grid-template-columns: repeat(2,1fr); }
  .locale-preview { grid-template-columns: 1fr; }
  .cta-panel { align-items: flex-start; flex-direction: column; padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .span-8, .span-7, .span-6, .span-5, .span-4, .span-3 { grid-column: span 12; }
  .bento { gap: 12px; }
  .card { border-radius: 20px; }
  .card-inner { padding: 23px; }
  .status-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   Surface Motion System v2 — monochrome bento polish
   Inspired by network instrumentation, oscilloscope traces,
   technical plotting paper and fluid optical caustics.
   ========================================================= */

:root {
  --surface-grid: rgba(255,255,255,.042);
  --surface-grid-strong: rgba(255,255,255,.07);
  --surface-ink: rgba(255,255,255,.11);
  --surface-glow: rgba(255,255,255,.14);
}

/* Every interactive panel gets a precise cursor-local light field. */
.card.surface-ready {
  --mx: 50%;
  --my: 45%;
  --glow-opacity: 0;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --surface-shift-x: 0px;
  --surface-shift-y: 0px;
  isolation: isolate;
  transform-style: preserve-3d;
  transition:
    transform .42s cubic-bezier(.2,.78,.2,1),
    border-color .35s ease,
    box-shadow .45s ease,
    background-color .35s ease;
}

.card.surface-ready::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: var(--glow-opacity);
  background:
    radial-gradient(260px circle at var(--mx) var(--my), rgba(255,255,255,.17), rgba(255,255,255,.062) 31%, rgba(255,255,255,.018) 51%, transparent 71%),
    radial-gradient(520px circle at var(--mx) var(--my), rgba(255,255,255,.036), transparent 67%);
  filter: saturate(0) contrast(1.05);
  transition: opacity .36s ease;
  will-change: opacity, background;
}

.card.surface-ready::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: .62;
  transform: translate3d(var(--surface-shift-x), var(--surface-shift-y), 0) scale(1.03);
  transition: opacity .4s ease, transform .55s cubic-bezier(.2,.8,.2,1);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.82) 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.82) 58%, transparent 100%);
}

.card.surface-ready:hover {
  will-change: transform;
  border-color: rgba(255,255,255,.26);
  box-shadow:
    0 22px 70px rgba(0,0,0,.58),
    0 0 0 1px rgba(255,255,255,.025),
    inset 0 1px 0 rgba(255,255,255,.075),
    inset 0 0 44px rgba(255,255,255,.018);
}

@media (hover: hover) and (pointer: fine) {
  .card.surface-ready:hover {
    transform: perspective(1100px) translateY(-2px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  }
}

/* Surface 01: architectural grid — large, quiet, exact. */
.card[data-surface="grid"]::after {
  background-image:
    linear-gradient(var(--surface-grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface-grid-strong) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px, 18px 18px, 18px 18px;
  background-position: -1px -1px;
}

/* Surface 02: sparse plotting dots + fine axis lines. */
.card[data-surface="plot"]::after {
  background-image:
    radial-gradient(circle, rgba(255,255,255,.15) 0 1px, transparent 1.15px),
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 34px 34px, 68px 68px, 68px 68px;
  background-position: 9px 7px, -1px -1px, -1px -1px;
  opacity: .36;
}

/* Surface 03: radial scan / orbit instrumentation. */
.card[data-surface="orbit"]::after {
  background-image:
    radial-gradient(circle at 78% 68%, transparent 0 76px, rgba(255,255,255,.09) 77px, transparent 78px),
    radial-gradient(circle at 78% 68%, transparent 0 118px, rgba(255,255,255,.055) 119px, transparent 120px),
    radial-gradient(circle at 78% 68%, transparent 0 165px, rgba(255,255,255,.034) 166px, transparent 167px),
    linear-gradient(90deg, transparent 77.8%, rgba(255,255,255,.045) 78%, transparent 78.2%),
    linear-gradient(transparent 67.8%, rgba(255,255,255,.045) 68%, transparent 68.2%);
  opacity: .67;
  -webkit-mask-image: radial-gradient(circle at 78% 68%, #000 0 205px, transparent 76%);
  mask-image: radial-gradient(circle at 78% 68%, #000 0 205px, transparent 76%);
}

/* Surface 04: circuit lanes / packet routing. */
.card[data-surface="lanes"]::after {
  background-image:
    linear-gradient(90deg, transparent 0 8%, rgba(255,255,255,.07) 8% 8.2%, transparent 8.2% 35%, rgba(255,255,255,.035) 35% 35.2%, transparent 35.2% 100%),
    linear-gradient(0deg, transparent 0 20%, rgba(255,255,255,.055) 20% 20.25%, transparent 20.25% 62%, rgba(255,255,255,.035) 62% 62.25%, transparent 62.25% 100%),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255,255,255,.02) 31px 32px);
  background-size: 280px 100%, 100% 210px, 100% 100%;
  opacity: .56;
}

/* Surface 05: topographic circles with a subtle crosshair. */
.card[data-surface="rings"]::after {
  background-image:
    repeating-radial-gradient(circle at 20% 82%, transparent 0 30px, rgba(255,255,255,.047) 31px, transparent 32px 58px),
    linear-gradient(90deg, transparent 19.85%, rgba(255,255,255,.04) 20%, transparent 20.15%),
    linear-gradient(transparent 81.85%, rgba(255,255,255,.04) 82%, transparent 82.15%);
  opacity: .56;
  -webkit-mask-image: radial-gradient(circle at 20% 82%, #000 0, transparent 76%);
  mask-image: radial-gradient(circle at 20% 82%, #000 0, transparent 76%);
}

/* Inner components inherit a restrained technical sheen. */
.module-icon,
.calc-result,
.status-card,
.locale-preview,
.notice {
  position: relative;
  overflow: hidden;
}

.module-icon::after,
.calc-result::after,
.status-card::after,
.locale-preview::after,
.notice::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .42;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 72%);
  mask-image: linear-gradient(135deg, #000, transparent 72%);
}

/* Code windows become precision terminals, not generic boxes. */
.code-block {
  background-color: transparent;
  background-image: none;
}

/* Small SVG diagrams get a slow scanline only while a card is engaged. */
.card .visual img,
.card .card-inner > img {
  transition: opacity .35s ease, transform .65s cubic-bezier(.2,.75,.2,1), filter .45s ease;
}
.card:hover .visual img,
.card:hover .card-inner > img {
  opacity: .98;
  transform: translateY(-2px) scale(1.012);
  filter: drop-shadow(0 14px 28px rgba(255,255,255,.035));
}

/* A network field can be applied to selected sections by JS.
   The grid drifts horizontally, while independent packet streaks
   pass on separate lanes to suggest traffic moving across an API fabric. */
.network-field {
  --network-major: 96px;
  --network-minor: 24px;
  --grid-speed: 22s;
  --packet-speed: 8.5s;
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.network-field > .shell {
  position: relative;
  z-index: 2;
}
.network-field::before,
.network-field::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.network-field::before {
  background-image:
    linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: var(--network-major) var(--network-major), var(--network-major) var(--network-major), var(--network-minor) var(--network-minor), var(--network-minor) var(--network-minor);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
  opacity: .7;
  animation: networkGridDrift var(--grid-speed) linear infinite;
  animation-play-state: paused;
}
.network-field::after {
  inset: 8% -35% 8% -35%;
  background-image:
    linear-gradient(90deg, transparent 0 8%, rgba(255,255,255,.025) 8% 18%, rgba(255,255,255,.7) 19%, rgba(255,255,255,.12) 19.6%, transparent 24% 100%),
    linear-gradient(90deg, transparent 0 45%, rgba(255,255,255,.02) 45% 53%, rgba(255,255,255,.42) 53.5%, transparent 59% 100%),
    linear-gradient(90deg, transparent 0 66%, rgba(255,255,255,.018) 66% 72%, rgba(255,255,255,.3) 72.4%, transparent 77% 100%);
  background-size: 520px 1px, 710px 1px, 930px 1px;
  background-repeat: repeat-x;
  background-position: 0 28%, -180px 54%, 220px 76%;
  opacity: .38;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.23));
  animation: packetLanes var(--packet-speed) linear infinite;
  animation-play-state: paused;
}

/* Hero has a quieter large-scale technical grid. */
.network-field.network-live::before,
.network-field.network-live::after {
  animation-play-state: running;
}

.hero.network-field,
.page-hero.network-field {
  --network-major: 112px;
  --network-minor: 28px;
  --grid-speed: 28s;
  --packet-speed: 11s;
  --hero-x: 50%;
  --hero-y: 42%;
}
.hero.network-field::before,
.page-hero.network-field::before {
  opacity: .52;
}
.hero.network-field::after,
.page-hero.network-field::after {
  opacity: .22;
}

.hero-hover-light {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(440px circle at var(--hero-x) var(--hero-y), rgba(255,255,255,.1), rgba(255,255,255,.035) 35%, transparent 74%);
  transition: opacity .35s ease;
}
.hero-hover-light::before,
.hero-hover-light::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: .22;
  background: linear-gradient(transparent, rgba(255,255,255,.7), transparent);
}
.hero-hover-light::before { top: 0; bottom: 0; left: var(--hero-x); width: 1px; transform: translateX(-.5px); }
.hero-hover-light::after { left: 0; right: 0; top: var(--hero-y); height: 1px; transform: translateY(-.5px); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); }
.hero-hover-active:hover .hero-hover-light { opacity: 1; }

/* Stats read like live instrumentation without adding badges or pills. */
.stat-card .number {
  text-shadow: 0 0 32px rgba(255,255,255,.035);
}
.stat-card:hover .number {
  text-shadow: 0 0 34px rgba(255,255,255,.085);
}

/* Tiny packet marker on stat cards; one marker only, not decorative confetti. */
.stat-card::marker { content: ""; }
.stat-card .card-inner::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 1px;
  right: 22px;
  top: 28px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  opacity: .3;
  transform: translateX(-40px);
  animation: statPacket 5.8s ease-in-out infinite;
  pointer-events: none;
}

/* Non-card instrument surfaces get the same cursor-neutral vocabulary. */
.process,
.faq,
.locale-grid,
.timeline {
  position: relative;
}
.process::after,
.locale-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 74%);
  mask-image: linear-gradient(to bottom, #000, transparent 74%);
}

@keyframes networkGridDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: var(--network-major) 0, var(--network-major) 0, var(--network-minor) 0, var(--network-minor) 0; }
}

@keyframes packetLanes {
  from { background-position: -520px 28%, -710px 54%, -930px 76%; }
  to   { background-position: 520px 28%, 710px 54%, 930px 76%; }
}

@keyframes statPacket {
  0%, 12% { opacity: 0; transform: translateX(-46px); }
  42% { opacity: .34; }
  68%, 100% { opacity: 0; transform: translateX(28px); }
}

/* Keep visual language crisp on touch screens and reduce GPU work. */
@media (max-width: 720px) {
  .network-field::before { opacity: .46; }
  .network-field::after { opacity: .2; }
  .card.surface-ready::after { opacity: .44; }
  .card.surface-ready::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .network-field::before,
  .network-field::after,
  .stat-card .card-inner::after {
    animation: none !important;
  }
  .card.surface-ready {
    transform: none !important;
  }
  .card.surface-ready::before {
    display: none;
  }
}

/* =========================================================
   Language Switcher (i18n.js)
   ========================================================= */
.lang-switcher{position:relative}
.lang-switcher-toggle{
  display:inline-flex;align-items:center;gap:8px;
  min-height:42px;padding:0 14px;border:1px solid var(--line);
  border-radius:11px;background:#101010;color:#eee;font-size:13px;
  font-weight:600;cursor:pointer;transition:border-color .18s ease,background .18s ease;
}
.lang-switcher-toggle:hover{border-color:var(--line-strong);background:#151515}
.lang-switcher-caret{font-size:10px;opacity:.7}
.lang-switcher-list{
  position:absolute;top:auto;bottom:calc(100% + 8px);right:0;z-index:1000;
  min-width:180px;max-height:320px;overflow-y:auto;
  background:#0a0a0a;border:1px solid var(--line);border-radius:16px;
  box-shadow:0 -18px 60px rgba(0,0,0,.48);padding:6px;margin:0;
  list-style:none;display:none;
}
.lang-switcher.is-open .lang-switcher-list{display:block}
.lang-switcher-option{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:9px 12px;border-radius:10px;color:#a8a8a8;font-size:13px;
  text-decoration:none;transition:background .15s ease,color .15s ease;
}
.lang-switcher-option:hover{background:rgba(255,255,255,.055);color:#fff}
.lang-switcher-option.is-active{background:#161616;color:#fff}
.lang-switcher-code{font-size:10px;letter-spacing:.08em;color:#737373}

/* =========================================================
   Visitor Chat Widget (chat-widget.js)
   Dark monochrome surface matching the platform system.
   ========================================================= */
#cwHost{position:relative;z-index:99998}
#cwFab{
  position:fixed;bottom:24px;right:24px;z-index:99998;
  width:56px;height:56px;border-radius:50%;border:none;cursor:pointer;
  background:#f2f2ef;color:#090909;font-size:20px;
  box-shadow:0 12px 32px rgba(0,0,0,.45);
  transition:transform .2s cubic-bezier(.34,1.56,.64,1),box-shadow .2s ease;
  display:flex;align-items:center;justify-content:center;
}
#cwFab:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(0,0,0,.55)}
.cw-fab-close{display:none}
#cwHost.is-open .cw-fab-open{display:none}
#cwHost.is-open .cw-fab-close{display:inline}
#cwFabBadge{
  position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 5px;
  border-radius:999px;background:#090909;color:#f4f4f2;border:1px solid #f2f2ef;
  font-size:10px;font-weight:800;display:none;align-items:center;justify-content:center;
}
#cwFabBadge.has-unread{display:flex}

#cwPanel{
  position:fixed;bottom:92px;right:24px;z-index:99998;
  width:370px;max-width:calc(100vw - 32px);height:min(560px,calc(100vh - 130px));
  display:none;flex-direction:column;overflow:hidden;
  background:#0a0a0a;border:1px solid rgba(255,255,255,.14);border-radius:24px;
  box-shadow:0 24px 70px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.04);
  color:#f4f4f2;
  font-family:"Helvetica Neue",Helvetica,Arial,ui-sans-serif,system-ui,-apple-system,sans-serif;
}
#cwHost.is-open #cwPanel{display:flex}

.cw-header{
  display:flex;align-items:center;gap:12px;padding:16px 18px;flex-shrink:0;
  border-bottom:1px solid rgba(255,255,255,.08);background:rgba(3,3,3,.85);
}
.cw-header-avatar{
  width:38px;height:38px;border-radius:11px;flex-shrink:0;
  background:#0b0b0b;border:1px solid rgba(255,255,255,.26);
  display:flex;align-items:center;justify-content:center;font-size:15px;
}
.cw-header-info{min-width:0}
.cw-header-title{font-size:14px;font-weight:700;letter-spacing:-.01em;line-height:1.25}
.cw-header-sub{font-size:11px;color:#a0a0a0}
.cw-header-status{display:flex;align-items:center;gap:6px;font-size:10.5px;color:#a0a0a0;margin-top:2px}
.cw-header-status-dot{width:7px;height:7px;border-radius:50%;background:#d6d6d6;flex-shrink:0}

#cwIdentityForm{padding:22px 20px;overflow-y:auto}
#cwIdentityForm h3{margin:0 0 6px;font-size:17px;letter-spacing:-.02em}
#cwIdentityForm p{margin:0 0 16px;font-size:12.5px;color:#a0a0a0;line-height:1.55}
.cw-field{margin-bottom:12px}
.cw-field label{display:block;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.12em;color:#a0a0a0;margin-bottom:6px}
.cw-field input{
  width:100%;box-sizing:border-box;padding:11px 13px;font-size:13px;
  border-radius:11px;border:1px solid rgba(255,255,255,.14);
  background:#0e0e0e;color:#f4f4f2;outline:none;font-family:inherit;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.cw-field input:focus{border-color:rgba(255,255,255,.44);box-shadow:0 0 0 3px rgba(255,255,255,.06)}
.cw-start-btn{
  width:100%;margin-top:6px;padding:13px;border:none;border-radius:11px;cursor:pointer;
  background:#f2f2ef;color:#090909;font-size:12px;font-weight:800;
  text-transform:uppercase;letter-spacing:.14em;
  transition:background .18s ease,transform .18s ease;
}
.cw-start-btn:hover{background:#fff;transform:translateY(-1px)}

#cwMessages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px}
.cw-msg-row{display:flex;gap:8px;align-items:flex-end;max-width:100%}
.cw-msg-row.mine{flex-direction:row-reverse}
.cw-msg-avatar{
  width:26px;height:26px;border-radius:50%;flex-shrink:0;
  background:#161616;border:1px solid rgba(255,255,255,.26);
  display:flex;align-items:center;justify-content:center;
  font-size:10px;font-weight:800;color:#f4f4f2;
}
.cw-msg-row.mine .cw-msg-avatar{background:#f2f2ef;color:#090909;border-color:#f2f2ef}
.cw-msg-bubble{
  max-width:75%;padding:9px 13px;border-radius:14px;
  font-size:13px;line-height:1.5;word-break:break-word;
}
.cw-msg-row.theirs .cw-msg-bubble{background:#131313;border:1px solid rgba(255,255,255,.1);border-bottom-left-radius:4px;color:#e9e9e9}
.cw-msg-row.mine .cw-msg-bubble{background:#f2f2ef;color:#090909;border-bottom-right-radius:4px}
.cw-msg-time{display:block;font-size:9px;opacity:.55;margin-top:4px}
.cw-msg-tick{font-size:9px;opacity:.55;margin-left:4px}

.cw-typing-dots{display:inline-flex;gap:4px;padding:12px 14px;background:#131313;border:1px solid rgba(255,255,255,.1);border-radius:14px;border-bottom-left-radius:4px}
.cw-typing-dots span{width:6px;height:6px;border-radius:50%;background:#737373;animation:cwTyping 1.2s infinite}
.cw-typing-dots span:nth-child(2){animation-delay:.15s}
.cw-typing-dots span:nth-child(3){animation-delay:.3s}
@keyframes cwTyping{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-4px);opacity:1}}

#cwClosedNotice{
  display:none;padding:12px 16px;font-size:11.5px;color:#a0a0a0;flex-shrink:0;
  background:rgba(255,255,255,.04);border-top:1px solid rgba(255,255,255,.14);
}
#cwClosedNotice.is-visible{display:block}

.cw-composer{
  display:flex;align-items:flex-end;gap:8px;padding:12px 14px;flex-shrink:0;
  border-top:1px solid rgba(255,255,255,.08);background:rgba(3,3,3,.85);
}
.cw-attachment-btn{
  width:38px;height:38px;border-radius:10px;border:1px solid rgba(255,255,255,.14);
  background:transparent;color:#a0a0a0;cursor:pointer;font-size:13px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;outline:none;
  transition:border-color .18s ease,color .18s ease;
}
.cw-attachment-btn:hover{border-color:rgba(255,255,255,.3);color:#fff}
#cwInput{
  flex:1;resize:none;border:1px solid rgba(255,255,255,.14);border-radius:11px;
  padding:10px 12px;font-size:13px;line-height:1.45;max-height:110px;min-height:40px;
  background:#0e0e0e;color:#f4f4f2;outline:none;font-family:inherit;box-sizing:border-box;
  transition:border-color .2s ease,box-shadow .2s ease;
}
#cwInput:focus{border-color:rgba(255,255,255,.44);box-shadow:0 0 0 3px rgba(255,255,255,.06)}
#cwSendBtn{
  width:40px;height:40px;border-radius:11px;border:none;cursor:pointer;flex-shrink:0;
  background:#f2f2ef;color:#090909;font-size:14px;
  display:flex;align-items:center;justify-content:center;
  transition:background .18s ease,transform .15s ease;
}
#cwSendBtn:hover{background:#fff;transform:translateY(-1px)}

.cw-powered{
  padding:8px 14px;font-size:9.5px;text-align:center;color:#737373;flex-shrink:0;
  border-top:1px solid rgba(255,255,255,.06);
}
.cw-powered a{color:#a0a0a0;text-decoration:none}
.cw-powered a:hover{color:#fff}

.cw-attachment-card{
  display:flex;align-items:center;gap:10px;padding:10px 12px;max-width:240px;
  border:1px solid rgba(255,255,255,.14);border-radius:12px;background:#0e0e0e;font-size:11px;
}
.cw-attachment-icon{font-size:16px;color:#a0a0a0}
.cw-attachment-info{min-width:0;flex:1}
.cw-attachment-name{font-weight:700;color:#f4f4f2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cw-attachment-download{color:#a0a0a0;text-decoration:none;font-size:12px}
.cw-attachment-download:hover{color:#fff}
.cw-attachment-image-preview,.cw-attachment-video-preview{max-width:200px;border-radius:10px;display:block}

.cw-upload-progress-card{padding:10px 14px;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:#0e0e0e;font-size:11px;width:220px;align-self:flex-end}
.cw-progress-bar-container{width:100%;height:5px;border-radius:3px;background:#050505;border:1px solid rgba(255,255,255,.1);overflow:hidden;margin-top:6px}
.cw-progress-bar-fill{height:100%;width:0%;background:#f2f2ef;border-radius:3px;transition:width .1s linear}
.cw-progress-percent{font-size:9px;color:#737373;margin-top:3px;display:block}

@media (max-width:480px){
  #cwPanel{right:8px;left:8px;width:auto;bottom:84px;height:min(520px,calc(100vh - 110px))}
  #cwFab{bottom:16px;right:16px}
}

/* ============ Footer extras: made-with · cookie pill · lang switcher ============ */
.footer-extras{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;}
.made-with{display:inline-flex;align-items:center;gap:.45rem;font-size:.68rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#a0a0a0;white-space:nowrap}
.made-with .fa-heart{color:#f4f4f2;font-size:.72rem}

.pill-btn,.pill-link,.footer-extras .lang-switcher-toggle{
  display:inline-flex;align-items:center;gap:.4rem;
  border-radius:999px;
  padding:.5rem 1.05rem;
  font-size:.78rem;font-weight:600;letter-spacing:.02em;line-height:1;
  cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}
.pill-btn{background:#f4f4f2;color:#030303;border:1px solid #f4f4f2}
.pill-btn:hover{background:#d8d8d6;border-color:#d8d8d6}
.pill-btn.pill-ghost{background:transparent;color:#f4f4f2;border:1px solid rgba(244,244,242,.32)}
.pill-btn.pill-ghost:hover{border-color:#f4f4f2;background:rgba(244,244,242,.08)}
.pill-link{background:none;border:none;color:#a0a0a0;text-decoration:underline;text-underline-offset:3px;padding:.5rem .35rem}
.pill-link:hover{color:#f4f4f2}
.footer-extras [data-lang-switcher]{display:inline-flex}
.footer-extras .lang-switcher-toggle{background:transparent;color:#f4f4f2;border:1px solid rgba(244,244,242,.32)}
.footer-extras .lang-switcher-toggle:hover{border-color:#f4f4f2;background:rgba(244,244,242,.08)}

/* ============ Cookie consent bar ============ */
.cookie-bar{position:fixed;left:0;right:0;bottom:0;z-index:1200;
  background:#0a0a0a;border-top:1px solid rgba(244,244,242,.16);
  box-shadow:0 -8px 30px rgba(0,0,0,.55)}
.cookie-bar[hidden]{display:none}
.cookie-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  max-width:1160px;margin:0 auto;padding:.85rem 1.25rem}
.cookie-bar-text{margin:0;font-size:.82rem;color:#c9c9c7;max-width:56ch}
.cookie-bar-actions{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}

/* ============ Cookie settings modal ============ */
.cookie-modal{position:fixed;inset:0;z-index:1300;display:flex;align-items:center;justify-content:center;
  background:rgba(3,3,3,.78);backdrop-filter:blur(3px);padding:1.25rem}
.cookie-modal[hidden]{display:none}
.cookie-modal-card{width:min(540px,100%);max-height:88vh;overflow:auto;
  background:#0a0a0a;border:1px solid rgba(244,244,242,.18);border-radius:16px;
  padding:1.5rem 1.5rem 1.25rem;box-shadow:0 24px 60px rgba(0,0,0,.6)}
.cookie-modal-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.5rem}
.cookie-modal-head h3{margin:0;font-size:1.05rem;letter-spacing:.01em;color:#f4f4f2}
.cookie-close{background:none;border:1px solid transparent;color:#a0a0a0;font-size:1.35rem;line-height:1;
  width:2rem;height:2rem;border-radius:999px;cursor:pointer}
.cookie-close:hover{color:#f4f4f2;border-color:rgba(244,244,242,.28)}
.cookie-modal-intro{font-size:.83rem;color:#a0a0a0;margin:0 0 1rem;line-height:1.55}
.cookie-cat{padding:.9rem 0;border-top:1px solid rgba(244,244,242,.1)}
.cookie-cat-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.cookie-cat strong{font-size:.86rem;color:#f4f4f2}
.cookie-cat p{margin:.3rem 0 0;font-size:.76rem;color:#8b8b89;line-height:1.5}
.cookie-always{font-size:.62rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:#a0a0a0;border:1px solid rgba(244,244,242,.22);border-radius:999px;padding:.28rem .6rem;white-space:nowrap}
.cookie-cat{display:flex;align-items:flex-start;gap:.85rem}
.cookie-cat-body{flex:1}
.cookie-cat:first-of-type .cookie-cat-row{width:100%;display:flex;align-items:center;justify-content:space-between}

/* Toggle switch */
.switch{position:relative;display:inline-block;width:42px;height:23px;flex-shrink:0;margin-top:.1rem}
.switch input{opacity:0;width:0;height:0}
.switch .slider{position:absolute;inset:0;background:rgba(244,244,242,.16);border-radius:999px;
  transition:background .15s ease;cursor:pointer}
.switch .slider::before{content:"";position:absolute;left:3px;top:3px;width:17px;height:17px;border-radius:50%;
  background:#f4f4f2;transition:transform .15s ease}
.switch input:checked+.slider{background:#f4f4f2}
.switch input:checked+.slider::before{transform:translateX(19px);background:#030303}

.cookie-modal-foot{display:flex;justify-content:flex-end;gap:.6rem;flex-wrap:wrap;margin-top:1.15rem}

@media (max-width:640px){
  .footer-bottom{flex-direction:column;align-items:flex-start}
  .cookie-bar{flex-direction:column;align-items:flex-start}
}

/* ============ Icon-only mobile menu button ============ */
.menu-btn-icon{width:2.4rem;height:2.4rem;justify-content:center;align-items:center;padding:0;border-radius:999px;font-size:.95rem}
.menu-btn-icon .fa-bars{color:#f4f4f2}
@media(min-width:861px){.menu-btn-icon{display:none}}

/* Fix chat FAB icon rendering */
#cwFab .cw-fab-open,#cwFab .cw-fab-close{display:inline-flex;align-items:center;justify-content:center;line-height:1}
#cwFab .cw-fab-close{display:none}
#cwHost.is-open .cw-fab-open{display:none}
#cwHost.is-open .cw-fab-close{display:inline-flex}

/* Lang switcher in footer: flip caret to point up since popover opens upward */
.footer-extras .lang-switcher-caret{transform:rotate(180deg)}

/* ============ Contact bento visual (monochrome, animated) ============ */
.contact-visual{margin-top:28px;padding:24px 20px;border:1px solid rgba(244,244,242,.12);border-radius:16px;background:#0a0a0a;overflow:hidden;position:relative}
.cv-grid{position:relative;width:100%;max-width:280px;height:120px;margin:0 auto 18px}
.cv-node{position:absolute;width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:16px;color:#f4f4f2;background:#111;border:1px solid rgba(244,244,242,.2);z-index:2;transition:border-color .3s ease}
.cv-node:hover{border-color:rgba(244,244,242,.5)}
.cv-n1{left:0;top:38px}
.cv-n2{left:50%;transform:translateX(-50%);top:0}
.cv-n3{right:0;top:38px}
.cv-n1 .fa-headset,.cv-n3 .fa-globe{color:#a0a0a0}
.cv-n2 .fa-paper-plane{color:#f4f4f2}
.cv-lines{position:absolute;inset:0;width:100%;height:100%;color:rgba(244,244,242,.14);z-index:1}
.cv-lines line{stroke-dasharray:200;stroke-dashoffset:200;animation:cvLineDraw 2.4s ease forwards}
.cv-lines line:nth-child(2){animation-delay:.3s}
.cv-lines line:nth-child(3){animation-delay:.6s}
.cv-lines line:nth-child(4){animation-delay:.9s}
.cv-lines line:nth-child(5){animation-delay:1.2s;animation-duration:.01s;animation-fill-mode:forwards;stroke-dashoffset:0}
@keyframes cvLineDraw{to{stroke-dashoffset:0}}
.cv-pulse{position:absolute;left:50%;top:22px;width:8px;height:8px;border-radius:50%;background:rgba(244,244,242,.35);transform:translateX(-50%);animation:cvPulse 2.8s ease-in-out infinite;z-index:3}
@keyframes cvPulse{0%,100%{box-shadow:0 0 0 0 rgba(244,244,242,.25)}50%{box-shadow:0 0 0 14px rgba(244,244,242,0)}}
.cv-links{display:flex;flex-direction:column;gap:8px}
.cv-links a{display:flex;align-items:center;gap:10px;padding:9px 14px;border-radius:10px;border:1px solid rgba(244,244,242,.1);background:#0e0e0e;color:#c9c9c7;text-decoration:none;font-size:.82rem;font-weight:500;transition:border-color .15s ease,color .15s ease}
.cv-links a i{width:18px;text-align:center;color:#a0a0a0;font-size:.85rem;flex-shrink:0}
.cv-links a:hover{border-color:rgba(244,244,242,.32);color:#fff}
.cv-links a:hover i{color:#f4f4f2}


@media (min-width: 978px){
  .contact-visual {
    margin-top: 128px;
}
}
/* ============ Build9 actuary bento visual ============ */
.card-inner{position:relative}
.actuary-viz{position:absolute;right:-18px;bottom:0;width:min(360px,52%);pointer-events:none;opacity:.86}
.actuary-viz img{width:100%;height:auto;display:block;transition:opacity .35s ease}
.card:hover .actuary-viz img{opacity:1}

@media (max-width:720px){
  .code-card { padding: 23px; }
  .code-block { font-size: 11px; line-height: 1.58; padding: 16px 0 18px; }
  .hero-bento-foot { padding-top: 18px !important; }
  .hero-health-object { margin-left: -8px; margin-right: -8px; }
  article:has(.actuary-viz) .card-inner{padding-bottom:150px}
  article:has(.actuary-viz) .card-copy{max-width:100%}
  .actuary-viz{right:-22px;bottom:-4px;width:min(390px,92%);opacity:.72}
}
