/* ============================================================
   BCBASE - Core Design System
   Dark Terminal / Cyberpunk Tech UI
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root,
[data-theme="dark"] {
  /* Palette - Dark Terminal */
  --c-bg: #080c10;
  --c-bg-2: #0d1117;
  --c-bg-3: #161b22;
  --c-surface: #0d1117;
  --c-border: #21262d;
  --c-border-soft: #161b22;

  --c-ink: #e6edf3;
  --c-ink-2: #c9d1d9;
  --c-ink-3: #8b949e;
  --c-ink-4: #484f58;

  --c-accent-hover: #00ffb3;
  --c-accent: #00f525;
  --c-accent-2: #00c91e;
  --c-accent-3: #06941b;
  --c-accent-soft: rgba(0, 245, 98, 0.12);
  --c-accent-pale: rgba(0, 245, 78, 0.06);
  --c-nav-bg: rgba(8, 12, 16, 0.8);
  --c-bk-color: #f5a623;

  --c-teal: #00b4d8;
  --c-teal-soft: rgba(0, 180, 216, 0.12);
  --c-sky: #58a6ff;
  --c-sky-soft: rgba(88, 166, 255, 0.12);
  --c-sage: #3fb950;
  --c-sage-soft: rgba(63, 185, 80, 0.12);
  --c-rose: #f85149;
  --c-rose-soft: rgba(248, 81, 73, 0.12);

  --c-cyan: #79c0ff;
  --c-purple: #bc8cff;
  --c-orange: #ffa657;
  --c-magenta: #f652a0;
  --c-yellow: #f2cc60;
  --c-lavender: #a371f7;
  --c-mint: #56d364;
  --c-coral: #ff7b72;

  --c-success: #3fb950;
  --c-warning: #d29922;
  --c-danger: #f85149;
  --c-info: #58a6ff;

  /* Typography */
  --f-display: 'Inter', system-ui, sans-serif;
  --f-body: 'Outfit', system-ui, sans-serif;
  --f-mono: 'Share Tech Mono', 'Space Mono', monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.75rem;
  --fs-4xl: 3.75rem;
  --fs-5xl: 5rem;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semi: 600;
  --fw-bold: 700;

  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-base: 1.6;
  --lh-loose: 1.8;

  --ls-tight: -0.02em;
  --ls-snug: -0.01em;
  --ls-normal: 0;
  --ls-wide: 0.05em;
  --ls-wider: 0.12em;
  --ls-widest: 0.2em;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --layout-max: 1320px;
  --layout-content: 740px;
  --layout-sidebar: 280px;
  --layout-gap: 2rem;
  --nav-height: 64px;
  --nav-height-scroll: 50px;

  /* Radius - sharper for tech feel */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-xl: 8px;
  --r-2xl: 12px;
  --r-full: 9999px;

  --c-bg-grid: rgba(255, 255, 255, 0.02);
  --c-bg-glow: rgba(0, 245, 159, 0.109);

  /* Shadows - glowing */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--c-border);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--c-border);
  --shadow-accent: 0 0 20px rgba(0, 245, 160, 0.3), 0 0 60px rgba(0, 245, 160, 0.1);
  --shadow-glow: 0 0 12px rgba(0, 245, 160, 0.4);
  --title-glow: 0 0 24px rgba(0, 245, 37, .4);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 150ms;
  --t-base: 250ms;
  --t-slow: 400ms;
  --t-xslow: 600ms;
  --theme-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sun-icon lucide-sun"><circle cx="12" cy="12" r="4"/><path d="M12 2v2"/><path d="M12 20v2"/><path d="m4.93 4.93 1.41 1.41"/><path d="m17.66 17.66 1.41 1.41"/><path d="M2 12h2"/><path d="M20 12h2"/><path d="m6.34 17.66-1.41 1.41"/><path d="m19.07 4.93-1.41 1.41"/></svg>');

}

[data-theme="light"] {
  /* Palette - Light Terminal */
  --c-bg: #f8f9fb;
  --c-bg-2: #ffffff;
  --c-bg-3: #f0f2f5;
  --c-surface: #ffffff;
  --c-border: #dde1e8;
  --c-border-soft: #edf0f4;
  --c-ink: #111827;
  --c-ink-2: #374151;
  --c-ink-3: #6b7280;
  --c-ink-4: #9ca3af;

  --c-accent-hover: #ff7700;
  /* Amber #f5a623 */
  --c-accent: #f12c2c;
  /*#00ABE4;        #0082ad;           */
  --c-accent-2: #d61818;
  --c-accent-3: #9b1414;
  --c-accent-soft: rgba(255, 100, 40, 0.12);
  --c-accent-pale: rgba(150, 22, 5, 0.06);
  --c-nav-bg: rgba(255, 255, 255, 0.9);
  --c-teal: #0891b2;
  --c-teal-soft: rgba(8, 145, 178, 0.12);
  --c-sky: #2563eb;
  --c-sky-soft: rgba(37, 99, 235, 0.12);
  --c-sage: #16a34a;
  --c-sage-soft: rgba(22, 163, 74, 0.12);
  --c-rose: #dc2626;
  --c-rose-soft: rgba(220, 38, 38, 0.12);
  --c-cyan: #0284c7;
  --c-yellow: #c9c123;
  --c-purple: #7c3aed;
  --c-orange: #ea580c;
  --c-success: #16a34a;
  --c-warning: #d97706;
  --c-danger: #dc2626;
  --c-info: #2563eb;

  --c-bg-grid: rgba(0, 0, 0, 0.02);
  --c-bg-glow: rgb(245 126 0 / 15%);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 6px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--c-border);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16), 0 0 0 1px var(--c-border);
  --shadow-accent: 0 4px 16px rgba(150, 22, 5, 0.2), 0 0 60px rgba(245, 45, 0, 0.1);
  --shadow-glow: 0 0 12px rgba(150, 19, 5, 0.25);
  --title-glow: 0 0 24px rgba(249, 142, 11, 0.758);
  /* Other colors can be adjusted similarly for light theme... */

  --theme-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-moon-icon lucide-moon"><path d="M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"/></svg>');

}

