/* ═══════════════════════════════════════════════════════════════
   Lovable.markido — Premium SaaS Design System v2
   Dark navy + cyan · Vercel-grade clarity · Conversion-optimised
═══════════════════════════════════════════════════════════════ */

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

/* ── Design Tokens ── */
:root {
  /* Brand */
  --navy:       #0A1F3F;
  --navy-soft:  #0F2847;
  --teal:       #00D9D9;
  --teal-d:     #00AEAE;
  --teal-glow:  rgba(0, 217, 217, 0.15);
  --coral:      #FF6B4A;
  --white:      #FFFFFF;

  /* Neutrals */
  --gray-50:    #F8FAFC;
  --gray-100:   #F1F5F9;
  --gray-200:   #E2E8F0;
  --gray-300:   #CBD5E1;
  --gray-400:   #94A3B8;
  --gray-500:   #64748B;
  --gray-700:   #334155;
  --gray-900:   #0F172A;

  /* Semantic */
  --bg:         var(--white);
  --bg-subtle:  var(--gray-50);
  --surface:    var(--gray-100);
  --border:     var(--gray-200);
  --border-2:   var(--gray-300);
  --text:       var(--navy);
  --text-2:     var(--gray-700);
  --text-3:     var(--gray-500);
  --text-4:     var(--gray-400);

  /* Typography */
  --font-d:     'Outfit', system-ui, sans-serif;
  --font-b:     'Inter', system-ui, -apple-system, sans-serif;
  --mono:       'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* Layout */
  --max-w:      860px;
  --max-nav:    1200px;
  --nav-h:      64px;

  /* Shadows — teal-tinted for the brand */
  --sh-xs:      0 1px 3px rgba(10, 31, 63, 0.06), 0 1px 2px rgba(10, 31, 63, 0.04);
  --sh-sm:      0 4px 6px rgba(10, 31, 63, 0.05), 0 2px 4px rgba(10, 31, 63, 0.04);
  --sh-md:      0 10px 15px rgba(10, 31, 63, 0.07), 0 4px 6px rgba(10, 31, 63, 0.04);
  --sh-lg:      0 20px 25px rgba(10, 31, 63, 0.08), 0 8px 10px rgba(10, 31, 63, 0.04);
  --sh-teal:    0 4px 20px rgba(0, 217, 217, 0.25);
  --sh-teal-lg: 0 8px 40px rgba(0, 217, 217, 0.35);

  /* Radii */
  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-2xl: 32px;

  /* Transitions */
  --t-f:   140ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-n:   200ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-s:   320ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-spring: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Scrollbar ── */
html { scrollbar-width: auto; scrollbar-color: var(--gray-300) var(--gray-100); }
::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 8px;
  border: 3px solid var(--gray-100);
}
::-webkit-scrollbar-thumb:hover { background: var(--teal-d); }

/* ── Base ── */
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Typography Scale ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-d);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
}
h1 { font-size: clamp(1.875rem, 5vw, 3.25rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.375rem, 2.8vw, 2rem);  margin: 2.5rem 0 0.875rem; font-weight: 600; }
h3 { font-size: 1.2rem; margin: 1.75rem 0 0.6rem; color: var(--teal-d); font-weight: 600; }
h4 { font-size: 1rem; margin: 1.4rem 0 0.45rem; color: var(--navy); letter-spacing: -0.02em; }

p  { margin-bottom: 1.2rem; color: var(--text-2); max-width: 70ch; line-height: 1.8; }
a  { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--navy); font-weight: 600; }
em { color: var(--text-3); font-style: italic; }
code { font-family: var(--mono); font-size: 0.875em; background: var(--gray-100); padding: 0.15em 0.4em; border-radius: var(--r-xs); color: var(--teal-d); }

/* ── Eyebrow Label ── */
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-d);
  margin-bottom: 0.65rem;
}

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--t-n), border-color var(--t-n);
}
.site-header.scrolled {
  border-bottom-color: var(--gray-300);
  box-shadow: 0 1px 0 var(--gray-200), 0 4px 24px rgba(10, 31, 63, 0.06);
}
.nav-container {
  max-width: var(--max-nav);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 1.75rem;
}
.logo-mark { flex-shrink: 0; transition: transform var(--t-spring); }
.logo:hover .logo-mark { transform: rotate(60deg); }
.logo-text {
  font-family: var(--font-d);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.04em;
}
.logo-text .accent { color: var(--teal); }

