:root {
  --bg: #0B0C0E;
  --bg-2: #0F1114;
  --bg-3: #14171B;
  --line: #1E232A;
  --line-2: #262C34;
  --text: #E8EAED;
  --text-2: #9AA3AE;
  --text-3: #5E6873;
  --accent: #74a7fe;
  --accent-ink: #0B0C0E;
  --red: #FF5A5A;
  --blue: #7AB8FF;
  --green: #6BE79E;
  --purple: #C9A8FF;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: "Instrument Serif", "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pad-x: clamp(20px, 5vw, 80px);
  --section-y: clamp(80px, 10vw, 160px);
}

[data-theme="light"] {
  --bg: #F6F4EE;
  --bg-2: #EFECE3;
  --bg-3: #E7E3D7;
  --line: #D8D2C2;
  --line-2: #C7C0AC;
  --text: #17181A;
  --text-2: #4A4F57;
  --text-3: #7D8289;
  --accent: #2E62C2;
  --accent-ink: #FFFFFF;
}

[data-density="compact"] {
  --section-y: clamp(56px, 7vw, 110px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-3); padding: 1px 5px; border-radius: 3px; border: 1px solid var(--line); }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 40px;
  padding: 14px var(--pad-x);
  max-width: 1560px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 14px; letter-spacing: -0.02em; }
.logo-mark { display: inline-block; width: 10px; height: 10px; background: var(--accent); border-radius: 2px; box-shadow: 0 0 16px color-mix(in oklab, var(--accent) 50%, transparent); }
.logo-thin { font-weight: 300; color: var(--text-2); }
.logo-bold { font-weight: 700; color: var(--text); }
.logo-tld  { font-weight: 300; color: var(--text-3); }

.nav-links { display: flex; gap: 26px; font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }
.nav-links a { padding: 6px 0; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.nav-links a:hover { color: var(--text); border-bottom-color: var(--accent); }

.nav-status { margin-left: auto; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 color-mix(in oklab, var(--green) 50%, transparent); animation: pulse 2s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--green) 60%, transparent); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ============ LANGUAGE SWITCHER ============ */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 11px;
}
.lang-switch button {
  background: transparent;
  border: 0;
  padding: 6px 11px;
  color: var(--text-3);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color .15s, background .15s;
}
.lang-switch button:hover { color: var(--text-2); }
.lang-switch button.active { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

.settings-wrap { position: relative; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text-2);
  cursor: pointer;
  padding: 0;
  transition: color .15s, background .15s, border-color .15s;
}
.theme-toggle:hover, .theme-toggle[aria-expanded="true"] { color: var(--text); border-color: var(--line-2); }
.theme-toggle svg { width: 14px; height: 14px; }

.settings-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 250px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 16px 48px -12px rgba(0,0,0,.28), 0 4px 12px -4px rgba(0,0,0,.08);
  padding: 14px 16px;
  z-index: 70;
}
.settings-panel[hidden] { display: none; }
.settings-row { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.settings-row:last-child { border-bottom: 0; }
.settings-row:first-child { padding-top: 0; }
.settings-label {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase;
}
.settings-segments {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg);
}
.settings-segments button {
  flex: 1;
  background: transparent; border: 0;
  padding: 7px 10px;
  color: var(--text-3);
  cursor: pointer;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.04em;
  transition: color .15s, background .15s;
}
.settings-segments button:hover { color: var(--text-2); }
.settings-segments button.active { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.accent-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.accent-swatch {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  cursor: pointer; padding: 0;
  background: var(--c-dark);
  transition: transform .15s, box-shadow .15s, background .15s;
}
[data-theme="light"] .accent-swatch { background: var(--c-light); }
.accent-swatch:hover { transform: scale(1.1); }
.accent-swatch.active { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3px var(--text); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-status { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: clamp(60px, 8vw, 120px) var(--pad-x) clamp(80px, 10vw, 160px);
  max-width: 1560px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
}
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 75%);
  opacity: .5;
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-meta {
  display: inline-flex; flex-direction: column; gap: 4px;
  font-family: var(--font-mono); font-size: 12px;
  padding: 10px 14px; margin-bottom: 32px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2);
}
.meta-row { display: flex; gap: 14px; }
.meta-k { color: var(--text-3); width: 90px; }
.meta-v { color: var(--text-2); }
.meta-ok { color: var(--green); }
.meta-ok::before { content: "● "; }

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(40px, 6.5vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 32px;
}
.hero-line { display: block; }
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.hero-title s { color: var(--text-3); text-decoration-thickness: 2px; }

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 640px;
  margin: 0 0 40px;
}
.hero-sub-strong { color: var(--text); display: inline-block; margin-top: 8px; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); }
.btn-big { padding: 18px 26px; font-size: 14px; }