/* ── Reset ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height-scroll);
}

body {
  font-family: var(--f-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  color: var(--c-ink-2);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Subtle grid overlay */
  background-image:
    linear-gradient(var(--c-bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-bg-grid) 1px, transparent 1px);
  background-size: 36px 36px;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.theme_icon {
  width: 16px;
  height: 16px;

  background-color: var(--c-accent);
  mask-image: var(--theme-icon);
  mask-repeat: no-repeat;
  mask-size: contain;

  -webkit-mask-image: var(--theme-icon);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

button {
  cursor: pointer;
  font: inherit;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--f-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-snug);
  color: var(--c-ink);
}

/* ── Scanline overlay (subtle, body-level) ────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(var(--c-accent), 0.14) 2px,
      rgba(var(--c-bg-3), 0.14) 4px);
  pointer-events: none;
  z-index: 9999;
}

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.container--narrow {
  max-width: 978px;
}

.container--wide {
  max-width: 1500px;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrapper>main {
  flex: 1;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding-top: 14px;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(var(--c-bg-rgb), 0.88);
  backdrop-filter: blur(10px) saturate(2.5);
  -webkit-backdrop-filter: blur(10px) saturate(2.5);
  border-bottom: 1px solid var(--c-border);
  transition: padding-top var(--t-xslow) var(--ease-out), height var(--t-xslow) var(--ease-out),
    box-shadow var(--t-xslow) var(--ease-out),
    background var(--t-xslow);
}

.nav.nav--scrolled {
  height: var(--nav-height-scroll);
  padding-top: 7px;
  box-shadow: 0 0 30px rgba(0, 245, 160, 0.08), 0 1px 0 var(--c-border);
  background: var(--c-nav-bg)
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav__inner:last-child {
  gap: var(--sp-2);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo-mark {
  width: 34px;
  height: 34px;
  /* background: var(--c-accent); */
  /* border-radius: var(--r-sm); */
  display: grid;
  place-items: center;
  /* transition: background var(--t-base), transform var(--t-base) var(--ease-spring), box-shadow var(--t-base); */
  /* box-shadow: 0 0 12px rgba(0, 245, 160, 0.4); */
}

.nav__logo-mark:hover {
  /* background: #00ffb3; */
  transform: rotate(-4deg);
  /* box-shadow: 0 0 20px rgba(0, 245, 160, 0.7); */
}

.nav__logo-mark svg {
  width: 22px;
  height: 22px;
  stroke: var(--c-bg);
}

.nav__logo-text {
  font-family: var(--f-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  color: var(--c-ink);
  text-transform: uppercase;
}

.nav__logo-text span {
  color: var(--c-accent);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-ink-3);
  transition: color var(--t-fast);
  white-space: nowrap;
  position: relative;
  font-family: var(--f-mono);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: var(--sp-4);
  right: var(--sp-4);
  height: 1px;
  background: var(--c-accent);
  box-shadow: 0 0 6px var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}

.nav__link:hover {
  color: var(--c-accent);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__link.is-active {
  color: var(--c-accent);
}

.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__link-chevron {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform var(--t-fast);
}

.nav__item:hover .nav__link-chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: calc(100% + var(--sp-2));
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 220px;
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 245, 160, 0.06);
  padding: var(--sp-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
  z-index: 100;
}

/* Gap bridge: transparent pseudo-element fills the space between
   the nav link and the dropdown so the pointer never leaves a
   hoverable area when moving diagonally from link → menu. */
.nav__dropdown::after {
  content: '';
  position: absolute;
  top: calc(-1 * var(--sp-2) - 2px);
  left: 0;
  right: 0;
  height: calc(var(--sp-2) + 2px);
  background: transparent;
}

.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--c-bg-2);
  border-left: 1px solid var(--c-border);
  border-top: 1px solid var(--c-border);
  rotate: 45deg;
  z-index: 1;
}

.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--c-ink-3);
  transition: background var(--t-fast), color var(--t-fast);
}

.nav__dropdown-link:hover {
  background: var(--c-accent-pale);
  color: var(--c-accent);
}

.nav__dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--c-bg-3);
  border: 1px solid var(--c-border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.nav__dropdown-link:hover .nav__dropdown-icon {
  background: var(--c-accent-soft);
  border-color: var(--c-accent);
}

.nav__dropdown-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--c-ink-3);
  stroke-width: 1.5;
  fill: none;
}

.nav__dropdown-link:hover .nav__dropdown-icon svg {
  stroke: var(--c-accent);
}

.nav__dropdown-label {
  font-weight: var(--fw-medium);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  color: var(--c-ink);
}

.nav__dropdown-desc {
  font-size: var(--fs-xs);
  color: var(--c-ink-4);
  margin-top: -2px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  display: block;
}

.nav__dropdown--mega {
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: unset;
  width: auto;
}

.nav__item:hover .nav__dropdown--mega {
  transform: translateX(-50%) translateY(0);
}

.nav__mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-1);
}

.nav__mega-section {
  padding: var(--sp-2);
}

.nav__mega-heading {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: var(--fw-bold);
  padding: var(--sp-2) var(--sp-4) var(--sp-3);
  font-family: var(--f-mono);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-left: auto;
}

/* Mobile nav trigger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: var(--sp-2);
  margin-left: auto;
}

.nav__hamburger span {
  display: block;
  height: 1px;
  background: var(--c-accent);
  border-radius: 0;
  transition: transform var(--t-base) var(--ease-spring),
    opacity var(--t-base),
    width var(--t-base);
  box-shadow: 0 0 4px var(--c-accent);
}

.nav__hamburger span:nth-child(2) {
  width: 70%;
}

.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile drawer */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height-scroll);
  left: 0;
  right: 0;
  /* background: var(--c-nav-bg); */
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  backdrop-filter: blur(10px);
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
  z-index: 999;
  height: 100%;
}

.nav__mobile.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.nav__mobile-inner {
  padding: var(--sp-4) var(--sp-6) var(--sp-8);
  background: var(--c-bg-2);
}