/* Nav links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex: 1;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.7rem;
  border-radius: var(--r-sm);
  color: var(--gray-500);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color var(--t-f), background var(--t-f);
  white-space: nowrap;
}
.nav-link:hover { color: var(--navy); background: var(--gray-100); text-decoration: none; }
.nav-link.active {
  color: var(--navy);
  font-weight: 600;
  background: rgba(0, 217, 217, 0.08);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0.7rem; right: 0.7rem;
  height: 2px;
  background: var(--teal);
  border-radius: 2px 2px 0 0;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* CTA button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-d);
  letter-spacing: -0.01em;
  text-decoration: none !important;
  transition: background var(--t-f), transform var(--t-f), box-shadow var(--t-f);
  box-shadow: 0 1px 2px rgba(10, 31, 63, 0.2), 0 0 0 1px rgba(10, 31, 63, 0.1);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--teal);
  color: var(--navy) !important;
  transform: translateY(-1px);
  box-shadow: var(--sh-teal);
  text-decoration: none !important;
}

/* Dark toggle */
.dark-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text-3);
  transition: background var(--t-f), border-color var(--t-f), color var(--t-f);
  flex-shrink: 0;
}
.dark-toggle:hover { background: var(--gray-100); color: var(--navy); border-color: var(--gray-400); }
.dark-toggle .icon-sun  { display: none; }
.dark-toggle .icon-moon { display: block; }
[data-theme="dark"] .dark-toggle .icon-sun  { display: block; }
[data-theme="dark"] .dark-toggle .icon-moon { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 7px;
  margin-left: 0.4rem;
  flex-shrink: 0;
}
.nav-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--t-n), opacity var(--t-n);
  transform-origin: center;
}
.nav-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════ */
.breadcrumb {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 0.35rem 0;
  scroll-margin-top: var(--nav-h);
}
.breadcrumb .container { max-width: var(--max-nav); }
.breadcrumb ol {
  display: flex;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
  padding: 0;
  gap: 0;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-4);
  letter-spacing: 0.01em;
}
.breadcrumb li + li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--gray-300);
  border-top: 1.5px solid var(--gray-300);
  transform: rotate(45deg);
  margin: 0 0.55rem;
  flex-shrink: 0;
  opacity: 0.55;
}
.breadcrumb li:last-child { color: var(--text-2); font-weight: 600; max-width: 40ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb a {
  color: var(--text-4);
  text-decoration: none;
  transition: color var(--t-f), background-color var(--t-f);
  padding: 0.2rem 0.4rem;
  border-radius: var(--r-xs);
  margin: 0 -0.4rem;
}
.breadcrumb a:hover { color: var(--teal-d); background: var(--teal-glow); }

/* ══════════════════════════════════════
   ARTICLE LAYOUT
══════════════════════════════════════ */
.page-content { padding: 1.5rem 0 4.5rem; }

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.article-header h1 { margin-bottom: 0.75rem; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-3);
  margin: 0 0 0.85rem;
}
.article-meta strong { color: var(--text-2); font-weight: 600; }

/* ── Reading Time ── */
.reading-time { display: inline-flex; align-items: center; gap: 0.2rem; color: var(--text-3); font-size: 0.82rem; }
.reading-time::before { content: '·'; margin-right: 0.1rem; }

/* ── Social Share ── */
.social-share { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.social-share .share-label { font-size: 0.75rem; color: var(--text-4); font-weight: 500; }
.social-share a {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.22rem 0.65rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-d);
  text-decoration: none;
  transition: opacity var(--t-f), transform var(--t-f);
  line-height: 1.4;
}
.social-share a:hover { opacity: 0.82; transform: translateY(-1px); text-decoration: none; }
.share-tw { background: #1DA1F2; color: #fff; }
.share-li { background: #0A66C2; color: #fff; }
.share-hn { background: #FF6600; color: #fff; }

/* ── Content Elements ── */
ul, ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
li { margin-bottom: 0.55rem; line-height: 1.7; color: var(--text-2); }
li p { margin-bottom: 0.4rem; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  margin: 1.75rem 0;
  box-shadow: var(--sh-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
th, td { padding: 0.82rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border); }
thead tr { background: var(--navy); }
th {
  font-family: var(--font-d);
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border-bottom: 2px solid rgba(0,217,217,0.25);
  white-space: nowrap;
}
tbody tr { transition: background var(--t-f); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--gray-50); }
tbody tr:hover { background: rgba(0,217,217,0.05); }
td:first-child { font-weight: 600; color: var(--navy); }

/* Blockquote / Prompt block */
blockquote {
  background: var(--gray-50);
  border-left: 3px solid var(--teal);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
}

/* FAQ Accordion */
details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 0.65rem;
  overflow: hidden;
  transition: box-shadow var(--t-n), border-color var(--t-n);
}
details:hover { box-shadow: var(--sh-sm); }
details[open] { border-color: rgba(0, 217, 217, 0.4); box-shadow: 0 0 0 3px rgba(0, 217, 217, 0.06); }
summary {
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.925rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy);
  transition: background var(--t-f);
  letter-spacing: -0.01em;
}
summary:hover { background: var(--gray-50); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--teal-d);
  flex-shrink: 0;
  margin-left: 1rem;
  font-family: var(--font-d);
  font-weight: 700;
  line-height: 1;
}
details[open] summary::after { content: '−'; }
details p { padding: 0 1.1rem 0.9rem; margin: 0; color: var(--text-2); font-size: 0.875rem; line-height: 1.75; max-width: none; }

