/* ========================================
   GRADIIIENT Regulation · v3
   Docs-style site with sidebar
   ======================================== */

:root {
  --bg: #0b0b10;
  --bg-elev: #13131c;
  --bg-elev-2: #1a1a24;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f0f0f5;
  --text-dim: #a8a8b8;
  --text-muted: #72727f;
  --accent-1: #8b5cf6;
  --accent-2: #ec4899;
  --accent-3: #06b6d4;
  --accent-4: #f59e0b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f59e0b 100%);
  --gradient-cool: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  --gradient-warm: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
  --sidebar-w: 280px;
  --toc-w: 240px;
  --header-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ========================================
   TOP BAR (persistent)
   ======================================== */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(11, 11, 16, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.topbar-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}
.topbar-logo-mark::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 6px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 60%);
}
.topbar-logo-text { font-size: 15px; }
.topbar-logo-text span { color: var(--text-muted); font-weight: 500; }

.topbar-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.topbar-search input {
  width: 100%;
  height: 36px;
  padding: 0 14px 0 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.15s;
}
.topbar-search input:focus {
  outline: none;
  border-color: var(--border-strong);
  background: var(--surface-hover);
}
.topbar-search::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2372727f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
  background-size: contain;
}
.topbar-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-muted);
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.topbar-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.topbar-btn:hover { background: var(--surface-hover); color: var(--text); border-color: var(--border-strong); }
.topbar-btn.primary {
  background: var(--gradient);
  border: none;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}
.topbar-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4); }

.topbar-menu-toggle {
  display: none;
  height: 34px;
  width: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

@media (max-width: 1024px) {
  .topbar-menu-toggle { display: inline-flex; }
  .topbar-search { display: none; }
}
@media (max-width: 600px) {
  .topbar-btn:not(.primary) { display: none; }
}

/* ========================================
   LAYOUT
   ======================================== */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--toc-w);
  min-height: 100vh;
  padding-top: var(--header-h);
}

@media (max-width: 1200px) {
  .app { grid-template-columns: var(--sidebar-w) 1fr; }
  .toc { display: none; }
}

@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; }
  .main { grid-column: 1; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar {
  position: fixed;
  top: var(--header-h);
  bottom: 0;
  left: 0;
  width: var(--sidebar-w);
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 24px 0;
  z-index: 50;
  transition: transform 0.2s;
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.sidebar-section {
  padding: 0 16px;
  margin-bottom: 24px;
}
.sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 12px;
  margin-bottom: 4px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-dim);
  transition: all 0.15s;
  position: relative;
}
.sidebar-link:hover { background: var(--surface); color: var(--text); }
.sidebar-link.active {
  color: var(--text);
  background: var(--surface-strong);
  font-weight: 500;
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--gradient);
  border-radius: 0 3px 3px 0;
}
.sidebar-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  min-width: 20px;
}
.sidebar-link.active .sidebar-num { color: var(--accent-2); }

.sidebar-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */

.main {
  grid-column: 2;
  min-width: 0;
}

.content-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 48px 96px;
}

@media (max-width: 768px) {
  .content-wrap { padding: 32px 20px 64px; }
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumbs a { color: var(--text-dim); transition: color 0.15s; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { color: var(--text-muted); }

/* Page header */
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 16px;
}
.page-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 12px currentColor;
}

h1.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 20px;
}
.page-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-dim);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

/* Typography in content */
.content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 56px 0 20px;
  scroll-margin-top: 96px;
}
.content h2:first-child { margin-top: 0; }
.content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
}
.content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
}
.content p { color: var(--text-dim); margin-bottom: 16px; }
.content p strong, .content li strong { color: var(--text); font-weight: 600; }
.content a { color: var(--accent-2); text-decoration: underline; text-decoration-color: rgba(236, 72, 153, 0.3); text-underline-offset: 3px; }
.content a:hover { text-decoration-color: var(--accent-2); }

.content ul, .content ol {
  margin: 16px 0;
  padding-left: 24px;
  color: var(--text-dim);
}
.content ul li, .content ol li { margin-bottom: 8px; line-height: 1.65; }
.content ul li::marker { color: var(--accent-2); }
.content ol li::marker { color: var(--accent-2); font-weight: 600; }

.content hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* ========================================
   TOC (right sidebar)
   ======================================== */

.toc {
  grid-column: 3;
  position: sticky;
  top: calc(var(--header-h) + 48px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  padding: 0 24px;
  font-size: 13px;
}
.toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.toc-list { list-style: none; padding: 0; }
.toc-list a {
  display: block;
  padding: 5px 12px;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  transition: all 0.15s;
  line-height: 1.4;
}
.toc-list a:hover { color: var(--text); border-color: var(--border-strong); }
.toc-list a.active { color: var(--accent-2); border-color: var(--accent-2); font-weight: 500; }

/* ========================================
   COMPONENTS
   ======================================== */

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.2s;
}
.card:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.card h3 { margin-top: 0; }
.card > *:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 16px; margin: 24px 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Stat cards */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 24px 0; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-success { background: rgba(16, 185, 129, 0.12); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.25); }
.badge-warning { background: rgba(245, 158, 11, 0.12); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-danger { background: rgba(239, 68, 68, 0.12); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.25); }
.badge-info { background: rgba(6, 182, 212, 0.12); color: var(--accent-3); border: 1px solid rgba(6, 182, 212, 0.25); }
.badge-purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }

/* Callout */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.callout.info { border-left-color: var(--accent-3); background: rgba(6, 182, 212, 0.04); }
.callout.warn { border-left-color: var(--warning); background: rgba(245, 158, 11, 0.04); }
.callout.danger { border-left-color: var(--danger); background: rgba(239, 68, 68, 0.04); }
.callout.success { border-left-color: var(--success); background: rgba(16, 185, 129, 0.04); }
.callout-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.callout.info .callout-icon { background: rgba(6, 182, 212, 0.15); color: var(--accent-3); }
.callout.warn .callout-icon { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.callout.danger .callout-icon { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.callout.success .callout-icon { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.callout-title { font-weight: 700; margin-bottom: 4px; color: var(--text); font-size: 14px; }
.callout p { margin: 0; font-size: 14px; color: var(--text-dim); }
.callout-content { flex: 1; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 24px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  font-size: 14px;
}
th {
  text-align: left;
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  white-space: nowrap;
}
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
  line-height: 1.5;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: var(--surface); }
tbody tr:hover td { color: var(--text); }
td strong { color: var(--text); }

/* Code / kbd */
kbd, code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--accent-3);
  white-space: nowrap;
}

/* Pre / code blocks */
pre {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 24px 0;
}

/* Timeline */
.timeline { position: relative; padding-left: 28px; margin: 32px 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2), var(--accent-4));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding: 18px 22px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px; top: 22px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent-2);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-day {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline-item h4 { font-size: 17px; margin: 0 0 8px; color: var(--text); }
.timeline-item p { font-size: 14px; margin: 0; }

/* Pager (prev/next) */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.pager-item {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
  display: block;
  min-height: 80px;
}
.pager-item:hover { background: var(--surface-hover); border-color: var(--border-strong); transform: translateY(-1px); }
.pager-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.pager-title { font-size: 16px; font-weight: 600; color: var(--text); font-family: 'Space Grotesk', sans-serif; }
.pager-next { text-align: right; }
.pager-empty { background: transparent; border: 1px dashed var(--border); pointer-events: none; opacity: 0.3; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } }

/* ========================================
   LANDING PAGE (index.html specific)
   ======================================== */

.landing {
  grid-column: 1 / -1;
  padding: 0;
}

.hero {
  position: relative;
  padding: 96px 32px 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(139, 92, 246, 0.2), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(236, 72, 153, 0.15), transparent 60%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(6, 182, 212, 0.1), transparent 60%);
  animation: heroPulse 12s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.hero-pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 24px;
  max-width: 900px;
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero-sub {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--text-dim);
  max-width: 680px;
  margin-bottom: 40px;
  line-height: 1.5;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(139, 92, 246, 0.5); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--text-muted); }

.hero-meta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-meta-item { font-size: 13px; color: var(--text-muted); }
.hero-meta-item strong {
  display: block;
  font-size: 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.landing-section {
  padding: 80px 32px;
  border-bottom: 1px solid var(--border);
}
.landing-section:last-of-type { border-bottom: none; }
.landing-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.landing-section-kicker {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 12px;
}
.landing-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 16px;
}
.landing-section-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.25s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 18px;
  font-family: 'Space Grotesk', sans-serif;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}
.feature-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.feature-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.55;
  flex: 1;
}
.feature-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  margin-top: 16px;
  transition: gap 0.2s;
}
.feature-card:hover .feature-card-link { gap: 8px; }

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .tiles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .tiles-grid { grid-template-columns: 1fr; } }
.tile {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s;
}
.tile:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.tile-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.tile-label { font-size: 13px; color: var(--text-dim); }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }
.client-card {
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s;
}
.client-card:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.client-card h4 { font-size: 16px; color: var(--text); margin-bottom: 4px; font-weight: 600; }
.client-card p { font-size: 12px; color: var(--text-muted); margin: 0; }

.cta-strip {
  padding: 64px 32px;
  text-align: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.08));
  border-radius: 20px;
  margin: 40px 0;
  border: 1px solid var(--border);
}
.cta-strip h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 3.5vw, 36px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.cta-strip p { font-size: 16px; color: var(--text-dim); margin-bottom: 28px; }

/* Footer */
.site-footer {
  padding: 40px 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--text); }

/* Progress bar */
.progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 99;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  transition: width 0.1s;
}

/* Utils */
.text-grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mono { font-family: 'JetBrains Mono', monospace; }
.fade-in { animation: fadeIn 0.6s ease-out; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Backdrop for mobile sidebar */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 49;
  opacity: 0;
  transition: opacity 0.2s;
}
.sidebar-backdrop.open { display: block; opacity: 1; }
