/* ─────────────────────────────────────────────────────────────────────────────
   ai-tools.css — the visual identity for the AI-developer-tools guides.

   The rest of the blog runs on a light, document-like template. That template is
   right for "how do I activate my subscription" and wrong for these pages: the
   reader here is a developer, the subject is agents running on a machine, and a
   page that looks like a printed brochure gets closed before the first heading.

   So: near-black base, aurora pools bleeding through a grain layer, glass cards.
   Shared by all three guides on purpose — one file to restyle the whole cluster.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --void:    #05060A;
  --ink:     #F2F4F8;
  --dim:     #99A1B3;
  --faint:   #626B80;
  --line:    rgba(255,255,255,.09);
  --glass:   rgba(255,255,255,.035);
  --glass-2: rgba(255,255,255,.055);

  --violet:  #8B5CF6;
  --cyan:    #22D3EE;
  --magenta: #FF2EA6;
  --amber:   #FBBF24;
  --lime:    #A3E635;

  --grad:    linear-gradient(100deg, #22D3EE 0%, #8B5CF6 46%, #FF2EA6 100%);
  --r:       18px;
  --max:     780px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', sans-serif;
  background: var(--void);
  color: var(--ink);
  line-height: 1.78;
  font-size: 17.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── The depth layer ───────────────────────────────────────────────────────
   Three asymmetric aurora pools, fixed so they drift under the content as you
   scroll, plus a grain sheet on top. Without the grain the gradients read as
   cheap CSS; with it they read as printed ink. Both are pointer-events:none and
   sit at z-index 0 — every content block below establishes its own stacking. */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 44% at 78% 8%,  rgba(139,92,246,.28) 0%, transparent 68%),
    radial-gradient(46% 38% at 12% 30%, rgba(34,211,238,.18)  0%, transparent 70%),
    radial-gradient(52% 40% at 62% 78%, rgba(255,46,166,.15)  0%, transparent 72%);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > nav, .hero, .wrap, footer { position: relative; z-index: 2; }

/* ── Nav ─────────────────────────────────────────────────────────────────
   Scoped to the direct child of body on purpose. The table of contents is also
   a <nav> — correctly, it is a list of in-page links — and a bare `nav` selector
   turned it into a sticky flex row, which threw its heading to the far side of
   the box and centred it against the list. */
body > nav {
  background: rgba(5,6,10,.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 60;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); font-weight: 800; font-size: 17px;
}
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dim); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--grad); color: #05060A !important;
  padding: 7px 16px; border-radius: 99px; font-weight: 800 !important; font-size: 14px !important;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: clamp(52px, 8vw, 104px) 24px clamp(36px, 5vw, 64px); max-width: 940px; margin: 0 auto; }
.crumb { font-size: 12.5px; color: var(--faint); margin-bottom: 26px; letter-spacing: .01em; }
.crumb a { color: var(--dim); text-decoration: none; }
.crumb a:hover { color: var(--cyan); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(34,211,238,.28);
  background: rgba(34,211,238,.07);
  padding: 5px 14px; border-radius: 99px; margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.35; transform:scale(.8); } }

