/* VibeNWise, design system v2, Node N identity */

:root {
  /* ---------- Theme-independent ---------- */
  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1180px;
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* ---------- Dark, the default ---------- */
  --bg: #070b14;
  --bg-2: #0b1120;
  --bg-3: #0e1524;

  --wash-1: rgba(53, 201, 181, 0.14);
  --wash-2: rgba(14, 140, 125, 0.16);
  --wash-3: rgba(53, 201, 181, 0.06);
  --grid-line: rgba(140, 200, 190, 0.035);
  --grid-opacity: 0.5;

  --panel: rgba(255, 255, 255, 0.030);
  --panel-2: rgba(255, 255, 255, 0.058);
  --panel-solid: rgba(9, 14, 24, 0.98);
  --panel-grad-a: rgba(255, 255, 255, 0.045);
  --panel-grad-b: rgba(255, 255, 255, 0.012);
  --strip-bg: rgba(255, 255, 255, 0.016);
  --footer-bg: rgba(255, 255, 255, 0.012);
  --tag-bg: rgba(255, 255, 255, 0.03);
  --bar-track: rgba(255, 255, 255, 0.07);
  --chip-bg: rgba(12, 19, 30, 0.88);

  --header-bg: rgba(7, 11, 20, 0.6);
  --header-bg-scrolled: rgba(7, 11, 20, 0.9);

  --line: rgba(150, 178, 190, 0.14);
  --line-strong: rgba(150, 178, 190, 0.28);
  --line-hover: rgba(150, 178, 190, 0.4);

  --ink: #f5f7fa;
  --ink-soft: #a9b6c6;
  --ink-dim: #7c8aa0;

  --brand: #35c9b5;
  --brand-2: #5fe0ce;
  --brand-3: #0e8c7d;
  --brand-a10: rgba(53, 201, 181, 0.10);
  --brand-a18: rgba(53, 201, 181, 0.18);
  --brand-a32: rgba(53, 201, 181, 0.32);
  --on-brand: #06201c;
  --brand-glow: rgba(53, 201, 181, 0.9);
  --card-glow: rgba(53, 201, 181, 0.13);
  --cta-wash-1: rgba(53, 201, 181, 0.16);
  --cta-wash-2: rgba(14, 140, 125, 0.14);
  --cta-wash-3: rgba(53, 201, 181, 0.05);
  --cta-sheen: rgba(53, 201, 181, 0.12);

  --input-bg: rgba(6, 10, 20, 0.6);
  --input-bg-focus: rgba(6, 10, 20, 0.85);
  --placeholder: #5b6a80;
  --select-bg: #0b1120;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c8aa0' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

  --toast-bg: rgba(8, 26, 24, 0.96);
  --toast-ink: #d6fbf3;

  --scroll-thumb: rgba(150, 178, 190, 0.2);
  --table-head: rgba(255, 255, 255, 0.04);
  --table-stripe: rgba(255, 255, 255, 0.018);

  --ok: #35c9b5;
  --warn: #e0b05c;
  --danger: #ff8b80;
  --danger-a18: rgba(255, 139, 128, 0.18);

  /* Terminal */
  --term-a: rgba(14, 24, 34, 0.96);
  --term-b: rgba(8, 12, 21, 0.97);
  --term-line: rgba(150, 178, 190, 0.16);
  --term-bar: rgba(255, 255, 255, 0.02);
  --term-dot: rgba(255, 255, 255, 0.14);
  --term-text: #c3d2d6;
  --term-muted: #8fa3b5;
  --term-dim: #7c8aa0;
  --term-ok: #35c9b5;
  --term-emph: #5fe0ce;
  --term-warn: #e0b05c;
  --term-caret: #35c9b5;
  --shadow: 0 26px 60px -24px rgba(0, 0, 0, 0.8);
  --shadow-soft: 0 10px 26px -18px rgba(0, 0, 0, 0.7);

  color-scheme: dark;
}

