/* ==========================================================================
   SF Lens Pro — Official Website & Documentation Stylesheet
   Modern, Sleek, Salesforce Lightning Inspired Design
   ========================================================================== */

:root {
  --primary: #0176d3;
  --primary-hover: #014486;
  --primary-light: #e0f2fe;
  --primary-subtle: #f0f9ff;
  --secondary: #6366f1;
  --secondary-hover: #4f46e5;
  --accent: #ffdd00;
  --success: #16a34a;
  --success-light: #dcfce7;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --bg-code: #1e293b;
  
  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-white: #ffffff;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 25px rgba(1, 118, 211, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  --header-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

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

a:hover {
  color: var(--primary-hover);
}

img, svg {
  vertical-align: middle;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all 0.2s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid #bfdbfe;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  white-space: nowrap;
  display: inline-block;
  padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(1, 118, 211, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(1, 118, 211, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
}

.btn-coffee {
  background: var(--accent);
  color: #000000 !important;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-coffee:hover {
  background: #ffea38;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 80px 24px 60px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 60%, var(--bg-main) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(1, 118, 211, 0.12) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, #0176d3 0%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-meta-list {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-visual {
  position: relative;
}

.mockup-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

.mockup-card:hover {
  transform: translateY(-4px);
}

.mockup-header {
  background: #f8fafc;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot.r { background: #ef4444; }
.mockup-dot.y { background: #f59e0b; }
.mockup-dot.g { background: #10b981; }

.mockup-tab-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.mockup-body {
  padding: 20px;
  background: #0f172a;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
}

.code-keyword { color: #f43f5e; font-weight: 700; }
.code-fn { color: #38bdf8; }
.code-str { color: #a3e635; }
.code-comment { color: #64748b; font-style: italic; }
.code-obj { color: #fbbf24; }

/* Floating Highlights Badge */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  animation: float 4s ease-in-out infinite;
}

.floating-badge.b1 {
  bottom: -18px;
  left: -20px;
}

.floating-badge.b2 {
  top: -15px;
  right: -20px;
  animation-delay: -2s;
}

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

/* ==========================================================================
   Section Layouts & General Styles
   ========================================================================== */
.section {
  padding: 80px 24px;
}

.section-bg-alt {
  background: #ffffff;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Feature Cards Grid (Pillars)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-lg);
}

.pillar-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.pillar-link:hover {
  gap: 10px;
}

/* ==========================================================================
   Interactive Feature Explorer (Tabs + Search)
   ========================================================================== */
.explorer-wrap {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.explorer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.explorer-search-box {
  position: relative;
  flex: 1;
  max-width: 360px;
}

.explorer-search-input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.15s ease;
}

.explorer-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(1, 118, 211, 0.15);
}

.explorer-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.explorer-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.explorer-tab-btn {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.explorer-tab-btn:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

.explorer-tab-btn.active {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.features-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.feature-item-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.feature-item-card:hover {
  background: #ffffff;
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.feature-cat-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}
.cat-core { background: #e0e7ff; color: #4338ca; }
.cat-data { background: #dcfce7; color: #15803d; }
.cat-code { background: #fef3c7; color: #b45309; }
.cat-sec  { background: #fee2e2; color: #b91c1c; }
.cat-mon  { background: #e0f2fe; color: #0369a1; }

.feature-launch-hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.feature-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.feature-footer-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Spotlight Section (Field Creator Focus)
   ========================================================================== */
.spotlight-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.spotlight-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.spotlight-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 28px;
}

.spotlight-benefits {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spotlight-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.spotlight-check {
  color: #34d399;
  font-weight: 800;
}

.spotlight-preview-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

/* ==========================================================================
   Blog & Guides Cards
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #93c5fd;
}

.blog-card-media {
  height: 190px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.blog-card-icon {
  font-size: 3rem;
}

.blog-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-tag {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 12px;
}

.blog-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

/* ==========================================================================
   Documentation Article Styles (docs/field-creator.html)
   ========================================================================== */
.doc-layout, .rn-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 80px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  width: 100%;
  box-sizing: border-box;
}

.doc-sidebar, .rn-sidebar {
  position: sticky;
  top: 90px;
  height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  box-sizing: border-box;
}

.doc-nav-heading {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-left: 10px;
}

.doc-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doc-nav-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
  text-decoration: none;
}

.doc-nav-link:hover {
  background: #f1f5f9;
  color: var(--primary);
  transform: translateX(2px);
}

.doc-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  border-left-color: var(--primary);
}

.mobile-nav-actions {
  display: none !important;
}

.sidebar-mobile-toggle {
  display: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.doc-content {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  box-sizing: border-box;
}

.doc-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.doc-breadcrumbs {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.doc-main-title {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.doc-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.doc-section {
  margin-bottom: 48px;
  scroll-margin-top: 90px;
}

.doc-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 12px;
}

.doc-section p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.doc-callout {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.92rem;
}

.doc-callout.tip {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid var(--success);
  color: #166534;
}

.doc-callout.warning {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 4px solid var(--warning);
  color: #92400e;
}

.doc-callout.info {
  background: var(--primary-subtle);
  border: 1px solid #bae6fd;
  border-left: 4px solid var(--primary);
  color: #0369a1;
}

.doc-step-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 20px 0;
}

.doc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 8px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.doc-table th, .doc-table td {
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  text-align: left;
  line-height: 1.5;
}

.doc-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-subtle);
}

.doc-table tr:nth-child(even) {
  background: #fbfcfe;
}

.doc-table tr:hover {
  background: #f1f5f9;
}

/* Code Blocks & Preformatted Text */
pre,
.code-preview pre,
.spotlight-preview-box pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  word-break: break-word;
}

pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
  word-break: normal;
  white-space: pre;
}

.code-preview {
  background: #0f172a;
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  box-sizing: border-box;
}

.code-preview pre {
  margin: 0;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 64px 24px 32px;
  border-top: 1px solid #334155;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

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

.footer-brand-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 320px;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 18px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: #94a3b8;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */

/* Universal Responsive Utilities */
.blog-spotlight-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #ffffff;
  box-shadow: var(--shadow-xl);
  border: 1px solid #334155;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
}

/* Medium Laptops & Desktops */
@media (max-width: 1180px) {
  .nav-links {
    gap: 14px;
  }
  .nav-link {
    font-size: 0.84rem;
  }
  .nav-actions .btn-primary {
    display: none;
  }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

/* Tablet Portrait & Small Laptops */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group, .hero-meta-list {
    justify-content: center;
  }
  .spotlight-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 28px;
  }
  .blog-spotlight-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 28px;
  }
  .doc-layout, .rn-layout {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 16px !important;
    padding: 16px 16px 60px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .doc-sidebar, .rn-sidebar {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 !important;
    margin-bottom: 8px !important;
    box-shadow: none;
    box-sizing: border-box !important;
  }

  .doc-content, .rn-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 16px !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .doc-table, .rn-diff-table, .matrix-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
  
  .sidebar-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    padding: 11px 15px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
    box-sizing: border-box;
  }
  .sidebar-mobile-toggle:active {
    background: #f8fafc;
  }
  .smt-label {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
  }
  .smt-icon {
    font-size: 1rem;
    flex-shrink: 0;
  }
  .smt-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 700;
  }
  .smt-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    margin-left: 8px;
  }
  
  /* Collapsed by default on mobile: hide items */
  .doc-sidebar > *:not(.sidebar-mobile-toggle),
  .rn-sidebar > *:not(.sidebar-mobile-toggle) {
    display: none;
  }
  
  /* Expanded state */
  .doc-sidebar.sidebar-expanded,
  .rn-sidebar.sidebar-expanded {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-md);
    width: 100%;
    box-sizing: border-box;
  }
  .doc-sidebar.sidebar-expanded .sidebar-mobile-toggle,
  .rn-sidebar.sidebar-expanded .sidebar-mobile-toggle {
    margin: 0 0 16px 0;
    background: #f8fafc;
    border-color: var(--border-subtle);
  }
  .doc-sidebar.sidebar-expanded > *:not(.sidebar-mobile-toggle),
  .rn-sidebar.sidebar-expanded > *:not(.sidebar-mobile-toggle) {
    display: block;
  }
}

/* Mobile Navigation Bar & Drawer Trigger */
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  .nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    padding: 20px 24px 32px;
    border-bottom: 2px solid var(--border-light);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    gap: 12px;
    z-index: 9999;
    animation: mobileSlideDown 0.22s ease-out;
  }
  .nav-links.mobile-open .nav-link {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
    display: block;
    color: var(--text-primary);
  }
  .nav-links.mobile-open .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    width: 100%;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 1.4rem;
    color: var(--text-primary);
    cursor: pointer;
  }
  .mobile-menu-toggle:active {
    background: #f1f5f9;
  }
  .nav-actions .btn-primary {
    display: none;
  }
}

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

/* Standard Mobile Phones & Phablets */
@media (max-width: 768px) {
  .section {
    padding: 48px 0;
  }
  .section-container {
    padding: 0 16px;
  }
  .hero {
    padding: 40px 0 28px;
  }
  .hero-title {
    font-size: clamp(1.9rem, 7vw, 2.35rem);
    line-height: 1.22;
  }
  .section-title {
    font-size: 1.7rem;
    line-height: 1.25;
  }
  .section-subtitle {
    font-size: 0.95rem;
  }
  .hero-desc {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }
  .hero-pill-badge {
    font-size: 0.78rem;
    padding: 5px 12px;
    margin-bottom: 18px;
    text-align: center;
    max-width: 100%;
    line-height: 1.4;
    white-space: normal;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    align-items: stretch;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
  .hero-meta-list {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    font-size: 0.82rem;
  }
  .floating-badge {
    position: static;
    margin: 12px auto 0;
    max-width: 100%;
    animation: none;
    transform: none !important;
  }
  .floating-badge.b1, .floating-badge.b2 {
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }
  .mockup-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.78rem;
    line-height: 1.6;
    padding: 16px;
  }
  .pillars-grid, .features-catalog, .blog-grid, .docs-hub-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .pillar-card, .feature-card, .blog-card, .doc-hub-card {
    padding: 20px 18px;
  }
  .explorer-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    width: 100%;
    gap: 6px;
  }
  .explorer-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 0.82rem;
    scroll-snap-align: start;
  }
  .explorer-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .explorer-search-box {
    max-width: 100%;
    width: 100%;
  }
  .blog-spotlight-card h2,
  .spotlight-card h2 {
    font-size: clamp(1.4rem, 4.5vw, 2rem) !important;
  }
  .doc-content, .rn-content, .privacy-card {
    padding: 24px 16px;
  }
  .doc-main-title {
    font-size: 1.6rem;
  }
  .privacy-title {
    font-size: 1.7rem;
  }
  .doc-table, .rn-diff-table, .matrix-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .doc-table th, .doc-table td,
  .rn-diff-table th, .rn-diff-table td,
  .matrix-table th, .matrix-table td {
    min-width: 120px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    font-size: 0.82rem;
  }
}

/* Small Screen Phones (iPhone, Pixel) */
@media (max-width: 600px) {
  .nav-container {
    padding: 0 16px;
  }
  .nav-actions .btn-coffee {
    display: none;
  }
  .brand-text {
    font-size: 1.05rem;
  }
  .brand-badge {
    font-size: 0.6rem;
    padding: 2px 5px;
  }
  .spotlight-card, .blog-spotlight-card {
    padding: 24px 16px;
  }
  .spotlight-title {
    font-size: 1.45rem;
  }
  .spotlight-preview-box pre {
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 0.75rem;
  }
  .doc-step-box {
    padding: 14px 12px;
  }
  .grid-2 {
    grid-template-columns: 1fr !important;
  }
}

/* Extra Compact Devices */
@media (max-width: 380px) {
  .brand-text {
    font-size: 0.95rem;
  }
  .brand-badge {
    display: none;
  }
  .hero-title {
    font-size: 1.75rem;
  }
}

