/* =========================================================
   CodeyNet Design System
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-void: #0A0F1D;
  --bg-deep: #0F172A;
  --surface: rgba(30, 41, 59, 0.7);
  --surface-solid: #1E293B;
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);

  --cyan: #06B6D4;
  --cyan-bright: #22D3EE;
  --violet: #6366F1;
  --purple: #8B5CF6;
  --green: #10B981;
  --amber: #F59E0B;
  --red: #F43F5E;

  --text-hi: #F8FAFC;
  --text-mid: #CBD5E1;
  --text-muted: #94A3B8;
  --text-faint: #64748B;

  --font-ui: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.4);
  --shadow-glow-violet: 0 0 24px rgba(139, 92, 246, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --header-bg: rgba(10, 15, 29, 0.72);
  --mobile-nav-bg: rgba(10, 15, 29, 0.98);
  --card-shadow: 0 16px 40px rgba(0,0,0,0.35);
  --orb-opacity: 0.35;
  color-scheme: dark;
}

/* ---------- Light theme overrides ---------- */
:root[data-theme="light"] {
  --bg-void: #F4F7FB;
  --bg-deep: #E8EDF4;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #FFFFFF;
  --border-soft: rgba(15, 23, 42, 0.1);
  --border-hover: rgba(15, 23, 42, 0.2);

  /* Darker accent shades so text-on-tinted-chip patterns (badges, tags,
     status text) stay readable against light surfaces. */
  --cyan: #0E7490;
  --cyan-bright: #0E7490;
  --violet: #4F46E5;
  --purple: #7C3AED;
  --green: #047857;
  --amber: #B45309;
  --red: #BE123C;

  --text-hi: #0F172A;
  --text-mid: #1E293B;
  --text-muted: #475569;
  --text-faint: #64748B;

  --header-bg: rgba(244, 247, 251, 0.86);
  --mobile-nav-bg: rgba(244, 247, 251, 0.98);
  --card-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  --orb-opacity: 0.14;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-void);
  color: var(--text-mid);
  font-family: var(--font-ui);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  transition: background-color .35s ease, color .35s ease;
}

/* ---------- Ambient background orbs ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--orb-opacity);
  animation: orbFloat 18s var(--ease) infinite alternate;
  transition: opacity .35s ease;
}

.orb-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  top: -120px; left: -100px;
  animation-duration: 22s;
}

.orb-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
  top: 30%; right: -160px;
  animation-duration: 26s;
  animation-delay: -6s;
}

.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  bottom: -140px; left: 30%;
  animation-duration: 20s;
  animation-delay: -3s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 60px) scale(1.12); }
}

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan-bright);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--text-hi);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
}

.gradient-text {
  background: linear-gradient(120deg, var(--cyan-bright), var(--violet) 60%, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.55), 0 8px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hover);
  color: var(--text-hi);
}

.btn-outline:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-2px);
  background: rgba(6, 182, 212, 0.06);
}

.btn-sm { padding: 9px 18px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }

.btn-ghost {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.btn-ghost:hover { color: var(--text-hi); background: rgba(255,255,255,0.05); }

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 0.6s var(--ease);
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(3.5); opacity: 0; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-soft);
  transition: background-color .35s ease, border-color .35s ease;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--purple));
  z-index: 200;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
  transition: width .1s linear;
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-solid);
  border: 1px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  padding: 2px;
  flex-shrink: 0;
  transition: background .3s ease, border-color .3s ease;
}

.theme-toggle .toggle-knob {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: transform .3s var(--ease);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

:root[data-theme="light"] .theme-toggle .toggle-knob { transform: translateX(18px); }
.theme-toggle .toggle-knob::before { content: '🌙'; }
:root[data-theme="light"] .theme-toggle .toggle-knob::before { content: '☀️'; }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 19px;
  color: var(--text-hi);
}

.logo-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(139,92,246,0.15));
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--cyan-bright);
  font-size: 17px;
  animation: logoPulse 2.6s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(34,211,238,0.35), 0 0 0 rgba(139,92,246,0); }
  50% { box-shadow: 0 0 18px rgba(34,211,238,0.65), 0 0 26px rgba(139,92,246,0.25); }
}

.logo-cursor {
  display: inline-block;
  width: 2px;
  height: 15px;
  background: var(--cyan-bright);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink { 50% { opacity: 0; } }

.logo .brand-tag { color: var(--cyan-bright); }
.logo .brand-bracket { color: var(--violet); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 9px 15px;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
  position: relative;
}

.nav-links a:hover { color: var(--text-hi); background: rgba(255,255,255,0.04); }

.nav-links a.active { color: var(--cyan-bright); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 2px;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text-hi);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

.nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 76px; left: 0; right: 0;
  background: var(--mobile-nav-bg);
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(16px);
  z-index: 99;
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan-bright);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
  animation: floatSlow 4.5s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  color: var(--text-hi);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-trust div { font-size: 13px; color: var(--text-faint); }
.hero-trust strong { color: var(--text-hi); font-size: 15px; display: block; }

/* ---------- Sandbox Widget ---------- */
.sandbox-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.sandbox-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.02);
}

