/*!
 * AbnIco — main stylesheet
 * Brand: maroon. No external dependencies. Works with a strict CSP (style-src 'self').
 *
 *  1. Fonts            9. Theme switch (on/off)   17. Forms
 *  2. Tokens          10. Hero + orbit            18. CTA band & footer
 *  3. Reset & base    11. Cards, chips, badges    19. Inner page hero, sub-nav, docs
 *  4. Typography      12. Stats, marquee, flow    20. Login portal
 *  5. Layout          13. Product UI mock-ups     21. 404
 *  6. Buttons         14. Tabs & segmented        22. Motion
 *  7. Header & menu   15. Industries              23. Utilities
 *  8. Sidebar         16. FAQ                     24. Reduced motion & print
 */

/* 1. Fonts ------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-var-latin.woff2?v=71210b5e80") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-var-latin.woff2?v=153fc85b70") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin.woff2?v=5a51946dff") format("woff2");
}

/* 2. Tokens ------------------------------------------------------------ */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root,
[data-theme="light"] .theme-dark {
  color-scheme: dark;
  --bg: #2a0811;
  --bg-deep: #1b050b;
  --bg-raised: #380b17;
  --bg-raised-2: #47101f;
  --surface: rgba(255, 233, 224, 0.045);
  --surface-2: rgba(255, 233, 224, 0.075);
  --surface-3: rgba(255, 233, 224, 0.11);
  --line: rgba(255, 210, 192, 0.12);
  --line-strong: rgba(255, 210, 192, 0.22);
  --text: #fff4ef;
  --text-2: #f1d9d1;
  --text-3: #cfaaa0;
  --brand: #5c1424;
  --brand-2: #7a1c30;
  --brand-3: #9b2440;
  --gold: #f4bc62;
  --gold-2: #ffd99e;
  --rose: #ff8098;
  --mint: #63dbb8;
  --on-accent: #2a0811;
  --danger: #ff8f8f;
  --success: #6fe0b4;
  --warn: #ffd27a;
  --grad-gold: linear-gradient(135deg, #ffe5b8 0%, #f6c26c 42%, #ea9255 100%);
  --grad-text: linear-gradient(100deg, #fff6f1 8%, #ffd8a3 46%, #ff9db0 88%);
  --grad-brand: linear-gradient(135deg, #8a2238 0%, #5c1424 45%, #2f0912 100%);
  --header-bg: rgba(33, 6, 13, 0.74);
  --mega-bg: rgba(38, 8, 16, 0.94);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 48px -28px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, 0.75), 0 18px 36px -18px rgba(12, 0, 4, 0.55);
  --glow-gold: 0 12px 34px -12px rgba(244, 188, 98, 0.6);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #fbf3ef;
  --bg-deep: #f4e6df;
  --bg-raised: #ffffff;
  --bg-raised-2: #fdf0ea;
  --surface: rgba(92, 20, 36, 0.035);
  --surface-2: rgba(92, 20, 36, 0.06);
  --surface-3: rgba(92, 20, 36, 0.095);
  --line: rgba(92, 20, 36, 0.12);
  --line-strong: rgba(92, 20, 36, 0.22);
  --text: #2a0811;
  --text-2: #4f2731;
  --text-3: #7a4a53;
  --gold: #94550f;
  --gold-2: #7f4a0e;
  --rose: #b8304a;
  --mint: #0a6e55;
  --on-accent: #2a0811;
  --danger: #b42318;
  --success: #067a52;
  --warn: #8a5a00;
  --grad-text: linear-gradient(100deg, #5c1424 6%, #9b2440 50%, #b4621a 92%);
  --header-bg: rgba(58, 11, 24, 0.97);
  --mega-bg: rgba(42, 8, 17, 0.98);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 22px 44px -30px rgba(92, 20, 36, 0.35);
  --shadow-lg: 0 40px 80px -44px rgba(92, 20, 36, 0.45), 0 16px 32px -22px rgba(92, 20, 36, 0.3);
}

:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans",
    "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --p: var(--gold);
}

.p-docket { --p: var(--gold); --p-soft: rgba(244, 188, 98, 0.14); }
.p-ainbox { --p: var(--rose); --p-soft: rgba(255, 128, 152, 0.14); }
.p-medicaai { --p: var(--mint); --p-soft: rgba(99, 219, 184, 0.14); }

/* 3. Reset & 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) + 24px);
  background-color: var(--bg-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-2);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 88% -8%, rgba(176, 44, 70, 0.34), transparent 62%),
    radial-gradient(900px 520px at -12% 18%, rgba(244, 188, 98, 0.08), transparent 60%),
    linear-gradient(180deg, #3a0b17 0%, #2a0811 34%, #230610 70%, #1c050b 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-feature-settings: "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[data-theme="light"] body {
  background-image:
    radial-gradient(1000px 560px at 92% -6%, rgba(155, 36, 64, 0.1), transparent 62%),
    radial-gradient(800px 480px at -10% 22%, rgba(244, 188, 98, 0.12), transparent 60%),
    linear-gradient(180deg, #fdf7f4 0%, #fbf3ef 50%, #f7ebe5 100%);
}

/* subtle film grain for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .85 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="light"] body::before { opacity: 0.035; }

body > * { position: relative; z-index: 1; }
body.is-locked { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
svg { flex-shrink: 0; }

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(244, 188, 98, 0.35); color: #fff; }
[data-theme="light"] ::selection { background: rgba(155, 36, 64, 0.2); color: #2a0811; }

hr { border: 0; height: 1px; background: var(--line); margin: 2.5rem 0; }

table { border-collapse: collapse; width: 100%; }

[hidden] { display: none !important; }

/* 4. Typography -------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 750;
  text-wrap: balance;
}

h1, .h1 {
  font-size: clamp(2.55rem, 1.35rem + 5.2vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}
h2, .h2 {
  font-size: clamp(2rem, 1.25rem + 2.9vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
h3, .h3 { font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.5rem); letter-spacing: -0.02em; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; text-wrap: pretty; }
strong { color: var(--text); font-weight: 650; }
small { font-size: 0.85em; }

.lead {
  font-size: clamp(1.06rem, 0.98rem + 0.4vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 64ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.85;
}
.eyebrow.no-line::before { display: none; }

.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
[data-theme="light"] .serif { background: linear-gradient(120deg, #9b2440, #b4621a); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] .theme-dark .serif { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; }

.muted { color: var(--text-3); }
.mono { font-family: var(--font-mono); font-size: 0.92em; }

.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose a, .link {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(244, 188, 98, 0.4);
  text-decoration-thickness: 1px;
}
.prose a:hover, .link:hover { text-decoration-color: currentColor; }

/* 5. Layout ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: calc(860px + var(--gutter) * 2); }

.section { padding-block: clamp(76px, 9vw, 132px); position: relative; }
.section-tight { padding-block: clamp(48px, 6vw, 84px); }
.section-alt {
  background: linear-gradient(180deg, rgba(255, 233, 224, 0.025), rgba(255, 233, 224, 0.045));
  border-block: 1px solid var(--line);
}
[data-theme="light"] .section-alt { background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.85)); }

.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split.top { align-items: start; }

.stack > * + * { margin-top: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* 6. Buttons ----------------------------------------------------------- */
.btn {
  --btn-pad-y: 0.86em;
  --btn-pad-x: 1.4em;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn .icon { width: 1.05em; height: 1.05em; transition: transform 0.3s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }

.btn-primary {
  color: var(--on-accent);
  background: var(--grad-gold);
  box-shadow: var(--glow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(160, 70, 20, 0.25);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: -2px auto -2px -60%;
  width: 45%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(244, 188, 98, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn-primary:hover::after { left: 120%; }

.btn-ghost {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--surface-3); border-color: rgba(244, 188, 98, 0.45); transform: translateY(-2px); }

.btn-quiet { color: var(--text-2); padding-inline: 0.9em; }
.btn-quiet:hover { color: var(--text); background: var(--surface-2); }

.btn-sm { --btn-pad-y: 0.66em; --btn-pad-x: 1.05em; font-size: 0.9rem; }
.btn-lg { --btn-pad-y: 1em; --btn-pad-x: 1.7em; font-size: 1.04rem; }
.btn-block { width: 100%; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-sans);
  font-weight: 600;
  white-space: nowrap;
  color: var(--p, var(--gold));
}
.btn-link .icon { width: 1em; height: 1em; transition: transform 0.3s var(--ease); }
.btn-link:hover .icon { transform: translateX(4px); }

.icon { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: middle; }

/* 7. Header, navigation & mega menu ----------------------------------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: #2a0811;
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: height 0.35s var(--ease), background-color 0.35s, border-color 0.35s, -webkit-backdrop-filter 0.35s, backdrop-filter 0.35s;
}
.site-header.is-scrolled,
.site-header.is-solid {
  height: 64px;
  background-color: var(--header-bg);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
}
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  flex-shrink: 0;
}
.brand-mark { width: 38px; height: 38px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)); transition: transform 0.6s var(--ease-spring); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.42rem;
  letter-spacing: -0.045em;
  line-height: 1;
}
.brand-word .dot { color: var(--gold); }

.nav-primary { margin-inline: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.site-header.is-scrolled .nav-list { border-color: transparent; }
.nav-item { position: relative; }
.nav-item.has-mega { position: static; }
.nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 550;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link[aria-current="page"] { color: var(--text); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--gold);
}
.nav-link .chev { width: 14px; height: 14px; transition: transform 0.3s var(--ease); opacity: 0.8; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: var(--ind-h, 38px);
  width: var(--ind-w, 0px);
  transform: translate(var(--ind-x, 0px), var(--ind-y, 0px));
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.42s var(--ease-out), width 0.42s var(--ease-out), opacity 0.25s;
}
.nav-primary.has-indicator .nav-indicator { opacity: 1; }

.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: min(940px, calc(100vw - 32px));
  transform: translate(-50%, 10px) scale(0.985);
  transform-origin: top center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.nav-item.is-open > .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease-out), visibility 0s;
}
.mega::before { /* hover bridge */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}
.mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 24px;
  background: var(--mega-bg);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.mega-products { display: grid; gap: 4px; }
.mega-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background-color 0.2s, border-color 0.2s;
}
.mega-card:hover, .mega-card:focus-visible { background: var(--surface-2); border-color: var(--line); }
.mc-text { display: grid; gap: 3px; min-width: 0; }
.mc-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-family: var(--font-sans); font-size: 1.02rem; font-weight: 700; line-height: 1.3; color: var(--text); }
.mc-desc { font-size: 0.86rem; line-height: 1.45; color: var(--text-3); }
.mega-card .domain { font-family: var(--font-mono); font-size: 0.72rem; color: var(--p); opacity: 0.9; font-weight: 500; }
.mega-card .go { width: 18px; height: 18px; color: var(--text-3); transition: transform 0.3s var(--ease), color 0.2s; }
.mega-card:hover .go { transform: translateX(3px); color: var(--p); }

.mega-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(244, 188, 98, 0.16), transparent 60%),
    linear-gradient(160deg, rgba(122, 28, 48, 0.6), rgba(42, 8, 17, 0.4));
  border: 1px solid var(--line);
}
.mega-side .eyebrow { margin-bottom: 0.4rem; }
.mega-side a.mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  margin-inline: -10px;
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--text-2);
  transition: background-color 0.2s, color 0.2s;
}
.mega-side a.mini:hover { background: var(--surface-2); color: var(--text); }
.mega-side a.mini .icon { width: 18px; height: 18px; color: var(--gold); }
.mega-side .mega-note { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--text-3); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-primary + .header-actions { margin-left: 0; }

