/* ═══════════════════════════════════════════════════════════════════════════
   HeliaPV – Blog Technique CSS
   Palette : dark bg (#0a0e27), accents or (#FFB700) + vert (#4ade80) — charte HeliaPV
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-deep:    #0a0e27;
  --bg-card:    #161b22;
  --bg-code:    #0a0e27;
  --border:     #30363d;
  --text-main:  #e6edf3;
  --text-sub:   #8b949e;
  --cyan:       #FFB700;
  --green:      #4ade80;
  --gold:       #FFB700;
  --red:        #ff6b6b;
  --radius:     12px;
  --font-mono:  'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  --font-body:  'Inter', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body.blog-body {
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Topbar – charte HeliaPV ───────────────────────────────────────────────── */
.top-nav {
  background: rgba(10, 14, 39, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 183, 0, 0.12);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

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

.top-nav .navbar-brand {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FFB700 0%, #FFA000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.top-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Hérite le style nav-commune-link de la homepage */
.nav-commune-link {
  color: rgba(255, 183, 0, 0.9) !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 183, 0, 0.3);
  border-radius: 20px;
  padding: 6px 14px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-commune-link:hover {
  background: rgba(255, 183, 0, 0.1);
  border-color: rgba(255, 183, 0, 0.65);
  color: #FFB700 !important;
  text-decoration: none;
}

.top-nav .btn {
  margin-left: 6px;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.top-nav .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff !important;
}

.top-nav .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(102, 126, 234, 0.4);
  text-decoration: none;
}

.top-nav .btn-outline-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8) !important;
}

.top-nav .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white !important;
  text-decoration: none;
}

/* ── Hero articles ─────────────────────────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, #0a0e27 0%, #161b22 50%, #0a1f3d 100%);
  border-bottom: 1px solid var(--border);
  padding: 72px 24px 56px;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(255,183,0,.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(74,222,128,.06) 0%, transparent 50%);
}

.blog-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.blog-hero .category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,183,0,.12);
  border: 1px solid rgba(255,183,0,.3);
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.blog-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}

.blog-hero h1 em { font-style: normal; color: var(--cyan); }

.blog-hero .lead {
  font-size: 1.15rem;
  color: var(--text-sub);
  max-width: 680px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.blog-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--text-sub);
}

.blog-hero-meta span { display: flex; align-items: center; gap: 5px; }

.blog-hero-meta .tag-pill {
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: .78rem;
}

/* ── Article layout ────────────────────────────────────────────────────────── */
.blog-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }
}

/* ── Article content ───────────────────────────────────────────────────────── */
.article-content h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cyan);
  margin: 32px 0 12px;
}

.article-content p {
  color: #cdd9e5;
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.article-content ul, .article-content ol {
  margin: 0 0 18px 24px;
  color: #cdd9e5;
}

.article-content li { margin-bottom: 7px; }

.article-content a { color: var(--cyan); text-decoration: underline; }
.article-content a:hover { color: var(--green); }

.article-content strong { color: var(--text-main); font-weight: 600; }

.article-content code {
  background: rgba(255,183,0,.1);
  border: 1px solid rgba(255,183,0,.2);
  color: var(--cyan);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: .88em;
}

/* ── Code blocks ───────────────────────────────────────────────────────────── */
.code-block {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 24px 0;
  overflow: hidden;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #161b22;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
}

.code-block-header .lang-label {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.code-block-header .file-label {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-sub);
}

.code-block pre {
  padding: 20px 20px;
  overflow-x: auto;
  margin: 0;
}

.code-block pre code {
  background: none;
  border: none;
  color: #e6edf3;
  font-family: var(--font-mono);
  font-size: .9rem;
  line-height: 1.7;
  padding: 0;
}

.code-block pre code .kw  { color: #ff7b72; }
.code-block pre code .fn  { color: #d2a8ff; }
.code-block pre code .str { color: #a5d6ff; }
.code-block pre code .num { color: #79c0ff; }
.code-block pre code .cmt { color: #8b949e; font-style: italic; }
.code-block pre code .var { color: #ffa657; }
.code-block pre code .cls { color: #7ee787; }

/* ── Callouts ──────────────────────────────────────────────────────────────── */
.callout {
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 28px 0;
  border-left: 4px solid;
  font-size: .97rem;
}

.callout-info {
  background: rgba(255,183,0,.07);
  border-color: var(--cyan);
  color: #b0d8ef;
}

.callout-tip {
  background: rgba(74,222,128,.07);
  border-color: var(--green);
  color: #b0efcd;
}

.callout-warn {
  background: rgba(255,215,0,.07);
  border-color: var(--gold);
  color: #efe0b0;
}

.callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1rem;
}

/* ── CTA article ───────────────────────────────────────────────────────────── */
.article-cta {
  background: linear-gradient(135deg, rgba(255,183,0,.08), rgba(74,222,128,.06));
  border: 1px solid rgba(255,183,0,.25);
  border-radius: 16px;
  padding: 36px 32px;
  margin: 48px 0;
  text-align: center;
}

.article-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.article-cta p {
  color: var(--text-sub);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FFB700 0%, #FFA000 100%);
  color: #0a0e27;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: all .2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { opacity: .88; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,183,0,.35); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--cyan);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 28px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(255,183,0,.35);
  transition: all .2s;
  margin-left: 12px;
}

.btn-secondary:hover { background: rgba(255,183,0,.08); }

/* ── Table of contents / sidebar ───────────────────────────────────────────── */
.blog-sidebar { position: sticky; top: 72px; }

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-card h4 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cyan);
  margin-bottom: 14px;
}

.toc-list { list-style: none; }

.toc-list li { margin-bottom: 6px; }

.toc-list a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: .88rem;
  padding: 4px 0;
  display: block;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: all .18s;
}

.toc-list a:hover, .toc-list a.active {
  color: var(--cyan);
  border-left-color: var(--cyan);
}

/* ── Blog index ────────────────────────────────────────────────────────────── */
.blog-index-hero {
  background: linear-gradient(135deg, #0a0e27 0%, #0a1f3d 100%);
  padding: 80px 24px 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.blog-index-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}

.blog-index-hero h1 span { color: var(--cyan); }

.blog-index-hero p {
  font-size: 1.2rem;
  color: var(--text-sub);
  max-width: 600px;
  margin: 0 auto 32px;
}

.blog-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  display: block;
  transition: all .22s;
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,183,0,.04), rgba(74,222,128,.02));
  opacity: 0;
  transition: opacity .22s;
}

.article-card:hover {
  border-color: rgba(255,183,0,.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}

.article-card:hover::before { opacity: 1; }

.article-card .card-emoji {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}

.article-card .card-category {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--cyan);
  margin-bottom: 10px;
}

.article-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--text-main);
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
}

