/* ═══════════════════════════════════════════════
   HookBridge — Dark Forest Theme
   Dark-default, auto light via prefers-color-scheme
   ═══════════════════════════════════════════════ */

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

/* ═══════════ DARK THEME (default) ═══════════ */
:root {
  --bg: #0a1610;
  --surface: #111f17;
  --surface-border: #1a3025;
  --elevated: #162420;
  --text: #e2efe6;
  --text-heading: #ffffff;
  --muted: #7a9a83;
  --accent: #2da750;
  --accent-hover: #34b85a;
  --accent-subtle-bg: rgba(45, 167, 80, 0.08);
  --accent-subtle-border: rgba(45, 167, 80, 0.18);
  --accent-glow: rgba(45, 167, 80, 0.12);
  --accent-glow-strong: rgba(45, 167, 80, 0.22);
  --nav-bg: rgba(14, 26, 18, 0.85);
  --dropdown-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  --card-hover-border: rgba(45, 167, 80, 0.28);
  --card-hover-shadow: 0 0 28px rgba(45, 167, 80, 0.1);
  --hero-glow: rgba(45, 167, 80, 0.06);
  --terminal-glow: 0 0 32px rgba(45, 167, 80, 0.08), 0 24px 64px rgba(0, 0, 0, 0.4);
  --footer-dim: #3f5e47;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  --radius-card: 12px;
  --radius-code: 8px;
  --radius-pill: 999px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-display: 'Bricolage Grotesque', var(--font-sans);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  color-scheme: dark;

  /* Backwards-compatible aliases for existing templates */
  --white: var(--surface);
  --border: var(--surface-border);
  --accent-dark: var(--accent-hover);
  --accent-faint: var(--accent-subtle-bg);
  --card: var(--surface);
  --radius: var(--radius-card);
}

/* ═══════════ LIGHT THEME ═══════════ */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9f7;
    --surface: #ffffff;
    --surface-border: #d7e2d8;
    --elevated: #eef4ef;
    --text: #1a2e20;
    --text-heading: #0f1d14;
    --muted: #5f6f63;
    --accent: #1d8f4b;
    --accent-hover: #187a3f;
    --accent-subtle-bg: rgba(29, 143, 75, 0.06);
    --accent-subtle-border: rgba(29, 143, 75, 0.14);
    --accent-glow: rgba(29, 143, 75, 0.06);
    --accent-glow-strong: rgba(29, 143, 75, 0.12);
    --nav-bg: rgba(247, 249, 247, 0.88);
    --dropdown-shadow: 0 16px 48px rgba(15, 29, 20, 0.1);
    --card-hover-border: rgba(29, 143, 75, 0.3);
    --card-hover-shadow: 0 14px 40px rgba(15, 29, 20, 0.08);
    --hero-glow: rgba(29, 143, 75, 0.04);
    --terminal-glow: 0 20px 50px rgba(13, 26, 18, 0.18);
    --footer-dim: #8a9a8e;
    --shadow: 0 14px 40px rgba(15, 29, 20, 0.08);
    color-scheme: light;
  }
}

/* ═══════════ BASE ═══════════ */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.wrap {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

main { padding: 0; position: relative; z-index: 1; }
main.wrap { padding: 40px 0 96px; }

h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--text-heading);
}
h3 { margin: 0 0 6px; font-size: 18px; color: var(--text-heading); }
h1, h2 { font-family: var(--font-sans); }
.muted { color: var(--muted); }
.subhead {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent);
  font-size: 12px;
}
.note { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ═══════════ NAV ═══════════ */
body > header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-heading);
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--accent-glow-strong);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-sans);
  text-decoration: none;
}

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

.nav-link svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  transition: transform 0.2s;
}

.nav-link-item:hover .nav-link svg { transform: rotate(180deg); }

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 8px;
  box-shadow: var(--dropdown-shadow);
}

.dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-link-item:hover .dropdown { display: block; }

.dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.dropdown a:hover {
  color: var(--text);
  background: var(--accent-subtle-bg);
}

