/* ==========================================================================
   CustomsVAT.com — v1.0 stylesheet
   --------------------------------------------------------------------------
   1. Fonts & design tokens
   2. Base / reset
   3. Layout primitives
   4. Components (buttons, tags, chips, skeletons)
   5. Header & navigation
   6. Sections (hero → footer, in page order)
   7. Motion (reveal, keyframes, reduced motion)
   The tokens in section 1 are the design system intended to carry over
   into the full CVI platform.
   ========================================================================== */

/* 1. FONTS & TOKENS ======================================================== */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette */
  --teal-950: #082C2E;
  --teal-900: #0A383A;
  --teal-800: #0D4548;   /* Primary — Deep River Teal */
  --teal-600: #176B6B;   /* Secondary */
  --teal-400: #20B2AA;   /* Accent (decorative / on-dark only) */
  --teal-300: #5FD3CB;   /* Accent text on dark */
  --teal-50:  #E8F3F1;

  --bg:       #F7F8F5;
  --bg-warm:  #FAF9F5;
  --surface:  #FFFFFF;
  --ink:      #102F31;
  --ink-2:    #5B6B6D;
  --line:     #DCE5E3;
  --line-2:   #E9EEEC;
  --signal:   #A9473F;   /* Restrained red — highlights only */
  --amber:    #B7862C;

  /* Type */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Bengali", sans-serif;
  --fs-display: clamp(2.35rem, 1.4rem + 4.1vw, 4.4rem);
  --fs-h2: clamp(1.8rem, 1.25rem + 2.2vw, 2.85rem);
  --fs-h3: 1.2rem;
  --fs-lead: clamp(1.05rem, 1rem + .3vw, 1.2rem);

  /* Space, shape, depth */
  --gutter: clamp(1rem, .6rem + 2vw, 2rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 47, 49, .05);
  --shadow: 0 1px 2px rgba(16, 47, 49, .04), 0 8px 24px -8px rgba(16, 47, 49, .10);
  --shadow-lg: 0 2px 4px rgba(16, 47, 49, .04), 0 24px 60px -18px rgba(13, 69, 72, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
}

/* 2. BASE ================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--teal-600); text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
kbd { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--teal-600);
  outline-offset: 3px;
  border-radius: 4px;
}
.section-dark :focus-visible, .cta-final :focus-visible, .console :focus-visible { outline-color: var(--teal-300); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: .7rem 1rem; border-radius: var(--radius-sm);
  background: var(--teal-800); color: #fff; font-weight: 600;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* 3. LAYOUT ================================================================ */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }
.section-tint { background: var(--bg-warm); border-block: 1px solid var(--line-2); }
.section-head { max-width: 760px; margin: 0 auto clamp(2.5rem, 2rem + 2vw, 4rem); text-align: center; }
.section-head-left { margin-inline: 0; text-align: left; }
.section-head h2, .split-copy h2, .about-copy h2 { font-size: var(--fs-h2); }
.section-sub { margin-top: 1.1rem; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.65; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: 1rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-600);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow-chip::before, .section-head .eyebrow::before { display: none; }
.eyebrow-light { color: var(--teal-300); }

/* 4. COMPONENTS ============================================================ */
.btn {
  --btn-h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--btn-h); padding: 0 1.15rem;
  border: 1px solid transparent; border-radius: 10px;
  font-weight: 600; font-size: .95rem; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-lg { --btn-h: 52px; padding: 0 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }

.btn-primary { background: var(--teal-800); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 18px -8px rgba(13,69,72,.6); }
.btn-primary:hover { background: var(--teal-600); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal-600); color: var(--teal-800); }
.btn-soon { --btn-h: 40px; background: var(--teal-50); color: var(--teal-800); border-color: #CFE3DF; font-size: .88rem; }
.btn-soon:hover { background: #DCEDEA; }
.btn-light { background: #fff; color: var(--teal-800); }
.btn-light:hover { background: var(--teal-50); transform: translateY(-1px); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }

.pulse-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-400); }
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--teal-400); opacity: 0; animation: pulse 2.4s var(--ease) infinite;
}

