:root{
  --bg:#070b16;
  --bg-2:#0b1124;
  --panel:#0f1530;
  --panel-2:#141b3a;
  --line:rgba(255,255,255,0.08);
  --line-2:rgba(255,255,255,0.14);
  --text:#e9edf7;
  --text-dim:#aab1c8;
  --text-mute:#6e7693;
  --accent:#22d3ee;
  --accent-2:#7c5cff;
  --accent-3:#3a6dff;
  --good:#34d399;
  --warn:#fbbf24;
  --danger:#f87171;
  --radius:14px;
  --radius-lg:20px;
  --section-py: clamp(96px, 10vw, 160px);
  --glow: 0 0 0 0 transparent;
  --glow-strong: 0 8px 32px rgba(34,211,238,0.12);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
.mono{font-family:'JetBrains Mono', ui-monospace, monospace}
a{color:inherit;text-decoration:none}
button{font-family:inherit}
::selection{background:rgba(34,211,238,.35);color:#fff}
#root{min-height:100vh}

/* ============ Mobile fixes ============ */
/* Tablet: tighten header */
@media (max-width: 720px){
  header > div { gap: 12px !important; padding-left: 16px !important; padding-right: 16px !important; }
  /* Section padding */
  section { padding-left: 16px !important; padding-right: 16px !important; }
}

/* Phone: typography + buttons */
@media (max-width: 520px){
  /* Hero h1 sizes — clamp already responsive but ensure no overflow */
  h1 { letter-spacing: -0.02em !important; }
  /* Make CTA buttons full width on phones for tappability */
  .ql-cta-row { flex-direction: column !important; align-items: stretch !important; }
  .ql-cta-row > a { justify-content: center !important; width: 100% !important; }
  /* Footer copyright wrap */
  footer .mono { font-size: 11px !important; }
}

/* Phone: section padding shrink */
@media (max-width: 600px){
  :root { --section-py: 72px; }
  /* PageHero top padding shrink */
  main > section:first-child { padding-top: 110px !important; }
  /* Cards everywhere — shrink padding */
  [class~="ql-nav"] { gap: 14px !important; }
}

/* Pricing: ribbon overlap fix on mobile */
@media (max-width: 520px){
  .pricing-grid > div:nth-child(2) > div:first-child {
    /* recommended ribbon — ensure pill row clears it */
    padding-right: 0 !important;
  }
}

/* Footer: stacked nicely on small phones */
@media (max-width: 480px){
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  footer > div:nth-child(2) { flex-direction: column !important; align-items: flex-start !important; }
}

/* ============ Long-read Article ============ */
.article-layout{
  max-width:1180px; margin:0 auto;
  padding:24px clamp(20px,5vw,64px) 120px;
  display:grid; grid-template-columns:220px minmax(0,720px);
  gap:72px; justify-content:center;
}
.article-toc{position:sticky; top:96px; align-self:start; max-height:calc(100vh - 120px); overflow-y:auto; overflow-x:hidden}
.article-toc-label{font-size:11px; color:var(--text-mute); letter-spacing:.14em; margin-bottom:14px}
.article-toc ol{list-style:none; margin:0; padding:0; display:flex; flex-direction:column}
.article-toc a{
  display:flex; gap:10px; padding:9px 12px;
  font-size:13px; color:var(--text-mute);
  border-left:2px solid var(--line);
  transition:color .15s, border-color .15s, background .15s;
  line-height:1.45;
}
.article-toc a span{font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--text-mute); opacity:.7}
.article-toc a:hover{color:var(--text); border-left-color:var(--line-2)}
.article-toc a.active{color:var(--text); border-left-color:var(--accent); background:rgba(34,211,238,.04)}
.article-toc a.active span{color:var(--accent); opacity:1}

.article-section{scroll-margin-top:96px; padding-top:8px}
.article-section + .article-section{margin-top:64px; border-top:1px solid var(--line); padding-top:56px}
.article-section-num{font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--accent); letter-spacing:.14em; margin-bottom:14px}

.prose{color:var(--text-dim); font-size:17px; line-height:1.78}
.prose > *:first-child{margin-top:0}
.prose > *:last-child{margin-bottom:0}
.prose h2{font-size:clamp(26px,3vw,34px); font-weight:600; letter-spacing:-0.02em; color:var(--text); margin:0 0 24px; line-height:1.18}
.prose h3{font-size:19px; font-weight:600; color:var(--text); margin:36px 0 12px; letter-spacing:-0.01em}
.prose p{margin:0 0 22px}
.prose ul, .prose ol{padding-left:22px; margin:0 0 22px}
.prose li{margin-bottom:10px}
.prose ul li::marker{color:var(--accent)}
.prose ol li::marker{color:var(--text-mute); font-family:'JetBrains Mono',monospace; font-size:.9em}
.prose strong{color:var(--text); font-weight:600}
.prose em{color:var(--accent); font-style:normal}
.prose a{color:var(--accent); border-bottom:1px solid rgba(34,211,238,.35); transition:border-color .15s}
.prose a:hover{border-bottom-color:var(--accent)}
.prose code{font-family:'JetBrains Mono',monospace; font-size:.9em; background:rgba(255,255,255,.05); padding:2px 7px; border-radius:5px; color:var(--accent); border:1px solid var(--line)}
.prose blockquote{
  border-left:2px solid var(--accent);
  margin:32px 0; padding:6px 0 6px 24px;
  color:var(--text); font-size:19px; line-height:1.55;
  font-style:italic;
  background:linear-gradient(90deg, rgba(34,211,238,.04), transparent 70%);
}
.prose blockquote p{margin:0}
.prose hr{border:none; border-top:1px solid var(--line); margin:48px 0}
.prose-lede{font-size:19px; color:var(--text); line-height:1.55; margin:0 0 32px; padding-bottom:32px; border-bottom:1px solid var(--line)}
.prose-lede::first-letter{
  font-size:64px; font-weight:600; float:left;
  line-height:.85; margin:6px 14px 0 0; color:var(--text);
  letter-spacing:-0.04em;
  font-family:'Inter',sans-serif;
}
.prose-callout{
  margin:32px 0; padding:22px 24px;
  border:1px solid var(--line); border-radius:14px;
  background:var(--panel);
  font-size:15px; line-height:1.65; color:var(--text-dim);
  display:grid; grid-template-columns:auto 1fr; gap:16px; align-items:start;
}
.prose-callout .prose-callout-icon{
  width:34px; height:34px; border-radius:9px;
  background:rgba(34,211,238,.12); color:var(--accent);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.prose-callout strong{display:block; margin-bottom:4px; color:var(--text); font-weight:600; font-size:14px}

@media (max-width:880px){
  .article-layout{grid-template-columns:1fr; gap:0; padding-top:8px}
  .article-toc{display:none}
}
@media (max-width:520px){
  .prose{font-size:16px; line-height:1.72}
  .prose-lede{font-size:17px}
  .prose-lede::first-letter{font-size:48px; margin:4px 10px 0 0}
}