/* ---------- Light ---------- */
:root[data-theme="light"] {
  --bg: #f5f7fa;
  --bg-2: #ffffff;
  --bg-3: #eaeff5;

  --wash-1: rgba(53, 201, 181, 0.13);
  --wash-2: rgba(14, 140, 125, 0.10);
  --wash-3: rgba(53, 201, 181, 0.07);
  --grid-line: rgba(16, 52, 66, 0.045);
  --grid-opacity: 0.6;

  --panel: rgba(255, 255, 255, 0.88);
  --panel-2: #ffffff;
  --panel-solid: rgba(255, 255, 255, 0.98);
  --panel-grad-a: rgba(255, 255, 255, 0.98);
  --panel-grad-b: rgba(255, 255, 255, 0.7);
  --strip-bg: rgba(9, 30, 45, 0.025);
  --footer-bg: rgba(9, 30, 45, 0.028);
  --tag-bg: rgba(9, 30, 45, 0.035);
  --bar-track: rgba(9, 30, 45, 0.09);
  --chip-bg: rgba(255, 255, 255, 0.9);

  --header-bg: rgba(245, 247, 250, 0.72);
  --header-bg-scrolled: rgba(245, 247, 250, 0.93);

  --line: rgba(9, 30, 45, 0.11);
  --line-strong: rgba(9, 30, 45, 0.2);
  --line-hover: rgba(9, 30, 45, 0.32);

  --ink: #0b1220;
  --ink-soft: #47566b;
  --ink-dim: #637187;

  --brand: #0a7568;
  --brand-2: #06554c;
  --brand-3: #0e8c7d;
  --brand-a10: rgba(10, 117, 104, 0.08);
  --brand-a18: rgba(10, 117, 104, 0.16);
  --brand-a32: rgba(10, 117, 104, 0.34);
  --on-brand: #ffffff;
  --brand-glow: rgba(10, 117, 104, 0.45);
  --card-glow: rgba(10, 117, 104, 0.08);
  --cta-wash-1: rgba(53, 201, 181, 0.16);
  --cta-wash-2: rgba(14, 140, 125, 0.09);
  --cta-wash-3: rgba(255, 255, 255, 0.6);
  --cta-sheen: rgba(14, 140, 125, 0.07);

  --input-bg: #ffffff;
  --input-bg-focus: #ffffff;
  --placeholder: #7f8da1;
  --select-bg: #ffffff;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

  --toast-bg: rgba(255, 255, 255, 0.98);
  --toast-ink: #06403a;
  --danger: #c0392f;
  --danger-a18: rgba(192, 57, 47, 0.16);
  --warn: #8a5800;

  --scroll-thumb: rgba(9, 30, 45, 0.22);
  --table-head: rgba(9, 30, 45, 0.04);
  --table-stripe: rgba(9, 30, 45, 0.018);

  --shadow: 0 20px 44px -26px rgba(9, 30, 45, 0.34);
  --shadow-soft: 0 8px 20px -14px rgba(9, 30, 45, 0.28);

  /* Terminal */
  --term-a: #ffffff;
  --term-b: #f7f9fc;
  --term-line: rgba(9, 30, 45, 0.12);
  --term-bar: rgba(9, 30, 45, 0.035);
  --term-dot: rgba(9, 30, 45, 0.16);
  --term-text: #263445;
  --term-muted: #5a6b80;
  --term-dim: #66748a;
  --term-ok: #0a7568;
  --term-emph: #05564d;
  --term-warn: #8a5800;
  --term-caret: #0a7568;

  color-scheme: light;
}