.mac-dots { display: flex; gap: 7px; }
.mac-dots span { width: 11px; height: 11px; border-radius: 50%; }
.mac-dots span:nth-child(1) { background: #F43F5E; }
.mac-dots span:nth-child(2) { background: #F59E0B; }
.mac-dots span:nth-child(3) { background: #10B981; }

.sandbox-filename { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }

.sandbox-tabs {
  display: flex;
  gap: 2px;
  padding: 10px 12px 0;
  border-bottom: 1px solid var(--border-soft);
  overflow-x: auto;
}

.sandbox-tab {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
  padding: 10px 16px;
  border-radius: 8px 8px 0 0;
  transition: color .2s ease, background .2s ease;
  white-space: nowrap;
}

.sandbox-tab.active {
  color: var(--cyan-bright);
  background: rgba(6, 182, 212, 0.08);
  border-bottom: 2px solid var(--cyan-bright);
}

.sandbox-tab:hover:not(.active) { color: var(--text-mid); }

.sandbox-body { padding: 20px; }

.code-block {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre;
  overflow-x: auto;
  color: var(--text-mid);
  min-height: 210px;
}

.code-block .c-kw { color: #C084FC; }
.code-block .c-fn { color: #22D3EE; }
.code-block .c-str { color: #86EFAC; }
.code-block .c-com { color: #64748B; font-style: italic; }
.code-block .c-num { color: #FBBF24; }
.code-block .c-type { color: #38BDF8; }
.code-block .c-prop { color: #F472B6; }

/* The hero sandbox card sits on a light-adaptive surface (unlike the
   Playground's always-dark editor), so its pale dark-mode syntax colors
   lose contrast on light theme — swap in deeper shades of the same hues.
   Scoped to .sandbox-card only; the Playground's .pg-editor is excluded
   since .playground-shell pins it permanently dark. */
:root[data-theme="light"] .sandbox-card .code-block .c-kw { color: #7C3AED; }
:root[data-theme="light"] .sandbox-card .code-block .c-fn { color: #0E7490; }
:root[data-theme="light"] .sandbox-card .code-block .c-str { color: #15803D; }
:root[data-theme="light"] .sandbox-card .code-block .c-com { color: #64748B; }
:root[data-theme="light"] .sandbox-card .code-block .c-num { color: #B45309; }
:root[data-theme="light"] .sandbox-card .code-block .c-type { color: #1D4ED8; }
:root[data-theme="light"] .sandbox-card .code-block .c-prop { color: #BE185D; }

.sandbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.02);
}

.run-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--green), #059669);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 9px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.run-btn:hover { box-shadow: 0 0 18px rgba(16,185,129,0.5); transform: translateY(-1px); }
.run-btn:disabled { opacity: 0.6; cursor: wait; }

.status-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-faint);
}

.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-faint);
}

.status-dot.ready { background: var(--text-faint); }
.status-dot.running { background: var(--amber); animation: pulseDot 0.8s infinite; }
.status-dot.success { background: var(--green); animation: pulseDot 1.6s infinite; }

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

.console-panel {
  /* Terminal chrome is always dark, in both themes — pin the text tokens
     locally so nested var() text stays legible against the fixed dark bg. */
  --text-mid: #CBD5E1;
  --text-muted: #94A3B8;
  --text-faint: #64748B;
  --cyan-bright: #22D3EE;
  --green: #10B981;

  margin-top: 14px;
  background: #060A14;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-mid);
  max-height: 160px;
  overflow-y: auto;
  display: none;
}

.console-panel.visible { display: block; animation: fadeSlideUp 0.3s ease; }

.console-line { padding: 2px 0; display: flex; gap: 8px; }
.console-line .ln-tag { color: var(--text-faint); }
.console-line.ok .ln-tag { color: var(--green); }
.console-line.info .ln-tag { color: var(--cyan-bright); }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Metrics bar ---------- */
.metrics-bar {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(99,102,241,0.04), transparent);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 44px 0;
}

.metric-item { text-align: center; border-right: 1px solid var(--border-soft); }
.metric-item:last-child { border-right: none; }

.metric-value {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  font-family: var(--font-mono);
  background: linear-gradient(120deg, var(--cyan-bright), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.metric-label { font-size: 13.5px; color: var(--text-faint); font-weight: 600; }

/* ---------- Filters ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
}

.filter-chip {
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  transition: all .2s ease;
}

.filter-chip:hover { color: var(--text-hi); border-color: var(--border-hover); }

.filter-chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-color: transparent;
  box-shadow: var(--shadow-glow-cyan);
}

/* ---------- Track Cards ---------- */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.track-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(24px);
}

.track-card.reveal { animation: slideUp 0.6s var(--ease) forwards; }

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

.track-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 24px rgba(6,182,212,0.12);
}

.track-top { display: flex; align-items: center; justify-content: space-between; }

.track-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(139,92,246,0.15));
  border: 1px solid var(--border-soft);
}

.badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge.beginner { background: rgba(16,185,129,0.12); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
.badge.intermediate { background: rgba(245,158,11,0.12); color: var(--amber); border: 1px solid rgba(245,158,11,0.3); }
.badge.advanced { background: rgba(244,63,94,0.12); color: var(--red); border: 1px solid rgba(244,63,94,0.3); }

.track-card h3 { color: var(--text-hi); font-size: 19px; font-weight: 700; }
.track-card p.desc { font-size: 14px; color: var(--text-muted); flex-grow: 1; }

.track-meta {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 999px;
  transition: width 1s var(--ease);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }

.tech-tag {
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  padding: 4px 10px;
  border-radius: 6px;
}

.mentor-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

.mentor-badge .status-dot.success { animation: pulseDot 1.6s infinite; }

/* ---------- Toggle Switch (Dev/Enterprise, Billing) ---------- */
.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 46px;
}

.switch {
  position: relative;
  width: 60px; height: 32px;
  background: var(--surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  transition: background .3s ease;
}

.switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  transition: transform .3s var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.switch.on::after { transform: translateX(28px); }

.toggle-label { font-weight: 700; color: var(--text-faint); font-size: 15px; transition: color .3s ease; cursor: pointer; }
.toggle-label.active-label { color: var(--text-hi); }

.save-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green);
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  padding: 4px 11px;
  border-radius: 999px;
  animation: floatSlow 3s ease-in-out infinite;
}

/* ---------- Audience Panels ---------- */
.audience-panel { display: none; }
.audience-panel.active { display: grid; animation: fadeSlideUp 0.4s ease; }

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform .25s ease, border-color .25s ease;
}

.feature-card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,0.35); }

.feature-card .track-icon { margin-bottom: 14px; }
.feature-card h4 { color: var(--text-hi); font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--text-muted); }

/* ---------- Accordion (FAQ) ---------- */
.accordion { display: flex; flex-direction: column; gap: 14px; max-width: 780px; margin: 0 auto; }

.accordion-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .25s ease;
}

.accordion-item.open { border-color: rgba(6,182,212,0.35); }

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text-hi);
  text-align: left;
}

