/* ============================================================
   FLOXGEN — Shared Design System  (LIGHT / airy edition)
   Crisp light surfaces · brand teal #07C3C6 + bright green
   Heavy dark reserved for specific accent blocks (.on-dark)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Light surfaces */
  --bg:        #EEF3F4;   /* page — soft cool off-white */
  --bg-1:      #FFFFFF;   /* cards / panels */
  --bg-2:      #F2F8F8;   /* subtle inset (table head, fields) */
  --surface:   #FFFFFF;
  --surface-2: #F4FAFA;
  --line:      rgba(8, 64, 70, 0.12);
  --line-2:    rgba(8, 64, 70, 0.22);

  /* Deep ink — used only inside .on-dark blocks */
  --ink:       #06222A;
  --ink-2:     #0B303A;

  /* Accents — signature brand teal + bright green */
  --neon:       #07C3C6;   /* brand teal (fills, glow) */
  --accent-ink: #05868A;   /* deeper teal for text/icons on light (contrast) */
  --neon-2:     #16D6BE;   /* cyan-green */
  --neon-3:     #12C98A;   /* bright green */
  --green:      #10C988;
  --azure:      #2F7BF6;   /* sharp corporate blue */
  --neon-soft:  rgba(7, 195, 198, 0.10);
  --neon-soft2: rgba(16, 201, 136, 0.12);
  --azure-soft: rgba(47, 123, 246, 0.12);
  --glow:       0 0 24px rgba(7, 195, 198, 0.40);
  --glow-cyan:  0 0 26px rgba(22, 214, 190, 0.42);

  /* Text (on light) */
  --tx:     #0B2A30;
  --tx-mid: #4B6166;
  --tx-dim: #82979C;

  /* Type — Figtree (round geometric) for headings, Jakarta for body */
  --display: 'Figtree', system-ui, sans-serif;
  --body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* Rhythm */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --maxw: 1240px;

  /* Shadows — soft, premium, airy */
  --shadow-sm: 0 2px 10px rgba(11, 42, 48, 0.05);
  --shadow:    0 10px 34px rgba(11, 42, 48, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 42, 48, 0.12);
}

/* ---- Contextual dark blocks: flip tokens for nested components ---- */
.on-dark {
  --bg-1:      rgba(255,255,255,0.05);
  --bg-2:      rgba(255,255,255,0.04);
  --surface:   rgba(255,255,255,0.06);
  --surface-2: rgba(255,255,255,0.10);
  --line:      rgba(125, 235, 240, 0.16);
  --line-2:    rgba(125, 235, 240, 0.34);
  --accent-ink: #45E6D9;
  --tx:     #EAF8F7;
  --tx-mid: #AAC8CB;
  --tx-dim: #7CA0A4;
  --shadow:    0 18px 48px rgba(0,0,0,0.34);
  --shadow-lg: 0 28px 70px rgba(0,0,0,0.42);
  background: var(--ink);
  color: var(--tx);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* offset anchored sections so the fixed 76px navbar doesn't cover them */
section[id], [id].section-pad { scroll-margin-top: 100px; }

body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background field — faint teal/green wash + subtle horizontal line motif */
.bg-field {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 620px at 86% -10%, rgba(7, 195, 198, 0.10), transparent 60%),
    radial-gradient(1000px 720px at 4% 2%, rgba(16, 201, 136, 0.08), transparent 58%);
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section { position: relative; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-ink); display: inline-flex; align-items: center; gap: 10px; font-weight: 500;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent-ink); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.03; letter-spacing: -0.025em; color: var(--tx); }
.h-xl { font-size: clamp(42px, 6vw, 86px); font-weight: 800; letter-spacing: -0.03em; }
.h-lg { font-size: clamp(31px, 3.9vw, 54px); font-weight: 800; letter-spacing: -0.03em; }
.h-md { font-size: clamp(23px, 2.5vw, 33px); font-weight: 700; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--tx-mid); max-width: 56ch; }
.muted { color: var(--tx-mid); }
.dim { color: var(--tx-dim); }
.neon-tx { color: var(--accent-ink); }

