/* ==========================================================================
   ConfigWire Website - Official Stylesheet
   Dark Slate Charcoal + Blue (#3B82F6) to Mint (#5EEAD4) Theme
   Inspired by PocketBase.io simplicity and modern developer aesthetics
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg-primary: #141922;
  --bg-surface: #1a1f2a;
  --bg-surface-elevated: #222834;
  --bg-surface-hover: #2a3345;
  --border: #2e3850;
  --border-subtle: #242c3f;
  --text-main: #eef2fa;
  --text-muted: #9aa6c0;
  --text-dim: #6f7b96;

  --accent-blue: #3b82f6;
  --accent-blue-hover: #60a5fa;
  --accent-mint: #5eead4;
  --accent-mint-hover: #2dd4bf;
  --accent-purple: #8b5cf6;

  --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #5eead4 100%);
  --gradient-brand-subtle: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(94, 234, 212, 0.1) 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.22) 0%, rgba(94, 234, 212, 0.05) 50%, transparent 75%);
  --gradient-card: linear-gradient(180deg, rgba(34, 40, 52, 0.7) 0%, rgba(26, 31, 42, 0.8) 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 24px rgba(94, 234, 212, 0.2);
  --shadow-blue-glow: 0 0 30px rgba(59, 130, 246, 0.3);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --container-max: 1200px;
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Lights */
.bg-ambient {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 900px;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 0;
}

/* Typography & Links */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

a {
  color: var(--accent-mint);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-mint-hover);
}

code,
pre {
  font-family: var(--font-mono);
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

/* Navigation Bar */
.navbar {
  min-height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(20, 25, 34, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease;
}

.navbar .container {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  flex-shrink: 0;
}

.nav-brand img {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.nav-brand span {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: clamp(12px, 1.6vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a.nav-cloud {
  color: var(--accent-mint);
  font-weight: 600;
}

.nav-links a.nav-cloud:hover {
  color: var(--accent-mint-hover);
  text-shadow: 0 0 12px rgba(94, 234, 212, 0.45);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 16px);
  flex-shrink: 0;
  margin-left: auto;
}

.nav-actions .btn {
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #0b111a;
  box-shadow: 0 4px 14px rgba(94, 234, 212, 0.35);
}

.btn-primary:hover {
  color: #0b111a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(94, 234, 212, 0.45);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--text-dim);
  color: var(--text-main);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-mint);
  color: var(--accent-mint);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-mint);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-mint);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-mint);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-subtitle {
  max-width: 760px;
  margin: 0 auto 36px;
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 54px;
}

/* Banner Showcase with ambient glow */
.hero-banner-container {
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-xl);
  padding: 10px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.3) 0%, rgba(46, 56, 80, 0.4) 100%);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(59, 130, 246, 0.25);
}

.hero-banner-inner {
  border-radius: calc(var(--radius-xl) - 4px);
  overflow: hidden;
  background: var(--bg-surface);
  position: relative;
  aspect-ratio: 16 / 9;
}

.hero-banner-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Quick Metrics Bar */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px auto 0;
  max-width: 1040px;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--border);
}

.metric-val {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Section Header Component */
.section {
  padding: 90px 0;
  position: relative;
}

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

.section-tag {
  color: var(--accent-mint);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Comparison Section */
.comparison-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  overflow-y: clip;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.comparison-table-wrapper .comparison-table {
  min-width: 1520px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  vertical-align: middle;
  min-width: 200px;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  min-width: 230px;
}

.comparison-table th {
  background: var(--bg-surface-elevated);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Sticky header: floats below the navbar once scrolled past. Needs
   overflow-y: clip (not auto/hidden) on the wrapper, otherwise the wrapper
   becomes the scroll container and the header can never leave its box. */
.comparison-table thead th {
  position: sticky;
  top: var(--nav-height);
  z-index: 5;
}

/* Sticky first column: keeps feature names visible while scrolling sideways */
.comparison-table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bg-surface);
  box-shadow: 1px 0 0 var(--border-subtle);
}

/* Corner cell sits above both sticky header and sticky column */
.comparison-table thead th:first-child {
  left: 0;
  z-index: 6;
}

.comparison-table thead th.highlight {
  background: var(--bg-surface-elevated);
}

.comparison-table th.highlight,
.comparison-table td.highlight {
  min-width: 250px;
  background: rgba(59, 130, 246, 0.08);
  border-left: 2px solid var(--accent-mint);
  border-right: 1px solid var(--border-subtle);
}

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

.badge-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-mint);
  font-weight: 600;
}