.menu-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.menu-btn:hover { background: var(--surface-3); border-color: var(--line-strong); }
.menu-btn .bars { position: relative; width: 20px; height: 14px; }
.menu-btn .bars span {
  position: absolute;
  left: 0;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease-spring), opacity 0.2s, width 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-btn .bars span:nth-child(1) { top: 0; }
.menu-btn .bars span:nth-child(2) { top: 6px; width: 64%; }
.menu-btn .bars span:nth-child(3) { top: 12px; }
.menu-btn:hover .bars span:nth-child(2) { width: 100%; }
.menu-btn[aria-expanded="true"] .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; width: 0; }
.menu-btn[aria-expanded="true"] .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-primary, .header-actions .hide-md { display: none; }
  .header-actions, .nav-primary + .header-actions { margin-left: auto; }
}
@media (max-width: 480px) {
  .header-actions .hide-sm { display: none; }
  .brand-word { font-size: 1.3rem; }
}

/* 8. Sidebar (off-canvas) --------------------------------------------- */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(14, 2, 6, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.sidebar-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease), visibility 0s; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  width: min(408px, 90vw);
  display: flex;
  flex-direction: column;
  color: var(--text-2);
  background:
    radial-gradient(120% 50% at 0% 0%, rgba(244, 188, 98, 0.12), transparent 60%),
    radial-gradient(120% 60% at 100% 100%, rgba(255, 128, 152, 0.1), transparent 60%),
    linear-gradient(180deg, #3e0d1a 0%, #2a0811 55%, #1d050c 100%);
  border-right: 1px solid var(--line-strong);
  box-shadow: 40px 0 80px -30px rgba(0, 0, 0, 0.6);
  transform: translateX(-104%);
  visibility: hidden;
  transition: transform 0.6s var(--ease-out), visibility 0s linear 0.6s;
}
.sidebar.is-open { transform: none; visibility: visible; transition: transform 0.6s var(--ease-out), visibility 0s; }

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.sidebar-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease-spring), background-color 0.2s;
}
.sidebar-close:hover { transform: rotate(90deg); background: var(--surface-3); }
.sidebar-close .icon { width: 18px; height: 18px; }

.sidebar-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px 20px; }
.sidebar-group + .sidebar-group { margin-top: 18px; }
.sidebar-title {
  padding: 0 12px 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.sidebar-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 14px;
  color: var(--text-2);
  font-weight: 550;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease-out), background-color 0.2s, color 0.2s;
  transition-delay: calc(var(--i, 0) * 38ms + 120ms), calc(var(--i, 0) * 38ms + 120ms), 0s, 0s;
}
.sidebar.is-open .sidebar-link { opacity: 1; transform: none; }
.sidebar-link::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 4px;
  height: 0;
  border-radius: 0 4px 4px 0;
  background: var(--p, var(--gold));
  transform: translateY(-50%);
  transition: height 0.3s var(--ease-spring);
}
.sidebar-link:hover, .sidebar-link:focus-visible { background: var(--surface-2); color: var(--text); }
.sidebar-link:hover::before, .sidebar-link[aria-current="page"]::before { height: 60%; }
.sidebar-link[aria-current="page"] { background: var(--surface-3); color: var(--text); }
.sl-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--p-soft, var(--surface-2));
  color: var(--p, var(--gold));
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.sl-icon .icon { width: 19px; height: 19px; }
.sl-text { display: grid; line-height: 1.25; }
.sl-text small { color: var(--text-3); font-weight: 450; font-size: 0.8rem; margin-top: 2px; }
.sidebar-link .sl-go { margin-left: auto; width: 16px; height: 16px; color: var(--text-3); transition: transform 0.3s var(--ease); }
.sidebar-link:hover .sl-go { transform: translateX(3px); color: var(--p, var(--gold)); }

.sidebar-foot {
  display: grid;
  gap: 12px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
}
.sidebar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.9rem; }