/* ══════════════════════════════════════
   HERO (Homepage)
══════════════════════════════════════ */
.hero {
  background: linear-gradient(150deg, #071730 0%, var(--navy) 40%, #0E2C5E 75%, #133070 100%);
  border-radius: var(--r-2xl);
  padding: 4rem 2.5rem 3.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
/* Mesh grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 217, 217, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 217, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  border-radius: inherit;
  pointer-events: none;
}
/* Radial teal glow */
.hero::after {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(0, 217, 217, 0.2) 0%, transparent 68%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 217, 217, 0.12);
  border: 1px solid rgba(0, 217, 217, 0.25);
  border-radius: 99px;
  padding: 0.3rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
  position: relative;
  animation: fadeUp 0.5s ease both;
}
.hero-badge::before { content: '●'; font-size: 0.5rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h2 {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  margin: 0 0 1.1rem;
  color: #fff;
  position: relative;
  letter-spacing: -0.04em;
  animation: fadeUp 0.55s ease 0.1s both;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.65);
  max-width: 50ch;
  margin: 0 auto 2.25rem;
  font-size: 1rem;
  line-height: 1.75;
  position: relative;
  animation: fadeUp 0.55s ease 0.2s both;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  position: relative;
  animation: fadeUp 0.55s ease 0.3s both;
}
.hero-cta, a.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--teal);
  color: var(--navy);
  padding: 0.8rem 2rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-d);
  text-decoration: none;
  transition: background var(--t-n), transform var(--t-f), box-shadow var(--t-n);
  box-shadow: var(--sh-teal);
  letter-spacing: -0.01em;
}
.hero-cta:hover { background: var(--teal-d); transform: translateY(-2px); box-shadow: var(--sh-teal-lg); text-decoration: none; color: var(--navy); }
.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-sm);
  transition: color var(--t-f), border-color var(--t-f), background var(--t-f);
}
.hero-secondary:hover { color: #fff; border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.05); text-decoration: none; }
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-d);
  color: var(--teal);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.hero-stat span { font-size: 0.72rem; color: rgba(255,255,255,0.45); margin-top: 0.25rem; display: block; letter-spacing: 0.03em; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   INDEX / LISTING SECTIONS
══════════════════════════════════════ */
.index-section { margin-bottom: 2.5rem; }
.index-section > h2 { margin-top: 0; }

/* Section header with eyebrow */
.section-header {
  margin-bottom: 1.5rem;
}
.section-header h2 { margin-top: 0; margin-bottom: 0.4rem; }
.section-header p { margin-bottom: 0; font-size: 0.925rem; }

/* Dedicated index pages */
.index-hero {
  padding: 2.75rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.index-hero h1 { margin-bottom: 0.6rem; }
.index-lead {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 60ch;
  margin-bottom: 0;
  line-height: 1.7;
}
.index-grid-section { margin-bottom: 2.5rem; }
.index-grid-section h2 { font-size: 1.2rem; margin-top: 2.25rem; margin-bottom: 0.25rem; color: var(--text-2); font-weight: 600; }

/* Index inline CTA */
.index-cta-block {
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, rgba(0,217,217,0.06) 0%, rgba(0,174,174,0.03) 100%);
  border-radius: var(--r-md);
  border: 1px solid rgba(0,217,217,0.18);
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.index-cta-block p { margin-bottom: 0; color: var(--text-2); font-size: 0.9rem; max-width: 46ch; }
.index-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--teal);
  color: var(--navy);
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: 0.825rem;
  font-weight: 700;
  font-family: var(--font-d);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t-f), transform var(--t-f), box-shadow var(--t-f);
  box-shadow: var(--sh-teal);
  flex-shrink: 0;
}
.index-cta-link:hover { background: var(--teal-d); transform: translateY(-1px); text-decoration: none; color: var(--navy); }