h1 {
  font-size: clamp(34px, 6.6vw, 68px);
  font-weight: 900; line-height: 1.04; letter-spacing: -.035em;
  margin-bottom: 22px; max-width: 15ch;
}
h1 .glow {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lede { font-size: clamp(17px, 2.2vw, 21px); color: var(--dim); max-width: 56ch; line-height: 1.62; }
.byline { margin-top: 26px; font-size: 13.5px; color: var(--faint); display: flex; gap: 14px; flex-wrap: wrap; }
.byline span { display: inline-flex; align-items: center; gap: 6px; }

/* ── Body ────────────────────────────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px clamp(48px, 6vw, 90px); }

h2 {
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 900; line-height: 1.16; letter-spacing: -.028em;
  margin: 4rem 0 1.1rem;
}
h2::before {
  content: ''; display: block; width: 46px; height: 3px;
  background: var(--grad); border-radius: 99px; margin-bottom: 18px;
}
h3 { font-size: 20px; font-weight: 800; margin: 2.4rem 0 .7rem; letter-spacing: -.015em; }
p { margin-bottom: 1.25rem; color: #C3CAD8; }
strong { color: #fff; font-weight: 700; }
em { color: var(--dim); font-style: italic; }
a { color: var(--cyan); }
ul, ol { margin: 0 0 1.5rem; padding-right: 1.3rem; color: #C3CAD8; }
li { margin-bottom: .6rem; }
li::marker { color: var(--violet); }

/* ── TOC ─────────────────────────────────────────────────────────────────── */
.toc {
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 30px; margin: 2.5rem 0 3rem;
}
.toc h3 {
  margin: 0 0 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); font-weight: 800;
}
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.toc li { margin-bottom: 9px; counter-increment: t; display: flex; gap: 12px; align-items: baseline; }
.toc li::before {
  content: counter(t, decimal-leading-zero);
  font-size: 11.5px; font-weight: 800; color: var(--violet); flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.toc a { color: #C3CAD8; text-decoration: none; font-size: 15.5px; transition: color .18s; }
.toc a:hover { color: var(--cyan); }

/* ── Callouts ────────────────────────────────────────────────────────────── */
.note, .warn, .win {
  border-radius: var(--r); padding: 22px 26px; margin: 2.2rem 0;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-right-width: 3px;
}
.note { background: rgba(139,92,246,.09);  border-right-color: var(--violet); }
.warn { background: rgba(251,191,36,.08);  border-right-color: var(--amber); }
.win  { background: rgba(163,230,53,.075); border-right-color: var(--lime); }
.note p, .warn p, .win p { margin: 0 0 .7rem; color: #DDE3EC; }
.note p:last-child, .warn p:last-child, .win p:last-child { margin-bottom: 0; }
.note a, .warn a, .win a { font-weight: 700; }
.tagline {
  display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 9px;
}
.note .tagline { color: var(--violet); }
.warn .tagline { color: var(--amber); }
.win  .tagline { color: var(--lime); }

/* ── Split compare ───────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.8rem 0 2.4rem; }
.pane {
  border-radius: var(--r); padding: 24px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pane.cold { background: rgba(255,255,255,.02); }
.pane.hot  { background: rgba(139,92,246,.1); border-color: rgba(139,92,246,.3); }
.pane .label { font-size: 11.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 11px; }
.pane.cold .label { color: var(--faint); }
.pane.hot  .label { color: var(--violet); }
.pane p { font-size: 14.8px; color: #B4BCCB; margin: 0; line-height: 1.66; }

/* ── The agent grid — the one moment ─────────────────────────────────────
   Four bots that light up in sequence. It is the page's single animated idea
   and it exists because "several agents working in parallel" is the whole
   product: showing it once beats another paragraph describing it. */
.agents {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin: 2.2rem 0; padding: 24px;
  background: rgba(0,0,0,.34); border: 1px solid var(--line); border-radius: var(--r);
}
.bot {
  border-radius: 12px; padding: 16px 12px; text-align: center;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  animation: work 4.4s ease-in-out infinite;
}
.bot:nth-child(1) { animation-delay: 0s; }
.bot:nth-child(2) { animation-delay: .55s; }
.bot:nth-child(3) { animation-delay: 1.1s; }
.bot:nth-child(4) { animation-delay: 1.65s; }
.bot .ic { font-size: 22px; display: block; margin-bottom: 7px; }
.bot .nm { font-size: 12.5px; font-weight: 800; color: #DDE3EC; display: block; }
.bot .st { font-size: 10.5px; color: var(--faint); letter-spacing: .06em; }
@keyframes work {
  0%, 100% { border-color: var(--line); background: rgba(255,255,255,.03); transform: translateY(0); }
  22%, 42% { border-color: rgba(34,211,238,.55); background: rgba(34,211,238,.1); transform: translateY(-4px); }
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.8rem 0; }
.card {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.4); }
.card .ic { font-size: 26px; display: block; margin-bottom: 12px; }
.card strong { display: block; font-size: 15.5px; margin-bottom: 7px; }
.card p { font-size: 14.5px; color: var(--dim); margin: 0; line-height: 1.62; }

/* ── Steps ───────────────────────────────────────────────────────────────── */
.step { display: flex; gap: 18px; margin-bottom: 2rem; align-items: flex-start; }
.step .n {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 900; color: #05060A; background: var(--grad);
}
.step .t { font-size: 18.5px; font-weight: 800; margin-bottom: 5px; letter-spacing: -.015em; }
.step p { margin: 0; font-size: 15.8px; }

/* ── Prompt / terminal ───────────────────────────────────────────────────── */
.term {
  background: #010206; border: 1px solid rgba(34,211,238,.22); border-radius: var(--r);
  padding: 20px 24px; margin: 1.7rem 0;
  box-shadow: 0 0 44px rgba(34,211,238,.06) inset;
}
.term .lbl {
  font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 12px;
}
.term p { color: #9FE8F5; margin: 0; font-size: 15px; line-height: 1.72; }

/* ── Table ───────────────────────────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; margin: 1.7rem 0; font-size: 15px; }
.tbl th {
  background: rgba(255,255,255,.05); color: #fff; padding: 13px 16px;
  text-align: right; font-weight: 800; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.05); color: #C3CAD8; }
.tbl tr:last-child td { border-bottom: none; }

/* ── Sales block ─────────────────────────────────────────────────────────── */
.sell {
  border-radius: 24px; padding: clamp(30px, 5vw, 52px); margin: 3.4rem 0;
  background:
    radial-gradient(72% 100% at 82% 0%, rgba(139,92,246,.3) 0%, transparent 66%),
    radial-gradient(60% 90% at 12% 100%, rgba(34,211,238,.2) 0%, transparent 68%),
    rgba(255,255,255,.035);
  border: 1px solid rgba(139,92,246,.3);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  text-align: center;
}
.sell .kicker {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--lime); margin-bottom: 14px;
}
.sell h2 { margin: 0 0 14px; font-size: clamp(24px, 4vw, 38px); }
.sell h2::before { display: none; }
.sell > p { color: #C3CAD8; max-width: 46ch; margin: 0 auto 24px; font-size: 16.5px; }
.price-row { display: flex; align-items: baseline; justify-content: center; gap: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.price-now { font-size: clamp(38px, 6vw, 56px); font-weight: 900; letter-spacing: -.04em; color: #fff; }
.price-was { font-size: 20px; color: var(--faint); text-decoration: line-through; }
.price-off {
  font-size: 12.5px; font-weight: 800; color: #05060A; background: var(--lime);
  padding: 4px 12px; border-radius: 99px; letter-spacing: .04em;
}
.price-sub { font-size: 13.5px; color: var(--faint); margin-bottom: 26px; }
.buy {
  display: inline-block; background: var(--grad); color: #05060A;
  font-size: 17.5px; font-weight: 900; padding: 16px 42px; border-radius: 99px;
  text-decoration: none; letter-spacing: -.01em;
  box-shadow: 0 12px 40px rgba(139,92,246,.34);
  transition: transform .2s ease, box-shadow .2s ease;
}
.buy:hover { transform: translateY(-3px); box-shadow: 0 18px 52px rgba(139,92,246,.46); }
.trust { margin-top: 20px; font-size: 13px; color: var(--faint); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }

/* ── Related ─────────────────────────────────────────────────────────────── */
.more { border-top: 1px solid var(--line); padding-top: 30px; margin-top: 3.4rem; }
.more h3 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin: 0 0 16px; font-weight: 800; }
.more-list { display: grid; gap: 10px; }
.more-list a {
  display: block; padding: 16px 20px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--line);
  color: #DDE3EC; text-decoration: none; font-weight: 600; font-size: 15.5px;
  transition: border-color .2s, transform .2s;
}
.more-list a:hover { border-color: rgba(34,211,238,.4); transform: translateX(-4px); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 34px 24px; text-align: center; font-size: 13px; color: var(--faint); }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer p + p { margin-top: 9px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  body { font-size: 16.5px; }
  .split, .cards { grid-template-columns: 1fr; }
  .agents { grid-template-columns: repeat(2, 1fr); }
  h1 { max-width: none; }
  .tbl { font-size: 13.5px; }
  .tbl th, .tbl td { padding: 11px 12px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* Motion is decoration here, never meaning — the agent grid and the pulse both
   only reinforce text that already says the same thing. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