.dropdown a .label {
  display: block;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.dropdown a .desc {
  font-size: 12px;
  color: var(--muted);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font-sans);
  text-decoration: none;
}

.btn-outline:hover {
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 200ms ease, opacity 200ms ease;
}
header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}
header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--surface-border);
  padding: 16px 24px 20px;
  box-shadow: var(--dropdown-shadow);
}

header.menu-open .mobile-nav { display: block; }

.mobile-nav-section {
  padding: 8px 0;
  border-bottom: 1px solid var(--surface-border);
}
.mobile-nav-section:last-child { border-bottom: none; }

.mobile-nav-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 0 4px;
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.mobile-nav a:hover { color: var(--text); }

.mobile-nav-ctas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
}

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  font-family: var(--font-sans);
  font-size: 14px;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  font-family: var(--font-sans);
  box-shadow: 0 4px 16px var(--accent-glow-strong);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 24px var(--accent-glow-strong);
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font-sans);
  text-decoration: none;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ═══════════ SECTIONS ═══════════ */
section { padding: 64px 0; }

.section {
  padding: 56px 24px;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ═══════════ PAGE HERO (subpages) ═══════════ */
.page-hero {
  padding: 56px 0 40px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-heading);
  margin-bottom: 16px;
}
.page-hero .hero-subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Feature grid (3-col for subpages) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* Detail card (larger text than rel-card) */
.detail-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.detail-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--card-hover-shadow);
}
.detail-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.detail-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Cross-link banner */
.cross-link {
  padding: 32px 0 0;
  text-align: center;
}

@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid-2 { grid-template-columns: 1fr; }
}

/* ═══════════ HERO (legacy split layout) ═══════════ */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 48px 0 12px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}
.hero p { color: var(--muted); margin: 0 0 22px; }
.shape {
  background: radial-gradient(circle at 30% 30%, var(--accent-glow), transparent 44%),
              radial-gradient(circle at 80% 0%, var(--accent-glow), transparent 50%),
              var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  height: 340px;
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}
.shape::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 14px;
  border: 1px dashed var(--accent-subtle-border);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
}
.hero-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  background: var(--surface);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}
.hero-tab {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--surface-border);
  background: var(--elevated);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border 120ms ease;
}
.hero-tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent-hover);
  color: #fff;
}
.hero-code {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #111f17;
  color: #e2efe6;
  border-radius: 16px;
  border: 1px solid #1a3025;
  padding: 18px 20px 20px;
  box-shadow: var(--terminal-glow);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  height: 220px;
  overflow: auto;
}

/* ═══════════ HERO (centered — Dark Forest) ═══════════ */
.hero-centered {
  position: relative;
  padding: 80px 24px 56px;
  text-align: center;
  overflow: hidden;
}
.hero-centered::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center, var(--hero-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-centered .hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle-bg);
  border: 1px solid var(--accent-subtle-border);
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.hero-centered h1 {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}
.hero-ctas .btn-primary {
  padding: 13px 32px;
  font-size: 15px;
}
.hero-ctas .btn-ghost {
  padding: 13px 28px;
  font-size: 15px;
}
.hero-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 56px;
}

/* ═══════════ TERMINAL (always dark) ═══════════ */
.terminal {
  max-width: 720px;
  margin: 0 auto;
  background: #111f17;
  border: 1px solid #1a3025;
  border-radius: var(--radius-card);
  overflow: hidden;
  text-align: left;
  box-shadow: var(--terminal-glow);
}
.terminal-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #162420;
  border-bottom: 1px solid #1a3025;
}
.terminal-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}
.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.terminal-tab {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #4a6b52;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.terminal-tab[aria-selected="true"] {
  color: #2da750;
  background: rgba(45, 167, 80, 0.12);
}
.terminal-tab:hover {
  color: #e2efe6;
}
.terminal-body {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  overflow-x: auto;
}
.terminal-body code {
  display: block;
  white-space: pre;
  color: #e2efe6;
}
.t-comment { color: #4a6b52; }
.t-cmd { color: #e2efe6; }
.t-flag { color: #79c0ff; }
.t-string { color: #2da750; }
.t-url { color: #d2a8ff; }
.t-punct { color: #7a9a83; }

/* ═══════════ CARDS ═══════════ */
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--card-hover-shadow);
}

/* Product cards (Dark Forest) */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}
.product-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--card-hover-shadow);
}
.product-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-subtle-bg);
  border-radius: 10px;
  margin-bottom: 20px;
  color: var(--accent);
}
.product-card-icon svg { width: 24px; height: 24px; }
.product-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}
.product-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}
.product-card-link:hover { gap: 10px; }