/* First visit with no stored choice and no JavaScript: follow the system */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f7fa; --bg-2: #ffffff; --bg-3: #eaeff5;
    --wash-1: rgba(53, 201, 181, 0.13); --wash-2: rgba(14, 140, 125, 0.10); --wash-3: rgba(53, 201, 181, 0.07);
    --grid-line: rgba(16, 52, 66, 0.045); --grid-opacity: 0.6;
    --panel: rgba(255, 255, 255, 0.88); --panel-2: #ffffff; --panel-solid: rgba(255, 255, 255, 0.98);
    --panel-grad-a: rgba(255, 255, 255, 0.98); --panel-grad-b: rgba(255, 255, 255, 0.7);
    --strip-bg: rgba(9, 30, 45, 0.025); --footer-bg: rgba(9, 30, 45, 0.028);
    --tag-bg: rgba(9, 30, 45, 0.035); --bar-track: rgba(9, 30, 45, 0.09); --chip-bg: rgba(255, 255, 255, 0.9);
    --header-bg: rgba(245, 247, 250, 0.72); --header-bg-scrolled: rgba(245, 247, 250, 0.93);
    --line: rgba(9, 30, 45, 0.11); --line-strong: rgba(9, 30, 45, 0.2); --line-hover: rgba(9, 30, 45, 0.32);
    --ink: #0b1220; --ink-soft: #47566b; --ink-dim: #637187;
    --brand: #0a7568; --brand-2: #06554c; --brand-3: #0e8c7d;
    --brand-a10: rgba(10, 117, 104, 0.08); --brand-a18: rgba(10, 117, 104, 0.16); --brand-a32: rgba(10, 117, 104, 0.34);
    --on-brand: #ffffff; --brand-glow: rgba(10, 117, 104, 0.45); --card-glow: rgba(10, 117, 104, 0.08);
    --cta-wash-1: rgba(53, 201, 181, 0.16); --cta-wash-2: rgba(14, 140, 125, 0.09);
    --cta-wash-3: rgba(255, 255, 255, 0.6); --cta-sheen: rgba(14, 140, 125, 0.07);
    --input-bg: #ffffff; --input-bg-focus: #ffffff; --placeholder: #7f8da1; --select-bg: #ffffff;
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    --toast-bg: rgba(255, 255, 255, 0.98); --toast-ink: #06403a;
    --danger: #c0392f; --danger-a18: rgba(192, 57, 47, 0.16); --warn: #8a5800;
    --scroll-thumb: rgba(9, 30, 45, 0.22);
    --table-head: rgba(9, 30, 45, 0.04); --table-stripe: rgba(9, 30, 45, 0.018);
    --shadow: 0 20px 44px -26px rgba(9, 30, 45, 0.34); --shadow-soft: 0 8px 20px -14px rgba(9, 30, 45, 0.28);
    --term-a: #ffffff; --term-b: #f7f9fc; --term-line: rgba(9, 30, 45, 0.12); --term-bar: rgba(9, 30, 45, 0.035);
    --term-dot: rgba(9, 30, 45, 0.16); --term-text: #263445; --term-muted: #5a6b80; --term-dim: #66748a;
    --term-ok: #0a7568; --term-emph: #05564d; --term-warn: #8a5800; --term-caret: #0a7568;
    color-scheme: light;
  }
}

/* Subtle crossfade, only while a switch is in flight */
:root.theme-anim,
:root.theme-anim *,
:root.theme-anim *::before,
:root.theme-anim *::after {
  transition: background-color 0.3s ease, background-image 0.3s ease, border-color 0.3s ease,
              color 0.3s ease, fill 0.3s ease, stroke 0.3s ease, box-shadow 0.3s ease !important;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient wash, single hue */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1000px 560px at 6% -12%, var(--wash-1), transparent 62%),
    radial-gradient(780px 460px at 96% 0%, var(--wash-2), transparent 60%),
    radial-gradient(900px 640px at 54% 108%, var(--wash-3), transparent 62%);
}

/* Construction grid, an echo of the mark */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grid-opacity);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 18%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 18%, transparent 76%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.028em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); letter-spacing: -0.033em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.14rem; letter-spacing: -0.018em; }
p { margin: 0 0 1rem; color: var(--ink-soft); }

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 62ch;
  line-height: 1.68;
}

/* Accent phrase inside a headline, the one place colour appears in type */
.grad { color: var(--brand); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand));
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: var(--header-bg-scrolled);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 72px;
}

/* Every control in the bar shares one height and radius so the row lines up */
.nav-links a,
.theme-toggle,
.nav-toggle {
  height: 40px;
  border-radius: 10px;
  box-sizing: border-box;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.028em;
  margin-right: auto;
  color: var(--ink);
}
.brand .mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--ink);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.brand .mark svg { width: 30px; height: 30px; display: block; }
.brand b { font-weight: 600; }
.brand b span { color: var(--brand); }
.brand:hover .mark { transform: scale(1.06); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--panel-2);
  border-color: var(--line-strong);
}
.nav-links a.active {
  color: var(--brand);
  background: var(--brand-a10);
  border-color: var(--brand-a32);
}
.nav-links a.active:hover { background: var(--brand-a18); }