.nav__mobile-link {
  display: block;
  padding: var(--sp-3) 0 var(--sp-3) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-ink-3);
  border-bottom: 1px solid var(--c-border);
  transition: color var(--t-fast);
  font-family: var(--f-mono);
  letter-spacing: var(--ls-wide);
}

.nav__mobile-link:hover {
  color: var(--c-accent);
  background: var(--c-nav-bg);
}

.nav__mobile-sub {
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-6);
}

.nav__mobile-sub-link {
  display: block;
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
  color: var(--c-ink-4);
  transition: color var(--t-fast);
}

.nav__mobile-sub-link:hover {
  color: var(--c-accent);
}

/* Nav page offset */
.nav-offset {
  padding-top: var(--nav-height);
}

/* ── Sidebar Layout ───────────────────────────────────────── */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--layout-sidebar);
  gap: var(--layout-gap);
  align-items: start;
}

.layout-with-sidebar--left {
  grid-template-columns: var(--layout-sidebar) 1fr;
}

.layout-with-sidebar__main {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-16) + 2px);
}

.sidebar__block {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
  position: relative;
}

.sidebar__block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--c-accent), transparent);
  border-radius: var(--r-sm) 0 0 var(--r-sm);
}

.sidebar__block:last-child {
  margin-bottom: 0;
}

.sidebar__title {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-accent);
  font-family: var(--f-mono);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-4);
}

.sidebar__nav-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-base);
  color: var(--c-ink-3);
  transition: background var(--t-fast), color var(--t-fast);
  margin-bottom: var(--sp-1);
  font-family: var(--f-mono);
}

.sidebar__nav-link:hover {
  background: var(--c-accent-pale);
  color: var(--c-accent);
}

.sidebar__nav-link.is-active,
.nav__mobile-link.is-active {
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-weight: var(--fw-medium);
}

/* .sidebar__nav-link::before {
  content: '>';
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-border);
  flex-shrink: 0;
  transition: color var(--t-fast);
} */

.sidebar__nav-link.is-active::before {
  color: var(--c-accent);
}

.sidebar_sub {
  display: block;
  font-size: var(--fs-base);
  color: var(--c-ink-4);
  padding: 0 0 var(--sp-1) var(--sp-4);
  transition: color var(--t-fast);
  font-family: var(--f-mono);
  padding-bottom: var(--sp-4);
  border-bottom: 1px var(--c-bg-3) solid;
}

.sidebar_sub:last-child {
  border-bottom: none;
}

.sidebar_sub a {
  display: block;
  padding-left: var(--sp-4);
}

.sidebar_sub a.is-active {
  background: var(--c-accent-soft);
  color: var(--c-accent);
}

.sidebar_sub a:hover {
  color: var(--c-accent);
}

.sidebar_sub a:hover::after {
  content: ' \2192';
  color: var(--c-accent);
  display: inline-block;
  font-size: var(--fs-base);
  animation: scrollRight 1.2s ease infinite;
}

@keyframes scrollRight {
  0% {
    transform: translateX(0);
    opacity: 0;
  }

  60% {
    transform: translateX(10px);
    opacity: 1;
  }

  100% {
    transform: translateX(25px);
    opacity: 0;
  }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: var(--sp-24) 0 var(--sp-16);
  position: relative;
  overflow: hidden;
}

.hero--center {
  text-align: center;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-5);
  font-family: var(--f-mono);
}

.hero__label::before {
  content: '// ';
  opacity: 0.5;
}

/* .hero__label::after {
  content: ' //';
  opacity: 0.5;
} */

.hero--center .hero__label::before {
  display: none;
}

.hero__title {
  font-size: clamp(var(--fs-3xl), 6vw, var(--fs-5xl));
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  color: var(--c-ink);
  max-width: 14ch;
  margin-bottom: var(--sp-6);
  font-family: var(--f-display);
}

.hero--center .hero__title {
  max-width: 20ch;
  margin-inline: auto;
}

.hero__title em {
  font-style: normal;
  color: var(--c-accent);
  text-shadow: var(--title-glow);
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--c-ink-3);
  max-width: 52ch;
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-10);
  font-weight: var(--fw-light);
}

.hero--center .hero__subtitle {
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero--center .hero__actions {
  justify-content: center;
}

/* Hero background effects */
.hero__bg-shape {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 100% 100% at 50% 100%, var(--c-bg-glow) 0%, transparent 70%);
  ;
  pointer-events: none;
}

.hero__bg-shape::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  opacity: 0.3;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  opacity: 0.3;
}



/* ── Components ─────────────────────────────────────────────── */

.demo-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-ink-4);
  font-weight: 500;
  margin-bottom: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.demo-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border-soft);
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  padding: var(--sp-20) 0;
}

.section--title {
  position: relative;
  padding: var(--sp-10) 0 var(--sp-6);
  overflow: hidden;
}

.section--sm {
  padding: var(--sp-8) 0 var(--sp-16);
}

.section--lg {
  padding: var(--sp-32) 0;
}

.section--bg {
  background: var(--c-bg-2);
}

.section--bg-3 {
  background: var(--c-bg-3);
}

.bg--accent {
  background: linear-gradient(180deg, var(--c-accent-soft) 0%, transparent 100%);
}

.bg--shade {
  background: linear-gradient(180deg, var(--c-bg-grid) 0%, transparent 100%);
}

.bg--hero {
  background: radial-gradient(ellipse 100% 100% at 50% 100%, var(--c-bg-glow) 0%, transparent 70%);
  /* pointer-events: none; */
}

.section--dark {
  background: var(--c-bg);
  color: var(--c-ink-2);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--c-ink);
}

.section--dark p {
  color: var(--c-ink-3);
}

.section__header {
  margin-bottom: var(--sp-12);
}

.section__header--center {
  text-align: center;
}

.section__title {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl));
  color: var(--c-ink);
  margin-bottom: var(--sp-3);
}

.section__title em {

  font-style: normal;
  color: var(--c-accent);
  text-shadow: var(--title-glow);
}