.article-card p {
  font-size: .9rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--text-sub);
}

.card-read-more {
  color: var(--cyan);
  font-weight: 600;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Landing page bureaux d'études ─────────────────────────────────────────── */
.lp-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #0a0e27 0%, #0a1929 40%, #0a1f3d 100%);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.lp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255,183,0,.1) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(74,222,128,.07) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255,215,0,.04) 0%, transparent 60%);
}

.lp-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 64px;
  align-items: center;
}

@media (max-width: 960px) {
  .lp-hero-inner { grid-template-columns: 1fr; }
  .lp-hero-visual { display: none; }
}

.lp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,183,0,.1);
  border: 1px solid rgba(255,183,0,.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.lp-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.04em;
  margin-bottom: 24px;
}

.lp-hero h1 em { font-style: normal; color: var(--cyan); }

.lp-hero .lead {
  font-size: 1.15rem;
  color: var(--text-sub);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 560px;
}

.lp-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.lp-hero-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  position: relative;
}

.lp-visual-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.dot-red, .dot-yellow, .dot-green {
  width: 12px; height: 12px; border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.lp-visual-title {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--text-sub);
  margin-left: auto;
}

.lp-visual-code {
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.8;
  color: #8b949e;
}

.lp-visual-code .c-kw  { color: #ff7b72; }
.lp-visual-code .c-fn  { color: #d2a8ff; }
.lp-visual-code .c-str { color: #a5d6ff; }
.lp-visual-code .c-num { color: #79c0ff; }
.lp-visual-code .c-ok  { color: var(--green); }

/* ── Features grid landing ──────────────────────────────────────────────────── */
.lp-section {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
}

.lp-section-inner { max-width: 1100px; margin: 0 auto; }

.lp-section-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.lp-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}

.lp-section .section-lead {
  font-size: 1.1rem;
  color: var(--text-sub);
  max-width: 620px;
  margin-bottom: 56px;
  line-height: 1.7;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: all .22s;
}

.feature-card:hover {
  border-color: rgba(255,183,0,.3);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px; height: 44px;
  background: rgba(255,183,0,.1);
  border: 1px solid rgba(255,183,0,.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.feature-card p {
  font-size: .88rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ── Comparison table landing ──────────────────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 32px 0;
}

.comparison-table th {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 14px 18px;
  text-align: left;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-sub);
}

.comparison-table th.heliapv-col {
  background: rgba(255,183,0,.08);
  border-color: rgba(255,183,0,.25);
  color: var(--cyan);
}

.comparison-table td {
  border: 1px solid var(--border);
  padding: 13px 18px;
  color: var(--text-sub);
  background: var(--bg-deep);
}

.comparison-table td.heliapv-col {
  background: rgba(255,183,0,.04);
  border-color: rgba(255,183,0,.15);
}

.comparison-table tr:hover td { background: rgba(255,255,255,.03); }

.check-yes { color: var(--green); font-size: 1.1rem; font-weight: 700; }
.check-no  { color: var(--red); font-size: 1.1rem; }
.check-partial { color: var(--gold); }

/* ── Testimonials ──────────────────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.testimonial-card blockquote {
  font-size: .95rem;
  color: #cdd9e5;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  font-size: .9rem;
  flex-shrink: 0;
}

.testimonial-author-info strong { display: block; font-size: .9rem; color: var(--text-main); }
.testimonial-author-info span { font-size: .8rem; color: var(--text-sub); }

/* ── Pricing snippet landing ───────────────────────────────────────────────── */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.pricing-card.popular {
  border-color: rgba(255,183,0,.4);
  box-shadow: 0 0 0 1px rgba(255,183,0,.2);
}

.pricing-card .plan-name {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.pricing-card.popular .plan-name { color: var(--cyan); }

.pricing-card .plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 4px;
}

.pricing-card .plan-period { font-size: .82rem; color: var(--text-sub); margin-bottom: 20px; }

.pricing-card ul { list-style: none; text-align: left; margin-bottom: 24px; }
.pricing-card li {
  font-size: .88rem;
  color: var(--text-sub);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-card li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.blog-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

.blog-footer p {
  color: var(--text-sub);
  font-size: .88rem;
}

.blog-footer a { color: var(--cyan); text-decoration: none; }

/* ── Stats strip ───────────────────────────────────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  background: var(--bg-deep);
  padding: 32px 24px;
  text-align: center;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.stat-label { font-size: .82rem; color: var(--text-sub); line-height: 1.4; }

/* ── Progress bar (API comparison) ────────────────────────────────────────── */
.api-bar-row { margin: 12px 0; }
.api-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--text-sub);
  margin-bottom: 5px;
}
.api-bar-label strong { color: var(--text-main); }
.api-bar-track {
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
}
.api-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width .8s cubic-bezier(.4,0,.2,1);
}

/* ── Landing page – hero 2-col ─────────────────────────────────────────────── */
.lp-hero-text { z-index: 1; }
.lp-hero-code { z-index: 1; }

.lp-hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: .82rem;
  color: var(--text-sub);
}
.lp-hero-trust span { display: flex; align-items: center; gap: 6px; }

.btn-large { padding: 16px 36px; font-size: 1rem; }

/* ── stat-num alias ────────────────────────────────────────────────────────── */
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 6px;
}