.badge-cross {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f87171;
  font-weight: 500;
}

.badge-warn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fbbf24;
  font-weight: 500;
}

/* Feature Breakdown Cards */
.comparison-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.comp-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.comp-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
}

.comp-card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(94, 234, 212, 0.15);
  color: var(--accent-mint);
  display: inline-block;
  margin-bottom: 16px;
}

.comp-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.comp-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Quick Installation Section */
.install-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.setup-highlight-box {
  background: linear-gradient(145deg, rgba(26, 31, 42, 0.9) 0%, rgba(34, 40, 52, 0.6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.setup-highlight-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.setup-steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.setup-step-item {
  display: flex;
  gap: 16px;
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--accent-blue);
  color: var(--accent-mint);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.step-content h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Code Preview Box / Tabs Component */
.code-box {
  background: #0f131a;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.code-header {
  background: var(--bg-surface-elevated);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.code-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-tab {
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
}

.code-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.code-tab.active {
  color: var(--accent-mint);
  background: rgba(94, 234, 212, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.2);
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-main);
  border-color: var(--text-dim);
}

.code-content {
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #d1d5db;
}

.code-content pre {
  margin: 0;
}

/* Syntax Highlighting Colors */
.tok-kw {
  color: #f472b6;
  font-weight: 600;
}

/* Keyword */
.tok-fn {
  color: #60a5fa;
}

/* Function */
.tok-str {
  color: #5eead4;
}

/* String */
.tok-num {
  color: #f59e0b;
}

/* Number */
.tok-com {
  color: #6f7b96;
  font-style: italic;
}

/* Comment */
.tok-var {
  color: #c084fc;
}

/* Variable / Key */
.tok-pun {
  color: #94a3b8;
}

/* Punctuation */

/* SDK Usage Section */
.sdk-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.sdk-tab-btn {
  padding: 12px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.sdk-tab-btn:hover {
  border-color: var(--text-dim);
  color: var(--text-main);
}

.sdk-tab-btn.active {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-mint);
  color: var(--text-main);
  box-shadow: 0 0 16px rgba(94, 234, 212, 0.2);
}

.sdk-showcase-panel {
  display: none;
}

.sdk-showcase-panel.active {
  display: block;
}

.sdk-feature-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 4px;
  padding: 4px 4px 20px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.sdk-feature-grid::-webkit-scrollbar {
  height: 8px;
}

.sdk-feature-grid::-webkit-scrollbar-track {
  background: transparent;
}

.sdk-feature-grid::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.sdk-feature-grid::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

.sdk-feature-card {
  flex: 0 0 800px;
  width: 800px;
  max-width: 85vw;
  scroll-snap-align: start;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.sdk-feature-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sdk-feature-card p {
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: var(--text-muted);
  flex-grow: 1;
}

.sdk-feature-card .code-box {
  font-size: 0.82rem;
  border-radius: var(--radius-md);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all 0.25s ease;
  position: relative;
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-mint);
  font-size: 1.5rem;
}

.feature-box h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Documentation / Guide Layout */
.guide-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 40px 0 80px;
  align-items: start;
}

.guide-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  max-height: calc(100vh - var(--nav-height) - 40px);
  overflow-y: auto;
}

.guide-search {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.9rem;
  margin-bottom: 20px;
  outline: none;
  font-family: var(--font-sans);
}

.guide-search:focus {
  border-color: var(--accent-mint);
}

.guide-nav-group {
  margin-bottom: 20px;
}

.guide-nav-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 8px;
  padding-left: 10px;
}

.guide-nav-links {
  list-style: none;
}

.guide-nav-links a {
  display: block;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.15s ease;
}

.guide-nav-links a:hover {
  color: var(--text-main);
  background: var(--bg-surface-elevated);
}

.guide-nav-links a.active {
  color: var(--accent-mint);
  background: rgba(94, 234, 212, 0.12);
  font-weight: 600;
}