.section__subtitle {
  color: var(--c-ink-3);
  font-size: var(--fs-md);
  font-weight: var(--fw-light);
}

.section__header--center .section__subtitle {
  margin-inline: auto;
}


/* Divider */
.divider {
  height: 1px;
  background: var(--c-border);
  border: none;
  margin: 0;
}

.divider--ornate {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  text-align: center;
  color: var(--c-ink-4);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  border: none;
  height: auto;
  background: none;
  font-family: var(--f-mono);
}

.divider--ornate::before,
.divider--ornate::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

.divider--hero {
  content: '';
  height: 1px;
  background: linear-gradient(90deg, var(--c-accent), transparent);
  opacity: 0.5;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.65em 1.4em;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  border-radius: var(--r-sm);
  transition: all var(--t-base) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  font-family: var(--f-mono);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--t-fast);
}

.btn:hover::before {
  background: rgba(255, 255, 255, 0.05);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--c-bg-3);
  color: var(--c-ink);
  border: 1px solid var(--c-border);
}

.btn--primary:hover {
  border-color: var(--c-ink-3);
  box-shadow: var(--shadow-sm);
}

.btn--accent {
  background: var(--c-accent);
  color: var(--c-bg-2);
  border: 1px solid var(--c-accent);
  box-shadow: var(--shadow-glow);
}

.btn--accent:hover {
  background: var(--c-accent-hover);
  box-shadow: var(--shadow-glow), var(--shadow-accent);
}

.btn--outline {
  background: transparent;
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
}

.btn--outline:hover {
  background: var(--c-accent-pale);
  box-shadow: 0 0 12px rgba(0, 245, 160, 0.2);
}

.btn--ghost {
  background: transparent;
  color: var(--c-ink-3);
  border: 1px solid transparent;
}

.btn--ghost:hover {
  background: var(--c-bg-3);
  color: var(--c-ink);
  border-color: var(--c-border);
}

.btn--sm {
  padding: 0.4em 0.9em;
  font-size: var(--fs-xs);
}

.btn--lg {
  padding: 0.75em 1.6em;
  font-size: var(--fs-sm);
}

.btn--xl {
  padding: 0.9em 2em;
  font-size: var(--fs-base);
}

.btn--icon {
  padding: 0.65em;
  border-radius: var(--r-sm);
}

.btn--icon-sq {
  border-radius: var(--r-sm);
  padding: 0.55em;
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.btn--lg svg,
.btn--xl svg {
  width: 18px;
  height: 18px;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out),
    border-color var(--t-base);
}

.card--hover:hover {
  box-shadow: var(--shadow-accent), var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--c-accent-2);
}

.card--flat {
  box-shadow: none;
}

.card--raised {
  box-shadow: var(--shadow-md);
}

.card--accent-top {
  border-top: 2px solid var(--c-accent);
}

.card--accent-success {
  border-top: 2px solid var(--c-success);
}

.card--accent-info {
  border-top: 2px solid var(--c-info);
}

.card__media {
  position: relative;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: auto;
  /* aspect-ratio: 16/9; */
  object-fit: contain;
  /* transition: transform var(--t-slow) var(--ease-out); */
}

.card__media svg {
  width: 100%;
  height: auto;
  /* aspect-ratio: 16/9; */
  object-fit: contain;
  /* transition: transform var(--t-slow) var(--ease-out); */
}

.card--compact {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4);
}

.card--compact .nav__dropdown-icon {
  width: 40px;
  height: 40px;
}

.card--compact .nav__dropdown-icon svg {
  width: 32px;
  height: 32px;
}


/* .card--hover:hover .card__media img {
  transform: scale(1.04);
} */

.card__body {
  padding: var(--sp-6);
}

.card__tag {
  display: inline-block;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-3);
  font-family: var(--f-mono);
  white-space: nowrap;
}

.card__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-3);
}

.card__text {
  font-size: var(--fs-sm);
  color: var(--c-ink-3);
  line-height: var(--lh-loose);
}

.card__footer {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-ink-4);
  font-family: var(--f-mono);
}

.card__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--c-accent);
}

/* Feature card */
.card--feature {
  padding: var(--sp-8);
  min-height: 310px;
  height: 100%;
}

.card--feature .card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--c-accent-pale);
  border: 1px solid var(--c-accent-pale);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-5);
  transition: background var(--t-base), transform var(--t-base) var(--ease-spring), box-shadow var(--t-base);
}

.card--feature:hover .card__icon {
  background: var(--c-accent-soft);
  transform: scale(1.1);
  box-shadow: 0 0 12px var(--c-accent-soft);
}

.card--feature .card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--c-accent);
  stroke: var(--c-accent);
  stroke-width: 1.5;
  fill: none;
}

.card--feature .card__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-3);
}

.card--feature .card__text {
  font-size: var(--fs-sm);
}

.card--feature .card__banner {
  width: 100%;
  height: 80px;
  background: var(--c-bg-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-5);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.card__banner svg {
  filter: drop-shadow(0px 0px 8px color-mix(in srgb, currentColor 70%, transparent));
}

.card__banner::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 176, 0, 0.1), transparent);
  pointer-events: none;
}

/* ── Grids ────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: var(--sp-6);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--auto {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid--auto-sm {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* ── Drop areas ───────────────────────────────────────────── */

.drop-area {
  border: 2px dashed var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-bg-2);
  padding: var(--sp-16) var(--sp-8);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-base), background var(--t-base), box-shadow var(--t-base);
  position: relative;
}

.drop-area:hover,
.drop-area.drag-over {
  border-color: var(--c-accent);
  background: var(--c-accent-pale);
  box-shadow: var(--shadow-accent);
}

.drop-area--icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--sp-5);
  border-radius: var(--r-xl);
  background: var(--c-bg-2);
  display: grid;
  place-items: center;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.drop-area--icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--c-ink-3);
}

.drop-area:hover .drop-area--icon svg,
.drop-area.drag-over .drop-area--icon svg {
  stroke: var(--c-accent);
  border-color: var(--c-accent);
}