/* 9. Theme switch (on/off) -------------------------------------------- */
.theme-switch {
  --w: 62px;
  --h: 32px;
  position: relative;
  width: var(--w);
  height: var(--h);
  flex-shrink: 0;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, #12030a 0%, #3b0d1c 100%);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.6s var(--ease), border-color 0.3s;
}
.theme-switch:hover { border-color: rgba(244, 188, 98, 0.5); }
.ts-stars, .ts-clouds { position: absolute; inset: 0; pointer-events: none; transition: transform 0.6s var(--ease-out), opacity 0.5s; }
.ts-stars i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px #fff;
  animation: twinkle 2.8s ease-in-out infinite;
}
.ts-stars i:nth-child(1) { left: 12px; top: 8px; }
.ts-stars i:nth-child(2) { left: 22px; top: 18px; width: 1.5px; height: 1.5px; animation-delay: 0.7s; }
.ts-stars i:nth-child(3) { left: 8px; top: 21px; width: 1.5px; height: 1.5px; animation-delay: 1.3s; }
.ts-stars i:nth-child(4) { left: 26px; top: 7px; width: 1px; height: 1px; animation-delay: 2s; }
.ts-clouds { transform: translateY(110%); opacity: 0; }
.ts-clouds i { position: absolute; border-radius: 999px; background: #fff; }
.ts-clouds i:nth-child(1) { width: 18px; height: 8px; right: 6px; bottom: 6px; }
.ts-clouds i:nth-child(2) { width: 12px; height: 7px; right: 16px; bottom: 10px; opacity: 0.9; }
.ts-clouds i:nth-child(3) { width: 10px; height: 5px; right: 24px; bottom: 5px; opacity: 0.8; }

.ts-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(var(--h) - 8px);
  height: calc(var(--h) - 8px);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fffaf0 0%, #f7e3bf 45%, #d9b47a 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset -2px -2px 4px rgba(150, 100, 40, 0.35);
  transform: translateX(calc(var(--w) - var(--h)));
  transition: transform 0.6s var(--ease-spring), background 0.5s var(--ease), box-shadow 0.5s;
}
.ts-knob::before, .ts-knob::after { /* moon craters */
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(170, 120, 60, 0.35);
  transition: opacity 0.4s;
}
.ts-knob::before { width: 6px; height: 6px; top: 6px; left: 12px; }
.ts-knob::after { width: 4px; height: 4px; top: 13px; left: 6px; }

/* aria-checked="true" means dark (maroon night) is ON; off = day */
.theme-switch[aria-checked="false"] {
  background: linear-gradient(135deg, #ffcf9e 0%, #ff9a8c 55%, #d94f6b 100%);
}
.theme-switch[aria-checked="false"] .ts-knob {
  transform: translateX(0);
  background: radial-gradient(circle at 35% 35%, #fff6c8 0%, #ffd34d 50%, #f59e0b 100%);
  box-shadow: 0 0 12px rgba(255, 200, 60, 0.85), 0 2px 6px rgba(140, 60, 0, 0.4);
}
.theme-switch[aria-checked="false"] .ts-knob::before,
.theme-switch[aria-checked="false"] .ts-knob::after { opacity: 0; }
.theme-switch[aria-checked="false"] .ts-stars { transform: translateY(-110%); opacity: 0; }
.theme-switch[aria-checked="false"] .ts-clouds { transform: none; opacity: 1; }

/* Generic on/off switch used in product demos */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}
.switch-track {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
  transition: background-color 0.35s var(--ease), border-color 0.35s;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #e9d9d4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  transition: transform 0.45s var(--ease-spring), background 0.3s;
}
.switch[aria-checked="true"] .switch-track { background: var(--p, var(--gold)); border-color: transparent; box-shadow: 0 0 18px -2px var(--p, var(--gold)); }
.switch[aria-checked="true"] .switch-track::after { transform: translateX(24px); }
.switch .switch-state { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-3); min-width: 38px; text-align: center; }
.switch[aria-checked="true"] .switch-state { color: var(--p, var(--gold)); background: var(--p-soft, var(--surface-2)); }
.switch.is-locked { cursor: not-allowed; }
.switch.is-locked .switch-track::after {
  background: radial-gradient(circle, #2a0811 0 2px, transparent 2.5px), linear-gradient(180deg, #ffffff, #e9d9d4);
}

/* 10. Hero & orbit ----------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(44px, 7vw, 92px));
  padding-bottom: clamp(64px, 8vw, 112px);
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(176, 44, 70, 0.45), transparent 65%),
    radial-gradient(700px 420px at 10% 90%, rgba(244, 188, 98, 0.08), transparent 60%),
    linear-gradient(180deg, #3d0c19 0%, #2c0812 60%, #250610 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.grid-bg {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(255, 210, 192, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 210, 192, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 60% 35%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 60% 35%, #000 25%, transparent 75%);
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.aurora span:nth-child(1) { width: 520px; height: 520px; left: 52%; top: -12%; background: #b02c46; animation: drift-a 18s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 420px; height: 420px; left: 70%; top: 30%; background: #e0894f; opacity: 0.28; animation: drift-b 22s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { width: 380px; height: 380px; left: -6%; top: 40%; background: #7a1c30; animation: drift-c 26s ease-in-out infinite alternate; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: 0.32em; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.2rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  margin-bottom: 1.6rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font-size: 0.86rem;
  color: var(--text-2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-badge b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grad-gold);
  color: #2a0811;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-2); }
.hero-trust .icon { width: 18px; height: 18px; color: var(--success); }

.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.45em);
  filter: blur(6px);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease-out), filter 0.6s;
}
.rotator > span.is-active { opacity: 1; transform: none; filter: none; }
.no-js .rotator > span:first-child { opacity: 1; transform: none; filter: none; }

/* orbit visual */
.orbit {
  position: relative;
  width: min(540px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 210, 192, 0.14);
}
.orbit-ring.r1 { inset: 20%; border-style: dashed; }
.orbit-ring.r2 { inset: 8%; }
.orbit-ring.r3 { inset: -3%; border-color: rgba(255, 210, 192, 0.07); }
.orbit-ring.r2::after { /* travelling spark */
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 14px 4px rgba(255, 210, 140, 0.7);
  transform-origin: 4px calc(50% + 4px);
}
.orbit-spin { position: absolute; inset: 8%; animation: spin 14s linear infinite; }
.orbit-spin::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #ffe2ad;
  box-shadow: 0 0 16px 5px rgba(255, 200, 120, 0.75);
}
.orbit-core {
  position: absolute;
  inset: 35%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffe0ad 0%, #ef9a5d 28%, #a32a45 58%, #4a0f1e 82%, #2a0811 100%);
  box-shadow: 0 0 0 10px rgba(255, 210, 192, 0.04), 0 0 90px 10px rgba(239, 120, 80, 0.38), inset -14px -18px 40px rgba(0, 0, 0, 0.45);
  animation: breathe 6s ease-in-out infinite;
}
.orbit-core svg { width: 46%; height: 46%; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4)); }
.orbit-core::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 210, 160, 0.25);
  animation: pulse-ring 3.6s var(--ease-out) infinite;
}
.orbit-arm { position: absolute; inset: 8%; animation: spin 48s linear infinite; }
.orbit-arm.a2 { animation-delay: -16s; }
.orbit-arm.a3 { animation-delay: -32s; }
.orbit-node {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% -50%;
  animation: spin 48s linear infinite reverse;
}
.orbit-arm.a2 .orbit-node { animation-delay: -16s; }
.orbit-arm.a3 .orbit-node { animation-delay: -32s; }
.orbit-node a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(36, 7, 14, 0.82);
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.orbit-node a:hover { border-color: var(--p); transform: scale(1.06); }
.orbit-node .pi {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--p-soft);
  color: var(--p);
  box-shadow: 0 0 18px -4px var(--p);
}
.orbit-node .pi .icon { width: 17px; height: 17px; }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--text);
  white-space: nowrap;
  background: rgba(30, 6, 12, 0.85);
  border: 1px solid var(--line);
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: float 7s ease-in-out infinite;
}
.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p); box-shadow: 0 0 10px var(--p); }
.float-chip small { color: var(--text-3); font-weight: 450; }
.float-chip.fc1 { left: -4%; top: 16%; }
.float-chip.fc2 { right: -6%; top: 54%; animation-delay: -2.4s; }
.float-chip.fc3 { left: 6%; bottom: 6%; animation-delay: -4.6s; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; max-width: 460px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
  .float-chip { display: none; }
  .orbit-node a { font-size: 0.82rem; padding: 6px 10px 6px 6px; }
  .orbit-node .pi { width: 26px; height: 26px; }
}

/* 11. Cards, chips & badges ------------------------------------------- */
.card {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  padding: clamp(22px, 2.4vw, 30px);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s, background-color 0.3s;
}
[data-theme="light"] .card { background: linear-gradient(180deg, #ffffff, #fffaf8); }
[data-theme="light"] .theme-dark .card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.card h3 { margin-bottom: 0.45em; }
.card p:last-child { margin-bottom: 0; }

.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 196, 150, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
}
.spotlight:hover::before { opacity: 1; }
[data-theme="light"] .spotlight::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(155, 36, 64, 0.07), transparent 45%); }