.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .22rem .55rem; border-radius: 999px;
  font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; line-height: 1.4;
}
.tag-demo { background: rgba(183,134,44,.12); color: #8A6216; border: 1px solid rgba(183,134,44,.28); }
.tag-future { background: var(--teal-50); color: var(--teal-600); border: 1px solid #CFE3DF; }
.tag-on-dark, .console .tag-demo { background: rgba(232,197,120,.12); color: #E8C578; border-color: rgba(232,197,120,.3); }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li {
  padding: .25rem .6rem; border-radius: 6px;
  background: var(--bg); border: 1px solid var(--line-2);
  font-size: .8rem; color: var(--ink-2); font-weight: 500;
}

/* Skeleton text bars — used in all conceptual/demo visuals instead of fake data */
.sk { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.w40 { width: 40%; } .w45 { width: 45%; } .w48 { width: 48%; } .w50 { width: 50%; }
.w55 { width: 55%; } .w60 { width: 60%; } .w62 { width: 62%; } .w65 { width: 65%; }
.w66 { width: 66%; } .w70 { width: 70%; } .w72 { width: 72%; } .w75 { width: 75%; }
.w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; } .w95 { width: 95%; }

.note {
  display: flex; align-items: center; gap: .5rem; margin-top: 1.75rem;
  color: var(--ink-2); font-size: .88rem;
}
.note .icon { color: var(--teal-600); }
.note-center { justify-content: center; text-align: center; margin-top: 2.25rem; }

.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }

/* 5. HEADER & NAV ========================================================== */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-400));
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(247, 248, 245, .82);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(247, 248, 245, .92); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); flex: none; }
.brand-mark { width: 32px; height: 32px; }
.brand-word { font-weight: 750; font-size: 1.13rem; letter-spacing: -.03em; }
.brand-tld { color: var(--teal-600); font-weight: 550; }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .15rem; }
.nav-list a {
  position: relative; display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 .75rem; border-radius: 8px;
  color: var(--ink-2); font-size: .92rem; font-weight: 500;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-list a:hover { color: var(--ink); background: rgba(13,69,72,.05); }
.nav-list a.is-active { color: var(--teal-800); }
.nav-list a.is-active::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--teal-400);
}
.nav-mobile-foot { display: none; }
.header-actions { display: flex; align-items: center; gap: .5rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 1.75px; border-radius: 2px; background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: .75rem var(--gutter) 1.5rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(16,47,49,.25);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li + li { border-top: 1px solid var(--line-2); }
  .nav-list a { display: flex; min-height: 52px; padding: 0 .25rem; font-size: 1.02rem; color: var(--ink); border-radius: 0; }
  .nav-list a:hover { background: none; color: var(--teal-600); }
  .nav-list a.is-active::after { left: auto; right: .25rem; bottom: auto; width: 6px; height: 6px; border-radius: 50%; }
  .nav-mobile-foot { display: grid; gap: .9rem; margin-top: 1rem; }
  .lang-note { font-size: .82rem; color: var(--ink-2); }
}
@media (max-width: 480px) {
  .btn-soon { display: none; }
}
body.nav-open { overflow: hidden; }

