/* ============================================
   OvenLabs — Databricks-inspired Design System
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-0: #09090d;
  --bg-1: #0f1117;
  --bg-2: #161b27;
  --bg-3: #1e2535;
  --bg-card: #151b28;
  --border: #252d3d;
  --border-hover: #3d4f6e;

  --text-1: #f0f4ff;
  --text-2: #9aa5be;
  --text-3: #5d6b85;

  --orange: #ff3c1f;
  --orange-light: #ff6b4a;
  --orange-dark: #d42e12;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --cyan: #06b6d4;

  --grad-orange: linear-gradient(135deg, #ff8c00 0%, #ff3c1f 100%);
  --grad-hero: linear-gradient(135deg, #ff8c00 0%, #ff3c1f 60%, #c2185b 100%);
  --grad-blue: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --grad-card: linear-gradient(135deg, #1e2535 0%, #151b28 100%);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-orange: 0 0 32px rgba(255, 60, 31, 0.25);
  --shadow-blue: 0 0 32px rgba(59, 130, 246, 0.2);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --nav-height: 88px;
  --max-width: 1200px;
}

/* ---------- Light Theme ---------- */
[data-theme="light"] {
  --bg-0: #ffffff;
  --bg-1: #f8fafc;
  --bg-2: #f1f5f9;
  --bg-3: #e2e8f0;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --text-1: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --grad-card: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-orange: 0 0 32px rgba(255,60,31,0.15);
  --shadow-blue: 0 0 32px rgba(59,130,246,0.12);
}
[data-theme="light"] .nav {
  background: rgba(248, 250, 252, 0.92);
}
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  background: rgba(0,0,0,0.05);
}
[data-theme="light"] .nav-dropdown a:hover {
  background: rgba(0,0,0,0.04);
}
[data-theme="light"] .btn-secondary:hover {
  background: rgba(0,0,0,0.05);
  border-color: var(--text-3);
}
[data-theme="light"] .btn-ghost:hover {
  background: rgba(0,0,0,0.05);
}
[data-theme="light"] .sidebar-card ul a:hover,
[data-theme="light"] .sidebar-card ul a.active {
  background: rgba(0,0,0,0.05);
}
[data-theme="light"] .nav-mobile a:hover {
  background: rgba(0,0,0,0.05);
}
[data-theme="light"] .hero-image-wrapper {
  box-shadow: 0 32px 80px rgba(0,0,0,0.15), var(--shadow-orange);
}

/* ---------- Logo theme switching ---------- */
.logo-dark { display: block; }
.logo-light { display: none; }
[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: block; }

/* ---------- Theme toggle button ---------- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--text-1);
  border-color: var(--border-hover);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- Language switcher ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 1px;
}
.lang-btn {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-3);
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lang-btn:hover { color: var(--text-1); }
.lang-btn.active { color: var(--orange-light); }
.lang-sep {
  color: var(--text-3);
  font-size: 0.7rem;
  margin: 0 1px;
  user-select: none;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg-1);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-1);
}
.text-gradient {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted { color: var(--text-2); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }

/* ---------- Layout Utilities ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
}
.section-sm {
  padding: 64px 0;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.7;
}
.section-header {
  margin-bottom: 64px;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-8 { gap: 32px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(9, 9, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background 0.3s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img { height: 80px; width: auto; }
.nav-logo span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-1);
  background: rgba(255,255,255,0.06);
}
.nav-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  padding-top: 8px;
  left: 0;
  min-width: 200px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: var(--shadow-card);
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown a:hover {
  color: var(--text-1);
  background: rgba(255,255,255,0.07);
}
.nav-dropdown a span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 400;
  margin-top: 2px;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile nav toggle */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,60,31,0.4);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-hover);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--text-2);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  padding: 8px 16px;
}
.btn-ghost:hover {
  color: var(--text-1);
  background: rgba(255,255,255,0.05);
}
.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}
.btn-sm {
  padding: 7px 14px;
  font-size: 0.825rem;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--nav-height) + 96px);
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,80,30,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,60,31,0.3);
  background: rgba(255,60,31,0.08);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange-light);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
}
.hero-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), var(--shadow-orange);
}
.hero-image-wrapper img {
  width: 100%;
  object-fit: cover;
}

/* ---------- Browser Frame (product screenshots) ---------- */
.browser-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.18), var(--shadow-orange);
  position: relative;
}
.browser-frame::before {
  content: none;
}
.browser-frame img { display: block; width: 100%; }
[data-theme="light"] .browser-frame {
  box-shadow: 0 24px 64px rgba(0,0,0,0.1), var(--shadow-orange);
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(255,60,31,0.12);
  border: 1px solid rgba(255,60,31,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.card-icon.blue {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.2);
}
.card-icon.cyan {
  background: rgba(6,182,212,0.12);
  border-color: rgba(6,182,212,0.2);
}
.card-icon.green {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.2);
}
.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.card p {
  color: var(--text-2);
  font-size: 0.925rem;
  line-height: 1.7;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--orange-light);
  transition: gap 0.2s;
}
.card-link:hover { gap: 10px; }

/* Feature card with glow accent */
.card-featured {
  border-color: rgba(255,60,31,0.35);
  background: linear-gradient(135deg, rgba(255,60,31,0.06) 0%, var(--bg-card) 50%);
  position: relative;
}
.card-featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ---------- Stats / Numbers ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  background: var(--bg-card);
  padding: 40px 32px;
  text-align: center;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-2);
  font-weight: 500;
}