.card-hover:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.icon-tile {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  color: var(--p, var(--gold));
  background: var(--p-soft, rgba(244, 188, 98, 0.12));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.icon-tile .icon { width: 22px; height: 22px; }
.icon-tile.sm { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 0; }
.icon-tile.sm .icon { width: 19px; height: 19px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 550;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.chip .icon { width: 15px; height: 15px; color: var(--p, var(--gold)); }
.chip-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--p, var(--gold)); box-shadow: 0 0 8px var(--p, var(--gold)); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--p, var(--gold));
  background: var(--p-soft, rgba(244, 188, 98, 0.12));
  border: 1px solid color-mix(in srgb, var(--p, var(--gold)) 30%, transparent);
}
.badge.pass { --p: var(--success); --p-soft: rgba(111, 224, 180, 0.12); }
.badge.check { --p: var(--warn); --p-soft: rgba(255, 210, 122, 0.12); }
.badge.fail { --p: var(--danger); --p-soft: rgba(255, 143, 143, 0.12); }
.badge.hot { --p: #ff8a65; --p-soft: rgba(255, 138, 101, 0.14); }
.badge.cold { --p: #8ec5ff; --p-soft: rgba(142, 197, 255, 0.12); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.check-list li { position: relative; padding-left: 30px; line-height: 1.5; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--p-soft, rgba(244, 188, 98, 0.14)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4bc62' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid var(--line);
}
.p-ainbox .check-list li::before, .check-list.rose li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8098' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E"); }
.p-medicaai .check-list li::before, .check-list.mint li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2363dbb8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E"); }
[data-theme="light"] .check-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b2440' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E"); }
.check-list.compact { gap: 7px; font-size: 0.93rem; }

/* Product cards (home) */
.product-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.product-card::after { /* tinted top glow */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--p), transparent);
  opacity: 0.7;
}
.product-card .glow {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  top: -110px;
  border-radius: 50%;
  background: var(--p);
  filter: blur(80px);
  opacity: 0.13;
  pointer-events: none;
  transition: opacity 0.4s;
}
.product-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--p) 45%, transparent); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px color-mix(in srgb, var(--p) 20%, transparent); }
.product-card:hover .glow { opacity: 0.24; }
[data-theme="light"] .product-card { background: linear-gradient(180deg, #ffffff, #fff8f5); }
.pc-head { display: flex; align-items: center; gap: 14px; }
.pc-logo { width: 52px; height: 52px; flex-shrink: 0; }
.pc-head h3 { margin: 0; font-family: var(--font-sans); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; }
.pc-kicker { display: block; font-size: 0.8rem; font-weight: 600; color: var(--p); letter-spacing: 0.02em; }
.pc-desc { margin: 0; color: var(--text-2); }
.pc-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.pc-domain { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }
.pc-domain::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--p); box-shadow: 0 0 8px var(--p); }

@media (max-width: 1024px) { .product-cards { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }

/* Feature grid */
.feature {
  position: relative;
  padding: clamp(22px, 2.2vw, 28px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.3s, background-color 0.3s, transform 0.35s var(--ease);
}
.feature:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-3px); }
[data-theme="light"] .feature { background: rgba(255, 255, 255, 0.75); }
.feature h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.feature p { font-size: 0.95rem; margin: 0; color: var(--text-2); }
.feature .num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); position: absolute; top: 22px; right: 22px; }

/* 12. Stats, marquee, flow -------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
}
.stat { padding: clamp(20px, 2.6vw, 34px); position: relative; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 10px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.92rem; color: var(--text-2); line-height: 1.4; display: block; }
.stat-label b { color: var(--text); font-weight: 650; display: block; margin-bottom: 2px; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

.marquee {
  position: relative;
  overflow: hidden;
  -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; gap: 12px; width: max-content; animation: marquee 48s linear infinite; padding-block: 6px; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .chip { font-size: 0.92rem; padding: 9px 16px; }

/* principle flow */
.flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); counter-reset: flow; }
.flow::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(244, 188, 98, 0.65) 0 10px, transparent 10px 20px);
  background-size: 200% 100%;
  animation: dash-flow 2.5s linear infinite;
  opacity: 0.55;
}
.flow-step {
  position: relative;
  text-align: center;
  padding: 0 10px;
}
.flow-icon {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 24px;
  color: var(--p, var(--gold));
  background: linear-gradient(160deg, #4d1121, #2a0811);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.flow-icon .icon { width: 30px; height: 30px; }
.flow-icon::after {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #2a0811;
  font: 800 0.78rem/1 var(--font-display);
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.6);
}
.flow-step h3 { font-size: 1.12rem; margin-bottom: 0.35em; }
.flow-step p { font-size: 0.93rem; color: var(--text-2); margin: 0; }
@media (max-width: 860px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .flow::before { display: none; }
}
@media (max-width: 480px) { .flow { grid-template-columns: 1fr; } }

/* timeline / steps list */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 4px; }
.steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font: 750 0.95rem/1 var(--font-display);
  color: var(--p, var(--gold));
  background: var(--p-soft, rgba(244, 188, 98, 0.12));
  border: 1px solid var(--line-strong);
}
.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 62px;
  bottom: -10px;
  width: 2px;
  background: linear-gradient(180deg, var(--line-strong), transparent);
}
.steps h3, .steps h4 { margin: 8px 0 4px; font-size: 1.04rem; letter-spacing: -0.01em; }
.steps p { margin: 0; font-size: 0.95rem; color: var(--text-2); }

/* 13. Product UI mock-ups --------------------------------------------- */
.window {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(40, 8, 16, 0.92), rgba(24, 4, 10, 0.95));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
  color: var(--text-2);
}
.window::before { /* sheen */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.06), transparent 30%);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.window-dots i:nth-child(1) { background: #ff6b6b; }
.window-dots i:nth-child(2) { background: #ffc857; }
.window-dots i:nth-child(3) { background: #4ade80; }
.window-title { margin-left: 8px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window-title .lock { display: inline-block; width: 11px; height: 11px; vertical-align: -1px; margin-right: 4px; color: var(--success); }
.window-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.window-body { padding: clamp(16px, 2vw, 22px); position: relative; }
.demo-note { font-size: 0.74rem; color: var(--text-3); text-align: right; margin-top: 10px; }
.demo-note::before { content: "◆ "; color: var(--p, var(--gold)); }

/* Transcript (AInbox) */
.call-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 750 0.9rem/1 var(--font-display);
  color: #2a0811;
  background: linear-gradient(135deg, #ffd0d9, var(--rose));
  flex-shrink: 0;
}
.call-meta { display: grid; line-height: 1.3; }
.call-meta b { color: var(--text); font-size: 0.95rem; }
.call-meta small { color: var(--text-3); }
.call-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-3); }
.call-live .rec { width: 8px; height: 8px; border-radius: 50%; background: #ff5f6d; box-shadow: 0 0 0 0 rgba(255, 95, 109, 0.6); animation: rec 1.6s infinite; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.wave i { width: 3px; height: 100%; border-radius: 3px; background: var(--rose); transform-origin: center; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -0.9s; }
.wave i:nth-child(3) { animation-delay: -0.7s; }
.wave i:nth-child(4) { animation-delay: -0.5s; }
.wave i:nth-child(5) { animation-delay: -0.3s; }
.wave i:nth-child(6) { animation-delay: -0.15s; }
.wave.is-paused i { animation-play-state: paused; transform: scaleY(0.3); }

.transcript { display: flex; flex-direction: column; gap: 10px; min-height: 340px; }
.msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.js .msg[data-step] { opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 0.45s var(--ease), transform 0.55s var(--ease-out); }
.js .msg[data-step].is-shown { opacity: 1; transform: none; }
.msg-agent { border-top-left-radius: 5px; }
.msg-caller { align-self: flex-end; border-top-right-radius: 5px; background: rgba(255, 128, 152, 0.13); border-color: rgba(255, 128, 152, 0.25); }
.msg .tr { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--text-3); }
.msg-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.msg-meta span { font-family: var(--font-mono); font-size: 0.68rem; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.25); color: var(--text-3); }
.msg-meta .src-kb { color: var(--success); }
.msg-meta .src-lang { color: var(--gold-2); }
.call-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  margin-top: 6px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(111, 224, 180, 0.12), rgba(111, 224, 180, 0.04));
  border: 1px solid rgba(111, 224, 180, 0.28);
  font-size: 0.86rem;
  color: var(--text);
}
.call-result .icon { color: var(--success); width: 18px; height: 18px; }