/* Reliability grid (Dark Forest) */
.reliability-header {
  text-align: center;
  margin-bottom: 40px;
}
.reliability-header h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}
.reliability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.rel-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.rel-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--card-hover-shadow);
}
.rel-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--accent);
}
.rel-card-icon svg { width: 24px; height: 24px; }
.rel-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.rel-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ═══════════ STATS / LISTS ═══════════ */
.stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-subtle-bg);
  color: var(--accent);
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid var(--accent-subtle-border);
}
.list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}
.list li { color: var(--muted); }

/* ═══════════ CODE BOX + TABS (always dark) ═══════════ */
.tabs {
  margin-top: 46px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: fit-content;
}
.tab-btn {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
  transition: background 120ms ease, color 120ms ease, border 120ms ease, transform 120ms ease;
}
.tab-btn[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}
.code-box {
  background: #0d1a12;
  color: #d5f2dd;
  border-radius: 18px;
  padding: 34px;
  border: 1px solid #163821;
  position: relative;
  overflow: hidden;
  box-shadow: var(--terminal-glow);
  margin-top: 18px;
}
pre {
  margin: 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre;
}
.copy {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid #245233;
  background: rgba(247, 249, 247, 0.08);
  color: #d5f2dd;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

/* ═══════════ CHIP / INLINE CODE ═══════════ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
}
.inline-code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--accent-subtle-bg);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--accent-subtle-border);
  word-break: break-all;
}

/* ═══════════ PRICING ═══════════ */
.pricing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.billing-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
}
.billing-toggle button {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.billing-toggle button.active {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.pricing-table-wrap {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 740px;
}
.pricing-table th,
.pricing-table td {
  padding: 16px 20px;
  text-align: center;
  font-size: 15px;
  border-bottom: 1px solid var(--surface-border);
}
.pricing-table th:first-child,
.pricing-table td:first-child {
  text-align: left;
  font-weight: 700;
  color: var(--muted);
  padding-left: 28px;
}
.pricing-table thead th {
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  padding-top: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--surface-border);
}
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}
.pricing-table .price-cell {
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
}
.pricing-table .price-cell .period {
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
}
.pricing-table .enterprise-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.pricing-table .enterprise-link:hover {
  text-decoration: underline;
}
.pricing-table .check {
  color: var(--accent);
  font-size: 18px;
}
.pricing-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ═══════════ FAQ ═══════════ */
.faq { border-top: 1px solid var(--surface-border); padding-top: 18px; }
.faq-item { padding: 12px 0; border-bottom: 1px solid var(--surface-border); }
.faq-item summary {
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-heading);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-item p { margin-top: 8px; }