/* The one solid control, kept a touch apart from the navigation pills */
.nav-links a.btn-header {
  margin-left: 4px;
  padding: 0 18px;
  border-color: transparent;
  color: var(--on-brand);
  background: var(--brand);
  box-shadow: 0 6px 16px -11px var(--brand-glow);
}
.nav-links a.btn-header:hover {
  color: var(--on-brand);
  background: var(--brand-2);
  border-color: transparent;
  box-shadow: 0 8px 20px -11px var(--brand-glow);
  transform: none;
}
.nav-links a.btn-ghost { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 40px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  place-items: center;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.nav-toggle:hover { color: var(--brand); border-color: var(--brand-a32); background: var(--brand-a10); }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  position: relative;
  width: 40px;
  flex: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
/* Hairline marking the utility slot off from the navigation cluster */
.theme-toggle::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 22px;
  background: var(--line);
}
.theme-toggle:hover {
  color: var(--brand);
  border-color: var(--brand-a32);
  background: var(--brand-a10);
}
.theme-toggle svg {
  width: 19px;
  height: 19px;
  grid-area: 1 / 1;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.theme-toggle .i-sun { opacity: 1; transform: none; }
.theme-toggle .i-moon { opacity: 0; transform: rotate(-70deg) scale(0.6); }

:root[data-theme="light"] .theme-toggle .i-sun { opacity: 0; transform: rotate(70deg) scale(0.6); }
:root[data-theme="light"] .theme-toggle .i-moon { opacity: 1; transform: none; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .i-sun { opacity: 0; transform: rotate(70deg) scale(0.6); }
  :root:not([data-theme="dark"]) .theme-toggle .i-moon { opacity: 1; transform: none; }
}

/* Without JavaScript the toggle cannot persist a choice, so it is not offered */
.no-js .theme-toggle { display: none; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
caption {
  caption-side: bottom;
  padding-top: 10px;
  font-size: 0.8rem;
  color: var(--ink-dim);
  text-align: left;
}
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
thead th {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--ink-dim);
  background: var(--table-head);
}
td { color: var(--ink-soft); }
tbody tr:nth-child(even) { background: var(--table-stripe); }
tbody tr:hover { background: var(--panel-2); }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.22s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 10px 26px -14px var(--brand-glow);
}
.btn-primary:hover {
  background: var(--brand-2);
  box-shadow: 0 16px 34px -14px var(--brand-glow);
}

.btn-ghost {
  background: var(--panel);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--panel-2);
  border-color: var(--brand-a32);
  color: var(--ink);
}

.btn-sm { padding: 9px 16px; font-size: 0.86rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 9vw, 116px) 0 clamp(56px, 7vw, 92px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 var(--brand-a32);
  animation: pulse 2.4s infinite;
  flex: none;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 520px;
}
.hero-stats .n {
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.hero-stats .l {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-dim);
  letter-spacing: 0;
  margin-top: 4px;
}

/* Terminal card */
.term {
  border-radius: var(--radius-lg);
  border: 1px solid var(--term-line);
  background: linear-gradient(170deg, var(--term-a), var(--term-b));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.term::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-a32), transparent);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--term-line);
  background: var(--term-bar);
}
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--term-dot); display: block; }
.term-bar i:nth-child(2) { background: var(--term-dot); }
.term-bar i:nth-child(3) { background: var(--brand); }
.term-bar span { margin-left: 8px; font-family: var(--mono); font-size: 0.74rem; color: var(--term-dim); }

.term-body {
  padding: 18px 20px 22px;
  font-family: var(--mono);
  font-size: 0.79rem;
  line-height: 1.85;
  color: var(--term-text);
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 268px;
}
.term-body .c { color: var(--term-dim); }
.term-body .g { color: var(--term-ok); }
.term-body .b { color: var(--term-emph); }
.term-body .p { color: var(--term-muted); }
.term-body .y { color: var(--term-warn); }

.caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--term-caret);
  vertical-align: -2px;
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Marquee ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--strip-bg);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
}
.strip::before, .strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  z-index: 2;
  pointer-events: none;
}
.strip::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.strip::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

.marquee { display: flex; width: max-content; animation: slide 34s linear infinite; }
.strip:hover .marquee { animation-play-state: paused; }
.marquee ul { display: flex; gap: 44px; list-style: none; margin: 0; padding: 0 22px; }
.marquee li {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding: clamp(64px, 8vw, 104px) 0; }
.sec-head { max-width: 720px; margin-bottom: 46px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow::before { display: none; }
.sec-head p { margin-top: 16px; }
.sec-head.center p { margin-left: auto; margin-right: auto; }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.28s ease, background 0.28s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(340px 200px at var(--mx, 50%) var(--my, 0%), var(--card-glow), transparent 70%);
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: var(--brand-a32); background: var(--panel-2); }
.card:hover::after { opacity: 1; }
.card h3 { margin-bottom: 9px; }
.card p { margin: 0; font-size: 0.93rem; }