/* Legacy inline-cta (anchor text) */
.inline-cta { color: var(--teal-d); font-weight: 600; text-decoration: none; }
.inline-cta:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   CARD GRID
══════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.875rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.card-grid li { margin: 0; }
.card-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem;
  text-decoration: none;
  transition: border-color var(--t-n), box-shadow var(--t-n), transform var(--t-n);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.card-grid a::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-d));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-n);
}
.card-grid a:hover {
  border-color: rgba(0, 217, 217, 0.3);
  box-shadow: var(--sh-md), 0 0 0 3px rgba(0,217,217,0.04);
  transform: translateY(-2px);
  text-decoration: none;
}
.card-grid a:hover::before { transform: scaleX(1); }
.card-grid a::after {
  content: '→';
  position: absolute;
  bottom: 0.9rem;
  right: 1rem;
  font-size: 0.8rem;
  color: var(--teal-d);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--t-n), transform var(--t-n);
  font-family: var(--font-d);
}
.card-grid a:hover::after { opacity: 1; transform: translateX(0); }
.card-grid strong { color: var(--navy); font-size: 0.875rem; font-weight: 600; font-family: var(--font-d); letter-spacing: -0.01em; line-height: 1.35; }
.card-grid span { color: var(--text-3); font-size: 0.775rem; line-height: 1.5; padding-right: 1.5rem; }

/* ══════════════════════════════════════
   INLINE CTA BLOCK (in-article)
══════════════════════════════════════ */
.inline-cta-block {
  background: linear-gradient(135deg, rgba(0, 217, 217, 0.07) 0%, rgba(0, 174, 174, 0.04) 100%);
  border: 1px solid rgba(0, 217, 217, 0.2);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.inline-cta-block p { margin: 0; font-size: 0.925rem; font-weight: 500; color: var(--navy); max-width: 46ch; }
.inline-cta-block a.inline-cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--teal);
  color: var(--navy);
  padding: 0.55rem 1.2rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-d);
  text-decoration: none;
  transition: background var(--t-n), transform var(--t-f), box-shadow var(--t-n);
  box-shadow: var(--sh-teal);
  white-space: nowrap;
}
.inline-cta-block a.inline-cta-btn:hover { background: var(--teal-d); transform: translateY(-1px); box-shadow: var(--sh-teal-lg); text-decoration: none; color: var(--navy); }

/* ── Star Rating ── */
.star-rating { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: var(--text-3); margin-top: 0.35rem; }
.stars { display: inline-flex; gap: 1px; line-height: 1; }
.star { color: #FBBF24; font-size: 0.9rem; }
.star.empty { color: var(--gray-300); }
.rating-score { font-weight: 700; color: var(--navy); font-family: var(--font-d); font-size: 0.85rem; }
.rating-count { color: var(--text-3); font-size: 0.75rem; }


/* ══════════════════════════════════════
   PRE-FOOTER CTA
══════════════════════════════════════ */
.prefooter-cta {
  background: #070c19;
  border-top: 1px solid rgba(0,217,217,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 3rem 0;
}
.prefooter-cta .container { max-width: var(--max-nav); }
.prefooter-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}
.prefooter-cta-text { flex: 1; min-width: 0; }
.prefooter-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.75rem;
  opacity: 0.85;
}
.prefooter-cta-headline {
  font-family: var(--font-d);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.55rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.prefooter-cta-sub {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.6;
  max-width: 42ch;
}
.prefooter-cta-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  flex-shrink: 0;
}
.prefooter-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--teal);
  color: var(--navy) !important;
  font-family: var(--font-d);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.7rem 1.6rem;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, transform 0.18s;
}
.prefooter-cta-btn:hover {
  background: var(--teal-d);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--navy) !important;
}
.prefooter-cta-note {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.32);
  margin: 0;
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .prefooter-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }
  .prefooter-cta-action { align-items: flex-start; }
  .prefooter-cta-note { text-align: left; }
}
@media (max-width: 480px) {
  .prefooter-cta { padding: 2.25rem 0; }
  .prefooter-cta-btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  background: var(--gray-900);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 0 0;
}
.site-footer .container { max-width: var(--max-nav); }

.footer-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}
.footer-brand-left {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  min-width: 200px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.04em;
}
.footer-logo .accent { color: var(--teal); }
.footer-logo:hover { text-decoration: none; opacity: 0.85; }
.footer-tagline {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
  line-height: 1.65;
  max-width: 42ch;
  margin: 0;
}
.footer-social { display: flex; gap: 0.5rem; align-items: flex-start; flex-shrink: 0; padding-top: 0.1rem; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: border-color var(--t-f), color var(--t-f), background var(--t-f);
}
.social-link:hover { border-color: var(--teal); color: var(--teal); background: rgba(0,217,217,0.08); text-decoration: none; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 1.75rem;
  margin-bottom: 0;
}
.footer-col h4 {
  font-family: var(--font-d);
  color: rgba(255,255,255,0.5);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a { color: rgba(255,255,255,0.45); font-size: 0.82rem; transition: color var(--t-f); }
.footer-col a:hover { color: var(--teal); text-decoration: none; }
.footer-col p { color: rgba(255,255,255,0.42); font-size: 0.82rem; line-height: 1.65; margin-bottom: 0.85rem; max-width: none; }
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--teal);
  color: var(--navy);
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.82rem;
  font-family: var(--font-d);
  transition: background var(--t-n), transform var(--t-f);
}
.footer-cta:hover { background: var(--teal-d); transform: translateY(-1px); text-decoration: none; color: var(--navy); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.1rem 0;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.footer-bottom p { color: rgba(255,255,255,0.25); font-size: 0.74rem; margin: 0; max-width: none; }
.footer-links { display: flex; align-items: center; gap: 0.5rem; font-size: 0.74rem; }
.footer-links a { color: rgba(255,255,255,0.25); text-decoration: none; transition: color var(--t-f); }
.footer-links a:hover { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-links span { color: rgba(255,255,255,0.1); }


/* ══════════════════════════════════════
   AUTHOR CREDIBILITY CARD
══════════════════════════════════════ */
.author-card {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--sh-md);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--t-n), transform var(--t-n);
  opacity: 0;
  transform: translateY(12px);
  animation: authorIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}