/* 6. SECTIONS ============================================================== */

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(3rem, 2rem + 4vw, 6rem); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(32,178,170,.10), transparent 60%),
    radial-gradient(40rem 24rem at 0% 0%, rgba(13,69,72,.06), transparent 65%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(13,69,72,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13,69,72,.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: center; }
.hero-grid > *, .split > *, .about-grid > *, .graph > *, .faq-wrap > * { min-width: 0; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }

.eyebrow-chip {
  padding: .4rem .8rem .4rem .65rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  letter-spacing: .12em; font-size: .72rem;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 3px rgba(32,178,170,.18); }
.display { font-size: var(--fs-display); line-height: 1.03; letter-spacing: -0.038em; font-weight: 750; }
.text-accent {
  color: var(--teal-800);
  background: linear-gradient(100deg, var(--teal-800) 10%, var(--teal-600) 60%, #1E8F8A 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-motto {
  margin-top: 1.4rem; padding-left: .9rem; border-left: 2px solid var(--teal-400);
  font-weight: 600; color: var(--ink); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); letter-spacing: -.01em;
}
.lead { margin-top: 1rem; max-width: 36rem; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.65; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.cta-row-center { justify-content: center; }
.domain-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 0; margin-top: 2.25rem; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.domain-strip li { display: inline-flex; align-items: center; }
.domain-strip li + li::before { content: ""; width: 4px; height: 4px; margin: 0 .9rem; border-radius: 50%; background: var(--teal-400); }

@media (max-width: 479px) {
  .cta-row .btn { flex: 1 1 100%; }
}

/* Hero console (decorative) */
.hero-visual { margin: 0; position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% -4% -6% 6%; z-index: -1;
  border-radius: 28px; background: radial-gradient(closest-side, rgba(32,178,170,.25), transparent);
  filter: blur(30px);
}
.console {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0E4A4D 0%, var(--teal-900) 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(13,69,72,.25);
  color: #E6F0EE;
}
.console::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 30%);
}
.console-bar, .app-bar {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; border-bottom: 1px solid rgba(255,255,255,.07);
}
.console-title { font-size: .78rem; color: rgba(230,240,238,.7); font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-search {
  display: flex; align-items: center; gap: .6rem;
  margin: 1rem 1rem .5rem; padding: .7rem .85rem;
  border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  font-size: .9rem; color: #fff; min-height: 44px;
}
.console-search .icon { color: var(--teal-300); }
.typed { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { width: 1.5px; height: 1.05em; background: var(--teal-300); animation: blink 1s steps(1) infinite; flex: none; }

.chain { position: relative; display: grid; gap: .55rem; padding: .75rem 1rem 1rem 1rem; }
.chain::before {
  content: ""; position: absolute; left: calc(1rem + 21px); top: 1.5rem; bottom: 2rem; width: 2px;
  background-image: linear-gradient(to bottom, rgba(95,211,203,.65) 50%, transparent 0);
  background-size: 2px 8px; animation: flow 1.2s linear infinite;
}
.chain-node {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .85rem;
  padding: .65rem .8rem .65rem .65rem;
  border-radius: 10px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08);
  animation: nodeIn .7s var(--ease) both; animation-delay: calc(.25s + var(--d) * .14s);
}
.node-type {
  position: relative; z-index: 1;
  display: inline-grid; place-items: center; min-width: 46px; height: 28px; padding: 0 .5rem;
  border-radius: 7px; background: var(--teal-800); border: 1px solid rgba(95,211,203,.35);
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; color: var(--teal-300);
}
.node-body { display: grid; gap: .4rem; min-width: 0; }
.node-body b { font-size: .84rem; font-weight: 600; color: #fff; }
.node-body .sk { background: rgba(255,255,255,.12); height: 6px; }
.node-meta { font-size: .68rem; color: rgba(230,240,238,.55); text-transform: uppercase; letter-spacing: .08em; }
.is-amend .node-type { color: #F0B7AF; border-color: rgba(240,183,175,.35); }
.is-current { background: rgba(32,178,170,.12); border-color: rgba(95,211,203,.4); }
.is-current .node-type { background: var(--teal-400); color: var(--teal-950); border-color: transparent; }
.console-foot { padding: .7rem 1rem; border-top: 1px solid rgba(255,255,255,.07); font-size: .75rem; color: rgba(230,240,238,.65); }
.console-foot span { display: inline-flex; align-items: center; gap: .45rem; }
.console-foot .icon { color: var(--teal-300); }

@media (max-width: 420px) {
  .node-meta, .console-title { display: none; }
  .console-bar { justify-content: space-between; }
  .chain-node { grid-template-columns: auto 1fr; }
  .node-type { min-width: 40px; font-size: .58rem; }
}

/* Coverage marquee */
.coverage { margin-top: clamp(3rem, 2rem + 4vw, 5rem); border-block: 1px solid var(--line); background: rgba(255,255,255,.55); }
.coverage-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1rem; }
.coverage-label { flex: none; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-600); }
.marquee {
  position: relative; display: flex; overflow: hidden; flex: 1; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; flex: none; gap: 2.5rem; padding-right: 2.5rem; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; font-weight: 600; color: var(--ink); font-size: .95rem; }
.marquee-track li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); border: 1.5px solid var(--teal-400); }
@media (max-width: 600px) { .coverage-label { display: none; } }