/* One icon treatment, used everywhere */
.ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--brand-a10);
  border: 1px solid var(--brand-a18);
  color: var(--brand);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.ico svg { width: 21px; height: 21px; }
.card:hover .ico { background: var(--brand-a18); border-color: var(--brand-a32); }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--tag-bg);
  color: var(--ink-dim);
  letter-spacing: 0.03em;
}

/* ---------- Process ---------- */
.steps {
  counter-reset: s;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.step:hover { border-color: var(--brand-a32); background: var(--panel-2); transform: translateY(-4px); }
.step .num {
  counter-increment: s;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.16em;
  display: block;
  margin-bottom: 14px;
}
.step .num::before { content: "0" counter(s); }
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: 0.89rem; margin: 0; }

/* ---------- Split / about ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
.panel {
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--panel-grad-a), var(--panel-grad-b));
  box-shadow: var(--shadow);
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.94rem; color: var(--ink-soft); }
.checklist svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--brand); }
.checklist b { color: var(--ink); font-weight: 600; }

/* Skill bars */
.skills { display: grid; gap: 18px; }
.skill .top { display: flex; justify-content: space-between; font-size: 0.87rem; margin-bottom: 8px; }
.skill .top span:last-child {
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}
.bar { height: 5px; border-radius: 99px; background: var(--bar-track); overflow: hidden; }
.bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  width: 0;
  background: linear-gradient(90deg, var(--brand-3), var(--brand));
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Timeline */
.timeline { position: relative; padding-left: 30px; display: grid; gap: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--brand), var(--brand-3) 55%, transparent);
}
.tl-item { position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 4px var(--brand-a10);
}
.tl-item .when {
  font-family: var(--mono);
  font-size: 0.73rem;
  color: var(--brand);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.tl-item h3 { margin: 6px 0 7px; font-size: 1.04rem; }
.tl-item p { font-size: 0.92rem; margin: 0; }

/* ---------- CTA ---------- */
.cta-box {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-a18);
  padding: clamp(38px, 6vw, 66px) clamp(26px, 5vw, 56px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 50% -30%, var(--cta-wash-1), transparent 70%),
    linear-gradient(160deg, var(--cta-wash-2), var(--cta-wash-3));
  box-shadow: var(--shadow);
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: -50% -10%;
  background: conic-gradient(from 0deg, transparent 0 62%, var(--cta-sheen) 76%, transparent 88%);
  animation: spin 22s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-box > * { position: relative; }
.cta-box h2 { margin-bottom: 14px; }
.cta-box p { margin: 0 auto 28px; max-width: 56ch; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}
.contact-card {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}
.contact-card:hover { border-color: var(--brand-a32); background: var(--panel-2); transform: translateX(3px); }
.contact-card:hover .ico { background: var(--brand-a18); border-color: var(--brand-a32); }
.contact-card .ico { margin: 0; width: 40px; height: 40px; border-radius: 10px; }
.contact-card .t {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-dim);
}
.contact-card .v { display: block; font-weight: 500; font-size: 0.95rem; word-break: break-word; margin-top: 3px; }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.01em; }

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--input-bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.93rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  appearance: none;
}
input:hover, select:hover, textarea:hover { border-color: var(--line-hover); }
select {
  background-image: var(--select-arrow);
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
  padding-right: 40px;
}
select option { background: var(--select-bg); color: var(--ink); }
textarea { resize: vertical; min-height: 132px; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-a18);
  background: var(--input-bg-focus);
}
.form-note { font-size: 0.8rem; color: var(--ink-dim); margin: 0; }

/* ---------- Form validation states ---------- */
/* Honeypot: out of sight for people, still reachable by bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--danger);
  min-height: 0;
}
.field-error:empty { display: none; }
.form-error { margin-top: -4px; }

.field-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.field-foot .field-error { flex: 1; }
.field-count {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
  flex: none;
  margin-left: auto;
}
.field-count.near { color: var(--warn); }

input.invalid, select.invalid, textarea.invalid { border-color: var(--danger); }
input.invalid:focus, select.invalid:focus, textarea.invalid:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-a18);
}

/* Turnstile sits on its own row, matching the field rhythm */
.turnstile-slot:not(:empty) { min-height: 65px; }
.turnstile-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-dim);
  background: var(--panel);
}
.turnstile-note code {
  font-family: var(--mono);
  font-size: 0.95em;
  color: var(--ink-soft);
}