.author-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, rgba(0,217,217,0.3) 60%, transparent 100%);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.author-card:hover { box-shadow: var(--sh-lg); transform: translateY(-2px); }
.author-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; flex-shrink: 0; min-width: 114px; }
.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-d);
  color: var(--teal);
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px rgba(0,217,217,0.35), 0 4px 14px rgba(0,0,0,0.12);
}
.author-identity { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; text-align: center; }
.author-name { font-size: 1rem; font-weight: 700; color: var(--navy); font-family: var(--font-d); letter-spacing: -0.01em; }
.author-verified {
  display: inline-flex;
  align-items: center;
  background: rgba(22, 163, 74, 0.09);
  color: #15803d;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.6rem;
  border-radius: 99px;
  border: 1px solid rgba(22, 163, 74, 0.2);
  white-space: nowrap;
  text-transform: uppercase;
}
.author-role { font-size: 0.73rem; color: var(--text-3); line-height: 1.45; text-align: center; max-width: 13ch; }
.author-body { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.author-quote {
  font-size: 0.9rem;
  line-height: 1.78;
  color: var(--text-2);
  font-style: italic;
  background: linear-gradient(135deg, var(--gray-50) 0%, rgba(0,217,217,0.04) 100%);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1rem 1.2rem;
  margin: 0;
  max-width: none;
}
.author-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.author-stat {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.7rem 0.45rem;
  text-align: center;
  transition: border-color var(--t-f), box-shadow var(--t-f), background var(--t-f);
}
.author-stat:hover { background: rgba(0,217,217,0.04); border-color: rgba(0,217,217,0.35); box-shadow: var(--sh-xs); }
.author-stat strong { display: block; font-size: 1.15rem; font-weight: 800; font-family: var(--font-d); color: var(--teal-d); line-height: 1.2; }
.author-stat span { display: block; font-size: 0.67rem; color: var(--text-3); margin-top: 0.18rem; letter-spacing: 0.01em; }

@keyframes authorIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ══════════════════════════════════════
   READING PROGRESS
══════════════════════════════════════ */
.reading-progress {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  height: 2px;
  background: rgba(0,0,0,0.04);
  z-index: 199;
  pointer-events: none;
}
.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  transition: width 0.1s linear;
}