/* ============ TERMINAL ============ */
.terminal {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.6), 0 2px 0 0 var(--line);
  height: clamp(420px, 60vh, 560px);
  display: flex; flex-direction: column;
  min-height: 0;
}
.term-body { min-height: 0; }
.term-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  font-size: 11px; color: var(--text-3);
}
.term-dots { display: inline-flex; gap: 6px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.term-dots i:nth-child(1) { background: #FF5F57; }
.term-dots i:nth-child(2) { background: #FEBC2E; }
.term-dots i:nth-child(3) { background: #28C840; }
.term-title { flex: 1; text-align: center; color: var(--text-2); }
.term-uptime { display: inline-flex; align-items: center; gap: 6px; }
.up-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.term-body {
  flex: 1;
  padding: 16px 18px;
  overflow-y: auto;
  color: var(--text);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.term-body::-webkit-scrollbar { width: 6px; }
.term-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.term-line { margin: 0; }
.term-line.user { color: var(--text-2); }
.term-line.user::before { content: "$ "; color: var(--accent); }
.term-line.muted { color: var(--text-3); }
.term-line.ok { color: var(--green); }
.term-line.accent { color: var(--accent); }
.term-line.err { color: var(--red); }
.term-line.kv { display: grid; grid-template-columns: 140px 1fr; gap: 14px; }
.term-line.kv .k { color: var(--text-3); }
.term-line.kv .v { color: var(--text); }

.term-input {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.term-prompt { color: var(--accent); font-size: 12px; }
.term-prompt .term-path { color: var(--blue); }
#termInput {
  flex: 1;
  background: transparent;
  border: 0; outline: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  caret-color: var(--accent);
}
#termInput::placeholder { color: var(--text-3); }

/* ============ STRIP ============ */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.strip-inner {
  max-width: 1560px; margin: 0 auto;
  padding: 28px var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 700px) { .strip-inner { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-n {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.stat-n em { font-family: var(--font-serif); font-size: 0.55em; color: var(--text-2); margin-left: 4px; }
.stat-l { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.02em; }

/* ============ SECTIONS ============ */
.section {
  max-width: 1560px; margin: 0 auto;
  padding: var(--section-y) var(--pad-x);
}
.section-head {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px 24px;
  margin-bottom: clamp(40px, 5vw, 72px);
  max-width: 1000px;
}
.section-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  padding-top: 20px;
  letter-spacing: 0.05em;
}
.section-title {
  grid-column: 2;
  margin: 0;
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.section-title em { color: var(--accent); }
.section-lede {
  grid-column: 2;
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: clamp(16px, 1.3vw, 18px);
  max-width: 640px;
}

/* ============ PRINCIPLES ============ */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; } }
.principle {
  background: var(--bg);
  padding: 32px 28px;
  transition: background .2s;
}
.principle:hover { background: var(--bg-2); }
.principle-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.01em;
  padding-top: 8px;
  border-top: 1px solid var(--accent);
  display: inline-block;
}
.principle p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }

/* ============ SERVICES ============ */
.services {
  display: flex;
  flex-direction: column;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.services-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
}
.services-regular {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
@media (max-width: 1100px) { .services-regular { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .services-regular { grid-template-columns: 1fr; } }
.services-regular .service:last-child:nth-child(4n+3) { grid-column: span 2; }
@media (max-width: 1100px) {
  .services-regular .service:last-child:nth-child(4n+3) { grid-column: auto; }
  .services-regular .service:last-child:nth-child(2n+1) { grid-column: span 2; }
}
@media (max-width: 600px) {
  .services-regular .service:last-child:nth-child(2n+1) { grid-column: auto; }
}
.service {
  background: var(--bg);
  padding: 26px 24px;
  transition: background .2s;
}
.service:hover { background: var(--bg-2); }
.service-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--text);
  letter-spacing: -0.01em;
  padding-top: 8px;
  border-top: 1px solid var(--accent);
  display: inline-block;
}
.service p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.service-featured {
  display: grid;
  grid-template-columns: minmax(220px, 28%) 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px 28px;
  background: color-mix(in oklab, var(--accent) 6%, var(--bg));
}
.service-featured:hover { background: color-mix(in oklab, var(--accent) 9%, var(--bg)); }
.service-featured .service-title {
  font-size: 22px;
  letter-spacing: -0.02em;
  border-top-width: 2px;
  padding-top: 10px;
  margin: 0;
}
.service-featured p { font-size: 15px; line-height: 1.6; }
@media (max-width: 700px) {
  .service-featured { grid-template-columns: 1fr; gap: 12px; padding: 24px 22px; }
  .service-featured .service-title { font-size: 19px; }
}

/* ============ PRICING ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  padding: 28px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 14px;
}
.price-card h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.01em;
}
.price-card .price {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}
.price-card ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}
.price-card li { position: relative; padding-left: 16px; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 1px; background: var(--accent);
}

/* ============ CASES ============ */
.cases {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.case {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: 52px 1fr 1fr 140px;
  gap: 24px;
  align-items: start;
  transition: background .15s;
}
.case:hover { background: color-mix(in oklab, var(--accent) 4%, transparent); }
.case-idx { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); padding-top: 4px; }
.case-head { display: flex; flex-direction: column; gap: 6px; }
.case-name {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
.case-name em { color: var(--accent); font-family: var(--font-serif); margin-left: 8px; font-size: 0.7em; letter-spacing: 0; }
.case-tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; }
.case-problem {
  color: var(--text-1);
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  line-height: 1.5;
  margin: 0;
  padding: 2px 0 2px 12px;
  border-left: 2px solid var(--accent);
}
.case-brief { color: var(--text-2); font-size: 15px; line-height: 1.55; margin: 0; padding-top: 4px; }
.case-link {
  display: inline-flex; align-items: center; gap: 4px;
  align-self: flex-start;
  margin-top: 8px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-2);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  transition: color .15s, border-color .15s, background .15s;
}
.case-link:hover { color: var(--accent); border-color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, transparent); }
.case-stats {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-3);
  text-align: right;
  padding-top: 4px;
}
.case-stats span strong { color: var(--text); font-weight: 500; }

.case-expand {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.case.open .case-expand { grid-template-rows: 1fr; }
.case-expand-inner { overflow: hidden; }
.case-detail {
  padding: 24px 0 8px;
  display: grid;
  grid-template-columns: 52px 1fr 1fr;
  gap: 24px;
}
.case-detail h4 {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em;
  margin: 0 0 10px;
}
.case-detail ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  color: var(--text-2); font-size: 14px; line-height: 1.55;
}
.case-detail li { position: relative; padding-left: 16px; }
.case-detail li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 1px; background: var(--accent);
}
.case-detail .col-1 { grid-column: 2; }
.case-detail .col-2 { grid-column: 3; }
.case-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.case-stack span {
  font-family: var(--font-mono); font-size: 11px;
  padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 4px;
  color: var(--text-2);
}