.drop-area--main {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semi);
  color: var(--c-ink);
  margin-bottom: var(--sp-2);
}

.drop-area--sub {
  color: var(--c-ink-3);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
}

.drop-area--hint {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-ink-4);
  letter-spacing: var(--ls-wide);
}

.tools--browse {
  color: var(--c-accent);
  font-size: inherit;
  font-family: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--t-fast);
}

.tools--browse:hover {
  text-decoration-color: var(--c-accent);
}


/* ── Typography ───────────────────────────────────────────── */
.h1 {
  font-size: var(--fs-4xl);
}

.h2 {
  font-size: var(--fs-3xl);
}

.h3 {
  font-size: var(--fs-2xl);
}

.h4 {
  font-size: var(--fs-xl);
}

.h5 {
  font-size: var(--fs-lg);
}

.h6 {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
}

.display {
  font-size: var(--fs-5xl);
  font-family: var(--f-display);
  font-weight: var(--fw-bold);
}

.lead {
  font-size: var(--fs-lg);
  line-height: var(--lh-loose);
  color: var(--c-ink-3);
  font-weight: var(--fw-light);
}

.small {
  font-size: var(--fs-sm);
}

.xs {
  font-size: var(--fs-xs);
}

.mono {
  font-family: var(--f-mono);
}

.italic {
  font-style: italic;
}

.bold {
  font-weight: var(--fw-bold);
}

.muted {
  color: var(--c-ink-4);
}

.accent-text {
  color: var(--c-accent);
}

.prose h2 {
  font-size: var(--fs-2xl);
  margin: var(--sp-10) 0 var(--sp-4);
}

.prose h3 {
  font-size: var(--fs-xl);
  margin: var(--sp-8) 0 var(--sp-3);
}

.prose h4 {
  font-size: var(--fs-lg);
  margin: var(--sp-6) 0 var(--sp-3);
}

.prose p {
  margin-bottom: var(--sp-5);
  color: var(--c-ink-3);
  line-height: var(--lh-loose);
}

.prose em {
  color: var(--c-ink-2);
}

.prose span {
  color: var(--c-accent-2);
}

.prose a {
  color: var(--c-accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), text-shadow var(--t-fast);
}

.prose a:hover {
  border-bottom-color: var(--c-accent);
  text-shadow: 0 0 8px rgba(0, 245, 160, 0.4);
}

.prose ul,
.prose ol {
  margin: var(--sp-5) 0 var(--sp-5) var(--sp-6);
}

.prose ul {
  list-style: none;
}

.prose ul li::before {
  content: '▸ ';
  color: var(--c-accent);
  padding-right: var(--sp-2);
}

.prose ul li {
  padding-left: var(--sp-2);
  text-indent: calc(var(--sp-6) * -1);
  margin-bottom: var(--sp-2);
  color: var(--c-ink-3);
  line-height: var(--lh-loose);
}

.prose ol {
  list-style: decimal;
}

.prose ol li {
  padding-left: var(--sp-2);
}

.prose blockquote {
  border-left: 2px solid var(--c-accent);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-8) 0;
  background: var(--c-accent-pale);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.prose blockquote p {
  color: var(--c-ink);
  font-family: var(--f-mono);
  font-size: var(--fs-base);
  margin: 0;
}

.prose code {
  font-family: var(--f-mono);
  font-size: 0.875em;
  background: var(--c-bg-3);
  border: 1px solid var(--c-border);
  padding: 0.1em 0.4em;
  border-radius: var(--r-sm);
  color: var(--c-accent);
}

.prose pre {
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  color: var(--c-ink-2);
  padding: var(--sp-6);
  border-radius: var(--r-md);
  overflow-x: auto;
  margin: var(--sp-6) 0;
  font-family: var(--f-mono);
  font-size: var(--fs-sm);
  line-height: 1.7;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: var(--sp-10) 0;
}

.prose img {
  border-radius: var(--r-md);
  margin: var(--sp-8) 0;
  border: 1px solid var(--c-border);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-6) 0;
}

.prose th {
  text-align: left;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-accent);
  border-bottom: 1px solid var(--c-accent);
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--f-mono);
}

.prose td {
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
}

.prose tr:hover td {
  background: var(--c-accent-pale);
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--sp-5);
}

.form-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--c-ink-3);
  margin-bottom: var(--sp-2);
  font-family: var(--f-mono);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.form-label--required::after {
  content: ' *';
  color: var(--c-accent);
}

.form-hint {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-ink-4);
  margin-top: var(--sp-2);
  font-family: var(--f-mono);
}

.form-error {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-danger);
  margin-top: var(--sp-2);
  font-family: var(--f-mono);
}

.input {
  display: block;
  width: 100%;
  padding: 0.65em 0.95em;
  font-size: var(--fs-sm);
  color: var(--c-ink);
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
  font-family: var(--f-mono);
}

.input:hover {
  border-color: var(--c-ink-4);
}

.input:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 2px var(--c-accent-soft), 0 0 10px rgba(0, 245, 160, 0.1);
}

.input::placeholder {
  color: var(--c-ink-4);
}

.input--error {
  border-color: var(--c-danger);
}

.input--error:focus {
  box-shadow: 0 0 0 2px rgba(248, 81, 73, 0.15);
}

.textarea {
  resize: vertical;
  min-height: 120px;
  line-height: var(--lh-base);
}

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9em center;
  padding-right: 2.5em;
  cursor: pointer;
}

.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
}

.checkbox-item input,
.radio-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--c-accent);
  margin-top: 1px;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-item span,
.radio-item span {
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
  line-height: 1.5;
}

/* Input with icon */
.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .input {
  padding-left: 2.5em;
}

.input-icon-wrap svg {
  position: absolute;
  left: 0.85em;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--c-ink-4);
  stroke: var(--c-ink-4);
  stroke-width: 1.5;
  fill: none;
  pointer-events: none;
}

.input-icon-wrap--right .input {
  padding-left: 0.95em;
  padding-right: 2.5em;
}

.input-icon-wrap--right svg {
  left: auto;
  right: 0.85em;
}