.accordion-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform .3s var(--ease), background .3s ease, border-color .3s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  background: rgba(6,182,212,0.15);
  border-color: var(--cyan);
  color: var(--cyan-bright);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}

.accordion-panel-inner {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-mid);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14.5px;
  color: var(--text-hi);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-error {
  font-size: 12.5px;
  color: var(--red);
  min-height: 16px;
  display: none;
}

/* ---------- Human verification checkbox ---------- */
.human-check-group { margin-bottom: 24px; }

.human-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  user-select: none;
}

.human-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.human-check-box {
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid var(--border-hover);
  background: rgba(255,255,255,0.03);
  position: relative;
  transition: background .2s ease, border-color .2s ease;
}

.human-check-box::after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity .15s ease;
}

.human-check input[type="checkbox"]:checked + .human-check-box {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-color: transparent;
}

.human-check input[type="checkbox"]:checked + .human-check-box::after { opacity: 1; }

.human-check input[type="checkbox"]:focus-visible + .human-check-box {
  box-shadow: 0 0 0 3px rgba(6,182,212,0.25);
}

.form-group.error .human-check-box { border-color: var(--red); }

.form-group.error input,
.form-group.error select,
.form-group.error textarea { border-color: var(--red); }

.form-group.error .form-error { display: block; }