/* Pipeline (Docket) */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pipe-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  transition: background-color 0.35s, border-color 0.35s, transform 0.35s var(--ease);
}
.pipe-step .ps-ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.pipe-step .ps-ico .icon { width: 17px; height: 17px; }
.pipe-step b { display: block; font-size: 0.9rem; color: var(--text); font-weight: 600; line-height: 1.3; }
.pipe-step small { display: block; font-size: 0.78rem; color: var(--text-3); line-height: 1.35; }
.pipe-step .ps-time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); white-space: nowrap; }
.pipe-step.is-active { background: var(--p-soft); border-color: color-mix(in srgb, var(--p) 45%, transparent); transform: translateX(4px); }
.pipe-step.is-active .ps-ico { color: #2a0811; background: var(--p); box-shadow: 0 0 18px -2px var(--p); }
.pipe-step.is-done .ps-ico { color: var(--success); background: rgba(111, 224, 180, 0.12); }
.pipe-step.is-waiting .ps-time { color: var(--warn); }
.pipe-summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.85rem; }

/* Claim (MedicaAI) */
.claim-grid { display: grid; gap: 14px; }
.doc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.doc-chip .icon { width: 15px; height: 15px; color: var(--mint); }
.doc-chip .conf { font-family: var(--font-mono); font-size: 0.7rem; color: var(--success); }
.bill-table { font-size: 0.82rem; }
.bill-table th { text-align: left; font-weight: 600; color: var(--text-3); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.bill-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.bill-table td.num, .bill-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bill-table tr.cut td { background: rgba(255, 210, 122, 0.05); }
.bill-table .why { display: block; font-size: 0.72rem; color: var(--warn); margin-top: 2px; }
.rule-list { display: grid; gap: 6px; }
.rule { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.rule code { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); }
.rule .badge { margin-left: auto; }
.sanction-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(99, 219, 184, 0.12), rgba(99, 219, 184, 0.03));
  border: 1px solid rgba(99, 219, 184, 0.3);
}
.sanction-box b { color: var(--text); display: block; font-size: 0.9rem; }
.sanction-box small { color: var(--text-3); }
.claim-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.claim-steps span {
  flex: 1 1 0;
  min-width: 64px;
  padding: 8px 6px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}
.claim-steps span.is-done { color: var(--mint); border-color: rgba(99, 219, 184, 0.3); background: rgba(99, 219, 184, 0.08); }
.claim-steps span.is-active { color: #062a20; background: var(--mint); border-color: var(--mint); box-shadow: 0 0 16px -4px var(--mint); }

/* Mini dashboard tiles */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.kpi small { display: block; font-size: 0.7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi b { display: block; font: 750 1.25rem/1.2 var(--font-display); color: var(--text); margin-top: 4px; }
.kpi em { font-style: normal; font-size: 0.72rem; color: var(--success); }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding-top: 8px; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--p, var(--gold)), rgba(244, 188, 98, 0.15)); transform-origin: bottom; animation: grow 1.2s var(--ease-out) both; }
.bars i:nth-child(1) { height: 38%; } .bars i:nth-child(2) { height: 52%; animation-delay: 0.05s; }
.bars i:nth-child(3) { height: 46%; animation-delay: 0.1s; } .bars i:nth-child(4) { height: 64%; animation-delay: 0.15s; }
.bars i:nth-child(5) { height: 58%; animation-delay: 0.2s; } .bars i:nth-child(6) { height: 76%; animation-delay: 0.25s; }
.bars i:nth-child(7) { height: 70%; animation-delay: 0.3s; } .bars i:nth-child(8) { height: 88%; animation-delay: 0.35s; }
.bars i:nth-child(9) { height: 82%; animation-delay: 0.4s; } .bars i:nth-child(10) { height: 96%; animation-delay: 0.45s; }

/* 14. Tabs & segmented controls --------------------------------------- */
.segmented {
  position: relative;
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented [role="tab"], .segmented button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.3s;
}
.segmented [role="tab"]:hover, .segmented button:hover { color: var(--text); }
.segmented [aria-selected="true"], .segmented [aria-pressed="true"] { color: #2a0811; }
.segmented .icon { width: 16px; height: 16px; }
.seg-pill {
  position: absolute;
  z-index: 0;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--seg-w, 0px);
  transform: translateX(var(--seg-x, 0px));
  border-radius: 999px;
  background: var(--seg-bg, var(--grad-gold));
  box-shadow: 0 8px 20px -8px rgba(244, 188, 98, 0.6);
  transition: transform 0.5s var(--ease-spring), width 0.45s var(--ease-out), background 0.4s;
}
.no-js .seg-pill { display: none; }
.no-js .segmented [aria-selected="true"], .no-js .segmented [aria-pressed="true"] { background: var(--grad-gold); }

.tab-panel { animation: fade-up 0.5s var(--ease-out); }
.tabs-center { display: flex; justify-content: center; margin-bottom: clamp(28px, 4vw, 44px); }