/* Toggle */
.toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
}

.toggle__track {
  width: 44px;
  height: 24px;
  background: var(--c-bg-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  position: relative;
  transition: background var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  flex-shrink: 0;
}

.toggle input {
  display: none;
}

.toggle input:checked+.toggle__track {
  background: var(--c-accent-soft);
  border-color: var(--c-accent);
  box-shadow: 0 0 8px rgba(0, 245, 160, 0.3);
}

.toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--c-ink-3);
  border-radius: 50%;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base) var(--ease-spring), background var(--t-base);
}

.toggle input:checked~.toggle__track .toggle__thumb,
.toggle input:checked+.toggle__track .toggle__thumb {
  transform: translateX(20px);
  background: var(--c-accent);
}

.toggle__label {
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
}

/* ── Tables ───────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.table th {
  text-align: left;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-accent);
  font-family: var(--f-mono);
  font-weight: var(--fw-bold);
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-bg-3);
  border-bottom: 1px solid var(--c-accent);
  white-space: nowrap;
}

.table td {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--c-border);
  color: var(--c-ink-2);
  vertical-align: middle;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table--striped tbody tr:nth-child(even) td {
  background: var(--c-bg-2);
}

.table--hover tbody tr {
  transition: background var(--t-fast);
}

.table--hover tbody tr:hover td {
  background: var(--c-accent-pale);
  color: var(--c-ink);
}

/* ── Badges & Tags ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.2em 0.65em;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  border-radius: var(--r-sm);
  font-family: var(--f-mono);
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge--default {
  background: var(--c-bg-3);
  color: var(--c-ink-3);
  border-color: var(--c-border);
}

.badge--accent {
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border-color: rgba(0, 245, 160, 0.3);
}

.badge--success {
  background: var(--c-sage-soft);
  color: var(--c-sage);
  border-color: rgba(63, 185, 80, 0.3);
}

.badge--warning {
  background: rgba(210, 153, 34, 0.12);
  color: var(--c-warning);
  border-color: rgba(210, 153, 34, 0.3);
}

.badge--danger {
  background: var(--c-rose-soft);
  color: var(--c-rose);
  border-color: rgba(248, 81, 73, 0.3);
}

.badge--info {
  background: var(--c-sky-soft);
  color: var(--c-sky);
  border-color: rgba(88, 166, 255, 0.3);
}

.badge--dark {
  background: var(--c-bg-3);
  color: var(--c-ink);
  border-color: var(--c-border);
}

.badge--dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 4px currentColor;
}

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  border-left: 2px solid transparent;
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
  font-family: var(--f-mono);
}

.alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.alert__content {
  flex: 1;
}

.alert__title {
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-1);
}

.alert--info {
  background: var(--c-sky-soft);
  color: var(--c-sky);
  border-color: var(--c-sky);
}

.alert--success {
  background: var(--c-sage-soft);
  color: var(--c-sage);
  border-color: var(--c-sage);
}

.alert--warning {
  background: rgba(210, 153, 34, 0.1);
  color: var(--c-warning);
  border-color: var(--c-warning);
}

.alert--danger {
  background: var(--c-rose-soft);
  color: var(--c-rose);
  border-color: var(--c-rose);
}

/* ── Breadcrumbs ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: var(--c-ink-4);
  margin-bottom: var(--sp-6);
  font-family: var(--f-mono);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.breadcrumb__link {
  color: var(--c-ink-3);
  transition: color var(--t-fast);
}

.breadcrumb__link:hover {
  color: var(--c-accent);
}

.breadcrumb__sep {
  color: var(--c-border);
  font-size: var(--fs-xs);
}

.breadcrumb__current {
  color: var(--c-accent);
  font-weight: var(--fw-bold);
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex-wrap: wrap;
  font-family: var(--f-mono);
}

.pagination__btn {
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  color: var(--c-ink-3);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  border: 1px solid var(--c-border);
}

.pagination__btn:hover {
  background: var(--c-bg-3);
  color: var(--c-ink);
  border-color: var(--c-ink-4);
}

.pagination__btn.is-active {
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border-color: var(--c-accent);
  box-shadow: 0 0 8px rgba(0, 245, 160, 0.2);
}

.pagination__btn--arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.pagination__dots {
  padding: 0 var(--sp-2);
  color: var(--c-ink-4);
}

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs {
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--sp-8);
}

.tabs__list {
  display: flex;
  gap: 0;
  /* overflow-x: auto; */
}

.tabs__tab {
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--c-ink-4);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
  font-family: var(--f-mono);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.tabs__tab:hover {
  color: var(--c-ink-2);
}

.tabs__tab.is-active {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
  text-shadow: 0 0 8px rgba(0, 245, 160, 0.4);
}

.tabs__panel {
  display: none;
}

.tabs__panel.is-active {
  display: block;
  animation: fadeIn var(--t-base) var(--ease-out);
}

/* ── new accordion styles ────────────────────────────────────────────────── */

.accordion {
  background: var(--c-bg);
  border-radius: 8px;
  border: 1px solid var(--c-border);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.accordion__item {
  border-bottom: 1px solid var(--c-border);
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--c-ink-2);
  background: var(--c-nav-bg);
  text-align: left;
  transition: background var(--t-fast), color var(--t-fast);
  gap: var(--sp-4);
  font-family: var(--f-mono);
}

.accordion__trigger:hover {
  background: var(--c-bg-3);
  /* color: var(--c-accent); */
}

.accordion__trigger::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;

  background-color: var(--c-accent);

  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;

  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;

  transition: transform 0.3s ease;
}

.accordion__item.is-open .accordion__trigger::after {
  transform: rotate(90deg);
}

.accordion__item.is-open .accordion__trigger {
  /* background: var(--c-bg-3); */
  background: var(--c-bg-3);
}

/* --- The JS Animation CSS --- */
.accordion__body {
  position: relative;
  height: 0;
  /* JS will take over height instead of max-height */
  overflow: hidden;
  transition: height 0.3s ease-out;
}