.success-banner {
  position: fixed;
  top: 24px; left: 50%;
  transform: translateX(-50%) translateY(-140%);
  z-index: 1000;
  background: linear-gradient(135deg, rgba(16,185,129,0.95), rgba(6,182,212,0.95));
  color: #fff;
  padding: 16px 28px;
  border-radius: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  transition: transform .45s var(--ease);
}

.success-banner.visible { transform: translateX(-50%) translateY(0); }

.success-banner.error {
  background: linear-gradient(135deg, rgba(244,63,94,0.95), rgba(245,158,11,0.9));
}

/* ---------- Contact grid / cards ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-card .track-icon { flex-shrink: 0; }
.info-card h4 { color: var(--text-hi); font-size: 15px; margin-bottom: 6px; }
.info-card p { font-size: 13.5px; color: var(--text-muted); }

.sla-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-top: 8px;
}

.social-row { display: flex; gap: 10px; margin-top: 10px; }
.social-pill {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  transition: all .2s ease;
  font-size: 15px;
}
.social-pill:hover { border-color: var(--cyan); color: var(--cyan-bright); box-shadow: var(--shadow-glow-cyan); transform: translateY(-2px); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative;
}

.price-card:hover { transform: translateY(-6px); }

.price-card.featured {
  border: 1px solid rgba(34,211,238,0.4);
  background: linear-gradient(180deg, rgba(6,182,212,0.08), rgba(139,92,246,0.05));
  box-shadow: 0 0 40px rgba(6,182,212,0.15);
}

.price-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(6,182,212,0.4);
}

.price-tier-name { font-size: 19px; font-weight: 700; color: var(--text-hi); }
.price-tier-desc { font-size: 13.5px; color: var(--text-muted); }

.price-amount { display: flex; align-items: baseline; gap: 6px; }
.price-amount .num { font-size: 44px; font-weight: 800; color: var(--text-hi); font-family: var(--font-mono); }
.price-amount .period { font-size: 14px; color: var(--text-faint); }

.price-features { display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.price-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-mid); }
.price-features .check { color: var(--green); font-weight: 800; flex-shrink: 0; }

/* ---------- Playground ---------- */
.playground-shell {
  /* The sandbox editor is always a dark IDE, regardless of site theme —
     pin its tokens locally so switching themes never affects legibility here. */
  --surface: rgba(30, 41, 59, 0.7);
  --surface-solid: #1E293B;
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text-hi: #F8FAFC;
  --text-mid: #CBD5E1;
  --text-muted: #94A3B8;
  --text-faint: #64748B;
  --cyan-bright: #22D3EE;
  --green: #10B981;
  --amber: #F59E0B;

  height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  background: #0A0F1D;
  color: var(--text-mid);
}

.pg-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(15,23,42,0.5);
  flex-wrap: wrap;
}

.pg-presets { display: flex; gap: 8px; flex-wrap: wrap; }

.preset-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  transition: all .2s ease;
}

.preset-btn:hover { color: var(--text-hi); border-color: var(--border-hover); }
.preset-btn.active { color: #fff; background: linear-gradient(135deg, var(--cyan), var(--violet)); border-color: transparent; }

.pg-main {
  flex-grow: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}

.pg-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--border-soft);
}

.pg-panel:last-child { border-right: none; }

.pg-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.015);
}

.pg-editor {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
}

.pg-console {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  background: #060A14;
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ---------- Search bar ---------- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 30px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.search-bar input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--text-hi);
  font-size: 15px;
}
.search-bar input:focus { outline: none; }
.search-icon { color: var(--text-faint); }

.filters-panel { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }

.filters-panel select {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--text-mid);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 70px 0 0;
  background: linear-gradient(180deg, transparent, rgba(6,182,212,0.03));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-brand p { font-size: 13.5px; color: var(--text-muted); margin-top: 14px; max-width: 280px; }

.footer-col h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-hi);
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color .2s ease, transform .2s ease;
}

.footer-col a:hover { color: var(--cyan-bright); transform: translateX(3px); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 13px; color: var(--text-faint); }

