/* ===================================================================
   Light Speed Logistics — Design System
   =================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --bg-elevated: #ffffff;
  --text: #0a1024;
  --text-muted: #5a6378;
  --text-subtle: #8a94ad;
  --border: #e4e8f0;
  --border-strong: #c9d1de;
  --accent: #1e50ff;
  --accent-hover: #1a47e8;
  --accent-glow: #00b8ff;
  --accent-soft: rgba(30, 80, 255, 0.08);
  --success: #00a86b;
  --shadow-sm: 0 1px 2px rgba(10, 16, 36, 0.04);
  --shadow: 0 1px 3px rgba(10, 16, 36, 0.06), 0 8px 24px rgba(10, 16, 36, 0.04);
  --shadow-lg: 0 4px 12px rgba(10, 16, 36, 0.08), 0 20px 48px rgba(10, 16, 36, 0.08);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --container: 1200px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --grid-color: rgba(10, 16, 36, 0.04);
}

[data-theme="dark"] {
  --bg: #070a18;
  --bg-alt: #0d1228;
  --bg-elevated: #131832;
  --text: #f0f3ff;
  --text-muted: #9ca5c2;
  --text-subtle: #6b7594;
  --border: #1e2443;
  --border-strong: #2b3258;
  --accent: #5b8fff;
  --accent-hover: #7aa4ff;
  --accent-glow: #36c5ff;
  --accent-soft: rgba(91, 143, 255, 0.12);
  --success: #29d398;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.4), 0 20px 48px rgba(0, 0, 0, 0.35);
  --grid-color: rgba(255, 255, 255, 0.04);
}

/* ===================================================================
   Reset & base
   =================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0; color: var(--text-muted); }

button { font-family: inherit; cursor: pointer; }

/* ===================================================================
   Layout
   =================================================================== */

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

section {
  padding: 96px 0;
  position: relative;
}

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

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-header h2 { margin-bottom: 16px; }

.section-header p { font-size: 1.0625rem; }

/* ===================================================================
   Header
   =================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo:hover { color: var(--text); }

.logo-mark {
  width: 46px;
  height: 32px;
  background-image: url('assets/logo-mark-light.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  flex-shrink: 0;
}
[data-theme="dark"] .logo-mark {
  background-image: url('assets/logo-mark-dark.png');
}
.logo-mark svg,
.logo-mark img { display: none; }

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

.nav-links a {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover { background: var(--bg-alt); color: var(--text); }
.nav-links a.active { color: var(--text); background: var(--bg-alt); }

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

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  transition: all 0.15s var(--ease);
}
.icon-btn:hover { background: var(--bg-alt); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.menu-btn { display: none; }

/* ===================================================================
   Buttons
   =================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--accent-soft);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--border-strong); background: var(--bg-alt); }

.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-alt); }

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }

/* ===================================================================
   Hero
   =================================================================== */

.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 80%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-badge .pill {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.0625rem, 1.75vw, 1.25rem);
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--text-muted);
}

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

/* ===================================================================
   Stats
   =================================================================== */