.accordion__content {
  padding: var(--sp-4) var(--sp-6);
  color: var(--c-ink-2);
  line-height: var(--lh-loose);
}

/* .accordion__item.is-open .accordion__body:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  opacity: 0.3;
} */

.content-pad {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: #52525b;
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: var(--sp-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(0, 245, 160, 0.06);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(8px);
  transition: transform var(--t-base) var(--ease-spring);
}

.modal-backdrop.is-open .modal {
  transform: scale(1) translateY(0);
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-6) 0;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: var(--sp-4);
}

.modal__title {
  font-size: var(--fs-lg);
  color: var(--c-ink);
  font-family: var(--f-mono);
}

.modal__close {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: var(--c-bg-3);
  border: 1px solid var(--c-border);
  flex-shrink: 0;
  margin-top: 2px;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.modal__close:hover {
  background: var(--c-rose-soft);
  border-color: var(--c-rose);
}

.modal__close svg {
  width: 16px;
  height: 16px;
  stroke: var(--c-ink-3);
  stroke-width: 1.5;
  fill: none;
}

.modal__body {
  padding: var(--sp-5) var(--sp-6);
}

.modal__footer {
  padding: 0 var(--sp-6) var(--sp-6);
  display: flex;
  gap: var(--sp-3);
  justify-content: flex-end;
  flex-wrap: wrap;
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-4);
}

/* ── Toast ────────────────────────────────────────────────── */
.toast-stack {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-bg-2);
  color: var(--c-ink);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  max-width: 380px;
  font-size: var(--fs-xs);
  pointer-events: all;
  animation: toastIn var(--t-base) var(--ease-spring);
  font-family: var(--f-mono);
}

.toast svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.toast--success {
  border-color: var(--c-sage);
  color: var(--c-sage);
  box-shadow: var(--shadow-lg), 0 0 12px rgba(63, 185, 80, 0.2);
}

.toast--warning {
  border-color: var(--c-warning);
  color: var(--c-warning);
}

.toast--danger {
  border-color: var(--c-rose);
  color: var(--c-rose);
  box-shadow: var(--shadow-lg), 0 0 12px rgba(248, 81, 73, 0.2);
}

/* ── Avatar & User ────────────────────────────────────────── */
.avatar {
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c-bg-3);
  border: 1px solid var(--c-border);
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-weight: var(--fw-bold);
  color: var(--c-accent);
}

.avatar--xs {
  width: 24px;
  height: 24px;
  font-size: var(--fs-xs);
}

.avatar--sm {
  width: 32px;
  height: 32px;
  font-size: var(--fs-xs);
}

.avatar--md {
  width: 40px;
  height: 40px;
  font-size: var(--fs-sm);
}

.avatar--lg {
  width: 56px;
  height: 56px;
  font-size: var(--fs-md);
}

.avatar--xl {
  width: 80px;
  height: 80px;
  font-size: var(--fs-xl);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.user-card__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-ink);
  font-family: var(--f-mono);
}

.user-card__sub {
  font-size: var(--fs-xs);
  color: var(--c-ink-4);
  font-family: var(--f-mono);
}

/* ── Stats ────────────────────────────────────────────────── */
.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--c-accent), transparent);
}

.stat-card__label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-ink-4);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-3);
  font-family: var(--f-mono);
}

.stat-card__value {
  font-family: var(--f-display);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: var(--sp-2);
  text-shadow: 0 0 20px rgba(0, 245, 160, 0.3);
}

.stat-card__change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  font-family: var(--f-mono);
}

.stat-card__change--up {
  color: var(--c-sage);
}

.stat-card__change--down {
  color: var(--c-rose);
}

.stat-card__change svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--c-bg-2);
  color: var(--c-ink-3);
  padding: var(--sp-20) 0 var(--sp-8);
  margin-top: auto;
  border-top: 1px solid var(--c-border);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  opacity: 0.4;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(1, 1fr);
  gap: var(--sp-12);
  margin-bottom: var(--sp-16);
}

.footer__brand-text {
  font-family: var(--f-display);
  font-size: var(--fs-xl);
  color: var(--c-accent);
  margin-bottom: var(--sp-4);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(0, 245, 160, 0.3);
}

.footer__tagline {
  font-size: var(--fs-sm);
  color: var(--c-ink-4);
  line-height: var(--lh-loose);
}

.footer__col-title {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-5);
  font-family: var(--f-mono);
}

.footer__link {
  display: block;
  font-size: var(--fs-sm);
  color: var(--c-ink-4);
  padding: var(--sp-1) 0;
  transition: color var(--t-fast);
  font-family: var(--f-mono);
}

.footer__link:hover {
  color: var(--c-accent);
}

.footer__bottom {
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--c-ink-4);
  font-family: var(--f-mono);
}

.footer__bottom-links {
  display: flex;
  gap: var(--sp-5);
}

.footer__bottom-link {
  transition: color var(--t-fast);
}

.footer__bottom-link:hover {
  color: var(--c-accent);
}

/* ── Utilities ────────────────────────────────────────────── */

.gray-block {
  position: relative;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  align-items: start;
  font-size: var(--fs-sm);
  width: 100%;
}

.gray-block-label {
  position: absolute;
  top: -1.2em;
  left: .7em;
  backdrop-filter: blur(4px);
}