/* ═══════════ LEGAL ═══════════ */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0 64px;
}
.legal-content h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}
.legal-content h2 {
  font-size: 22px;
  margin: 36px 0 10px;
  color: var(--text-heading);
}
.legal-content h3 {
  font-size: 17px;
  margin: 24px 0 6px;
  color: var(--text-heading);
}
.legal-content p {
  color: var(--muted);
  margin: 0 0 14px;
}
.legal-content ul,
.legal-content ol {
  color: var(--muted);
  padding-left: 24px;
  margin: 0 0 14px;
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-content strong {
  color: var(--text);
}
.legal-content .effective-date {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

/* ═══════════ MODAL ═══════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 16, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 4px;
}
.modal-close:hover {
  color: var(--text);
}
.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-subtle-bg);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.modal h2 {
  margin: 0 0 12px;
  font-size: 24px;
}
.modal p {
  color: var(--muted);
  margin: 0 0 24px;
}
.modal .email-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 10px 30px var(--accent-glow-strong);
  transition: transform 120ms ease, background 120ms ease;
}
.modal .email-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.modal .email-display {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--accent-subtle-bg);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

/* ═══════════ BLOG ═══════════ */
.blog-hero {
  padding: 48px 0 12px;
  max-width: 680px;
}
.blog-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}
.blog-hero-desc {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
  line-height: 1.6;
}

.blog-grid {
  display: grid;
  gap: 20px;
  padding: 40px 0 0;
}

.blog-card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  position: relative;
}
.blog-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: var(--radius-card) 0 0 var(--radius-card);
  opacity: 0;
  transition: opacity 160ms ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--card-hover-border);
}
.blog-card:hover::before {
  opacity: 1;
}
.blog-card-inner {
  padding: 24px 28px;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}
.blog-card-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--surface-border);
}
.blog-card-title {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--text-heading);
}
.blog-card-desc {
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.6;
  font-size: 15px;
}
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.blog-card-link::after {
  content: "\2192";
  transition: transform 160ms ease;
}
.blog-card:hover .blog-card-link::after {
  transform: translateX(3px);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.blog-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--accent-subtle-bg);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--accent-subtle-border);
}

/* Blog article */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 64px;
}
.blog-article-header {
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--surface-border);
  margin-bottom: 36px;
}
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}
.blog-back::before {
  content: "\2190";
}
.blog-back:hover {
  color: var(--accent-hover);
}
.blog-article-header h1 {
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.025em;
  color: var(--text-heading);
}
.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Blog article body typography */
.blog-article-body {
  font-size: 16.5px;
  line-height: 1.75;
}
.blog-article-body p {
  color: var(--muted);
  margin: 0 0 20px;
}
.blog-article-body h2 {
  font-size: 24px;
  margin: 44px 0 14px;
  letter-spacing: -0.01em;
  color: var(--text-heading);
}
.blog-article-body h3 {
  font-size: 19px;
  margin: 36px 0 10px;
  color: var(--text-heading);
}
.blog-article-body ul,
.blog-article-body ol {
  color: var(--muted);
  padding-left: 24px;
  margin: 0 0 20px;
}
.blog-article-body li {
  margin-bottom: 8px;
}
.blog-article-body strong {
  color: var(--text);
  font-weight: 700;
}
.blog-article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-article-body a:hover {
  color: var(--accent-hover);
}
.blog-article-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  background: var(--accent-subtle-bg);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-style: italic;
}
.blog-article-body blockquote p {
  margin: 0;
}
.blog-article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--accent-subtle-bg);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--accent-subtle-border);
}
/* Code blocks — always dark */
.blog-article-body pre {
  background: #0d1a12;
  color: #d5f2dd;
  border-radius: 14px;
  padding: 24px 28px;
  border: 1px solid #163821;
  box-shadow: var(--terminal-glow);
  margin: 24px 0;
  overflow-x: auto;
}
.blog-article-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 14px;
}
.blog-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--surface-border);
  margin: 24px 0;
}
.blog-article-body hr {
  border: none;
  border-top: 1px solid var(--surface-border);
  margin: 40px 0;
}
.blog-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}
.blog-article-body thead th {
  background: var(--accent-subtle-bg);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-heading);
  text-align: left;
  padding: 14px 18px;
  border-bottom: 2px solid var(--surface-border);
}
.blog-article-body tbody td {
  padding: 14px 18px;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px solid var(--surface-border);
  vertical-align: top;
}
.blog-article-body tbody tr:last-child td {
  border-bottom: none;
}
.blog-article-body tbody td strong {
  color: var(--text);
}

.blog-article-footer {
  padding-top: 36px;
  border-top: 1px solid var(--surface-border);
  margin-top: 48px;
}