.footer-credit {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-mid);
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
}

.footer-credit a {
  color: var(--cyan-bright);
  font-weight: 800;
  transition: text-shadow .25s ease, color .25s ease;
}

.footer-credit a:hover {
  text-shadow: 0 0 12px rgba(34,211,238,0.7);
  color: #fff;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 64px 0 40px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  color: var(--text-hi);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-hero p { color: var(--text-muted); font-size: 17px; max-width: 620px; margin: 0 auto; }

/* ---------- Scroll reveal ---------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-on-scroll.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Support page ---------- */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

.kb-search-results {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kb-result {
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text-mid);
  display: none;
}
.kb-result.match { display: block; }

/* ---------- Logo marquee ---------- */
.marquee-wrap {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-faint);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.75;
  transition: opacity .2s ease, color .2s ease;
}

.marquee-item:hover { opacity: 1; color: var(--text-hi); }

/* ---------- Tech stack grid ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.stack-chip {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease;
}

.stack-chip:hover {
  transform: translateY(-4px);
  border-color: rgba(34,211,238,0.35);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.stack-chip .stack-icon { font-size: 26px; margin-bottom: 8px; }
.stack-chip .stack-name { font-size: 12.5px; font-weight: 700; color: var(--text-mid); font-family: var(--font-mono); }

/* ---------- Comparison table ---------- */
.compare-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid var(--border-soft);
}

.compare-table th:first-child, .compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-mid);
}

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

.compare-table thead th {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 22px;
}

.compare-table thead th.highlight-col {
  color: var(--cyan-bright);
  background: rgba(6,182,212,0.06);
}

.compare-table td.highlight-col {
  background: rgba(6,182,212,0.05);
  font-weight: 700;
  color: var(--text-hi);
}

.compare-table .yes { color: var(--green); font-weight: 800; }
.compare-table .no { color: var(--text-faint); }

/* ---------- Newsletter ---------- */
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex-grow: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text-hi);
  font-size: 14.5px;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
}

.newsletter-msg {
  text-align: center;
  font-size: 13.5px;
  margin-top: 14px;
  min-height: 18px;
  color: var(--green);
}

.newsletter-msg.error { color: var(--red); }

/* ---------- Brokerage page ---------- */
.brokerage-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan-bright);
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.3);
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.step-card h4 { color: var(--text-hi); font-size: 15.5px; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--text-muted); }

.service-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border-soft);
}

.service-section:last-of-type { border-bottom: none; }

.service-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.service-row.reverse { grid-template-columns: 1.15fr 0.85fr; }
.service-row.reverse .service-visual { order: 2; }
.service-row.reverse .service-text { order: 1; }

.service-visual {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.service-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(6,182,212,0.12), transparent 60%);
}

.service-visual .service-icon-big {
  font-size: 64px;
  filter: drop-shadow(0 0 20px rgba(6,182,212,0.35));
  position: relative;
  z-index: 1;
}

.service-index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}

.service-text h3 { font-size: 24px; font-weight: 800; color: var(--text-hi); margin-bottom: 12px; letter-spacing: -0.01em; }
.service-text p.service-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 18px; }

.service-deliverables {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
}

.service-deliverables li { display: flex; gap: 10px; font-size: 14px; color: var(--text-mid); }
.service-deliverables .check { color: var(--cyan-bright); font-weight: 800; flex-shrink: 0; }

/* ---------- Brokerage: sticky service jump-nav ---------- */
.jumpnav-wrap {
  position: sticky;
  top: 76px;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: background-color .35s ease;
}

.jumpnav-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}

.jumpnav-track::-webkit-scrollbar { display: none; }

.jumpnav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
  flex-shrink: 0;
}

.jumpnav-link:hover { color: var(--text-hi); }

.jumpnav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}

/* ---------- Brokerage: agency showcase ---------- */
.agency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.agency-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform .25s var(--ease), border-color .25s ease;
}

.agency-card:hover { transform: translateY(-4px); border-color: rgba(6,182,212,0.3); }

.agency-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }

.agency-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

.agency-name { color: var(--text-hi); font-size: 15.5px; font-weight: 700; }
.agency-specialty { font-size: 12px; color: var(--cyan-bright); font-weight: 600; }

.agency-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--amber); margin-bottom: 10px; }
.agency-rating .rating-num { color: var(--text-mid); font-weight: 700; }