/* ══════════════════════════════════════
   ACCESSIBILITY
══════════════════════════════════════ */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1.25rem;
    gap: 0.15rem;
    z-index: 199;
    box-shadow: 0 8px 24px rgba(10,31,63,0.1);
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 0.65rem 0.8rem; font-size: 0.875rem; border-radius: var(--r-sm); }
  .nav-link.active::after { display: none; }
  .nav-actions .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 2.5rem 1.5rem 2rem; border-radius: var(--r-xl); }
  .hero-stats { gap: 1.25rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
.table-wrap { margin: 1.25rem 0; border-radius: var(--r-md); }
  table { font-size: 0.82rem; }
  th, td { padding: 0.65rem 0.85rem; }
  .trust-grid { gap: 1.25rem; }
  .index-cta-block { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .hero h2 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .hero-stats { gap: 1rem; }
  .hero-stat strong { font-size: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .author-card { flex-direction: column; align-items: center; padding: 1.4rem; gap: 1rem; }
  .author-avatar-wrap { min-width: unset; width: 100%; }
  .author-role { max-width: none; }
  .author-body { width: 100%; }
  .author-stats { grid-template-columns: repeat(2, 1fr); }

}

@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 2rem 1.1rem 1.75rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-cta, .hero-secondary { justify-content: center; }
}

/* ══════════════════════════════════════
   PARTNERSHIP CTA BANNER
══════════════════════════════════════ */
.partner-cta {
  position: relative;
  margin: 1.5rem 0 2.5rem;
  border-radius: 20px;
  background: #070c19;
  border: 1px solid rgba(0,217,217,0.16);
  padding: 2.75rem 2rem 2.25rem;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,217,217,0.05);
}
.partner-cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(0,217,217,0.13) 0%, transparent 100%),
    radial-gradient(ellipse 45% 35% at 50% 0%, rgba(0,200,255,0.07) 0%, transparent 100%);
  pointer-events: none;
}
.partner-cta-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0,217,217,0.12);
  border: 1px solid rgba(0,217,217,0.28);
  color: var(--teal);
  font-family: var(--font-d);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
}
.partner-pill--lv {
  background: rgba(0,182,255,0.1);
  border-color: rgba(0,182,255,0.28);
  color: #6dd0ff;
}
.partner-x {
  color: rgba(255,255,255,0.25);
  font-size: 0.85rem;
  line-height: 1;
}
.partner-badge {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.38);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.partner-cta-headline {
  font-family: var(--font-d);
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 auto 0.85rem;
  max-width: 540px;
  border: none;
  padding: 0;
}
.partner-credits {
  color: var(--teal);
  text-shadow: 0 0 28px rgba(0,217,217,0.55);
}
.partner-cta-sub {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto 1.6rem;
}
.partner-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--teal);
  color: var(--navy) !important;
  font-family: var(--font-d);
  font-size: 0.925rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.75rem 1.8rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.18s, transform 0.15s, box-shadow 0.2s;
  margin-bottom: 1.5rem;
}
.partner-cta-btn:hover {
  background: var(--teal-d);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0,217,217,0.38);
  text-decoration: none;
  color: var(--navy) !important;
}
.partner-trust {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.partner-trust li {
  color: rgba(255,255,255,0.4);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.partner-trust li::before {
  content: "✓";
  color: var(--teal);
  font-size: 0.68rem;
  opacity: 0.65;
}
@media (max-width: 600px) {
  .partner-cta { padding: 2rem 1.25rem 1.5rem; margin: 1rem 0 2rem; }
  .partner-cta-headline { font-size: 1.35rem; }
  .partner-trust { gap: 0.6rem 1rem; }
}

/* ══════════════════════════════════════
   DARK MODE
══════════════════════════════════════ */
[data-theme="dark"] {
  --bg:       #0D1117;
  --bg-subtle:#111820;
  --surface:  #161B22;
  --border:   #21262D;
  --border-2: #30363D;
  --text:     #E6EDF3;
  --text-2:   #8B949E;
  --text-3:   #6E7B88;
  --text-4:   #484F58;
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 { color: var(--text); }
[data-theme="dark"] strong { color: var(--text); }
[data-theme="dark"] p { color: var(--text-2); }

/* Nav dark */
[data-theme="dark"] .site-header { background: rgba(13, 17, 23, 0.95); border-bottom-color: var(--border); }
[data-theme="dark"] .logo-text { color: var(--text); }
[data-theme="dark"] .nav-link { color: var(--text-3); }
[data-theme="dark"] .nav-link:hover { background: rgba(255,255,255,0.05); color: var(--text); }
[data-theme="dark"] .nav-link.active { background: rgba(0,217,217,0.1); color: var(--text); }
[data-theme="dark"] .nav-cta { background: var(--teal); color: var(--navy) !important; box-shadow: none; }
[data-theme="dark"] .nav-cta:hover { background: var(--teal-d); }
[data-theme="dark"] .dark-toggle { border-color: var(--border); color: var(--text-3); }
[data-theme="dark"] .dark-toggle:hover { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .nav-toggle { border-color: var(--border); }
[data-theme="dark"] .nav-toggle .bar { background: var(--text); }
[data-theme="dark"] .main-nav { background: var(--bg); border-bottom-color: var(--border); }

/* Breadcrumb dark */
[data-theme="dark"] .breadcrumb { background: transparent; border-bottom-color: var(--border); }
[data-theme="dark"] .breadcrumb a { color: var(--text-3); }
[data-theme="dark"] .breadcrumb a:hover { color: var(--teal); background: var(--teal-glow); }
[data-theme="dark"] .breadcrumb li + li::before { border-color: var(--gray-500); opacity: 0.4; }
[data-theme="dark"] .breadcrumb li:last-child { color: var(--text); }

/* Content dark */
[data-theme="dark"] .card-grid a { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .card-grid strong { color: var(--text); }
[data-theme="dark"] .card-grid span { color: var(--text-3); }
[data-theme="dark"] details { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] summary { color: var(--text); }
[data-theme="dark"] summary:hover { background: rgba(255,255,255,0.03); }
[data-theme="dark"] details p { color: var(--text-2); }
[data-theme="dark"] blockquote { background: var(--surface); border-left-color: var(--teal); }
[data-theme="dark"] .table-wrap { border-color: var(--border); }
[data-theme="dark"] thead tr { background: #161B22; }
[data-theme="dark"] th { color: var(--text-2); }
[data-theme="dark"] tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
[data-theme="dark"] td:first-child { color: var(--text); }
[data-theme="dark"] td { border-bottom-color: var(--border); }
[data-theme="dark"] .author-card { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .author-stat { background: rgba(255,255,255,0.03); border-color: var(--border); }
[data-theme="dark"] .author-quote { background: rgba(255,255,255,0.03); color: var(--text-2); }
[data-theme="dark"] .article-header { border-bottom-color: var(--border); }
[data-theme="dark"] .index-cta-block { background: rgba(0,217,217,0.05); border-color: rgba(0,217,217,0.15); }
[data-theme="dark"] .inline-cta-block { background: rgba(0,217,217,0.04); border-color: rgba(0,217,217,0.15); }
[data-theme="dark"] .inline-cta-block p { color: var(--text); }
[data-theme="dark"] .reading-progress { background: var(--border); }
[data-theme="dark"] code { background: var(--surface); color: var(--teal); }

/* ══════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1), transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: none; }

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.stagger-children.visible > * { opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.00s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.40s; }

/* VS bar fills animate when their reveal container becomes visible */
.reveal.visible .vs-bar-fill { width: var(--bar-w); }

/* ══════════════════════════════════════
   HOW IT WORKS — 4-STEP FLOW
══════════════════════════════════════ */
.how-it-works {
  margin: 2rem 0 2.5rem;
  position: relative;
}
.hiw-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  gap: 0;
}
.hiw-connector {
  position: absolute;
  top: 27px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--teal) 0%, rgba(0,217,217,0.18) 100%);
  pointer-events: none;
  z-index: 0;
}
.hiw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 0 0.75rem;
  position: relative;
  z-index: 1;
}
.hiw-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--font-d);
  color: var(--teal);
  box-shadow: 0 0 20px rgba(0,217,217,0.18), var(--sh-sm);
  flex-shrink: 0;
  position: relative;
}
.hiw-num::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(0,217,217,0.2);
  animation: hiwRipple 2.8s ease-out infinite;
}
@keyframes hiwRipple {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}
.hiw-label {
  font-family: var(--font-d);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.hiw-sub {
  font-size: 0.75rem;
  color: var(--text-3);
  line-height: 1.55;
  margin: 0;
  max-width: 16ch;
}

/* ══════════════════════════════════════
   DEV COMPARISON — Old vs New
══════════════════════════════════════ */
.dev-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.dev-col {
  border-radius: var(--r-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.dev-col--old {
  background: var(--gray-50);
  border: 1px solid var(--border);
}
.dev-col--new {
  background: linear-gradient(135deg, rgba(0,217,217,0.06) 0%, rgba(0,174,174,0.03) 100%);
  border: 1px solid rgba(0,217,217,0.28);
}
.dev-col--new::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-d));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.dev-col-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.dev-col-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.dev-col--old .dev-col-icon { background: rgba(100,116,139,0.1); }
.dev-col--new .dev-col-icon { background: rgba(0,217,217,0.12); }
.dev-col-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}
.dev-col-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.dev-col-items li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.825rem;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
}
.dev-col--old .dev-col-items li::before {
  content: '✕';
  color: #ef4444;
  font-size: 0.7rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  font-weight: 700;
}
.dev-col--new .dev-col-items li::before {
  content: '✓';
  color: var(--teal-d);
  font-size: 0.7rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  font-weight: 700;
}