/* ═══════════ FOOTER ═══════════ */
footer {
  border-top: 1px solid var(--surface-border);
  padding: 64px 24px 40px;
  background: var(--bg);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand .logo { font-size: 16px; }
.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 220px;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--surface-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--footer-dim);
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  font-size: 13px;
  color: var(--footer-dim);
  transition: color 0.15s;
}
.footer-bottom-links a:hover { color: var(--muted); }

/* ═══════════ TOOL CARDS ═══════════ */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.tool-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--card-hover-shadow);
}
.tool-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-subtle-bg);
  border-radius: 10px;
  margin-bottom: 18px;
  color: var(--accent);
}
.tool-card-icon svg { width: 22px; height: 22px; }
.tool-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}
.tool-mono {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111f17;
  color: #e2efe6;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #1a3025;
  margin-bottom: 16px;
}
.tool-domain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-subtle-bg);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--accent-subtle-border);
  margin-bottom: 16px;
}
.tool-card .tool-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.tool-card .feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
}
.tool-card .feature-list li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}
.tool-card .feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}
.tool-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}
.tool-card-link:hover { gap: 10px; }

/* Coming soon */
.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.coming-soon-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 22px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.coming-soon-card:hover {
  opacity: 0.75;
}
.coming-soon-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--elevated);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 10px;
}
.coming-soon-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}
.coming-soon-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 720px) {
  .tools-grid { grid-template-columns: 1fr; }
}

/* ═══════════ BUILD VS BUY ═══════════ */

/* Complexity checklist */
.bvb-checklist {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.bvb-checklist-col {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 24px 22px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.bvb-checklist-col:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--card-hover-shadow);
}
.bvb-checklist-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--surface-border);
}
.bvb-checklist-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bvb-checklist-col li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.bvb-checklist-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--surface-border);
  border-radius: 3px;
}

/* Timeline */
.bvb-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
}
.bvb-timeline-item {
  display: flex;
  gap: 20px;
}
.bvb-timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
  padding-top: 4px;
}
.bvb-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.bvb-timeline-dot-end {
  background: var(--accent);
}
.bvb-timeline-line {
  width: 2px;
  flex: 1;
  background: var(--surface-border);
  margin: 4px 0;
}
.bvb-timeline-content {
  padding-bottom: 32px;
}
.bvb-timeline-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}
.bvb-timeline-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .bvb-checklist { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .bvb-checklist { grid-template-columns: 1fr; }
}

/* ═══════════ USE CASES ═══════════ */

/* Hub grid */
.uc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.uc-card {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  text-decoration: none;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
  position: relative;
}
.uc-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
}
.uc-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-2px);
}
.uc-card:hover::before {
  opacity: 1;
}
.uc-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
  color: var(--accent);
}
.uc-card-icon svg {
  width: 28px;
  height: 28px;
}
.uc-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.uc-card-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.uc-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}

/* Breadcrumb */
.uc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 0 0;
}
.uc-breadcrumb a {
  color: var(--accent);
  transition: color 0.15s;
}
.uc-breadcrumb a:hover {
  color: var(--accent-hover);
}
.uc-breadcrumb-sep {
  color: var(--surface-border);
}
.uc-breadcrumb span:last-child {
  color: var(--muted);
}

@media (max-width: 720px) {
  .uc-grid { grid-template-columns: 1fr; }
  .uc-card { flex-direction: column; gap: 14px; }
}

/* ═══════════ CLI PAGE ═══════════ */

