/* Extracted from index.html's inline <style> so the CSP can drop
   style-src 'unsafe-inline'. Page-specific; shared utilities are in
   assets/tailwind.css. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { background: #06070A; color: #F8F8F4; }
body { overflow-x: hidden; }

.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.glow {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(61,232,160,.15), transparent 70%),
    radial-gradient(40% 60% at 90% 30%, rgba(125,249,194,.07), transparent 70%);
}
.ring-soft { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.ring-soft-hover:hover {
  box-shadow: inset 0 0 0 1px rgba(125,249,194,.4), 0 0 60px -10px rgba(61,232,160,.2);
  transform: translateY(-2px);
}
.ring-soft-hover { transition: transform .18s ease, box-shadow .18s ease; }
.glass { backdrop-filter: blur(12px); background: rgba(11,13,18,.7); }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee { animation: marquee 50s linear infinite; }

.gradient-text {
  background: linear-gradient(180deg, #F8F8F4 0%, #A4A89C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent-text {
  background: linear-gradient(90deg, #7DF9C2 0%, #3DE8A0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

a { color: inherit; }

.codeblock {
  font-family: 'JetBrains Mono', monospace;
  background: #0B0D12;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
}
.codeblock pre { font-size: 13px; }

/* Accordion */
details.acc { border-top: 1px solid rgba(255,255,255,.06); }
details.acc:last-of-type { border-bottom: 1px solid rgba(255,255,255,.06); }
details.acc summary {
  list-style: none; cursor: pointer; padding: 18px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary .chev {
  transition: transform .18s ease; color: #6B7180;
}
details.acc[open] summary .chev { transform: rotate(180deg); color: #7DF9C2; }
details.acc[open] summary .acc-title { color: #F8F8F4; }
details.acc summary:hover .acc-title { color: #F8F8F4; }
details.acc .acc-body { padding: 0 4px 22px; color: #A4A89C; line-height: 1.65; }

/* Tabs (install section) */
.tabbar {
  display: inline-flex; padding: 4px; gap: 4px;
  background: #0B0D12; border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
}
.tab-btn {
  padding: 8px 14px; border-radius: 7px; font-size: 13px; font-weight: 500;
  color: #A4A89C; cursor: pointer; transition: all .15s;
}
.tab-btn:hover { color: #F8F8F4; }
.tab-btn[aria-selected="true"] {
  background: rgba(61,232,160,.12); color: #7DF9C2;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Mobile menu */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }

/* Sticky in-page nav (paths) */
.pathnav { display: flex; gap: 2px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.pathnav::-webkit-scrollbar { display: none; }
.pathnav a {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 7px; font-size: 13px;
  color: #A4A89C; transition: all .15s; white-space: nowrap;
}
.pathnav a:hover { color: #F8F8F4; background: rgba(255,255,255,.04); }

/* Bento card hover lift */
.bento { transition: all .2s ease; }
.bento:hover { background: rgba(11,13,18,.85); border-color: rgba(125,249,194,.2); }

/* Cost callout pill (Circle-inspired) */
.cost-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  background: rgba(61,232,160,.08); color: #7DF9C2;
  border: 1px solid rgba(61,232,160,.18);
}
.cost-pill .strike { color: #6B7180; text-decoration: line-through; }

/* Numbered card index (Circle-inspired) */
.num-badge {
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600;
  background: rgba(125,249,194,.08); color: #7DF9C2;
  border: 1px solid rgba(125,249,194,.2);
}

/* Logo chain (host pills inside path cards) */
.logo-chain { display: flex; flex-wrap: wrap; gap: 6px; }
.logo-pill {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(255,255,255,.04); color: #A4A89C;
  border: 1px solid rgba(255,255,255,.06);
}

/* Build-with-Sera carousel (paginated 6+6 on desktop, stacked on mobile) */
.build-carousel { position: relative; overflow: hidden; }
.build-pages { display: flex; transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.build-page { flex: 0 0 100%; min-width: 0; }
.build-page-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) {
  .build-pages { flex-direction: column; transform: none !important; gap: 16px; }
  .build-page { flex: 1; }
  .build-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .build-pagination { display: none !important; }
}
@media (max-width: 640px) {
  .build-page-grid { grid-template-columns: 1fr; }
}
.build-pagination {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 32px;
}
.build-pagination button {
  width: 36px; height: 36px; border-radius: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.04); color: #A4A89C;
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer; transition: all .15s;
}
.build-pagination button:hover { color: #F8F8F4; border-color: rgba(255,255,255,.2); }
.build-pagination button[aria-current="true"] {
  background: rgba(61,232,160,.12); color: #7DF9C2;
  border-color: rgba(61,232,160,.4);
}
.build-pagination .arrow {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04); color: #A4A89C;
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer; transition: all .15s;
}
.build-pagination .arrow:hover { color: #F8F8F4; border-color: rgba(255,255,255,.2); }
.build-pagination .arrow:disabled { opacity: .3; cursor: not-allowed; }
.build-pagination .label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: #6B7180; text-transform: uppercase; letter-spacing: .08em;
  margin: 0 6px;
}

/* Mobile typography tightening */
@media (max-width: 640px) {
  h1 { font-size: 2.5rem !important; line-height: 1.1 !important; }
  h2 { font-size: 1.875rem !important; line-height: 1.2 !important; }
  .codeblock pre { font-size: 11.5px; }
}