/* 15. Industries ------------------------------------------------------- */
.industry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.industry-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.3s, opacity 0.3s;
  animation: fade-up 0.5s var(--ease-out) both;
}
[data-theme="light"] .industry-card { background: #fff; }
.industry-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.industry-card header { display: flex; align-items: center; gap: 12px; }
.industry-card h3 { font-size: 1.06rem; margin: 0; line-height: 1.25; }
.industry-card .market { margin-left: auto; }
.industry-card dl { margin: 0; display: grid; gap: 10px; font-size: 0.88rem; }
.industry-card dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.industry-card dd { margin: 0; color: var(--text-2); line-height: 1.5; }
.industry-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.industry-card .tags span { font-size: 0.76rem; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.market { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--gold); background: rgba(244, 188, 98, 0.08); white-space: nowrap; }
.market.b2b { color: #8ec5ff; background: rgba(142, 197, 255, 0.08); }
.market.b2g { color: var(--mint); background: rgba(99, 219, 184, 0.08); }
.market.mixed { color: var(--rose); background: rgba(255, 128, 152, 0.08); }
[data-theme="light"] .market.b2b { color: #1d5fa8; }

.industry-picker { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.industry-list { display: flex; flex-wrap: wrap; gap: 8px; }
.industry-list button {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.industry-list button:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.industry-list button[aria-pressed="true"] { color: #2a0811; background: var(--grad-gold); border-color: transparent; box-shadow: var(--glow-gold); }
.industry-panel h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.industry-panel .row { padding: 14px 0; border-top: 1px solid var(--line); }
.industry-panel .row:first-of-type { border-top: 0; }
.industry-panel .row > small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.pipeline-words { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pipeline-words span { padding: 6px 11px; border-radius: 8px; font-size: 0.84rem; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.pipeline-words .arr { padding: 0; background: none; border: 0; color: var(--text-3); }
@media (max-width: 860px) { .industry-picker { grid-template-columns: 1fr; } }

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
[data-theme="light"] .table-wrap { background: #fff; }
.compare { min-width: 720px; font-size: 0.93rem; }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-size: 1rem; color: var(--text); background: var(--surface-2); }
.compare tbody th { font-weight: 600; color: var(--text); width: 20%; font-size: 0.88rem; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare td { color: var(--text-2); }

/* 16. FAQ -------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background-color 0.3s, border-color 0.3s;
}
[data-theme="light"] .faq details { background: #fff; }
.faq details[open] { background: var(--surface-2); border-color: var(--line-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.04rem;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--gold), var(--gold)) center / 12px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 2px 12px no-repeat;
  transition: transform 0.4s var(--ease-spring), background-color 0.3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--surface-3); }
.faq .faq-body { padding: 0 22px 20px; color: var(--text-2); animation: fade-up 0.4s var(--ease-out); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* 17. Forms ------------------------------------------------------------ */
.form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-family: var(--font-display); font-size: 0.88rem; font-weight: 650; color: var(--text); }
.field .req { color: var(--rose); margin-left: 2px; }
.field .hint { font-size: 0.8rem; color: var(--text-3); }
.input, .field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s, box-shadow 0.25s, background-color 0.2s;
}
[data-theme="light"] .field input, [data-theme="light"] .field select, [data-theme="light"] .field textarea { background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfaaa0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field select option { background: #2a0811; color: #fff4ef; }
[data-theme="light"] .field select option { background: #fff; color: #2a0811; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); opacity: 0.8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(244, 188, 98, 0.4); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(244, 188, 98, 0.18); background-color: rgba(255, 255, 255, 0.06); }
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 143, 143, 0.14); }
.field .error { font-size: 0.8rem; color: var(--danger); min-height: 1em; }

.chips-field { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.chips-field legend { padding: 0; margin-bottom: 10px; font-family: var(--font-display); font-size: 0.88rem; font-weight: 650; color: var(--text); }
.chip-check { position: relative; display: inline-flex; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  transition: all 0.2s var(--ease);
}
.chip-check label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--text-3); transition: all 0.2s; }
.chip-check input:checked + label { color: var(--text); border-color: var(--p, var(--gold)); background: var(--p-soft, rgba(244, 188, 98, 0.12)); }
.chip-check input:checked + label::before { background: var(--p, var(--gold)); border-color: var(--p, var(--gold)); box-shadow: 0 0 8px var(--p, var(--gold)); }
.chip-check input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 3px; }

.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.88rem; color: var(--text-2); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #c2364f; }

.hp-field { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.form-status {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.92rem;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
}
.form-status.is-visible { display: flex; animation: fade-up 0.4s var(--ease-out); }
.form-status.success { border-color: rgba(111, 224, 180, 0.4); background: rgba(111, 224, 180, 0.08); }
.form-status.error { border-color: rgba(255, 143, 143, 0.45); background: rgba(255, 143, 143, 0.08); }
.form-status .icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(42, 8, 17, 0.25); border-top-color: #2a0811; animation: spin 0.8s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
.is-loading .icon-arrow { display: none; }

.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
[data-theme="light"] .contact-card { background: #fff; }
.contact-card h3 { font-size: 1rem; margin: 0 0 2px; }
.contact-card p { margin: 0; font-size: 0.9rem; }
.contact-card a { color: var(--gold); font-weight: 600; word-break: break-word; }

/* 18. CTA band & footer ------------------------------------------------ */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 6vw, 84px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(244, 188, 98, 0.22), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(255, 128, 152, 0.16), transparent 60%),
    linear-gradient(135deg, #7d1d33 0%, #561124 45%, #2c0812 100%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  text-align: center;
  color: var(--text-2);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -1;
  background: conic-gradient(from var(--angle), transparent 0 40%, rgba(255, 214, 160, 0.14) 50%, transparent 60% 100%);
  animation: rotate-angle 10s linear infinite;
}
.cta-band .grid-bg { opacity: 0.6; z-index: -1; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lead { margin: 0 auto 2rem; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 96px) 0 28px;
  background: linear-gradient(180deg, #230610 0%, #170309 100%);
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.93rem;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); }
.footer-brand p { margin: 16px 0 20px; max-width: 34ch; color: var(--text-3); }
.footer-col h2 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; font-family: var(--font-display); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-3); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-domains { display: grid; gap: 6px; font-family: var(--font-mono); font-size: 0.78rem; }
.footer-domains a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); }
.footer-domains a:hover { color: var(--text); }
.footer-domains a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--p); box-shadow: 0 0 6px var(--p); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a:hover { color: var(--gold); }
.footer-word {
  margin-top: 36px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 22vw, 17rem);
  line-height: 0.8;
  letter-spacing: -0.07em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 210, 192, 0.12);
  background: linear-gradient(180deg, rgba(255, 210, 192, 0.1), transparent 75%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  pointer-events: none;
  margin-bottom: -0.12em;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  background: rgba(42, 8, 17, 0.85);
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.35s var(--ease-out), visibility 0s linear 0.35s, border-color 0.2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.35s var(--ease-out), visibility 0s, border-color 0.2s; }
.back-to-top:hover { border-color: var(--gold); }
.back-to-top svg.ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.back-to-top svg.ring circle { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 103.67; stroke-dashoffset: calc(var(--progress, 100) * 1.0367); transition: stroke-dashoffset 0.15s linear; } /* 2πr, r = 16.5 */
.back-to-top .icon { width: 18px; height: 18px; }

.read-progress { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 2px; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--read, 0)); background: var(--grad-gold); box-shadow: 0 0 10px rgba(244, 188, 98, 0.7); }

/* 19. Inner page hero, sub-nav, docs layout --------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 104px));
  padding-bottom: clamp(56px, 7vw, 96px);
  background:
    radial-gradient(800px 460px at 82% 10%, rgba(176, 44, 70, 0.42), transparent 65%),
    radial-gradient(600px 360px at 0% 100%, color-mix(in srgb, var(--p) 14%, transparent), transparent 60%),
    linear-gradient(180deg, #3d0c19 0%, #2c0812 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .hero-bg .grid-bg { -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%); }
.page-hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.4rem); max-width: 18ch; }
.page-hero .lead { margin-bottom: 1.8rem; }
.page-hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: 0.85rem; color: var(--text-3); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; opacity: 0.5; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--text-2); }

.product-title { display: flex; align-items: center; gap: 16px; margin-bottom: 1.4rem; }
.product-title .pc-logo { width: 60px; height: 60px; }
.product-title span { font-family: var(--font-sans); font-weight: 700; font-size: 1.25rem; color: var(--text); display: grid; line-height: 1.2; }
.product-title small { font-weight: 500; font-size: 0.85rem; color: var(--p); font-family: var(--font-mono); }

.subnav {
  position: sticky;
  top: 64px;
  z-index: 30;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
}
.subnav-inner { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.subnav-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-weight: 700; color: var(--text); flex-shrink: 0; }
.subnav-brand svg { width: 26px; height: 26px; }
.subnav-links { position: relative; display: flex; gap: 2px; list-style: none; margin: 0 auto; padding: 0; overflow-x: auto; scrollbar-width: none; }
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a { position: relative; display: block; padding: 17px 12px; font-size: 0.88rem; font-weight: 550; color: var(--text-3); white-space: nowrap; transition: color 0.2s; }
.subnav-links a:hover, .subnav-links a.is-active { color: var(--text); }
.subnav-indicator { position: absolute; bottom: 0; left: 0; height: 2px; width: var(--sn-w, 0px); transform: translateX(var(--sn-x, 0px)); background: var(--p); box-shadow: 0 0 10px var(--p); border-radius: 2px; transition: transform 0.45s var(--ease-out), width 0.45s var(--ease-out); }
@media (max-width: 760px) { .subnav-brand span, .subnav .btn { display: none; } .subnav-links { margin: 0; } }

.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(64px + 32px); align-self: start; }
.toc h2 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.toc ol { position: relative; list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 18px; font-size: 0.9rem; color: var(--text-3); transition: color 0.2s; }
.toc a:hover, .toc a.is-active { color: var(--text); }
.toc-indicator { position: absolute; left: -1px; top: 0; width: 2px; height: var(--toc-h, 0px); transform: translateY(var(--toc-y, 0px)); background: var(--grad-gold); border-radius: 2px; transition: transform 0.4s var(--ease-out), height 0.4s var(--ease-out); }
@media (max-width: 960px) { .doc-layout { grid-template-columns: 1fr; } .toc { position: static; } }

.domain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.domain-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.35s var(--ease);
}
.domain-card:hover { border-color: color-mix(in srgb, var(--p) 45%, transparent); transform: translateY(-3px); }
[data-theme="light"] .domain-card { background: #fff; }
.domain-card .url { font-family: var(--font-mono); font-size: 0.92rem; color: var(--text); display: flex; align-items: center; gap: 8px; }
.domain-card .url .icon { width: 15px; height: 15px; color: var(--success); }
.domain-card p { margin: 0; font-size: 0.9rem; color: var(--text-2); }
@media (max-width: 860px) { .domain-grid { grid-template-columns: 1fr; } }

.note {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(244, 188, 98, 0.07);
  border: 1px solid rgba(244, 188, 98, 0.25);
  font-size: 0.93rem;
  color: var(--text-2);
}
.note .icon { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.note p { margin: 0; }

/* connection diagram */
.connect { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); align-items: stretch; }
.connect-node {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
}
[data-theme="light"] .connect-node { background: #fff; }
.connect-node h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.connect-node p { font-size: 0.9rem; margin: 0; }
.connect-node + .connect-node::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(-1 * clamp(16px, 3vw, 40px));
  width: clamp(16px, 3vw, 40px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px);
  background-size: 24px 100%;
  animation: dash-flow 1.2s linear infinite;
}
@media (max-width: 860px) {
  .connect { grid-template-columns: 1fr; }
  .connect-node + .connect-node::before { top: calc(-1 * clamp(16px, 3vw, 40px)); left: 50%; width: 2px; height: clamp(16px, 3vw, 40px); background: repeating-linear-gradient(180deg, var(--gold) 0 6px, transparent 6px 12px); }
}