/* ══════════════════════════════════════
   VS SCORE BARS
══════════════════════════════════════ */
.vs-score-section { margin: 2.5rem 0; }
.vs-score-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.vs-score-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 0.875rem;
}
.vs-score-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.3;
}
.vs-score-bars-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vs-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.vs-bar-name {
  font-size: 0.68rem;
  color: var(--text-3);
  width: 52px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vs-bar-track {
  flex: 1;
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
}
.vs-bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 0.9s cubic-bezier(0.4,0,0.2,1) 0.3s;
}
.vs-bar-fill--lovable { background: linear-gradient(90deg, var(--teal), var(--teal-d)); }
.vs-bar-fill--competitor { background: var(--gray-300); }

/* ══════════════════════════════════════
   VS DECISION CARDS
══════════════════════════════════════ */
.vs-decision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
}
.vs-decision-card {
  border-radius: var(--r-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.vs-decision-card--lovable {
  background: linear-gradient(135deg, rgba(0,217,217,0.05) 0%, transparent 100%);
  border-color: rgba(0,217,217,0.28);
}
.vs-decision-card--other { background: var(--gray-50); }
.vs-decision-head {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.vs-decision-logo {
  width: 30px;
  height: 30px;
  border-radius: var(--r-xs);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--teal);
  font-family: var(--font-d);
  flex-shrink: 0;
}
.vs-decision-name {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy);
  line-height: 1.2;
}
.vs-decision-sub {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 0.15rem;
}
.vs-decision-personas {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.vs-decision-personas li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.4;
  margin: 0;
}
.vs-decision-personas li::before {
  content: '→';
  color: var(--teal-d);
  font-size: 0.7rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   INDUSTRY BUILD TIMELINE
══════════════════════════════════════ */
.industry-timeline { margin: 2.5rem 0; }
.itime-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  gap: 0;
  margin-top: 1.25rem;
}
.itime-line {
  position: absolute;
  top: 20px;
  left: calc(12.5%);
  right: calc(12.5%);
  height: 2px;
  background: linear-gradient(90deg, var(--teal) 0%, rgba(0,217,217,0.15) 100%);
  pointer-events: none;
}
.itime-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.5rem;
  position: relative;
  z-index: 1;
  text-align: center;
}
.itime-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--teal-d);
  font-family: var(--font-d);
  box-shadow: var(--sh-sm);
  flex-shrink: 0;
}
.itime-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-d);
  line-height: 1.2;
}
.itime-days {
  font-size: 0.68rem;
  color: var(--teal-d);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.itime-desc {
  font-size: 0.72rem;
  color: var(--text-3);
  line-height: 1.45;
  margin: 0;
  max-width: 15ch;
}

/* ══════════════════════════════════════
   USE CASE ICON CARDS
══════════════════════════════════════ */
.use-case-section { margin: 2.5rem 0; }
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  margin-top: 1.25rem;
}
.use-case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem;
  transition: border-color var(--t-n), box-shadow var(--t-n), transform var(--t-n);
  position: relative;
  overflow: hidden;
}
.use-case-card:hover {
  border-color: rgba(0,217,217,0.3);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.use-case-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-n);
}
.use-case-card:hover::before { transform: scaleX(1); }
.use-case-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.6rem;
  display: block;
}
.use-case-name {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.use-case-desc {
  font-size: 0.775rem;
  color: var(--text-3);
  line-height: 1.55;
  margin: 0;
  max-width: none;
}

/* ══════════════════════════════════════
   RESPONSIVE — INFOGRAPHIC COMPONENTS
══════════════════════════════════════ */
@media (max-width: 900px) {
  .hiw-steps { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0; }
  .hiw-connector { display: none; }
  .dev-comparison { grid-template-columns: 1fr; }
  .vs-decision { grid-template-columns: 1fr; }
  .vs-score-row { grid-template-columns: 130px 1fr; gap: 0.6rem; }
  .itime-track { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0; }
  .itime-line { display: none; }
  .use-case-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hiw-steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .itime-track { grid-template-columns: 1fr; }
  .use-case-grid { grid-template-columns: 1fr; }
  .vs-score-row { grid-template-columns: 1fr; }
  .vs-score-label { font-size: 0.75rem; }
}

/* ══════════════════════════════════════
   DARK MODE — INFOGRAPHIC COMPONENTS
══════════════════════════════════════ */
[data-theme="dark"] .hiw-num { background: var(--surface); }
[data-theme="dark"] .hiw-label { color: var(--text); }
[data-theme="dark"] .dev-col--old { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .dev-col--new { background: rgba(0,217,217,0.04); border-color: rgba(0,217,217,0.2); }
[data-theme="dark"] .dev-col-title { color: var(--text); }
[data-theme="dark"] .dev-col-items li { color: var(--text-2); }
[data-theme="dark"] .vs-bar-track { background: var(--surface); }
[data-theme="dark"] .vs-bar-fill--competitor { background: var(--gray-700); }
[data-theme="dark"] .vs-decision-card--other { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .vs-decision-card--lovable { border-color: rgba(0,217,217,0.2); }
[data-theme="dark"] .vs-decision-name { color: var(--text); }
[data-theme="dark"] .vs-decision-personas li { color: var(--text-2); }
[data-theme="dark"] .itime-dot { background: var(--surface); }
[data-theme="dark"] .itime-label { color: var(--text); }
[data-theme="dark"] .use-case-card { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .use-case-name { color: var(--text); }
[data-theme="dark"] .use-case-desc { color: var(--text-3); }

/* ── Related Guides Nav ── */
.related-guides {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.related-guides h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-2);
  letter-spacing: 0;
}
.related-guide-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.related-guide-links a {
  font-size: 0.875rem;
  color: var(--teal-d);
  text-decoration: none;
  transition: color var(--t-f);
}
.related-guide-links a:hover { color: var(--teal); text-decoration: underline; }
[data-theme="dark"] .related-guides { background: var(--surface); border-color: var(--border); }