.gray-block strong {
  color: var(--c-ink-2);
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.item-base {
  align-items: baseline;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: var(--sp-2);
}

.gap-3 {
  gap: var(--sp-3);
}

.gap-4 {
  gap: var(--sp-4);
}

.gap-6 {
  gap: var(--sp-6);
}

.gap-8 {
  gap: var(--sp-8);
}

.wrap {
  flex-wrap: wrap;
}

.mt-2 {
  margin-top: var(--sp-2);
}

.mt-4 {
  margin-top: var(--sp-4);
}

.mt-6 {
  margin-top: var(--sp-6);
}

.mt-8 {
  margin-top: var(--sp-8);
}

.mt-12 {
  margin-top: var(--sp-12);
}

.mb-2 {
  margin-bottom: var(--sp-2);
}

.mb-4 {
  margin-bottom: var(--sp-4);
}

.mb-6 {
  margin-bottom: var(--sp-6);
}

.mb-8 {
  margin-bottom: var(--sp-8);
}

.mb-12 {
  margin-bottom: var(--sp-12);
}

.py-4 {
  padding-block: var(--sp-4);
}

.py-8 {
  padding-block: var(--sp-8);
}

.px-6 {
  padding-inline: var(--sp-6);
}

.p-6 {
  padding: var(--sp-6);
}

.p-8 {
  padding: var(--sp-8);
}

.w-full {
  width: 100%;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes glitch {

  0%,
  100% {
    transform: translate(0);
  }

  20% {
    transform: translate(-2px, 1px);
  }

  40% {
    transform: translate(2px, -1px);
  }

  60% {
    transform: translate(-1px, 2px);
  }

  80% {
    transform: translate(1px, -2px);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100vh);
  }
}

.animate-fade-in {
  animation: fadeIn var(--t-slow) var(--ease-out) both;
}

.animate-fade-in-1 {
  animation-delay: 100ms;
}

.animate-fade-in-2 {
  animation-delay: 200ms;
}

.animate-fade-in-3 {
  animation-delay: 300ms;
}

.animate-fade-in-4 {
  animation-delay: 400ms;
}

.animate-fade-in-5 {
  animation-delay: 500ms;
}

/* Skeleton loader */
.skeleton {
  background: var(--c-bg-3);
  border-radius: var(--r-sm);
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 160, 0.06), transparent);
  animation: shimmer 1.5s infinite;
  transform: translateX(-100%);
}

/* Progress */
.progress {
  height: 6px;
  background: var(--c-bg-3);
  border-radius: var(--r-full);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

.progress__bar {
  height: 100%;
  background: var(--c-accent);
  border-radius: var(--r-full);
  transition: width 0.6s var(--ease-out);
  box-shadow: 0 0 8px rgba(0, 245, 160, 0.5);
}

.progress--sm {
  height: 4px;
}

.progress--lg {
  height: 10px;
}

.feature-strip {
  display: flex;
  justify-content: space-evenly;
  flex-flow: wrap;
  gap: var(--sp-8);
  padding: var(--sp-8) 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  overflow-x: auto;
  position: relative;
}

.feature-strip__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  font-size: var(--fs-xs);
  color: var(--c-ink-3);
  font-family: var(--f-mono);
  letter-spacing: var(--ls-wide);
}

.feature-strip__item svg {
  width: 18px;
  height: 18px;
  color: var(--c-accent);
  stroke: var(--c-accent);
  stroke-width: 1.5;
  fill: none;
  filter: drop-shadow(0 0 4px var(--c-accent));
}

.feature-strip__item strong {
  color: var(--c-accent);
  font-weight: var(--fw-bold);
}

.testimonial {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: '>_';
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-3);
  font-family: var(--f-mono);
  font-size: 2rem;
  line-height: 1;
  color: var(--c-accent);
  opacity: 0.1;
  pointer-events: none;
}

.testimonial::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--c-accent), transparent);
}

.testimonial__text {
  font-family: var(--f-mono);
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-6);
}

.cta-band {
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-16) var(--sp-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, var(--c-bg-glow) 0%, transparent 60%);
  /* ,linear-gradient(var(--c-bg-glow) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-bg-glow) 1px, transparent 1px); */
  background-size: auto, 32px 32px, 32px 32px;
  pointer-events: none;
}

.cta-band::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  opacity: 0.6;
}

.cta-band h2 {
  color: var(--c-ink);
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl));
}

.cta-band p {
  color: var(--c-ink-3);
  margin: var(--sp-4) 0 var(--sp-8);
  font-size: var(--fs-lg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: -24px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-accent) 50%, transparent 50%);
  background-size: 12px 1px;
  background-repeat: repeat-x;
  opacity: 0.4;
}

.step__num {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-accent);
  background: var(--c-accent-pale);
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--c-accent);
  margin-bottom: var(--sp-5);
  position: relative;
  z-index: 1;
  transition: background var(--t-base), box-shadow var(--t-base);
  box-shadow: 0 0 8px rgba(0, 245, 160, 0.2);
}

.step:hover .step__num {
  background: var(--c-accent-soft);
  box-shadow: 0 0 16px rgba(0, 245, 160, 0.4);
}

.step__title {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-3);
  font-family: var(--f-display);
}

.step__text {
  font-size: var(--fs-sm);
  color: var(--c-ink-3);
  line-height: var(--lh-loose);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-10);
  }
}

@media (max-width: 900px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .layout-with-sidebar--left {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
    position: static;
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 58px;
  }

  .nav__menu,
  .nav__actions {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__mobile {
    display: block;
  }

  .grid--2 {
    grid-template-columns: 1fr;
  }

  .grid--3 {
    grid-template-columns: 1fr;
  }

  .grid--4 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: var(--sp-24) 0 var(--sp-16);
  }

  .section {
    padding: var(--sp-16) 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .container {
    padding-inline: var(--sp-5);
  }

  .nav__mega-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps::before {
    display: none;
  }

  .cta-band {
    padding: var(--sp-10) var(--sp-6);
    border-radius: var(--r-md);
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    text-align: center;
  }

  .modal {
    border-radius: var(--r-md);
  }

  .toast-stack {
    left: var(--sp-4);
    right: var(--sp-4);
    bottom: var(--sp-4);
  }

  .toast {
    max-width: 100%;
    min-width: 0;
  }
}

/* ── card reveal ────────────────────────────────────────────────── */
@supports (animation-timeline: view()) {
  [data-reveal] {
    animation: reveal-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
    animation-duration: 1ms;
    /* required quirk for spec compliance, harmless elsewhere */
  }

  @keyframes reveal-in {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {

  .nav,
  .footer,
  .sidebar,
  .btn,
  .modal-backdrop,
  .toast-stack {
    display: none !important;
  }

  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .nav-offset {
    padding-top: 0;
  }

  body {
    background: white;
    color: black;
  }

  body::before {
    display: none;
  }
}