/* 20. Login portal ---------------------------------------------------- */
.login-page { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #2c0812, #1b050b); }
.login-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); position: relative; z-index: 5; }
.login-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); position: relative; isolation: isolate; overflow: hidden; }
.login-aside { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 6vw, 88px); overflow: hidden; }
.login-aside h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); max-width: 14ch; }
.login-aside .lead { max-width: 46ch; }
.login-feature { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; font-size: 0.94rem; }
.login-feature .icon-tile { margin: 0; width: 40px; height: 40px; border-radius: 12px; }
.login-feature .icon-tile .icon { width: 18px; height: 18px; }
.login-feature b { display: block; color: var(--text); font-weight: 650; }
.login-stage { position: relative; display: grid; place-items: center; padding: clamp(24px, 5vw, 64px) var(--gutter); }

.particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.particles i {
  position: absolute;
  bottom: -20px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd9a0;
  box-shadow: 0 0 10px 2px rgba(255, 200, 130, 0.55);
  opacity: 0;
  animation: rise 14s linear infinite;
}
.particles i:nth-child(1) { left: 6%; animation-delay: 0s; }
.particles i:nth-child(2) { left: 15%; animation-delay: -3s; animation-duration: 18s; }
.particles i:nth-child(3) { left: 27%; animation-delay: -7s; width: 3px; height: 3px; }
.particles i:nth-child(4) { left: 38%; animation-delay: -1.5s; animation-duration: 16s; background: #ff9db0; box-shadow: 0 0 10px 2px rgba(255, 128, 152, 0.5); }
.particles i:nth-child(5) { left: 49%; animation-delay: -9s; }
.particles i:nth-child(6) { left: 58%; animation-delay: -5s; animation-duration: 20s; width: 3px; height: 3px; }
.particles i:nth-child(7) { left: 67%; animation-delay: -11s; background: #8af0d0; box-shadow: 0 0 10px 2px rgba(99, 219, 184, 0.5); }
.particles i:nth-child(8) { left: 76%; animation-delay: -2.5s; animation-duration: 17s; }
.particles i:nth-child(9) { left: 85%; animation-delay: -6.5s; width: 3px; height: 3px; }
.particles i:nth-child(10) { left: 93%; animation-delay: -12s; animation-duration: 19s; }
.particles i:nth-child(11) { left: 33%; animation-delay: -13s; animation-duration: 22s; width: 2px; height: 2px; }
.particles i:nth-child(12) { left: 71%; animation-delay: -8s; animation-duration: 15s; width: 2px; height: 2px; }

.login-card {
  --p: var(--gold);
  --p-soft: rgba(244, 188, 98, 0.14);
  position: relative;
  width: min(460px, 100%);
  padding: 1.5px;
  border-radius: 30px;
  isolation: isolate;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.85), 0 0 80px -30px color-mix(in srgb, var(--p) 55%, transparent);
  transition: box-shadow 0.6s var(--ease);
}
.login-card::before { /* rotating neon border */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), rgba(255, 255, 255, 0.08) 0deg, var(--p) 60deg, #ff9db0 120deg, rgba(255, 255, 255, 0.08) 180deg, rgba(255, 255, 255, 0.08) 240deg, var(--p) 300deg, rgba(255, 255, 255, 0.08) 360deg);
  animation: rotate-angle 6s linear infinite;
}
.login-card-inner {
  position: relative;
  padding: clamp(26px, 4vw, 38px);
  border-radius: 29px;
  background:
    radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--p) 16%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(48, 10, 20, 0.97), rgba(26, 5, 11, 0.98));
  overflow: hidden;
}
.login-card h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); margin-bottom: 0.3em; }
.login-card .sub { font-size: 0.94rem; color: var(--text-3); margin-bottom: 1.4rem; }
.login-logo { width: 54px; height: 54px; margin-bottom: 18px; animation: float 6s ease-in-out infinite; }

.product-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; position: relative; }
.product-picker button {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px 8px 12px;
  border-radius: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: color 0.25s, background-color 0.25s, border-color 0.25s, transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.product-picker button svg { width: 34px; height: 34px; transition: transform 0.4s var(--ease-spring); }
.product-picker button:hover { color: var(--text); transform: translateY(-2px); border-color: var(--line-strong); }
.product-picker button[aria-checked="true"] { color: var(--text); background: var(--p-soft); border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 18%, transparent); }
.product-picker button[aria-checked="true"] svg { transform: scale(1.1) rotate(-4deg); }
.product-picker button[aria-checked="true"]::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--p) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a0811' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 10px no-repeat;
  animation: pop 0.35s var(--ease-spring);
}

.float-field { position: relative; margin-bottom: 8px; }
.float-field input {
  width: 100%;
  padding: 24px 16px 10px;
  padding-right: var(--suffix-w, 16px);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.25s;
}
.float-field label {
  position: absolute;
  left: 17px;
  top: 17px;
  font-size: 0.95rem;
  color: var(--text-3);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.25s var(--ease), color 0.2s;
}
.float-field input:focus + label,
.float-field input:not(:placeholder-shown) + label { transform: translateY(-10px) scale(0.76); color: var(--p); }
.float-field input:focus { border-color: var(--p); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p) 18%, transparent); }
.float-field input[aria-invalid="true"] { border-color: var(--danger); }
.float-field .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-3); pointer-events: none; }
.field-help { font-size: 0.8rem; color: var(--text-3); margin: 0 0 18px; min-height: 1.2em; }
.field-help.error { color: var(--danger); }