.guide-content {
  min-width: 0;
}

.guide-article {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 36px;
}

.guide-article h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.guide-article h3 {
  font-size: 1.4rem;
  margin: 30px 0 12px;
}

.guide-article p {
  margin-bottom: 16px;
  font-size: 1rem;
}

.guide-article ul,
.guide-article ol {
  margin: 0 0 20px 24px;
  color: var(--text-muted);
}

.guide-article li {
  margin-bottom: 8px;
}

.guide-callout {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  border-left: 4px solid var(--accent-mint);
  background: rgba(94, 234, 212, 0.08);
}

.guide-callout.tip {
  border-left-color: var(--accent-mint);
  background: rgba(94, 234, 212, 0.08);
}

.guide-callout.important {
  border-left-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
}

.guide-callout.warning {
  border-left-color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
}

.guide-callout h5 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-callout p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.guide-article {
  min-width: 0;
  overflow: hidden;
}

.guide-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.guide-table-wrapper .comparison-table {
  min-width: 0;
  width: 100%;
  margin-bottom: 0;
}

.guide-article .comparison-table th,
.guide-article .comparison-table td {
  min-width: 0;
  white-space: normal;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.guide-article .comparison-table th {
  white-space: nowrap;
}

.guide-article .comparison-table td code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Footer */
.footer {
  margin-top: auto;
  background: #0d1117;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
}

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

.footer-brand h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 340px;
}

.footer-col h5 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent-mint);
}

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

/* ==========================================================================
   Breadcrumb Navigation (guide.html)
   ========================================================================== */
.breadcrumb-nav {
  margin-bottom: 24px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.breadcrumb-item a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--accent-mint);
}

.breadcrumb-separator {
  color: var(--border);
  user-select: none;
}

.breadcrumb-item.active {
  color: var(--accent-mint);
  font-weight: 500;
}

/* ==========================================================================
   FAQ Accordion Section (index.html)
   ========================================================================== */
.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border);
}

.faq-item.active {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 16px;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--accent-mint);
}

.faq-item.active .faq-question {
  color: var(--accent-mint);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform 0.25s ease, color 0.2s ease;
}

.faq-item:hover .faq-icon {
  color: var(--accent-mint);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-mint);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 24px 20px 24px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.faq-answer strong {
  color: var(--text-main);
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-inner {
  width: 100%;
  max-width: 860px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.cookie-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.cookie-text strong {
  color: var(--text-main);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-settings-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.cookie-settings-link:hover {
  color: var(--accent-mint);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .comparison-cards,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .install-container {
    grid-template-columns: 1fr;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-sidebar {
    position: relative;
    top: 0;
    max-height: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tighten the desktop nav just before the hamburger breakpoint so the
   7-link index nav + actions fit inside the 1200px container. */
@media (max-width: 1220px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 0.88rem;
  }

  .nav-actions {
    gap: 8px;
  }
}

/* Hamburger breakpoint: the full index nav (brand + 7 links + 2 buttons)
   no longer fits side-by-side below ~1080px, so collapse to the toggle
   before links get clipped (the "Get S..." cutoff in the bug report). */
@media (max-width: 1080px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  /* In-flow expanding menu: the sticky navbar grows instead of overlaying,
     so both links AND actions stay reachable. */
  .mobile-menu-active .container {
    flex-wrap: wrap;
    padding-bottom: 16px;
    row-gap: 0;
  }

  .mobile-menu-active .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 100%;
    order: 3;
    gap: 4px;
    padding: 8px 0 12px;
  }

  .mobile-menu-active .nav-links a {
    padding: 10px 4px;
  }

  .mobile-menu-active .nav-actions {
    display: flex;
    flex: 1 1 100%;
    order: 4;
    gap: 12px;
  }

  .mobile-menu-active .nav-actions .btn {
    flex: 1;
  }
}

@media (max-width: 768px) {

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .sdk-feature-card {
    flex-basis: 85vw;
    width: 85vw;
  }

  .guide-article {
    padding: 24px 20px;
  }

  .guide-table-wrapper .comparison-table {
    min-width: 560px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .cookie-actions {
    justify-content: flex-end;
  }
}