.stats {
  padding: 48px 0 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat { text-align: center; }
.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ===================================================================
   Feature grid
   =================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.feature-card p { font-size: 0.9375rem; }

/* ===================================================================
   Steps / how it works
   =================================================================== */

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

.step {
  position: relative;
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.step h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.step p { font-size: 0.9375rem; }

/* ===================================================================
   CTA section
   =================================================================== */

.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);
  padding: 56px 48px;
  border-radius: var(--radius-xl);
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #ffffff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.0625rem; margin-bottom: 28px; }
.cta-band .btn-primary { background: #ffffff; color: var(--accent); }
.cta-band .btn-primary:hover { background: #f5f7ff; color: var(--accent); }
.cta-band .btn-ghost { color: #ffffff; border: 1px solid rgba(255,255,255,0.3); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ===================================================================
   Service detail / split layout
   =================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split.reverse > :first-child { order: 2; }

.split h2 { margin-bottom: 16px; }
.split p { font-size: 1.0625rem; margin-bottom: 20px; }

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.9375rem;
}
.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231e50ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8 6.5 11.5 13 5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}
[data-theme="dark"] .checklist li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235b8fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8 6.5 11.5 13 5'/></svg>");
}

.visual-card {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* ===================================================================
   Pricing / tiered cards (services)
   =================================================================== */

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tier {
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: all 0.2s var(--ease);
}
.tier:hover { border-color: var(--border-strong); }
.tier.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.tier-badge {
  position: absolute;
  top: 0;
  right: 24px;
  transform: translateY(-50%);
  background: var(--accent);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.tier h3 { font-size: 1.25rem; margin-bottom: 6px; }
.tier-desc { font-size: 0.9375rem; margin-bottom: 20px; }
.tier-price {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.tier-price .unit { font-size: 0.9375rem; color: var(--text-muted); font-weight: 500; }
.tier ul {
  list-style: none;
  margin: 24px 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.tier ul li {
  display: flex;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  align-items: flex-start;
}
.tier ul li::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-top: 4px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231e50ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8 6.5 11.5 13 5'/></svg>");
  background-repeat: no-repeat;
}
[data-theme="dark"] .tier ul li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235b8fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8 6.5 11.5 13 5'/></svg>");
}

/* ===================================================================
   About / team / values
   =================================================================== */

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value {
  padding: 28px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.value h3 { margin-bottom: 8px; font-size: 1.0625rem; }
.value p { font-size: 0.9375rem; }

.timeline {
  display: grid;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-year {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.timeline-content h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.timeline-content p { font-size: 0.9375rem; }

/* ===================================================================
   Contact form
   =================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
}

.form {
  padding: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.field { display: grid; gap: 6px; margin-bottom: 16px; }

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 120px; }

.form .btn-primary { width: 100%; justify-content: center; }

.contact-info {
  display: grid;
  gap: 24px;
  align-content: start;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-item h3 { font-size: 0.9375rem; margin-bottom: 4px; }
.contact-item p { font-size: 0.875rem; margin: 0; }
.contact-item a { color: var(--text); font-weight: 500; }
.contact-item a:hover { color: var(--accent); }

/* ===================================================================
   Page hero (smaller than homepage hero)
   =================================================================== */

.page-hero {
  padding: 80px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, black 30%, transparent 70%);
  pointer-events: none;
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.page-hero p {
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto;
}
.page-hero > .container { position: relative; }

/* ===================================================================
   Logo strip / trust
   =================================================================== */

.trust {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}
.logos-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  opacity: 0.7;
}
.logos-row .brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  font-family: 'Inter', sans-serif;
}

/* ===================================================================
   Footer
   =================================================================== */

.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin: 16px 0 24px;
  max-width: 320px;
  font-size: 0.9375rem;
}

.footer-col h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.social {
  display: flex;
  gap: 8px;
}
.social a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
}
.social a:hover { color: var(--text); border-color: var(--border-strong); }

/* ===================================================================
   Integrations
   =================================================================== */

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

.integration {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.15s var(--ease);
  color: var(--text);
}
.integration:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px var(--accent-soft);
  transform: translateY(-1px);
  color: var(--text);
}

.integration-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}

.integration-text { min-width: 0; }
.integration-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.integration-meta {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 2px;
}

.category-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.category-row:first-child { padding-top: 0; }
.category-row:last-child { border-bottom: none; padding-bottom: 0; }
.category-row .cat-meta h3 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}
.category-row .cat-meta p { font-size: 0.875rem; }

@media (max-width: 1100px) { .integration-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) {
  .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .category-row { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
}
@media (max-width: 480px) { .integration-grid { grid-template-columns: 1fr; } }

/* ===================================================================
   API docs
   =================================================================== */

.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: 96px;
  align-self: start;
}
.docs-nav h4 {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin: 20px 0 8px;
  font-weight: 600;
}
.docs-nav h4:first-child { margin-top: 0; }
.docs-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.docs-nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-left: 2px solid transparent;
}
.docs-nav a:hover { background: var(--bg-alt); color: var(--text); }