/* ---------- Dividers & Sections ---------- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}
.bg-2 { background: var(--bg-2); }
.bg-0 { background: var(--bg-0); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: border-color 0.2s;
}
.pricing-card:hover { border-color: var(--border-hover); }
.pricing-card.featured {
  border-color: rgba(255,60,31,0.4);
  background: linear-gradient(180deg, rgba(255,60,31,0.07) 0%, var(--bg-card) 40%);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pricing-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.pricing-price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price sup {
  font-size: 1.25rem;
  font-weight: 600;
  vertical-align: top;
  margin-top: 8px;
}
.pricing-period {
  font-size: 0.875rem;
  color: var(--text-3);
  margin-bottom: 28px;
}
.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-2);
}
.pricing-feature .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,60,31,0.15);
  border: 1px solid rgba(255,60,31,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.7rem;
  color: var(--orange-light);
}

/* ---------- Comparison Table ---------- */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-table th {
  background: var(--bg-2);
  padding: 16px 20px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid var(--border);
}
.compare-table td {
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { color: var(--text-1); font-weight: 500; }
.compare-table .check-yes { color: #22c55e; font-weight: 700; }
.compare-table .check-no { color: var(--text-3); }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.blog-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.blog-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  color: var(--blue-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.blog-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-excerpt {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.team-card:hover { border-color: var(--border-hover); }
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.team-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}
.team-role {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--orange-light);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}
.team-bio {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-0);
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(255,60,31,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  text-align: center;
  position: relative;
}
.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 64px;
  background: var(--bg-0);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 0% 50%, rgba(255,60,31,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.page-header p {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.7;
}

/* ---------- Content (article pages) ---------- */
.content-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px;
}
.content-body h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 56px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.content-body h2:first-child { margin-top: 0; border-top: none; }
.content-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 36px 0 12px;
}
.content-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-2);
  margin: 24px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.content-body p {
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 20px;
}
.content-body ul, .content-body ol {
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 20px;
  padding-left: 0;
}
.content-body li {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  align-items: flex-start;
}
.content-body li::before {
  content: '▸';
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}
.content-body ol li { counter-increment: list; }
.content-body ol li::before {
  content: counter(list) '.';
  color: var(--orange);
  font-weight: 700;
  min-width: 20px;
}
.content-body blockquote {
  border-left: 3px solid var(--orange);
  padding: 16px 20px;
  background: rgba(255,60,31,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  color: var(--text-2);
  font-style: italic;
}
.content-body strong { color: var(--text-1); font-weight: 700; }
.content-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}
.content-body img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 32px 0;
  width: 100%;
}

/* ---------- Service Detail ---------- */
.service-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.service-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.sidebar-card h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.sidebar-card ul { display: flex; flex-direction: column; gap: 4px; }
.sidebar-card ul li::before { display: none; }
.sidebar-card ul a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.15s, background 0.15s;
}
.sidebar-card ul a:hover, .sidebar-card ul a.active {
  color: var(--text-1);
  background: rgba(255,255,255,0.06);
}

/* ---------- Signup Form ---------- */
.signup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 560px;
  margin: 0 auto;
}
.signup-card h2 { margin-bottom: 8px; }
.signup-card p { color: var(--text-2); margin-bottom: 32px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 28px; margin-bottom: 14px; }
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 260px;
}
.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li::before { display: none; }
.footer-col ul a {
  font-size: 0.875rem;
  color: var(--text-3);
  transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--text-1); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-3);
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-3);
  transition: color 0.15s, border-color 0.15s;
  font-size: 0.9rem;
}
.footer-social a:hover { color: var(--text-1); border-color: var(--border-hover); }

/* ---------- Badges / Pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.badge-orange {
  background: rgba(255,60,31,0.12);
  border: 1px solid rgba(255,60,31,0.25);
  color: var(--orange-light);
}
.badge-blue {
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  color: var(--blue-light);
}
.badge-cyan {
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.25);
  color: var(--cyan);
}

/* ---------- Highlight Boxes ---------- */
.highlight-box {
  background: rgba(255,60,31,0.05);
  border: 1px solid rgba(255,60,31,0.2);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.highlight-box.blue {
  background: rgba(59,130,246,0.05);
  border-color: rgba(59,130,246,0.2);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .service-layout { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding-top: calc(var(--nav-height) + 48px); padding-bottom: 48px; }
  .grid-2, .grid-3, .pricing-grid, .blog-grid, .team-grid {
    grid-template-columns: 1fr;
  }
  .nav-links, .nav-cta-group { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .hero-title { font-size: 2.25rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stat-grid { grid-template-columns: 1fr; }
  .signup-card { padding: 32px 20px; }
  .cta-actions { flex-direction: column; }
  .hero-actions { flex-direction: column; }
}

/* ---------- Mobile Nav ---------- */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-0);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s, background 0.15s;
}
.nav-mobile a:hover { color: var(--text-1); background: rgba(255,255,255,0.06); }
.nav-mobile .mobile-section {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  padding: 16px 16px 6px;
}
.nav-mobile .mobile-cta {
  margin-top: 8px;
  background: var(--orange);
  color: #fff !important;
  text-align: center;
  border-radius: var(--radius-sm);
}

/* ---------- Scroll bar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
