/* ============================================================
   style.css — hand-written utility CSS for the Nanorack landing
   Replaces cdn.tailwindcss.com (~400 KB) with only what we use.
   ============================================================ */

/* Inter is loaded via <link> tags in shell.html (preconnect + stylesheet) —
   a CSS @import would serialize the font fetch behind this stylesheet. */

/* ----------------------------------------------------------
   1. CUSTOM PROPERTIES
   ---------------------------------------------------------- */
:root {
  --base:     rgb(14, 14, 17);
  --surface:  rgb(22, 22, 26);
  --subtle:   rgba(255, 255, 255, 0.08);
  --muted:    rgba(255, 255, 255, 0.5);
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --accent-300: #c4b5fd;
  --accent-400: #a78bfa;
  --accent-500: #8b5cf6;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --amber-400:  #fbbf24;
  --blue-400:   #60a5fa;
  --rose-400:   #fb7185;
  --green-400:  #4ade80;
  --orange-300: #fdba74;

  /* gradient stops — set by from-* / to-* classes */
  --grad-from: transparent;
  --grad-to:   transparent;
}

/* ----------------------------------------------------------
   2. PREFLIGHT (minimal reset)
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

body { margin: 0; line-height: inherit; position: relative; isolation: isolate; }

h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }
p, ul, ol, pre { margin: 0; padding: 0; }
ul, ol { list-style: none; }

/* Tables: drop the UA defaults (center-aligned, bold th) so utility classes
   fully control appearance. */
table { border-collapse: collapse; }
th { text-align: left; font-weight: inherit; }

a { color: inherit; text-decoration: inherit; }

button {
  cursor: pointer;
  background: transparent;
  border: none;
  font: inherit;
  color: inherit;
  padding: 0;
}

img, svg, video { display: block; max-width: 100%; }
pre, code { font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace; }

/* ----------------------------------------------------------
   3. DISPLAY
   ---------------------------------------------------------- */
.block        { display: block; }
.inline-block { display: inline-block; }
.flex         { display: flex; }
.inline-flex  { display: inline-flex; }
.grid         { display: grid; }
.hidden       { display: none; }

/* ----------------------------------------------------------
   4. FLEXBOX
   ---------------------------------------------------------- */
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.flex-1      { flex: 1 1 0%; }
.shrink-0    { flex-shrink: 0; }

.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.items-baseline { align-items: baseline; }

.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }

.gap-1  { gap: 0.25rem; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-5  { gap: 1.25rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.gap-x-12 { column-gap: 3rem; }
.gap-y-16 { row-gap: 4rem; }

/* ----------------------------------------------------------
   5. GRID
   ---------------------------------------------------------- */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ----------------------------------------------------------
   6. SIZING
   ---------------------------------------------------------- */
.w-3    { width: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.w-4    { width: 1rem; }
.w-5    { width: 1.25rem; }
.w-6    { width: 1.5rem; }
.w-8    { width: 2rem; }
.w-10   { width: 2.5rem; }
.w-12   { width: 3rem; }
.w-48   { width: 12rem; }
.w-64   { width: 16rem; }
.w-full { width: 100%; }

.h-3    { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-4    { height: 1rem; }
.h-5    { height: 1.25rem; }
.h-6    { height: 1.5rem; }
.h-8    { height: 2rem; }
.h-10   { height: 2.5rem; }
.h-12   { height: 3rem; }
.h-16   { height: 4rem; }
.h-48   { height: 12rem; }
.h-full { height: 100%; }
.h-\[calc\(100vh-8rem\)\] { height: calc(100vh - 8rem); }

.min-h-screen { min-height: 100vh; }

.max-w-xl      { max-width: 36rem; }
.max-w-2xl     { max-width: 42rem; }
.max-w-3xl     { max-width: 48rem; }
.max-w-4xl     { max-width: 56rem; }
.max-w-6xl     { max-width: 72rem; }
.max-w-\[90rem\] { max-width: 90rem; }

/* ----------------------------------------------------------
   7. SPACING — PADDING
   ---------------------------------------------------------- */
.p-1    { padding: 0.25rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3    { padding: 0.75rem; }
.p-4    { padding: 1rem; }
.p-5    { padding: 1.25rem; }
.p-6    { padding: 1.5rem; }
.p-8    { padding: 2rem; }

.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2  { padding-left: 0.5rem;   padding-right: 0.5rem; }
.px-3  { padding-left: 0.75rem;  padding-right: 0.75rem; }
.px-4  { padding-left: 1rem;     padding-right: 1rem; }
.px-5  { padding-left: 1.25rem;  padding-right: 1.25rem; }
.px-6  { padding-left: 1.5rem;   padding-right: 1.5rem; }

.py-0\.5{ padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1   { padding-top: 0.25rem;  padding-bottom: 0.25rem; }
.py-2   { padding-top: 0.5rem;   padding-bottom: 0.5rem; }
.py-2\.5{ padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3   { padding-top: 0.75rem;  padding-bottom: 0.75rem; }
.py-3\.5{ padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4   { padding-top: 1rem;     padding-bottom: 1rem; }
.py-5   { padding-top: 1.25rem;  padding-bottom: 1.25rem; }
.py-12  { padding-top: 3rem;     padding-bottom: 3rem; }
.py-16  { padding-top: 4rem;     padding-bottom: 4rem; }
.py-20  { padding-top: 5rem;     padding-bottom: 5rem; }
.py-24  { padding-top: 6rem;     padding-bottom: 6rem; }
.py-28  { padding-top: 7rem;     padding-bottom: 7rem; }
.py-32  { padding-top: 8rem;     padding-bottom: 8rem; }

.pt-2   { padding-top: 0.5rem; }
.pt-12  { padding-top: 3rem; }
.pt-24  { padding-top: 6rem; }
.pt-32  { padding-top: 8rem; }

.pb-16  { padding-bottom: 4rem; }
.pb-24  { padding-bottom: 6rem; }
.pb-32  { padding-bottom: 8rem; }

.pr-4   { padding-right: 1rem; }

/* ----------------------------------------------------------
   8. SPACING — MARGIN
   ---------------------------------------------------------- */
.m-0   { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.my-4  { margin-top: 1rem; margin-bottom: 1rem; }
.mt-8  { margin-top: 2rem; }
.mt-auto { margin-top: auto; }
.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.ml-1  { margin-left: 0.25rem; }
.ml-2  { margin-left: 0.5rem; }
.mr-1  { margin-right: 0.25rem; }

/* negative offsets (decorative blur circles) */
.-top-24   { top: -6rem; }
.-right-24 { right: -6rem; }

/* ----------------------------------------------------------
   9. SPACE-Y (child spacing)
   ---------------------------------------------------------- */
.space-y-2    > * + * { margin-top: 0.5rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.space-y-3    > * + * { margin-top: 0.75rem; }
.space-y-4    > * + * { margin-top: 1rem; }
.space-y-6    > * + * { margin-top: 1.5rem; }
.space-y-8    > * + * { margin-top: 2rem; }

/* ----------------------------------------------------------
   10. TYPOGRAPHY
   ---------------------------------------------------------- */
.font-sans    { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; }
.font-mono    { font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-\[10px\] { font-size: 10px; line-height: 0.875rem; }
.text-xs   { font-size: 0.75rem;   line-height: 1rem; }
.text-sm   { font-size: 0.875rem;  line-height: 1.25rem; }
.text-base { font-size: 1rem;      line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem;  line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;   line-height: 1.75rem; }
.text-3xl  { font-size: 1.875rem;  line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem;   line-height: 2.5rem; }
.text-5xl  { font-size: 3rem;      line-height: 1; }

.leading-relaxed     { line-height: 1.625; }
.leading-\[1\.1\]   { line-height: 1.1; }

.tracking-tight  { letter-spacing: -0.025em; }
.tracking-wide   { letter-spacing: 0.025em; }
.tracking-wider  { letter-spacing: 0.05em; }

.uppercase    { text-transform: uppercase; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-left    { text-align: left; }
.align-text-bottom { vertical-align: text-bottom; }
.align-top    { vertical-align: top; }
.whitespace-nowrap { white-space: nowrap; }

/* ----------------------------------------------------------
   11. TEXT COLORS
   ---------------------------------------------------------- */
.text-white        { color: #ffffff; }
.text-black        { color: #000000; }
.text-gray-100     { color: #f3f4f6; }
.text-gray-200     { color: #e5e7eb; }
.text-gray-300     { color: #d1d5db; }
.text-gray-400     { color: #9ca3af; }
.text-gray-500     { color: #6b7280; }
.text-muted        { color: var(--muted); }
.text-brand-400    { color: var(--brand-400); }
.text-accent-400   { color: var(--accent-400); }
.text-amber-400    { color: var(--amber-400); }
.text-blue-400     { color: var(--blue-400); }
.text-emerald-400  { color: var(--emerald-400); }
.text-green-400    { color: var(--green-400); }
.text-orange-300   { color: var(--orange-300); }
.text-rose-400     { color: var(--rose-400); }

/* ----------------------------------------------------------
   12. BACKGROUND COLORS
   ---------------------------------------------------------- */
.bg-base     { background-color: var(--base); }
.bg-surface  { background-color: var(--surface); }
.bg-white    { background-color: #ffffff; }

/* base with opacity */
.bg-base\/30 { background-color: rgba(14, 14, 17, 0.3); }
.bg-base\/50 { background-color: rgba(14, 14, 17, 0.5); }
.bg-base\/80 { background-color: rgba(14, 14, 17, 0.8); }

/* surface with opacity */
.bg-surface\/50 { background-color: rgba(22, 22, 26, 0.5); }

/* subtle as background */
.bg-subtle { background-color: rgba(255, 255, 255, 0.08); }

/* solid brand */
.bg-brand-500 { background-color: var(--brand-500); }

/* brand tints */
.bg-brand-500\/5   { background-color: rgba(59, 130, 246, 0.05); }
.bg-brand-500\/10  { background-color: rgba(59, 130, 246, 0.10); }

/* accent tints */
.bg-accent-500\/5  { background-color: rgba(139, 92, 246, 0.05); }
.bg-accent-500\/10 { background-color: rgba(139, 92, 246, 0.10); }

/* other color tints */
.bg-amber-500\/10   { background-color: rgba(245, 158, 11, 0.10); }
.bg-blue-500\/10    { background-color: rgba(59, 130, 246, 0.10); }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.10); }
.bg-rose-500\/10    { background-color: rgba(244, 63, 94, 0.10); }

/* dot indicator colors */
.bg-red-500\/80    { background-color: rgba(239, 68, 68, 0.8); }
.bg-yellow-500\/80 { background-color: rgba(234, 179, 8, 0.8); }
.bg-green-500\/80  { background-color: rgba(34, 197, 94, 0.8); }

/* ----------------------------------------------------------
   13. GRADIENTS
   ---------------------------------------------------------- */
.bg-gradient-to-b  { background-image: linear-gradient(to bottom, var(--grad-from), var(--grad-to)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--grad-from), var(--grad-to)); }
.bg-gradient-to-r  { background-image: linear-gradient(to right, var(--grad-from), var(--grad-to)); }

/* gradient from-stops */
.from-brand-500      { --grad-from: #3b82f6; }
.from-brand-600      { --grad-from: #2563eb; }
.from-brand-500\/5   { --grad-from: rgba(59, 130, 246, 0.05); }
.from-brand-500\/20  { --grad-from: rgba(59, 130, 246, 0.20); }
.from-brand-500\/30  { --grad-from: rgba(59, 130, 246, 0.30); }

/* gradient to-stops */
.to-brand-500        { --grad-to: #3b82f6; }
.to-accent-500       { --grad-to: #8b5cf6; }
.to-accent-500\/5    { --grad-to: rgba(139, 92, 246, 0.05); }
.to-accent-500\/20   { --grad-to: rgba(139, 92, 246, 0.20); }
.to-accent-500\/30   { --grad-to: rgba(139, 92, 246, 0.30); }

/* hover gradient overrides */
.hover\:from-brand-500:hover { --grad-from: #3b82f6; }
.hover\:to-brand-400:hover   { --grad-to: #60a5fa; }

/* ----------------------------------------------------------
   14. BORDERS
   ---------------------------------------------------------- */
.border   { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b-0 { border-bottom-width: 0; }
.border-collapse { border-collapse: collapse; }

/* divide-y: a 1px top border between adjacent children (table rows). The
   preflight sets border-style:solid/border-width:0, so only the width is set
   here; divide-subtle supplies the color. */
.divide-y > * + *      { border-top-width: 1px; }
.divide-subtle > * + * { border-color: var(--subtle); }

.border-subtle          { border-color: rgba(255, 255, 255, 0.08); }
.border-brand-500\/20   { border-color: rgba(59, 130, 246, 0.20); }
.border-brand-500\/30   { border-color: rgba(59, 130, 246, 0.30); }
.border-brand-500\/50   { border-color: rgba(59, 130, 246, 0.50); }
.border-accent-500\/20  { border-color: rgba(139, 92, 246, 0.20); }
.border-amber-500\/20   { border-color: rgba(245, 158, 11, 0.20); }
.border-blue-500\/20    { border-color: rgba(59, 130, 246, 0.20); }
.border-emerald-500\/20 { border-color: rgba(16, 185, 129, 0.20); }
.border-rose-500\/20    { border-color: rgba(244, 63, 94, 0.20); }

/* ----------------------------------------------------------
   15. BORDER RADIUS
   ---------------------------------------------------------- */
.rounded      { border-radius: 0.25rem; }
.rounded-lg   { border-radius: 0.5rem; }
.rounded-xl   { border-radius: 0.75rem; }
.rounded-2xl  { border-radius: 1rem; }
.rounded-3xl  { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* ----------------------------------------------------------
   16. SHADOWS
   ---------------------------------------------------------- */
.shadow-sm  { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow-lg  { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.shadow-xl  { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.05); }

/* colored shadows — combined in one declaration */
.shadow-brand-500\/10 { box-shadow: 0 10px 15px -3px rgba(59,130,246,0.10); }
.shadow-brand-500\/20 { box-shadow: 0 10px 15px -3px rgba(59,130,246,0.20); }
.shadow-brand-500\/25 { box-shadow: 0 10px 15px -3px rgba(59,130,246,0.25); }

/* combined shadow + colored shadow (used together on buttons) */
.shadow-lg.shadow-brand-500\/25 {
  box-shadow: 0 10px 15px -3px rgba(59,130,246,0.25), 0 4px 6px -4px rgba(59,130,246,0.15);
}
.shadow-2xl.shadow-brand-500\/10 {
  box-shadow: 0 25px 50px -12px rgba(59,130,246,0.10);
}

/* ----------------------------------------------------------
   17. POSITIONING
   ---------------------------------------------------------- */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky   { position: sticky; }

.top-0   { top: 0; }
.top-28  { top: 7rem; }
.left-1\/2 { left: 50%; }

.inset-0        { inset: 0; }
.-inset-1       { inset: -0.25rem; }
.inset-\[-1px\] { inset: -1px; }

.-z-10  { z-index: -10; }
.z-10   { z-index: 10; }
.z-50   { z-index: 50; }

/* ----------------------------------------------------------
   18. OVERFLOW
   ---------------------------------------------------------- */
.overflow-hidden  { overflow: hidden; }
.overflow-x-auto  { overflow-x: auto; }
.overflow-y-auto  { overflow-y: auto; }

/* ----------------------------------------------------------
   19. OPACITY
   ---------------------------------------------------------- */
.opacity-0  { opacity: 0; }
.opacity-50 { opacity: 0.5; }

/* ----------------------------------------------------------
   20. TRANSFORMS
   ---------------------------------------------------------- */
.-translate-x-1\/2  { transform: translateX(-50%); }
.-translate-y-1\/2  { transform: translateY(-50%); }

/* blur (used on glow elements) */
.blur-lg { filter: blur(16px); }
.blur-xl { filter: blur(24px); }

/* backdrop blur */
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* ----------------------------------------------------------
   21. TRANSITIONS
   ---------------------------------------------------------- */
.transition-colors    { transition-property: color, background-color, border-color; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-opacity   { transition-property: opacity; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-transform { transition-property: transform; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-all       { transition-property: all; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.duration-300         { transition-duration: 300ms; }

/* ----------------------------------------------------------
   22. SCROLL
   ---------------------------------------------------------- */
.scroll-smooth { scroll-behavior: smooth; }
.scroll-mt-28  { scroll-margin-top: 7rem; }

/* ----------------------------------------------------------
   23. POINTER EVENTS
   ---------------------------------------------------------- */
.pointer-events-none { pointer-events: none; }

/* ----------------------------------------------------------
   24. HOVER STATES
   ---------------------------------------------------------- */
.hover\:text-white:hover        { color: #ffffff; }
.hover\:text-brand-300:hover    { color: var(--brand-300); }
.hover\:text-accent-300:hover   { color: var(--accent-300); }
.hover\:text-emerald-300:hover  { color: var(--emerald-300); }

.hover\:bg-gray-100:hover       { background-color: #f3f4f6; }
.hover\:bg-brand-400:hover      { background-color: var(--brand-400); }
.hover\:bg-white\/5:hover       { background-color: rgba(255, 255, 255, 0.05); }
.hover\:bg-subtle:hover         { background-color: rgba(255, 255, 255, 0.08); }
.hover\:bg-subtle\/30:hover     { background-color: rgba(255, 255, 255, 0.024); }

.hover\:border-brand-500\/50:hover   { border-color: rgba(59, 130, 246, 0.5); }
.hover\:border-accent-500\/50:hover  { border-color: rgba(139, 92, 246, 0.5); }
.hover\:border-emerald-500\/50:hover { border-color: rgba(16, 185, 129, 0.5); }
.hover\:border-gray-500:hover        { border-color: #6b7280; }

.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }

/* ----------------------------------------------------------
   25. GROUP / GROUP-HOVER
   ---------------------------------------------------------- */
.group { /* marker class — no styles needed */ }

.group:hover .group-hover\:bg-brand-500\/20  { background-color: rgba(59, 130, 246, 0.20); }
.group:hover .group-hover\:bg-accent-500\/20 { background-color: rgba(139, 92, 246, 0.20); }
.group:hover .group-hover\:bg-amber-500\/20  { background-color: rgba(245, 158, 11, 0.20); }
.group:hover .group-hover\:bg-blue-500\/20   { background-color: rgba(59, 130, 246, 0.20); }
.group:hover .group-hover\:bg-emerald-500\/20{ background-color: rgba(16, 185, 129, 0.20); }
.group:hover .group-hover\:bg-rose-500\/20   { background-color: rgba(244, 63, 94, 0.20); }

.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-110   { transform: scale(1.1); }

/* ----------------------------------------------------------
   26. SELECTION PSEUDO-ELEMENT
   ---------------------------------------------------------- */
.selection\:bg-brand-500\/30 *::selection,
.selection\:bg-brand-500\/30::selection { background-color: rgba(59, 130, 246, 0.30); }

.selection\:text-white *::selection,
.selection\:text-white::selection { color: #ffffff; }

/* ----------------------------------------------------------
   27. RESPONSIVE BREAKPOINTS
   ---------------------------------------------------------- */

/* sm: 640px */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

/* md: 768px */
@media (min-width: 768px) {
  .md\:flex     { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  .lg\:block      { display: block; }
  .lg\:grid-cols-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:text-4xl   { font-size: 2.25rem; line-height: 2.5rem; }
  .lg\:text-5xl   { font-size: 3rem;    line-height: 1; }
  .lg\:text-6xl   { font-size: 3.75rem; line-height: 1; }
}

/* ----------------------------------------------------------
   28. CUSTOM COMPONENTS (from shell.html / per-page CSS)
   ---------------------------------------------------------- */

/* Glassmorphism nav */
.glass-nav {
  background: rgba(14, 14, 17, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Hero gradient text */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero ambient glow */
.glow-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(139,92,246,0.10) 40%, rgba(14,14,17,0) 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
}

/* ----------------------------------------------------------
   29. BACKGROUND RINGS
   ---------------------------------------------------------- */
.rings-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.no-rings .rings-bg { display: none; }
.ring {
  position: absolute;
  border-radius: 9999px;
}

/* Each ring: size, position, color */
.ring-a {
  width: 900px; height: 900px;
  top: -380px; left: -420px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.ring-b {
  width: 560px; height: 560px;
  top: 280px; right: -220px;
  border: 1px solid rgba(59, 130, 246, 0.20);
}
.ring-c {
  width: 1100px; height: 1100px;
  top: 900px; left: -500px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.ring-d {
  width: 700px; height: 700px;
  top: 1900px; right: -300px;
  border: 1px solid rgba(59, 130, 246, 0.16);
}
.ring-e {
  width: 480px; height: 480px;
  top: 2750px; left: 280px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.ring-f {
  width: 860px; height: 860px;
  top: 3500px; right: -380px;
  border: 1px solid rgba(59, 130, 246, 0.14);
}
.ring-g {
  width: 620px; height: 620px;
  top: 4400px; left: -180px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ----------------------------------------------------------
   30. INLINE CODE
   ---------------------------------------------------------- */
code:not(pre code) {
  background: var(--surface);
  border: 1px solid var(--subtle);
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  font-size: 0.85em;
  font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
  color: var(--brand-400);
}

/* ----------------------------------------------------------
   30. LEGAL PROSE TYPOGRAPHY (.legal-prose)
   ---------------------------------------------------------- */
.legal-prose h1 { font-size: 2.25rem; font-weight: 700; color: #fff; margin-bottom: 1rem; letter-spacing: -0.025em; }
.legal-prose h2 { font-size: 1.25rem; font-weight: 600; color: #fff; margin-top: 3rem; margin-bottom: 1rem; letter-spacing: -0.025em; }
.legal-prose p  { color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; font-size: 0.875rem; }
.legal-prose ul { list-style: disc; list-style-position: outside; color: var(--muted); margin-bottom: 1.5rem; margin-left: 1.25rem; font-size: 0.875rem; }
.legal-prose ul li { margin-bottom: 0.5rem; }
.legal-prose li strong { color: #d1d5db; font-weight: 500; }
.legal-prose a  { color: var(--brand-400); text-decoration: underline; text-underline-offset: 4px; }
.legal-prose a:hover { color: var(--brand-300); }
.legal-prose .all-caps-warning {
  text-transform: uppercase;
  font-weight: 600;
  color: #9ca3af;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  line-height: 2;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--subtle);
  margin: 2rem 0;
}

/* ----------------------------------------------------------
   30. DOCS & LEGAL PROSE TYPOGRAPHY (.prose & .legal-prose)
   ---------------------------------------------------------- */
.prose h1 { font-size: 2.25rem; font-weight: 700; color: #fff; margin-bottom: 1.5rem; letter-spacing: -0.025em; }
.prose h2 { font-size: 1.5rem; font-weight: 600; color: #fff; margin-top: 4rem; margin-bottom: 1rem; letter-spacing: -0.025em; border-bottom: 1px solid var(--subtle); padding-bottom: 0.5rem; scroll-margin-top: 7rem; }
.prose h3 { font-size: 1.25rem; font-weight: 500; color: #e5e7eb; margin-top: 2rem; margin-bottom: 0.75rem; scroll-margin-top: 7rem; }
.prose p  { color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; }
.prose ul { list-style: disc; list-style-position: inside; color: var(--muted); margin-bottom: 1.5rem; }
.prose ul li { margin-bottom: 0.5rem; }
.prose ol { list-style: decimal; list-style-position: inside; color: var(--muted); margin-bottom: 1.5rem; }
.prose ol li { margin-bottom: 0.5rem; }
.prose li strong { color: #d1d5db; font-weight: 500; }
.prose a  { color: var(--brand-400); text-decoration: underline; text-underline-offset: 4px; }
.prose a:hover { color: var(--brand-300); }
.prose blockquote {
  border-left: 3px solid var(--brand-400);
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  color: var(--muted);
}
.prose code:not(pre code) {
  background: var(--surface);
  border: 1px solid var(--subtle);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
  color: var(--brand-400);
}
.prose pre {
  background: var(--surface);
  border: 1px solid var(--subtle);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #d1d5db;
}

/* Markdown Tables */
.prose table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border: 1px solid var(--subtle);
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--surface);
  font-size: 0.875rem;
}
.prose th {
  padding: 0.625rem 1rem;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
  color: var(--muted);
  background: rgba(14, 14, 17, 0.5);
  border-bottom: 1px solid var(--subtle);
}
.prose td {
  padding: 0.75rem 1rem;
  vertical-align: top;
  border-top: 1px solid var(--subtle);
  color: #d1d5db;
}
.prose tr:first-child td {
  border-top: none;
}

/* Chroma Syntax Highlighting Theme */
.chroma { color: #d1d5db; background-color: var(--surface); }
.chroma .k, .chroma .kd, .chroma .kn, .chroma .kr, .chroma .nt { color: var(--brand-400); font-weight: 500; }
.chroma .s, .chroma .s1, .chroma .s2, .chroma .se, .chroma .sh { color: var(--emerald-400); }
.chroma .m, .chroma .mb, .chroma .mf, .chroma .mh, .chroma .mi, .chroma .mo { color: var(--orange-300); }
.chroma .c, .chroma .ch, .chroma .cm, .chroma .c1, .chroma .cs { color: #6b7280; font-style: italic; }
.chroma .o, .chroma .ow { color: var(--muted); }
.chroma .na { color: var(--accent-400); }
.chroma .nf, .chroma .fm { color: var(--brand-300); }

/* ----------------------------------------------------------
   31. DOCS SIDEBAR SCROLLBAR
   ---------------------------------------------------------- */
.sidebar-scroll::-webkit-scrollbar       { width: 4px; }
.sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.sidebar-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ----------------------------------------------------------
   32. GLOBAL BASE STYLES
   ---------------------------------------------------------- */
body {
  background-color: var(--base);
  -webkit-font-smoothing: antialiased;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