.doc-section { margin-bottom: 56px; scroll-margin-top: 96px; }
.doc-section:last-child { margin-bottom: 0; }
.doc-section > h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.doc-section > h3 {
  font-size: 1.0625rem;
  margin: 28px 0 8px;
  letter-spacing: -0.01em;
}
.doc-section > p {
  margin: 8px 0 12px;
  color: var(--text-muted);
}
.doc-section code {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--text);
}

.code-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0 24px;
  box-shadow: var(--shadow-sm);
}
.code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.code-block-tag {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.copy-btn {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
}
.copy-btn:hover { background: var(--bg); color: var(--text); }

.code-block pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text);
  background: transparent;
}
.code-block pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

[data-theme="light"] .code-block .kw { color: #9333ea; }
[data-theme="light"] .code-block .str { color: #15803d; }
[data-theme="light"] .code-block .num { color: #c2410c; }
[data-theme="light"] .code-block .key { color: #1d4ed8; }
[data-theme="light"] .code-block .com { color: #64748b; font-style: italic; }
[data-theme="light"] .code-block .fn { color: #0284c7; }

[data-theme="dark"] .code-block .kw { color: #c084fc; }
[data-theme="dark"] .code-block .str { color: #6ee7b7; }
[data-theme="dark"] .code-block .num { color: #fbbf24; }
[data-theme="dark"] .code-block .key { color: #60a5fa; }
[data-theme="dark"] .code-block .com { color: #94a3b8; font-style: italic; }
[data-theme="dark"] .code-block .fn { color: #38bdf8; }

.endpoint {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  margin-bottom: 8px;
  align-items: center;
  transition: border-color 0.15s var(--ease);
}
.endpoint:hover { border-color: var(--border-strong); }

.method {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  min-width: 56px;
  text-align: center;
}
.method-get    { background: rgba(22, 163, 74, 0.12);   color: #15803d; }
.method-post   { background: rgba(37, 99, 235, 0.12);   color: #1d4ed8; }
.method-put    { background: rgba(234, 88, 12, 0.12);   color: #c2410c; }
.method-delete { background: rgba(220, 38, 38, 0.12);   color: #b91c1c; }
[data-theme="dark"] .method-get    { background: rgba(74, 222, 128, 0.18);  color: #4ade80; }
[data-theme="dark"] .method-post   { background: rgba(96, 165, 250, 0.18); color: #60a5fa; }
[data-theme="dark"] .method-put    { background: rgba(251, 146, 60, 0.18); color: #fb923c; }
[data-theme="dark"] .method-delete { background: rgba(248, 113, 113, 0.18);  color: #f87171; }

.endpoint-path {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
}
.endpoint-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-left: auto;
  text-align: right;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-size: 0.875rem;
}
.docs-table th, .docs-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.docs-table th {
  font-weight: 600;
  color: var(--text);
  background: var(--bg-alt);
  font-size: 0.8125rem;
}
.docs-table td { color: var(--text-muted); }
.docs-table td:first-child {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: var(--text);
  font-size: 0.8125rem;
}

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; gap: 24px; }
  .docs-nav { position: static; }
  .docs-nav h4:first-child { margin-top: 8px; }
  .endpoint { flex-wrap: wrap; }
  .endpoint-desc { margin-left: 0; width: 100%; text-align: left; }
}

/* ===================================================================
   Animation
   =================================================================== */

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

/* ===================================================================
   Responsive
   =================================================================== */

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid, .tiers, .values { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .menu-btn { display: grid; }
  .hide-mobile { display: none; }

  .cta-band { padding: 40px 24px; }
  .form { padding: 24px; }
  .timeline-item { grid-template-columns: 80px 1fr; gap: 16px; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
}