/* ── Pain section ──────────────────────────────────────────────────────────── */
.pain-section {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 14px;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.7;
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 24px;
}
.pain-icon { font-size: 2rem; margin-bottom: 12px; }
.pain-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.pain-card p { font-size: .88rem; color: var(--text-sub); line-height: 1.6; margin-bottom: 14px; }
.pain-cta {
  font-size: .82rem;
  font-weight: 600;
  color: var(--green);
  padding: 6px 0;
  border-top: 1px solid var(--border);
}

/* ── Features section ──────────────────────────────────────────────────────── */
.features-section {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
}
.feature-link {
  display: inline-block;
  margin-top: 14px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
}
.feature-link:hover { text-decoration: underline; }

/* ── Comparison section ────────────────────────────────────────────────────── */
.comparison-section {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}
.table-wrap { overflow-x: auto; }

/* ── Testimonials section ──────────────────────────────────────────────────── */
.testimonials-section {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
}
.testimonial-card p {
  font-size: .95rem;
  color: #cdd9e5;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  font-size: .85rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: .9rem; color: var(--text-main); }
.testimonial-author span { font-size: .8rem; color: var(--text-sub); display: block; }

/* ── Pricing section ───────────────────────────────────────────────────────── */
.pricing-section {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.pricing-card-featured {
  border-color: rgba(255,183,0,.5) !important;
  box-shadow: 0 0 0 1px rgba(255,183,0,.2), 0 16px 40px rgba(0,0,0,.3);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
  color: #000;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pricing-name {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-sub);
  margin-bottom: 12px;
}
.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 6px;
}
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-sub); }
.pricing-desc { font-size: .88rem; color: var(--text-sub); margin-bottom: 24px; }
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
}
.pricing-features li {
  font-size: .88rem;
  color: var(--text-sub);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}

/* ── Final CTA section ─────────────────────────────────────────────────────── */
.lp-final-cta {
  padding: 100px 24px;
  background: linear-gradient(135deg, #0a0e27 0%, #0a1929 50%, #0a1f3d 100%);
  border-top: 1px solid var(--border);
}
.lp-final-cta h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 20px;
}
.lp-final-cta p { font-size: 1.05rem; color: var(--text-sub); margin-bottom: 32px; }

/* ── API params list ───────────────────────────────────────────────────────── */
.api-params { list-style: none; padding: 0; margin: 0; }
.api-params li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .82rem;
}
.param-name { color: var(--cyan); font-family: var(--font-mono); }
.param-val  { color: var(--text-sub); font-size: .78rem; }