/* Terminal demo */
.cli-terminal-section {
  padding: 0 0 24px;
}
.cli-demo-terminal {
  max-width: 680px;
  margin: 0 auto;
}
.terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #4a6b52;
}
.cli-demo-body {
  min-height: 260px;
}
.cli-check {
  color: #2da750;
  font-weight: 700;
}
.cli-line {
  display: block;
}
.cli-method {
  color: #79c0ff;
  font-weight: 700;
}
.cli-arrow {
  color: #4a6b52;
}
.cli-status {
  font-weight: 700;
}
.cli-2xx { color: #2da750; }
.cli-4xx { color: #febc2e; }
.cli-5xx { color: #ff5f57; }
.cli-latency {
  color: #7a9a83;
  font-size: 12px;
}

/* Terminal line reveal animation */
.cli-line {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cli-animate .cli-line-1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}
.cli-animate .cli-line-2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}
.cli-animate .cli-line-3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.3s;
}

/* How it works flow */
.cli-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.cli-flow-step {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cli-flow-step:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--card-hover-shadow);
}
.cli-flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-subtle-bg);
  border: 1px solid var(--accent-subtle-border);
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 14px;
}
.cli-flow-step h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.cli-flow-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.cli-flow-step code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--accent-subtle-bg);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--accent-subtle-border);
}
.cli-flow-connector {
  display: flex;
  align-items: center;
  padding: 28px 8px 0;
  color: var(--surface-border);
  flex-shrink: 0;
}
.cli-flow-connector svg {
  width: 32px;
  height: 20px;
}

@media (max-width: 720px) {
  .cli-flow {
    flex-direction: column;
    gap: 12px;
  }
  .cli-flow-connector {
    padding: 0 0 0 28px;
    transform: rotate(90deg);
  }
}

/* Install card */
.cli-install-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.cli-install-tabs {
  display: flex;
  border-bottom: 1px solid var(--surface-border);
  padding: 0;
}
.cli-install-tab {
  flex: 1;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.cli-install-tab:hover {
  color: var(--text);
  background: var(--accent-subtle-bg);
}
.cli-install-tab[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.cli-install-panels {
  padding: 24px;
}
.cli-install-cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111f17;
  border: 1px solid #1a3025;
  border-radius: var(--radius-code);
  padding: 14px 18px;
}
.cli-install-cmd code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #e2efe6;
  white-space: nowrap;
  overflow-x: auto;
}
.cli-install-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.cli-copy-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #d5f2dd;
  background: rgba(247, 249, 247, 0.08);
  border: 1px solid #245233;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.cli-copy-btn:hover {
  background: rgba(247, 249, 247, 0.14);
  color: #fff;
}

/* Quick start steps */
.cli-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cli-step {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cli-step:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--card-hover-shadow);
}
.cli-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cli-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.cli-step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
}
.cli-step-code {
  background: #111f17;
  border: 1px solid #1a3025;
  border-radius: var(--radius-code);
  padding: 12px 18px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
}
.cli-step-code code {
  color: #e2efe6;
  white-space: pre;
}
.cli-step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ═══════════ ANIMATIONS ═══════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero entrance — staggered fade-up */
.hero-centered .hero-badge,
.hero-centered h1,
.hero-centered .hero-subtitle,
.hero-centered .hero-ctas,
.hero-centered .hero-note,
.hero-centered .terminal {
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-centered .hero-badge { animation-delay: 0.05s; }
.hero-centered h1 { animation-delay: 0.12s; }
.hero-centered .hero-subtitle { animation-delay: 0.2s; }
.hero-centered .hero-ctas { animation-delay: 0.28s; }
.hero-centered .hero-note { animation-delay: 0.32s; }
.hero-centered .terminal { animation-delay: 0.42s; }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  .reliability-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .nav-links { display: none; }
  .nav-right { display: none; }
  header.menu-open .nav-right { display: none; }

  .hero { padding-top: 20px; }
  .shape { height: 220px; }
  .hero .cta-row { display: flex; flex-direction: column; align-items: stretch; }

  .product-grid { grid-template-columns: 1fr; }
  .reliability-grid { grid-template-columns: 1fr; }

  .pricing-header { flex-direction: column; align-items: flex-start; }
  .pricing-table th,
  .pricing-table td { padding: 12px 14px; font-size: 13px; }
  .pricing-table th:first-child,
  .pricing-table td:first-child { padding-left: 16px; }

  .blog-card-inner { padding: 18px 20px; }
  .blog-card-title { font-size: 19px; }
  .blog-article-header { padding: 20px 0 28px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 640px) {
  .hero-centered { padding: 64px 24px 48px; }
  .hero-ctas { flex-direction: column; }
}