/* Gradient text accent — teal → blue → purple (reused widely) */
.text-grad {
  background: linear-gradient(95deg, #1FC8C0 0%, #33A8C4 30%, #4C82C3 58%, #6A6CBC 84%, #7B61C9 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.on-dark .text-grad {
  background: linear-gradient(95deg, #45E6D9 0%, #5FD2E6 42%, #8FB6FF 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--display); font-weight: 600; font-size: 15.5px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; text-decoration: none; white-space: nowrap;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon-2) 55%, var(--neon-3) 100%);
  color: #042022; box-shadow: 0 6px 22px rgba(7, 195, 198, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(7, 195, 198, 0.42); }
.btn-ghost {
  background: var(--surface); color: var(--tx); border-color: var(--line-2); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--neon); color: var(--accent-ink); transform: translateY(-2px); }
.on-dark .btn-ghost:hover { color: var(--accent-ink); }
.btn-arrow { transition: transform .25s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(11, 42, 48, 0.05);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-size: 14.5px; color: var(--tx-mid); text-decoration: none; font-weight: 500;
  padding: 9px 13px; border-radius: 9px; transition: color .2s, background .2s; white-space: nowrap;
}
.nav-link:hover { color: var(--tx); background: var(--bg-2); }
.nav-link.active { color: var(--accent-ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; background: none; border: 0; color: var(--tx); cursor: pointer; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.logo-stack { display: inline-flex; flex-direction: column; align-items: stretch; gap: 4px; }
.logo-img { height: 30px; width: auto; display: block; }
.logo-img.lg { height: 38px; }
.logo-sub {
  font-family: var(--mono); font-weight: 500; text-transform: uppercase;
  font-size: 9px; letter-spacing: 0.4em; color: var(--accent-ink);
  white-space: nowrap; line-height: 1; opacity: 0.92;
  width: 100%; text-align: center; text-indent: 0.4em;   /* compensate trailing tracking → optically centered */
}
.logo-stack.lg .logo-sub { font-size: 10.5px; letter-spacing: 0.54em; text-indent: 0.54em; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, border-color .3s, box-shadow .3s, background .3s;
}
.card:hover {
  transform: translateY(-4px); border-color: var(--line-2);
  box-shadow: var(--shadow-lg);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px 180px at var(--mx, 50%) 0%, var(--neon-soft2), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.card:hover::after { opacity: 1; }

/* chips / pills */
.chip {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--accent-ink); background: var(--neon-soft); white-space: nowrap;
}

/* divider label */
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tx-dim); }

/* section spacing */
.section-pad { padding: 104px 0; }
.center { text-align: center; }
.stack-sm > * + * { margin-top: 14px; }

/* footer */
.footer { padding: 72px 0 40px; margin-top: 0; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Page enter / leave transitions ---------- */
/* Opacity-only — must NOT animate `transform` on <body>, or a transformed body
   becomes the containing block for the fixed-position modals (demo + pipeline
   sheet) and they anchor to the full document instead of the viewport. */
.page-fade { animation: pageIn .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body.leaving { opacity: 0; transition: opacity .32s ease; }

/* ---------- Detail page shared components ---------- */
.detail-main { padding-top: 76px; }
.detail-hero { padding: 76px 0 40px; }
.back-link {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono);
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx-dim);
  text-decoration: none; transition: color .2s, gap .2s; margin-bottom: 26px;
}
.back-link:hover { color: var(--accent-ink); gap: 13px; }
.detail-lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--tx-mid); max-width: 62ch; margin-top: 22px; line-height: 1.55; }
.doc-grid { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.doc-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.doc-side a { font-size: 14px; color: var(--tx-mid); text-decoration: none; padding: 9px 13px; border-radius: 9px; border-left: 2px solid transparent; transition: .2s; }
.doc-side a:hover, .doc-side a.active { color: var(--accent-ink); background: var(--bg-2); border-left-color: var(--neon); }
.doc-body > section { padding: 26px 0 40px; border-top: 1px solid var(--line); }
.doc-body > section:first-child { border-top: 0; padding-top: 0; }
.doc-body h2 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 8px; }
.doc-body h3 { font-size: 19px; margin: 22px 0 8px; }
.doc-body p { color: var(--tx-mid); max-width: 64ch; margin-bottom: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 20px; }
.feature { padding: 22px; }
.feature .ic-wrap { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--neon-soft); margin-bottom: 16px; }
.feature .ic-wrap svg { width: 23px; height: 23px; color: var(--accent-ink); }
.feature h4 { font-family: var(--display); font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.feature p { font-size: 14px; margin-bottom: 0; }

/* generic chart placeholders */
.viz {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm); position: relative;
}
.viz .viz-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.viz .viz-title { font-family: var(--display); font-weight: 700; font-size: 15px; }
.viz .viz-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tx-dim); }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--neon-2), var(--neon)); box-shadow: 0 0 18px rgba(7,195,198,0.22); }
.bar.alt { background: linear-gradient(180deg, var(--green), #0a9e6c); box-shadow: 0 0 18px rgba(16,201,136,0.22); }
.bar.blu { background: linear-gradient(180deg, #6ea8ff, var(--azure)); box-shadow: 0 0 18px rgba(47,123,246,0.22); }
.bar-col .bl { font-family: var(--mono); font-size: 11px; color: var(--tx-dim); }
.pill-tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; }
.pill-tag.p { color: #c0392b; background: rgba(192,57,43,0.10); }
.pill-tag.lp { color: #d97706; background: rgba(217,119,6,0.12); }
.pill-tag.b { color: var(--accent-ink); background: var(--neon-soft); }
.pill-tag .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ============================================================
   EMBED MODE — detail pages shown inside the pipeline sheet modal
   ============================================================ */
.embed nav.nav, .embed footer.footer, .embed .back-link, .embed [data-demo] { display: none !important; }
.embed .detail-main { padding-top: 30px; }
.embed .detail-hero { padding-top: 8px; }
.embed body, .embed .bg-field { background: var(--bg-1); }
/* guarantee content is visible inside the sheet overlay (no scroll-reveal / fade-in dependency) */
.embed .reveal { opacity: 1 !important; transform: none !important; }
.embed.page-fade, .embed .page-fade { animation: none !important; opacity: 1 !important; }

/* ============================================================
   PIPELINE SHEET MODAL (premium overlay holding detail content)
   ============================================================ */
/* ============================================================
   PIPELINE DETAIL MODAL — self-contained visibility (mirrors the demo modal)
   Works whether `.open` is toggled on #sheetBack, #sheet, or both.
   ============================================================ */
.sheet-back {
  position: fixed; inset: 0; z-index: 99998;
  background: rgba(2, 8, 6, 0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.sheet-back.open { opacity: 1; visibility: visible; }
.sheet {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.96);
  width: 94%; max-width: 1000px; max-height: 85vh;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
  z-index: 99999; opacity: 0; visibility: hidden;
  transition: transform .32s cubic-bezier(.2,.7,.2,1), opacity .3s ease, visibility .3s ease;
}
.sheet.open, .sheet-back.open .sheet {
  opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1);
}
.sheet-scroll { max-height: 85vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ---- inline pipeline modal content ---- */
.pm-wrap { padding: 46px 52px 40px; max-width: 820px; margin: 0 auto; }
.pm-wrap .eyebrow { margin-bottom: 14px; }
.pm-title { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.08; letter-spacing: -0.02em; }
.pm-lede { color: var(--tx-mid); font-size: 16px; line-height: 1.6; margin-top: 16px; max-width: 62ch; }
.pm-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.pm-metric { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.pm-metric .n { font-family: var(--display); font-weight: 700; font-size: 22px; background: linear-gradient(95deg, #1FC8C0, #4C82C3 60%, #7B61C9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.pm-metric .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--tx-dim); text-transform: uppercase; margin-top: 5px; }
/* graph-motif centerpiece */
.pm-viz { margin-top: 26px; border-radius: 18px; overflow: hidden; border: 1px solid rgba(95,232,236,0.18); background: radial-gradient(900px 360px at 70% -20%, #0f4438, transparent 70%), #0a2e26; box-shadow: var(--shadow); }
.pm-viz-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(95,232,236,0.12); }
.pm-viz-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: #bfeee6; text-transform: uppercase; }
.pm-viz-tag { font-family: var(--mono); font-size: 11px; color: #5fe6cf; display: inline-flex; align-items: center; gap: 7px; text-transform: uppercase; letter-spacing: 0.06em; }
.pm-viz-tag .d { width: 7px; height: 7px; border-radius: 50%; background: #2DE0C8; box-shadow: 0 0 8px #2DE0C8; }
.pm-canvas { display: block; width: 100%; height: 230px; }
/* sections */
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.pm-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.pm-sec h4 { font-family: var(--display); font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.pm-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.pm-list li { position: relative; padding-left: 22px; color: var(--tx-mid); font-size: 14px; line-height: 1.5; }
.pm-list li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px rgba(7,195,198,0.5); }
.pm-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pm-node { font-family: var(--mono); font-size: 12px; padding: 8px 12px; border-radius: 9px; background: var(--neon-soft); border: 1px solid var(--line-2); color: var(--accent-ink); white-space: nowrap; }
.pm-arrow { color: var(--neon); font-weight: 700; }
.pm-matrix { display: flex; flex-direction: column; gap: 1px; background: var(--line); border-radius: 11px; overflow: hidden; border: 1px solid var(--line); }
.pm-mrow { display: grid; grid-template-columns: 1.6fr 0.8fr 1.1fr 0.6fr; gap: 8px; padding: 10px 12px; background: var(--bg-1); font-size: 12.5px; align-items: center; }
.pm-mrow.head { background: var(--bg-2); font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--tx-dim); }
.pm-mrow .tag { font-size: 11px; padding: 3px 8px; border-radius: 999px; font-weight: 600; justify-self: start; }
.pm-mrow .tag.path { background: rgba(217,83,79,0.12); color: #c0463f; }
.pm-mrow .tag.vus { background: rgba(214,164,40,0.14); color: #9a7415; }
.pm-mrow .tag.ben { background: var(--neon-soft); color: var(--accent-ink); }
.pm-chat { display: flex; flex-direction: column; gap: 10px; }
.pm-q { align-self: flex-end; background: var(--neon-soft); border: 1px solid var(--line-2); color: var(--tx); padding: 10px 14px; border-radius: 14px 14px 4px 14px; font-size: 13.5px; max-width: 88%; }
.pm-a { align-self: flex-start; background: var(--bg-2); border: 1px solid var(--line); color: var(--tx-mid); padding: 10px 14px; border-radius: 14px 14px 14px 4px; font-size: 13.5px; max-width: 92%; line-height: 1.5; }
.pm-anno { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--accent-ink); background: var(--surface); border: 1px solid var(--line-2); padding: 4px 9px; border-radius: 999px; }
.pm-bars { display: flex; align-items: flex-end; gap: 12px; height: 130px; padding-top: 8px; }
.pm-bcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.pm-bar { width: 100%; max-width: 38px; border-radius: 7px 7px 0 0; background: linear-gradient(180deg, #2DE0C8, #16D6BE); }
.pm-bar.blu { background: linear-gradient(180deg, #4C82C3, #2F7BF6); }
.pm-bar.alt { background: linear-gradient(180deg, #7B61C9, #6A6CBC); }
.pm-bcol span { font-family: var(--mono); font-size: 10px; color: var(--tx-dim); }
.pm-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
@media (max-width: 760px){ .pm-wrap { padding: 40px 24px 32px; } .pm-grid, .pm-metrics { grid-template-columns: 1fr; } }

/* floating-points graph motif behind sections / dark accent cards */
.section-motif { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.5; -webkit-mask-image: radial-gradient(120% 100% at 80% 0%, #000 35%, transparent 78%); mask-image: radial-gradient(120% 100% at 80% 0%, #000 35%, transparent 78%); }
.section-motif.m-left   { -webkit-mask-image: radial-gradient(120% 100% at 18% 0%,  #000 35%, transparent 78%); mask-image: radial-gradient(120% 100% at 18% 0%,  #000 35%, transparent 78%); }
.section-motif.m-center { -webkit-mask-image: radial-gradient(120% 130% at 50% 50%, #000 30%, transparent 82%); mask-image: radial-gradient(120% 130% at 50% 50%, #000 30%, transparent 82%); }
/* any element hosting a motif: position it, lift its real content above the canvas */
.has-motif { position: relative; }
.has-motif > *:not(.section-motif) { position: relative; z-index: 1; }
.has-motif.clip { overflow: hidden; }
.sheet-x {
  position: absolute; top: 16px; right: 16px; z-index: 10; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--tx); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: .2s; box-shadow: var(--shadow-sm);
}
.sheet-x:hover { border-color: var(--neon); color: var(--accent-ink); transform: rotate(90deg); }
.sheet-load { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.sheet-load .spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--neon); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.card[data-detail] { cursor: pointer; }

/* ============================================================
   BASE MODAL (shared — fixed & centered on the viewport on every page)
   ============================================================ */
.modal-back {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 99999;
  background: rgba(6,34,42,0.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal-back.open { opacity: 1; visibility: visible; }
.modal {
  position: relative; width: 100%; max-width: 520px;
  max-height: 85vh; overflow-y: auto;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 38px; transform: translateY(16px) scale(.98); transition: transform .3s; box-shadow: var(--shadow-lg);
}
.modal-back.open .modal { transform: none; }
.modal h3 { font-size: 26px; }
.modal .field { margin-top: 16px; }
.modal label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx-dim); display: block; margin-bottom: 6px; }
.modal input, .modal textarea, .modal select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; color: var(--tx); font-family: var(--body); font-size: 15px; outline: none; transition: border-color .2s;
}
.modal input:focus, .modal textarea:focus, .modal select:focus { border-color: var(--neon); }
.modal .close { position: absolute; top: 16px; right: 16px; background: none; border: 0; color: var(--tx-dim); cursor: pointer; font-size: 22px; }
.modal-ok { text-align: center; padding: 16px 0; }
.modal-ok .ring { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--neon); display: grid; place-items: center; margin: 0 auto 18px; box-shadow: var(--glow); color: var(--accent-ink); }

/* ============================================================
   ADVANCED BOOK-A-DEMO FORM (injected modal) — header pinned, body scrolls
   ============================================================ */
.modal.lg { max-width: 600px; max-height: 85vh; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.modal.lg #demoFormWrap { display: flex; flex-direction: column; min-height: 0; flex: 1; overflow: hidden; }
.modal.lg .dtabs { flex: none; padding: 22px 60px 0 34px; }
.modal.lg #demoForm { flex: 1; min-height: 0; overflow-y: auto; }
.modal.lg #demoStatus { overflow-y: auto; }
.modal.lg .mh { padding: 22px 34px 12px; border-bottom: 1px solid var(--line); }
.modal.lg .mb { padding: 16px 34px 28px; }
.dform .field { margin-top: 16px; }
.dform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dform label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx-dim); display: block; margin-bottom: 7px; }
.dform label .req { color: var(--neon-3); }
.dform input, .dform select, .dform textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; color: var(--tx); font-family: var(--body); font-size: 14.5px; outline: none; transition: border-color .2s;
}
.dform textarea { resize: vertical; min-height: 76px; }
.dform input:focus, .dform select:focus, .dform textarea:focus { border-color: var(--neon); }
.dform input.bad, .dform select.bad { border-color: #d9534f; background: rgba(217,83,79,0.06); }
.dform .hint { font-size: 11.5px; color: var(--tx-dim); margin-top: 6px; font-family: var(--mono); }
.dform .err { font-size: 11.5px; color: #d9534f; margin-top: 6px; min-height: 1px; }
.func-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 4px; }
.func {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); cursor: pointer; font-size: 13.5px; color: var(--tx-mid); transition: .18s; user-select: none;
}
.func:hover { border-color: var(--line-2); }
.func .bx { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; transition: .18s; }
.func .bx svg { opacity: 0; color: #042022; }
.func.on { border-color: var(--neon); background: var(--neon-soft); color: var(--tx); }
.func.on .bx { background: var(--neon); border-color: var(--neon); }
.func.on .bx svg { opacity: 1; }
.license {
  margin-top: 8px; height: 138px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 17px; background: var(--bg-2); font-size: 12.5px; line-height: 1.62; color: var(--tx-mid);
}
.license h5 { font-family: var(--display); font-weight: 700; font-size: 13.5px; color: var(--tx); margin: 0 0 8px; }
.license p { margin: 0 0 9px; }
.license .end { color: var(--accent-ink); font-family: var(--mono); font-size: 11px; }
.agree { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; cursor: pointer; font-size: 13px; color: var(--tx-mid); }
.agree.disabled { opacity: 0.5; cursor: not-allowed; }
.agree .bx { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); flex: none; margin-top: 1px; display: grid; place-items: center; transition: .18s; }
.agree .bx svg { opacity: 0; color: #042022; }
.agree.on .bx { background: var(--neon); border-color: var(--neon); }
.agree.on .bx svg { opacity: 1; }
.agree .scrollnote { color: var(--neon-3); font-family: var(--mono); font-size: 11px; }
.status-pop { text-align: center; padding: 22px 6px 6px; }
.status-pop .ring { width: 66px; height: 66px; border-radius: 50%; border: 2px solid var(--neon); display: grid; place-items: center; margin: 0 auto 18px; box-shadow: var(--glow); color: var(--accent-ink); }
.status-pop h3 { font-family: var(--display); }
/* demo form tabs + accept radios */
.dtabs { display: flex; gap: 10px; padding: 22px 34px 0; }
.dtab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--tx-mid); transition: .2s; }
.dtab.on { background: var(--surface); color: var(--tx); border-color: var(--neon); box-shadow: 0 0 0 1px var(--neon); }
.dtab svg { width: 17px; height: 17px; }
.pane { display: none; }
.pane.on { display: block; }
.accept-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.accept { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; font-size: 13.5px; color: var(--tx-mid); transition: .18s; user-select: none; }
.accept.disabled { opacity: .5; cursor: not-allowed; }
.accept .radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; }
.accept.on .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--neon); }
.accept.on { border-color: var(--neon); background: var(--neon-soft); color: var(--tx); }
.accept.on .radio { border-color: var(--neon); }
@media (max-width: 560px){ .dtabs { flex-direction: column; } .accept-row { grid-template-columns: 1fr; } }
@media (max-width: 560px){ .dform .row2, .func-grid { grid-template-columns: 1fr; } }

/* ============================================================
   OUR PEOPLE — horizontal carousel
   ============================================================ */
.people-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.caro-nav { display: flex; gap: 10px; }
.caro-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--tx); cursor: pointer; display: grid; place-items: center; transition: .2s; box-shadow: var(--shadow-sm); }
.caro-btn:hover { border-color: var(--neon); color: var(--accent-ink); transform: translateY(-2px); }
.caro-btn:disabled { opacity: 0.35; cursor: default; transform: none; }
.caro-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; margin-top: 34px; padding: 6px 2px 20px; scrollbar-width: none; }
.caro-track::-webkit-scrollbar { display: none; }
.person { flex: 0 0 276px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; box-shadow: var(--shadow-sm); transition: .25s; }
.person:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.person .photo { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 26px; color: #fff; margin-bottom: 20px; box-shadow: 0 8px 22px rgba(7,195,198,0.22); object-fit: cover; background: var(--bg-2); overflow: hidden; }
.person h4 { font-family: var(--display); font-weight: 700; font-size: 19px; }
.person .role { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--accent-ink); text-transform: uppercase; margin-top: 5px; }
.person p { color: var(--tx-mid); font-size: 13.5px; margin-top: 13px; line-height: 1.55; }

/* ============================================================
   WHAT'S NEW — news grid
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.news { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.news .banner { height: 148px; position: relative; display: flex; align-items: flex-end; padding: 16px; overflow: hidden; }
.news .banner .cat { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: rgba(4,28,32,0.42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 5px 11px; border-radius: 999px; position: relative; z-index: 1; white-space: nowrap; }
.news .banner svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.news .banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.card[data-news] { cursor: pointer; }
.news .nbody { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news .date { font-family: var(--mono); font-size: 11px; color: var(--tx-dim); }
.news h4 { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 8px 0 8px; line-height: 1.2; }
.news p { color: var(--tx-mid); font-size: 13.5px; line-height: 1.55; flex: 1; }
.news .more { margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 7px; }
.news:hover .more .ar { transform: translateX(4px); }
.news .more .ar { transition: transform .25s; }
@media (max-width: 900px){ .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .news-grid { grid-template-columns: 1fr; } .person { flex-basis: 248px; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .page-fade { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 920px) {
  .doc-grid { grid-template-columns: 1fr; gap: 28px; }
  .doc-side { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .section-pad { padding: 72px 0; }
}