/* --- Domains ------------------------------------------------------------ */
.domain-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .domain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .domain-grid { grid-template-columns: repeat(4, 1fr); } }
.domain-card {
  position: relative; display: flex; flex-direction: column; gap: .85rem;
  padding: 1.6rem 1.5rem 1.4rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden; scroll-margin-top: calc(var(--header-h) + 24px);
}
.domain-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-400));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.domain-card:hover, .domain-card:target { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C7D9D5; }
.domain-card:hover::before, .domain-card:target::before { transform: scaleX(1); }
.domain-top { display: flex; align-items: center; justify-content: space-between; }
.domain-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--teal-50); color: var(--teal-800); border: 1px solid #D3E6E2;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.domain-icon .icon { width: 22px; height: 22px; }
.domain-card:hover .domain-icon { background: var(--teal-800); color: #fff; }
.domain-index { font-size: .78rem; font-weight: 600; color: #9AAAA9; font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.domain-card h3 { font-size: 1.45rem; letter-spacing: -.03em; }
.domain-card p { color: var(--ink-2); font-size: .94rem; line-height: 1.6; }
.domain-card .chips { margin-top: .25rem; }
.status {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; padding-top: .85rem;
  border-top: 1px dashed var(--line); font-size: .78rem; font-weight: 500; color: var(--ink-2);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(183,134,44,.15); }

/* --- Legal library ------------------------------------------------------ */
.split { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }
.doc-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: .5rem; margin-top: 1.75rem; }
.doc-types li {
  display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
  font-size: .92rem; font-weight: 500;
}
.doc-types .icon { color: var(--teal-600); }

.stack-visual {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 3rem clamp(1rem, 4vw, 2.5rem) 2rem; border-radius: 22px;
  background:
    radial-gradient(circle at 1px 1px, rgba(13,69,72,.12) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(180deg, #F1F5F3, #E9F0EE);
  border: 1px solid var(--line);
}
.stack-tag { position: absolute; top: 1rem; right: 1rem; }
.doc-card {
  position: relative; display: flex; align-items: center; gap: 1rem;
  width: min(100%, 360px); padding: .9rem 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  margin-left: calc(var(--i) * 10px - 20px);
  transition: transform .3s var(--ease);
}
.doc-card::before { content: ""; width: 4px; align-self: stretch; border-radius: 4px; background: var(--teal-600); flex: none; }
.doc-card:hover { transform: translateX(4px); }
.doc-kind { flex: none; width: 128px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; color: var(--teal-800); }
.doc-lines { display: grid; gap: .4rem; flex: 1; }
.doc-card.is-amend::before { background: var(--signal); }
.doc-card.is-amend .doc-kind { color: var(--signal); }
.doc-card.is-current { border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(32,178,170,.12), var(--shadow); }
.doc-card.is-current::before { background: var(--teal-400); }
.doc-link { position: relative; height: 34px; width: 2px; background: repeating-linear-gradient(to bottom, var(--teal-600) 0 4px, transparent 4px 8px); opacity: .7; }
.doc-link span {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
}
@media (max-width: 480px) {
  .doc-card { margin-left: 0; }
  .doc-kind { width: 96px; font-size: .68rem; }
}

/* --- Intelligence bento ------------------------------------------------- */
.bento { display: grid; gap: 1.1rem; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento-card:nth-child(1) { grid-column: span 7; }
  .bento-card:nth-child(2) { grid-column: span 5; }
  .bento-card:nth-child(3) { grid-column: span 5; }
  .bento-card:nth-child(4) { grid-column: span 7; }
}
.bento-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.bento-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.bento-art {
  position: relative; display: grid; place-items: center; min-height: 170px; padding: 1.5rem;
  background: linear-gradient(180deg, var(--bg-warm), #F1F5F3); border-bottom: 1px solid var(--line-2);
}
.bento-copy { padding: 1.4rem 1.5rem 1.6rem; }
.bento-copy h3 { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; font-size: var(--fs-h3); }
.bento-copy h3 .icon { color: var(--teal-600); }
.bento-copy p { margin-top: .5rem; color: var(--ink-2); }

.mini-search {
  display: flex; align-items: center; gap: .6rem; width: min(100%, 420px);
  padding: .75rem 1rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .88rem; color: var(--ink-2);
}
.mini-search .icon { color: var(--teal-600); }
.mini-results { display: grid; gap: .55rem; width: min(100%, 420px); margin-top: .9rem; padding: 0 .4rem; }
.art-search { align-content: center; }

.mini-timeline { position: relative; display: flex; justify-content: space-between; width: min(100%, 320px); }
.mini-timeline::before { content: ""; position: absolute; left: 10%; right: 10%; top: 9px; height: 2px; background: var(--line); }
.mini-timeline li { position: relative; display: grid; justify-items: center; gap: .65rem; font-size: .76rem; font-weight: 600; color: var(--ink-2); }
.mini-timeline li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #A9BDBA; }
.mini-timeline li:nth-child(2)::before { border-color: var(--signal); }
.mini-timeline li.on { color: var(--teal-800); }
.mini-timeline li.on::before { background: var(--teal-600); border-color: var(--teal-600); box-shadow: 0 0 0 5px rgba(32,178,170,.18); }

.mini-graph { width: min(100%, 260px); overflow: visible; }
.mini-graph path { fill: none; stroke: #A9BDBA; stroke-width: 1.5; stroke-dasharray: 4 4; animation: dash 1.6s linear infinite; }
.mini-graph circle { fill: #fff; stroke: var(--teal-600); stroke-width: 2; }
.mini-graph circle.hot { fill: var(--teal-600); }

.art-ask { align-content: center; gap: .6rem; justify-items: stretch; }
.bubble { max-width: 340px; padding: .7rem .9rem; border-radius: 12px; font-size: .86rem; }
.bubble.q { justify-self: end; background: var(--teal-800); color: #fff; border-bottom-right-radius: 4px; }
.bubble.a { justify-self: start; display: grid; gap: .45rem; width: min(100%, 300px); background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cite { justify-self: start; margin-top: .2rem; padding: .15rem .45rem; border-radius: 5px; background: var(--teal-50); color: var(--teal-600); font-size: .7rem; font-weight: 600; }

/* --- Relationship graph (signature) ------------------------------------ */
.section-dark { background: var(--teal-950); color: #E6F0EE; overflow: hidden; }
.section-dark h2 { color: #fff; }
.section-dark .section-sub { color: rgba(230,240,238,.72); }
.dark-grid {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50rem 26rem at 50% 0%, rgba(32,178,170,.16), transparent 70%),
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.graph { position: relative; display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) {
  /* Legend + note share the left column; the chain gets the wide right column */
  .graph { grid-template-columns: 270px 1fr; grid-template-areas: "legend chain" "note chain"; gap: 1.5rem 3rem; }
  .graph-legend { grid-area: legend; }
  .graph-chain { grid-area: chain; padding-right: 190px; }
  .graph-note { grid-area: note; }
}

.legend-title { margin-bottom: .9rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-300); }
.graph-legend { display: grid; gap: .5rem; }
@media (min-width: 640px) and (max-width: 1023px) {
  .graph-legend { grid-template-columns: repeat(2, 1fr); }
  .graph-legend .legend-title { grid-column: 1 / -1; }
}
.legend-item {
  display: flex; align-items: center; gap: .85rem; width: 100%; padding: .75rem .9rem; text-align: left;
  border-radius: 10px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); color: #E6F0EE;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.legend-item:hover, .legend-item[aria-pressed="true"] { background: rgba(32,178,170,.12); border-color: rgba(95,211,203,.45); }
.legend-item b { display: block; font-size: .9rem; font-weight: 600; }
.legend-item small { display: block; font-size: .76rem; color: rgba(230,240,238,.6); }
.legend-line { flex: none; width: 26px; height: 2px; background: var(--teal-300); border-radius: 2px; }
.legend-line.is-dashed { background: repeating-linear-gradient(90deg, #F0B7AF 0 4px, transparent 4px 7px); }

.graph-chain { display: flex; flex-direction: column; align-items: center; }
.g-row { position: relative; display: flex; justify-content: center; width: 100%; }
.g-node {
  position: relative; display: grid; gap: .2rem; width: min(100%, 300px); padding: .95rem 1.1rem;
  text-align: center; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease), opacity .3s var(--ease);
}
.g-kind { font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: #fff; }
.g-desc { font-size: .82rem; color: rgba(230,240,238,.62); }
.g-node-amend { border-color: rgba(240,183,175,.35); }
.g-node-amend .g-kind { color: #F5C9C2; }
.g-node-current { background: linear-gradient(180deg, rgba(32,178,170,.22), rgba(32,178,170,.10)); border-color: rgba(95,211,203,.6); box-shadow: 0 0 0 6px rgba(32,178,170,.08), 0 20px 40px -20px rgba(32,178,170,.5); }
.g-node-current .g-kind { color: var(--teal-300); }
.g-node-ghost { background: transparent; border-style: dashed; border-color: rgba(255,255,255,.22); }
.g-node-ghost .g-kind { color: rgba(230,240,238,.75); }

.g-edge { position: relative; display: flex; justify-content: center; width: 100%; height: 58px; }
.g-edge::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 6px; width: 2px; margin-left: -1px;
  background-image: linear-gradient(to bottom, rgba(95,211,203,.7) 50%, transparent 0);
  background-size: 2px 8px; animation: flow 1.2s linear infinite;
}
.g-edge::after {
  content: ""; position: absolute; left: 50%; bottom: 0; margin-left: -5px;
  border: 5px solid transparent; border-top: 6px solid rgba(95,211,203,.85); border-bottom: 0;
}
.g-edge[data-edge="amends"]::before { background-image: linear-gradient(to bottom, rgba(240,183,175,.75) 50%, transparent 0); }
.g-edge[data-edge="amends"]::after { border-top-color: rgba(240,183,175,.85); }
.g-label {
  position: absolute; left: calc(50% + 14px); top: 50%; transform: translateY(-50%);
  padding: .18rem .55rem; border-radius: 6px; background: rgba(8,44,46,.9); border: 1px solid rgba(255,255,255,.1);
  font-size: .7rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap; color: rgba(230,240,238,.8);
  transition: color .3s, border-color .3s;
}

.g-row-branch { flex-direction: column; align-items: center; gap: .9rem; }
.g-side { display: flex; flex-direction: column; align-items: center; gap: .4rem; width: 100%; }
.g-side-label { position: relative; padding-top: 22px; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #F5C9C2; }
.g-side-label::before { content: ""; position: absolute; left: 50%; top: 0; height: 18px; width: 2px; margin-left: -1px; background: repeating-linear-gradient(to bottom, rgba(240,183,175,.7) 0 4px, transparent 4px 7px); }
.g-side .g-node { width: min(100%, 220px); }

@media (max-width: 639px) {
  /* Phones: the side branch becomes a compact annotation under the SRO */
  .g-row-branch { gap: .5rem; }
  .g-side {
    flex-direction: row; justify-content: center; gap: .5rem; width: auto;
    padding: .35rem .7rem; border-radius: 8px; border: 1px dashed rgba(240,183,175,.4); background: rgba(240,183,175,.06);
  }
  .g-side-label { padding-top: 0; }
  .g-side-label::before { display: none; }
  .g-side-label::after { content: " →"; }
  .g-side .g-node { width: auto; padding: 0; border: 0; background: none; text-align: left; }
  .g-side .g-node .g-kind { font-size: .7rem; letter-spacing: .08em; }
  .g-side .g-node .g-desc { display: none; }
}

@media (min-width: 640px) {
  /* Side branch sits to the right of the SRO on wider screens */
  .g-row-branch { flex-direction: row; justify-content: center; gap: 0; }
  .g-row-branch .g-node-sro { width: 300px; }
  .g-side { position: absolute; left: calc(50% + 150px); top: 50%; transform: translateY(-50%); flex-direction: row; width: auto; gap: 0; }
  .g-side-label { padding: 0 .6rem 0 3.2rem; padding-top: 0; }
  .g-side-label::before { left: 0; top: 50%; width: 2.6rem; height: 2px; margin: 0; background: repeating-linear-gradient(90deg, rgba(240,183,175,.7) 0 4px, transparent 4px 7px); }
  .g-side .g-node { width: 170px; }
}
@media (min-width: 640px) and (max-width: 860px) {
  .g-row-branch .g-node-sro, .graph-chain .g-node { width: 240px; }
  .g-side { left: calc(50% + 120px); }
  .g-side-label { padding-left: 2.2rem; }
  .g-side-label::before { width: 1.8rem; }
  .g-side .g-node { width: 150px; }
}
@media (min-width: 1024px) and (max-width: 1239px) {
  .graph { grid-template-columns: 240px 1fr; gap: 1.5rem 2rem; }
  .graph-chain { padding-right: 150px; }
  .graph-chain .g-node, .g-row-branch .g-node-sro { width: 230px; }
  .g-side { left: calc(50% + 115px); }
  .g-side-label { padding-left: 1.9rem; }
  .g-side-label::before { width: 1.5rem; }
  .g-side .g-node { width: 140px; padding-inline: .6rem; }
}
@media (min-width: 1024px) {
  /* Chain column is narrower on desktop: keep the edge labels left of the line */
  .g-label { left: auto; right: calc(50% + 14px); }
}

/* Highlight state driven by legend (JS sets data-active on .graph) */
.graph[data-active] .g-node { opacity: .38; }
.graph[data-active] .g-label { opacity: .4; }
.graph[data-active="derives"] [data-nodes~="derives"],
.graph[data-active="implements"] [data-nodes~="implements"],
.graph[data-active="amends"] [data-nodes~="amends"],
.graph[data-active="consolidates"] [data-nodes~="consolidates"] { opacity: 1; border-color: var(--teal-300); box-shadow: 0 0 0 4px rgba(95,211,203,.14); }
.graph[data-active="derives"] [data-edge="derives"] .g-label,
.graph[data-active="implements"] [data-edge="implements"] .g-label,
.graph[data-active="amends"] [data-edge="amends"] .g-label,
.graph[data-active="consolidates"] [data-edge="consolidates"] .g-label { opacity: 1; color: #fff; border-color: rgba(95,211,203,.6); }

.graph-note {
  padding: 1.4rem; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08);
  font-size: .92rem; color: rgba(230,240,238,.78); display: grid; gap: .8rem; justify-items: start;
}
.graph-note .legend-title { margin-bottom: 0; }

/* --- Principles --------------------------------------------------------- */
.principles { display: grid; gap: 1rem; counter-reset: p; }
@media (min-width: 640px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .principles { grid-template-columns: repeat(5, 1fr); } }
.principle {
  position: relative; display: grid; align-content: start; gap: .7rem;
  padding: 1.6rem 1.4rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.principle:hover { border-color: #BFD5D1; box-shadow: var(--shadow); }
.p-num { position: absolute; top: 1.3rem; right: 1.3rem; font-size: .76rem; font-weight: 600; color: #9AAAA9; font-variant-numeric: tabular-nums; }
.p-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--teal-800); color: #fff; }
.p-icon .icon { width: 20px; height: 20px; }
.principle h3 { margin-top: .35rem; font-size: 1.08rem; }
.principle p { color: var(--ink-2); font-size: .93rem; }
@media (min-width: 640px) and (max-width: 1099px) {
  .principle:last-child { grid-column: 1 / -1; }
}

/* --- Audience ----------------------------------------------------------- */
.audience-grid { display: grid; gap: 1rem; }
@media (min-width: 560px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .audience-grid { grid-template-columns: repeat(4, 1fr); } }
.audience-card { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.a-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--teal-50); color: var(--teal-800); }
.audience-card h3 { margin: 1rem 0 .8rem; font-size: 1.1rem; }
.audience-card li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--line-2); font-size: .94rem; color: var(--ink); }
.audience-card li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal-400); flex: none; }

/* --- Product preview (demo app) ---------------------------------------- */
.app {
  overflow: hidden; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.app-bar { background: var(--teal-900); }
.app-url {
  flex: 1; min-width: 0; max-width: 360px; margin-inline: auto; padding: .3rem .8rem;
  border-radius: 7px; background: rgba(255,255,255,.08); color: rgba(230,240,238,.7);
  font-size: .76rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app .app-bar .tag-demo { background: rgba(232,197,120,.12); color: #E8C578; border-color: rgba(232,197,120,.3); }
.app-body { display: grid; }
@media (min-width: 860px) { .app-body { grid-template-columns: 200px 1fr; } }
.app-side { display: none; padding: 1.4rem 1rem; background: var(--bg-warm); border-right: 1px solid var(--line-2); }
@media (min-width: 860px) { .app-side { display: block; } }
.side-h { margin: 0 .6rem .5rem; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #8A9A99; }
.side-h + ul { margin-bottom: 1.4rem; }
.app-side li { padding: .45rem .6rem; border-radius: 7px; font-size: .88rem; color: var(--ink-2); }
.app-side li.on { background: var(--teal-50); color: var(--teal-800); font-weight: 600; }
.app-main { min-width: 0; padding: clamp(1rem, .6rem + 2vw, 1.75rem); }
.app-search {
  display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem;
  border-radius: 12px; border: 1.5px solid var(--teal-600); box-shadow: 0 0 0 4px rgba(32,178,170,.12);
  font-size: 1rem; font-weight: 500;
}
.app-search .icon { color: var(--teal-600); }
.app-search span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-search kbd { padding: .15rem .45rem; border-radius: 5px; border: 1px solid var(--line); background: var(--bg); font-size: .72rem; color: var(--ink-2); }
.demo-banner {
  display: flex; align-items: flex-start; gap: .6rem; margin-top: 1rem; padding: .7rem .9rem;
  border-radius: 10px; background: rgba(183,134,44,.08); border: 1px solid rgba(183,134,44,.25);
  font-size: .85rem; color: #6E4E12;
}
.demo-banner .icon { margin-top: .15rem; color: var(--amber); }

.tabs {
  display: flex; gap: .25rem; margin-top: 1.25rem; padding: .3rem;
  overflow-x: auto; scrollbar-width: none; border-radius: 11px; background: var(--bg); border: 1px solid var(--line-2);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: none; min-height: 40px; padding: 0 .9rem; border: 0; border-radius: 8px; background: transparent;
  font-size: .87rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { background: #fff; color: var(--teal-800); font-weight: 600; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.tab-panel { display: grid; gap: .7rem; margin-top: 1rem; min-height: 230px; align-content: start; animation: fadeIn .35s var(--ease); }
.tab-panel[hidden] { display: none; }
.result {
  display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; align-items: start;
  padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid var(--line);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.result:hover { border-color: #BFD5D1; background: var(--bg-warm); }
@media (min-width: 560px) { .result { grid-template-columns: auto 1fr auto; } }
.r-kind { padding: .2rem .5rem; border-radius: 6px; background: var(--teal-50); color: var(--teal-800); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.r-body { display: grid; gap: .45rem; min-width: 0; }
.r-body b { font-size: .92rem; font-weight: 600; }
.r-src { grid-column: 2; font-size: .76rem; color: var(--ink-2); }
@media (min-width: 560px) { .r-src { grid-column: auto; } }
.amend-line { position: relative; display: grid; gap: 1rem; padding: .5rem 0 .5rem .25rem; }
.amend-line::before { content: ""; position: absolute; left: 10px; top: 1rem; bottom: 1.5rem; width: 2px; background: var(--line); }
.amend-line li { position: relative; display: flex; gap: 1rem; }
.amend-line li > div { display: grid; gap: .45rem; flex: 1; padding: .85rem 1rem; border-radius: 10px; border: 1px solid var(--line); }
.amend-line b { font-size: .9rem; }
.a-dot { position: relative; z-index: 1; flex: none; width: 14px; height: 14px; margin-top: 1rem; border-radius: 50%; background: #fff; border: 2px solid #A9BDBA; }
.amend-line li:nth-child(2) .a-dot { border-color: var(--signal); }
.amend-line li.on .a-dot { background: var(--teal-600); border-color: var(--teal-600); }
.amend-line li.on > div { border-color: var(--teal-600); background: rgba(32,178,170,.05); }
.position { display: grid; gap: .6rem; padding: 1.25rem; border-radius: 12px; border: 1px solid var(--teal-600); background: rgba(32,178,170,.04); }
.pos-h { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .3rem; font-weight: 700; }
.pos-trace { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; font-size: .85rem; color: var(--ink-2); }
.pos-trace .icon { color: var(--teal-600); }
.sources { display: grid; gap: .5rem; }
.sources li { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: 10px; border: 1px solid var(--line); font-weight: 500; font-size: .92rem; }
.sources .icon { color: var(--teal-600); }
.sources small { margin-left: auto; font-size: .74rem; color: var(--ink-2); white-space: nowrap; }

/* --- About / roadmap ---------------------------------------------------- */
.about-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: start; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.roadmap { padding: clamp(1.4rem, 1rem + 2vw, 2.2rem); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 24px); }
.roadmap-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1.5rem; font-weight: 700; }
.steps { position: relative; display: grid; gap: 1.4rem; }
.steps::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(to bottom, var(--teal-400), var(--line) 30%); }
.step { position: relative; display: flex; gap: 1.1rem; }
.step-mark { position: relative; z-index: 1; flex: none; width: 18px; height: 18px; margin-top: .2rem; border-radius: 50%; background: #fff; border: 2px solid #B6C8C5; }
.step.is-now .step-mark { background: var(--teal-600); border-color: var(--teal-600); box-shadow: 0 0 0 5px rgba(32,178,170,.18); }
.step-phase { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); }
.step h3 { margin: .15rem 0 .25rem; font-size: 1.05rem; }
.step p { color: var(--ink-2); font-size: .93rem; }

/* --- FAQ ---------------------------------------------------------------- */
.faq-wrap { display: grid; gap: 1rem; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 4rem; } .faq-wrap .section-head { margin-bottom: 0; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 64px; padding: 1rem 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--teal-600); transition: transform .25s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.3rem 0; color: var(--ink-2); }

/* --- Closing CTA -------------------------------------------------------- */
.cta-final { position: relative; overflow: hidden; padding-block: clamp(5rem, 3.5rem + 6vw, 8.5rem); background: var(--teal-800); color: #fff; text-align: center; }
.cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(36rem 20rem at 50% 110%, rgba(32,178,170,.35), transparent 70%),
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 56px 56px;
}
.cta-inner { position: relative; max-width: 860px; }
.cta-final .eyebrow::before { display: none; }
.cta-final h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); letter-spacing: -.035em; }
.cta-copy { max-width: 620px; margin: 1.2rem auto 0; color: rgba(255,255,255,.78); font-size: var(--fs-lead); }
.contact-card {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .75rem;
  margin-top: 2.75rem; padding: .6rem .6rem .6rem 1.1rem; border-radius: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  font-size: .92rem; color: rgba(255,255,255,.8);
}
.contact-card > .icon { color: var(--teal-300); }
.contact-email { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(95,211,203,.6); text-underline-offset: 4px; }
.contact-email:hover { text-decoration-color: #fff; }
.copy-btn {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: 0 .75rem;
  border-radius: 9px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font-size: .82rem; font-weight: 600;
}
.copy-btn:hover { background: rgba(255,255,255,.12); }
.copy-btn.is-copied { border-color: var(--teal-300); color: var(--teal-300); }

/* --- Footer ------------------------------------------------------------- */
.site-footer { padding: 4rem 0 2rem; background: var(--teal-950); color: rgba(230,240,238,.75); font-size: .92rem; }
.footer-top { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1fr 1.4fr; } }
.brand-footer { color: #fff; }
.brand-footer .brand-tld { color: var(--teal-300); }
.footer-tagline { margin-top: 1rem; color: #fff; font-weight: 600; }
.footer-domains { margin-top: .3rem; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(230,240,238,.55); }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 560px) { .footer-nav { grid-template-columns: repeat(3, 1fr); } }
.footer-h { margin-bottom: .9rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-300); }
.footer-nav li + li { margin-top: .2rem; }
.footer-nav a, .footer-soon span { display: inline-flex; align-items: center; min-height: 34px; color: rgba(230,240,238,.8); }
.footer-nav a:hover { color: #fff; }
.footer-soon span { color: rgba(230,240,238,.62); }
.footer-disclaimer {
  display: flex; gap: .8rem; align-items: flex-start; margin-top: 2rem; padding: 1.1rem 1.2rem;
  border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  font-size: .85rem; line-height: 1.6;
}
.footer-disclaimer .icon { margin-top: .15rem; color: var(--teal-300); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; font-size: .84rem; color: rgba(230,240,238,.55); }
.back-top { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; color: rgba(230,240,238,.8); }
.back-top:hover { color: #fff; }

/* 7. MOTION ================================================================ */
/* Reveal only applies when JS is running (html.js), so content is never hidden without it. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes pulse { 0% { opacity: .8; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes flow { to { background-position: 0 16px; } }
@keyframes dash { to { stroke-dashoffset: -16; } }
@keyframes nodeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-100%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; gap: .5rem 1.5rem; animation: none; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .caret { display: none; }
}

@media print {
  .site-header, .scroll-progress, .hero-visual, .marquee, .cta-glow, .dark-grid { display: none !important; }
  .section-dark, .cta-final, .site-footer { background: #fff !important; color: #000 !important; }
}