.agency-desc { font-size: 13.5px; color: var(--text-muted); margin-bottom: 14px; }

.agency-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); }

.verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
}

/* ---------- Match request form ---------- */
.match-form .form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* ---------- About page ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.timeline { display: flex; flex-direction: column; gap: 4px; max-width: 640px; margin: 0 auto; }

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 18px 0 18px 24px;
  border-left: 2px solid var(--border-soft);
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px; top: 24px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 10px rgba(6,182,212,0.5);
}

.timeline-year { font-family: var(--font-mono); font-weight: 700; color: var(--cyan-bright); padding-top: 2px; }
.timeline-content h4 { color: var(--text-hi); font-size: 16px; margin-bottom: 6px; }
.timeline-content p { font-size: 13.5px; color: var(--text-muted); }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.team-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease;
}

.team-card:hover { transform: translateY(-4px); border-color: rgba(6,182,212,0.3); }

.team-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}

.team-card h4 { color: var(--text-hi); font-size: 15px; margin-bottom: 4px; }
.team-card .team-role { font-size: 12.5px; color: var(--cyan-bright); font-weight: 600; margin-bottom: 8px; }
.team-card p.team-bio { font-size: 12.5px; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .tracks-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .metric-item:nth-child(2) { border-right: none; }
  .audience-grid { grid-template-columns: 1fr; }
  .pg-main { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .pg-panel { border-right: none; border-bottom: 1px solid var(--border-soft); }
  .brokerage-steps { grid-template-columns: repeat(2, 1fr); }
  .service-row, .service-row.reverse { grid-template-columns: 1fr; }
  .service-row.reverse .service-visual, .service-row.reverse .service-text { order: initial; }
  .value-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  .compare-table { font-size: 12.5px; }
  .compare-table th, .compare-table td { padding: 12px 10px; }
  .newsletter-form { flex-direction: column; }
  .agency-grid { grid-template-columns: 1fr; }
  .match-form .form-row-3 { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .tracks-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { gap: 18px 24px; }
  .value-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  .compare-table-wrap { overflow-x: auto; }
  .compare-table { min-width: 560px; }
  .brokerage-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-wrap { height: 68px; }
  .logo { font-size: 16px; gap: 8px; }
  .logo-mark { width: 32px; height: 32px; font-size: 14px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-sm { padding: 8px 14px; font-size: 13px; }
  .theme-toggle { width: 38px; height: 24px; }
  .theme-toggle .toggle-knob { width: 18px; height: 18px; }
  :root[data-theme="light"] .theme-toggle .toggle-knob { transform: translateX(14px); }

  .jumpnav-wrap { top: 68px; }

  .hero-badge { font-size: 12px; padding: 7px 14px; text-align: center; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 15.5px; }
  .hero-trust { flex-direction: column; gap: 12px; }

  .section-head h2 { font-size: 24px; }
  .section-head p { font-size: 15px; }

  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .metric-item:nth-child(2) { border-right: 1px solid var(--border-soft); }
  .metric-item:nth-child(odd) { border-right: 1px solid var(--border-soft); }
  .metric-item:nth-child(even) { border-right: none; }
  .metric-value { font-size: 24px; }

  .sandbox-body { padding: 14px; }
  .code-block { font-size: 11.5px; min-height: 160px; }
  .sandbox-tabs { padding: 8px 8px 0; }
  .sandbox-tab { padding: 8px 12px; font-size: 12px; }

  .filter-bar { gap: 8px; }
  .filter-chip { padding: 7px 14px; font-size: 12.5px; }

  .value-grid, .team-grid, .agency-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .brokerage-steps { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-credit { font-size: 13px; padding: 10px 16px; }

  .form-card { padding: 26px 20px; }
  .match-form { padding: 26px 20px !important; }

  .jumpnav-link { font-size: 12px; padding: 7px 12px; }

  .success-banner { left: 16px; right: 16px; transform: translateY(-140%); width: auto; }
  .success-banner.visible { transform: translateY(0); }

  .pg-toolbar { flex-wrap: wrap; gap: 8px; }
  .pg-presets { width: 100%; }
  .preset-btn { font-size: 12px; padding: 7px 12px; }
}

@media (max-width: 360px) {
  .logo span:not(.logo-mark):not(.logo-cursor) { font-size: 14px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-sm { padding: 7px 10px; font-size: 12px; }
}