.btn.is-busy { cursor: progress; opacity: 0.75; }
.btn.is-busy:hover { transform: none; }
.btn.is-sent { background: var(--ok); color: var(--on-brand); }

/* Announced to screen readers, invisible on screen */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Dimmed, never `disabled`. It stays clickable so a click can explain what is
   missing, and stays focusable so keyboard and screen reader users reach it. */
.btn.is-disabled {
  background: var(--panel-2);
  color: var(--ink-dim);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn.is-disabled:hover {
  transform: none;
  background: var(--panel-2);
  color: var(--ink-soft);
  border-color: var(--line-hover);
  box-shadow: none;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 0 20px;
  margin-bottom: 11px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq details:hover { border-color: var(--line-strong); }
.faq details[open] { border-color: var(--brand-a32); background: var(--panel-2); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 0;
  font-weight: 500;
  font-size: 0.97rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--brand);
  line-height: 1;
  transition: transform 0.22s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 17px; font-size: 0.93rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 52px 0 28px;
  background: var(--footer-bg);
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; margin-bottom: 38px; }
.foot-grid p { font-size: 0.9rem; max-width: 40ch; margin: 16px 0 0; }
.foot-col h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  margin-bottom: 14px;
  font-weight: 500;
}
.foot-col a { display: block; font-size: 0.91rem; color: var(--ink-soft); padding: 5px 0; transition: color 0.16s ease; }
.foot-col a:hover { color: var(--brand); }

.foot-bot {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: var(--ink-dim);
}
.socials { display: flex; gap: 9px; }
.socials a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: var(--panel);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.socials a:hover {
  color: var(--brand);
  border-color: var(--brand-a32);
  background: var(--brand-a10);
  transform: translateY(-2px);
}
.socials svg { width: 17px; height: 17px; }

/* ---------- Page header ---------- */
.page-head { padding: clamp(50px, 7vw, 84px) 0 clamp(30px, 4vw, 44px); }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); margin-bottom: 18px; }

/* ---------- Reveal ---------- */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.rv.in { opacity: 1; transform: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 130%);
  z-index: 200;
  padding: 13px 20px;
  border-radius: 10px;
  border: 1px solid var(--brand-a32);
  background: var(--toast-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--toast-ink);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Accessibility and affordances ---------- */
::selection { background: var(--brand-a32); color: var(--ink); }

* { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 99px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-a32); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }

.skip {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 200;
  padding: 11px 18px;
  border-radius: 9px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.88rem;
  font-weight: 600;
  transition: top 0.22s ease;
}
.skip:focus { top: 14px; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 90;
  background: linear-gradient(90deg, var(--brand-3), var(--brand) 60%, var(--brand-2));
  pointer-events: none;
}

.totop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--chip-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink-soft);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  padding: 0;
}
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { color: var(--brand); border-color: var(--brand-a32); background: var(--brand-a18); }
.totop svg { width: 19px; height: 19px; }

.prose-link {
  color: var(--brand);
  border-bottom: 1px solid var(--brand-a32);
  transition: border-color 0.18s ease;
}
.prose-link:hover { border-bottom-color: var(--brand); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .g3, .g4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { max-width: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    background: var(--panel-solid);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links { gap: 6px; }
  .nav-links a {
    height: 44px;
    justify-content: flex-start;
    padding: 0 14px;
    font-size: 0.95rem;
  }
  .nav-links a.btn-header {
    margin-left: 0;
    margin-top: 4px;
    width: 100%;
    justify-content: center;
  }
  .theme-toggle::before { display: none; }
}

@media (max-width: 620px) {
  .g3, .g4, .steps, .g2, .row2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; text-align: left; }
  .wrap { padding: 0 18px; }
  .btn { width: 100%; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .nav-links .btn { width: 100%; }
  .totop { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}

@media (hover: none) {
  .card:hover, .step:hover, .contact-card:hover { transform: none; }
}

/* No JavaScript, never hide content behind a reveal that will not fire */
.no-js .rv { opacity: 1; transform: none; }
.no-js .bar i { width: 100% !important; }
.no-js .progress, .no-js .totop { display: none; }

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