@media (max-width: 900px) {
  .case { grid-template-columns: 36px 1fr; }
  .case-brief, .case-problem, .case-stats { grid-column: 2; }
  .case-stats { text-align: left; }
  .case-detail { grid-template-columns: 1fr; }
  .case-detail .col-1, .case-detail .col-2 { grid-column: 1; }
}

.case-toggle {
  margin-left: auto;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--text-2);
  transition: transform .3s ease, background .15s, color .15s, border-color .15s;
  flex-shrink: 0;
}
.case:hover .case-toggle { border-color: var(--accent); color: var(--accent); }
.case.open .case-toggle { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ============ BOTS TABLE ============ */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
}
.bots-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.bots-table th, .bots-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.bots-table th {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--bg-3); font-weight: 500;
}
.bots-table tbody tr:last-child td { border-bottom: 0; }
.bots-table tbody tr:hover { background: color-mix(in oklab, var(--accent) 4%, transparent); }
.bots-table td.name { font-weight: 600; color: var(--text); width: 28%; }
.bots-table td.name a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--line-2); transition: color .15s, border-color .15s; }
.bots-table td.name a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.bots-table td.name a span { color: var(--text-3); margin-left: 2px; }
.bots-table td.desc { color: var(--text-2); width: 72%; }

/* ============ STACK ============ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stack-grid { grid-template-columns: 1fr; } }
.stack-card {
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stack-card h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 14px;
}
.stack-card ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text);
}
.stack-card li { display: flex; align-items: center; gap: 10px; }
.stack-card li::before { content: ""; width: 4px; height: 4px; background: var(--text-3); border-radius: 50%; }
.stack-card li em { font-family: var(--font-sans); color: var(--text-3); font-size: 11px; font-style: normal; margin-left: auto; }

/* ============ CONTACT ============ */
.section-contact { padding-top: 0; }
.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
}
@media (max-width: 900px) { .contact-card { grid-template-columns: 1fr; } }
.contact-left {
  padding: clamp(32px, 4vw, 64px);
  border-right: 1px solid var(--line);
  position: relative;
}
@media (max-width: 900px) { .contact-left { border-right: 0; border-bottom: 1px solid var(--line); } }
.contact-title {
  margin: 12px 0 16px;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.contact-title em { color: var(--accent); }
.contact-lede { color: var(--text-2); font-size: 16px; margin: 0 0 32px; max-width: 480px; }
.contact-channels { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.chan {
  padding: 14px 18px;
  background: var(--bg);
  display: grid;
  grid-template-columns: 100px 1fr;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: background .15s;
}
.chan:hover { background: var(--bg-3); }
.chan-k { color: var(--text-3); }
.chan-v { color: var(--text); }

.contact-right {
  padding: clamp(32px, 4vw, 64px);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 32px;
}
.contact-aux {
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: 14px;
  column-gap: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.aux-k { color: var(--text-3); }
.aux-v { color: var(--text); }
.contact-cta-wrap { display: flex; flex-direction: column; gap: 14px; }
.contact-fine { margin: 0; font-size: 12px; color: var(--text-3); line-height: 1.5; }

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 60;
  max-width: 620px; margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 24px 64px -16px rgba(0,0,0,.25), 0 4px 12px -4px rgba(0,0,0,.08);
  padding: 18px 20px;
  animation: cookie-rise .35s ease;
}
@keyframes cookie-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-inner { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cookie-text { margin: 0; flex: 1 1 240px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn { padding: 9px 16px; font-size: 12px; }
@media (max-width: 600px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; }
  .cookie-actions { width: 100%; }
  .cookie-actions button { flex: 1; }
}

/* ============ FORM STATUS ============ */
.form-status {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok {
  background: color-mix(in oklab, var(--green) 18%, var(--bg));
  border: 1px solid color-mix(in oklab, var(--green) 55%, var(--line));
  color: color-mix(in oklab, var(--green) 65%, var(--text));
}
.form-status.err {
  background: color-mix(in oklab, var(--red) 12%, var(--bg));
  border: 1px solid color-mix(in oklab, var(--red) 45%, var(--line));
  color: var(--red);
}
.form-status.pending {
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--text-2);
}
#form-submit[disabled] { opacity: .55; cursor: wait; }

/* ============ FOOTER ============ */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-inner {
  max-width: 1560px; margin: 0 auto;
  padding: 24px var(--pad-x);
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-3);
}
.foot-logo { font-size: 13px; letter-spacing: -0.02em; }
.foot-l { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.foot-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ============ TWEAKS ============ */
.tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  width: 280px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.6);
  overflow: hidden;
  font-family: var(--font-mono); font-size: 12px;
}
.tweaks-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-3); border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.tweaks-close { background: transparent; border: 0; color: var(--text-3); font-size: 20px; cursor: pointer; line-height: 1; padding: 0 4px; }
.tweaks-close:hover { color: var(--text); }
.tweaks-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.tw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-2); }
.tw-row select, .tw-row input[type="color"] {
  background: var(--bg-3); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 4px;
  font-family: var(--font-mono); font-size: 12px;
  padding: 4px 8px;
}
.tw-row input[type="color"] { width: 40px; height: 26px; padding: 0; }

/* ============ MOTION ============ */
[data-motion="on"] .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-motion="on"] .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
[data-motion="off"] .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============ A11Y: focus-visible + skip-link ============ */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
#termInput:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--accent);
}
.skip-link {
  position: absolute;
  top: -48px;
  left: 8px;
  z-index: 1000;
  padding: 8px 12px;
  background: var(--bg);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  font: 500 13px/1 var(--font-mono);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 8px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