.url-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-2);
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed var(--line-strong);
  overflow: hidden;
}
.url-preview .icon { width: 15px; height: 15px; color: var(--success); flex-shrink: 0; }
.url-preview output { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.url-preview output b { color: var(--p); font-weight: 600; }

.login-card .btn-primary { background: linear-gradient(135deg, color-mix(in srgb, var(--p) 55%, #fff) 0%, var(--p) 55%, color-mix(in srgb, var(--p) 75%, #7a1c30) 100%); box-shadow: 0 14px 34px -14px var(--p), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.login-card .btn-primary.is-loading { pointer-events: none; }
.login-secure { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--text-3); }
.login-secure .icon { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; margin-top: 1px; }
.login-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: 0.86rem; }
.login-links a { color: var(--gold); font-weight: 600; }
.login-links a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .login-main { grid-template-columns: 1fr; }
  .login-aside { order: 2; padding-top: 8px; }
  .login-aside h1 { font-size: 2.2rem; }
}

/* 21. 404 -------------------------------------------------------------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 80px; position: relative; overflow: hidden; isolation: isolate; }
.notfound .code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(7rem, 26vw, 15rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.1em;
  position: relative;
}
.notfound .code .o { display: inline-block; animation: wobble 5s ease-in-out infinite; }
.notfound .hero-actions { justify-content: center; }

/* 22. Motion ----------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease), transform 0.95s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-scale { opacity: 0; transform: scale(0.96) translateY(18px); transition: opacity 0.9s var(--ease), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal-scale.is-visible { opacity: 1; transform: none; }
.d1 { --d: 0.08s; } .d2 { --d: 0.16s; } .d3 { --d: 0.24s; } .d4 { --d: 0.32s; } .d5 { --d: 0.4s; } .d6 { --d: 0.48s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rotate-angle { to { --angle: 360deg; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes pulse-ring { 0% { transform: scale(0.9); opacity: 0.8; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(-90px, 60px) scale(1.15); } }
@keyframes drift-b { from { transform: translate(0, 0) scale(1); } to { transform: translate(-120px, -50px) scale(0.9); } }
@keyframes drift-c { from { transform: translate(0, 0) scale(1); } to { transform: translate(110px, -40px) scale(1.1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes dash-flow { to { background-position: -40px 0; } }
@keyframes twinkle { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes wave { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@keyframes rec { 0% { box-shadow: 0 0 0 0 rgba(255, 95, 109, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(255, 95, 109, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 95, 109, 0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rise { 0% { transform: translateY(0) scale(1); opacity: 0; } 10% { opacity: 0.9; } 90% { opacity: 0.6; } 100% { transform: translateY(-105vh) scale(0.6); opacity: 0; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes wobble { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-8deg) translateY(-6px); } 75% { transform: rotate(8deg) translateY(4px); } }
@keyframes blink { 50% { opacity: 0; } }

/* 23. Utilities -------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.75rem; } .mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.5rem; } .mt-4 { margin-top: 4rem; }
.mb-1 { margin-bottom: 0.75rem; } .mb-2 { margin-bottom: 1.5rem; } .mb-3 { margin-bottom: 2.5rem; }
.maxw-sm { max-width: 52ch; }
.nowrap { white-space: nowrap; }
.footnote { font-size: 0.8rem; color: var(--text-3); }
.divider-glow { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); margin: 0; }

/* 23b. Additions: lists, vertical connect, pill colours, view transitions */
ol.flow, ol.pipeline, ol.steps { list-style: none; margin: 0; padding: 0; }
.split > * { min-width: 0; }
.connect.vertical { grid-template-columns: 1fr; gap: 28px; }
.connect.vertical .connect-node + .connect-node::before {
  top: -28px;
  left: 44px;
  width: 2px;
  height: 28px;
  background: repeating-linear-gradient(180deg, var(--gold) 0 6px, transparent 6px 12px);
  background-size: 100% 24px;
  animation: dash-flow-y 1.2s linear infinite;
}
.connect-node h3 { margin-bottom: 0.5em; }
.connect-node h3 .badge { margin-left: auto; }
.connect-node .icon-tile.sm { margin: 0; }
@keyframes dash-flow-y { to { background-position: 0 24px; } }

.segmented[data-active="ainbox"], .segmented .is-ainbox { --seg-bg: linear-gradient(135deg, #ffd6de 0%, #ff8098 60%, #e2506f 100%); }
.segmented[data-active="medicaai"] { --seg-bg: linear-gradient(135deg, #d4fbef 0%, #63dbb8 60%, #25a983 100%); }

.switch.is-shaking { animation: shake 0.5s var(--ease); }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

.answer-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.3s, background-color 0.3s;
}
.answer-card.is-on, .is-on .answer-card { border-color: rgba(111, 224, 180, 0.35); background: rgba(111, 224, 180, 0.07); }
.answer-card small { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); }
.locked-msg { min-height: 1.4em; font-size: 0.86rem; color: var(--gold-2); margin: 10px 0 0; }

.demo-panel { display: grid; gap: 16px; }
.demo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

.quote-block {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(122, 28, 48, 0.55), rgba(42, 8, 17, 0.4));
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
}
[data-theme="light"] .quote-block { background: linear-gradient(135deg, #fff, #fdf0ea); }
.quote-block footer { margin-top: 14px; font-family: var(--font-sans); font-size: 0.9rem; color: var(--text-3); letter-spacing: 0; }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pill-list li { padding: 7px 13px; border-radius: 999px; font-size: 0.88rem; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }

.lang-cloud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lang-cloud span { padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); transition: transform 0.25s var(--ease), border-color 0.25s, color 0.25s; }
.lang-cloud span:hover { transform: translateY(-2px); border-color: var(--rose); color: var(--text); }
.lang-cloud span.hi { border-color: rgba(255, 128, 152, 0.4); color: var(--text); background: rgba(255, 128, 152, 0.08); }

.status-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.status-flow span { padding: 8px 12px; border-radius: 10px; font-size: 0.85rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.status-flow .arr { padding: 0; background: none; border: 0; color: var(--text-3); font-weight: 400; }

.role-table td.yes { color: var(--success); font-weight: 700; text-align: center; }
.role-table td.no { color: var(--text-3); text-align: center; }
.role-table th[scope="col"] { text-align: center; }
.role-table th[scope="col"]:first-child { text-align: left; }

.icon.flip { transform: scaleX(-1); }
.login-page > footer.login-header { padding-top: 10px; padding-bottom: 22px; color: var(--text-3); }
.login-page > footer.login-header a:hover { color: var(--gold); }
.domain-card .pc-logo { width: 46px; height: 46px; }
.domain-card .mc-title { font-size: 1.2rem; }
.notfound > div:last-child { position: relative; z-index: 1; display: grid; justify-items: center; }
.notfound .lead { margin-inline: auto; }

.page-hero .hero-grid { align-items: start; }
.float-field .suffix { transition: opacity 0.2s var(--ease); }
.float-field input:placeholder-shown:not(:focus) ~ .suffix { opacity: 0; }

@media (max-width: 560px) {
  .hero-badge { border-radius: 18px; font-size: 0.8rem; align-items: center; padding: 6px 12px 6px 6px; }
  .hero-badge b { white-space: nowrap; font-size: 0.68rem; }
  .hero-actions .btn-lg { width: 100%; }
  .stat-value { font-size: 2rem; }
}

[data-theme="light"] .site-header.is-scrolled,
[data-theme="light"] .site-header.is-solid,
[data-theme="light"] .subnav { background-color: rgba(58, 11, 24, 0.97); }

/* 23c. Brand name "AbnIco": golden A and I --------------------------------- */
.bn { color: var(--gold); font-style: normal; }
.theme-dark .bn,
.brand-word .bn {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-word .bn { filter: drop-shadow(0 0 10px rgba(244, 188, 98, 0.25)); }
/* The capital I is drawn from Inter (built with its serifed "I"), because in Plus Jakarta Sans a capital I
   is a plain bar that reads as a lowercase l ("Abnlco"). ".bn + .bn" is the I: the second golden letter. */
.bn + .bn { font-family: var(--font-sans); letter-spacing: 0; }
.brand-word .bn + .bn,
.footer-word .bn + .bn { margin: 0 0.02em; }
.footer-word .bn {
  background: linear-gradient(180deg, rgba(246, 194, 108, 0.55), rgba(246, 194, 108, 0) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(246, 194, 108, 0.5);
  color: transparent;
  filter: none;
}

/* Support contacts */
.footer-contact li, .footer-contact a { display: inline-flex; align-items: center; gap: 9px; }
.footer-contact .icon { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }
.footer-contact a[href^="tel:"] { font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 550; }
.sidebar-support { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.sidebar-support .sidebar-title { padding: 0 0 4px; }
.sidebar-support a { display: inline-flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 0.92rem; color: var(--text); }
.sidebar-support a:hover { color: var(--gold); }
.sidebar-support .icon { width: 16px; height: 16px; color: var(--gold); }
.contact-lines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.contact-lines li { display: flex; align-items: center; gap: 10px; }
.contact-lines .icon { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.contact-lines a { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.contact-lines a:hover { color: var(--gold); }
.contact-card-hero { border-color: rgba(244, 188, 98, 0.35); background: linear-gradient(135deg, rgba(244, 188, 98, 0.1), var(--surface)); }
[data-theme="light"] .contact-card-hero { background: linear-gradient(135deg, #fff5e6, #ffffff); }

/* 24. Reduced motion & print ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal, .js .reveal-scale { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .orbit-arm, .orbit-node, .orbit-spin { animation: none !important; }
  .particles, .aurora { display: none; }
}

@media print {
  body { background: #fff !important; color: #111 !important; }
  body::before, .site-header, .sidebar, .sidebar-backdrop, .back-to-top, .read-progress, .hero-bg, .footer-word, .subnav { display: none !important; }
  .hero, .page-hero, .site-footer, .cta-band { background: none !important; color: #111 !important; padding-top: 24px !important; }
  h1, h2, h3, h4, strong, .text-grad, .serif, .stat-value { color: #111 !important; -webkit-text-fill-color: #111; background: none !important; }
  a { text-decoration: underline; }
  .js .reveal, .js .reveal-scale { opacity: 1 !important; transform: none !important; }
}
