/* BrokeBuild — single stylesheet.
   "Mac Pro at midnight": a dark stage lit by pools of light. True-black
   chapters with depth gradients, metallic silver type, dark-glass
   surfaces with machined top-edge highlights, and the brand gradient
   used only as light — glows, rings, and one lit panel border.
   System fonts only. No external resources. */

:root {
  /* The stage: blacks and near-blacks, never a light chapter. */
  --bg: #050507;
  --bg-deep: #000000;
  --bg-2: #0a0a0f;
  /* Dark glass surfaces. */
  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.06);
  --glass-grad: linear-gradient(180deg,
    rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  /* Metallic type system. */
  --ink: #f5f5f7;
  --body: #d6d6dc;
  --muted: #a1a1a6;
  --faint: #86868b;
  --metal: linear-gradient(180deg,
    #fafafa 0%, #e3e3e8 42%, #c2c2c9 68%, #a7a7ad 100%);
  --metal-hero: linear-gradient(180deg,
    #ffffff 0%, #f2f2f5 34%, #cfcfd6 66%, #a7a7ad 100%);
  /* Hairlines and light. */
  --hairline: rgba(255, 255, 255, 0.12);
  --hairline-soft: rgba(255, 255, 255, 0.08);
  --edge: rgba(255, 255, 255, 0.10);
  --edge-hi: rgba(255, 255, 255, 0.22);
  --link: #2997ff;
  --glow-blue: rgba(41, 151, 255, 0.16);
  --glow-violet: rgba(125, 74, 255, 0.14);
  /* CTAs: near-white pill on the dark stage, ghost glass secondary. */
  --cta: #f5f5f7;
  --cta-ink: #000000;
  --cta-hover: #ffffff;
  /* Code: the deepest black on the page. */
  --code-bg: #030304;
  --code-ink: #e6e6e6;
  /* The brand gradient survives only as light. */
  --grad: linear-gradient(92deg, #2997ff 0%, #7d4aff 48%, #ff6482 100%);
  --grad-soft: linear-gradient(120deg,
    rgba(41, 151, 255, 0.65), rgba(125, 74, 255, 0.5), rgba(255, 100, 130, 0.45));
  --radius: 20px;
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 40px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 28px 56px rgba(0, 0, 0, 0.65), 0 0 44px rgba(41, 151, 255, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html, body { overflow-x: clip; }

body {
  margin: 0;
  /* Depth instead of alternation: charcoal at the top settling
     into near-black, chapter to chapter. */
  background: linear-gradient(180deg,
    #0a0a0f 0, #050507 34rem, #050507 100%) fixed, var(--bg);
  background-color: var(--bg);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(41, 151, 255, 0.38); color: #ffffff; }

main {
  display: block;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Display type: oversized, tight — in a silver/titanium sheen. */
h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: clamp(2.5rem, 6vw, 4rem) 0 1rem;
  color: var(--ink);
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 4.25rem 0 1rem;
  color: var(--ink);
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 1.75rem 0 0.5rem;
  color: var(--ink);
}
h2 + p { color: var(--muted); font-size: 1.13rem; line-height: 1.55; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }
strong { font-weight: 600; color: var(--ink); }

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 5px rgba(41, 151, 255, 0.18),
    0 0 18px rgba(41, 151, 255, 0.25);
}

code, pre, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
}

code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.12em 0.38em;
  border-radius: 6px;
  font-size: 0.92em;
  color: var(--ink);
}

/* Code blocks: deepest black, muted window dots, luminous text,
   a glow at the border like a lit panel in a dark room. */
pre {
  position: relative;
  background: var(--code-bg);
  color: var(--code-ink);
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 2.9rem 1.25rem 1.25rem;
  border-radius: 16px;
  overflow-x: auto;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 24px 48px rgba(0, 0, 0, 0.6),
    0 0 44px rgba(41, 151, 255, 0.05);
}
pre::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px 16px 0 0;
  background:
    radial-gradient(circle 6px at 24px 50%, #d84f48 98%, transparent),
    radial-gradient(circle 6px at 46px 50%, #dfa92e 98%, transparent),
    radial-gradient(circle 6px at 68px 50%, #37a24d 98%, transparent);
}
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

img { max-width: 100%; height: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -5rem; z-index: 60;
  background: var(--ink); color: #000; padding: 0.6rem 1.2rem;
  border-radius: 999px; text-decoration: none; font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus-visible { top: 0.75rem; color: #000; }

/* ---------- Reveal on scroll (progressive enhancement) ----------
   Elements are fully visible by default. main.js adds .reveal only
   when JS + IntersectionObserver are available, and .revealed as
   each element enters the viewport. No-JS = everything visible. */

.reveal { opacity: 0; }
.reveal.revealed {
  opacity: 1;
  transition: opacity 0.8s ease;
  animation: bb-rise 0.9s var(--ease-out) backwards;
}
@keyframes bb-rise {
  from { transform: translateY(26px); }
  to { transform: translateY(0); }
}

/* ---------- Header: sticky dark frosted glass ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 8, 0.68);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid var(--hairline-soft);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}
.header-inner {
  max-width: 62rem; margin: 0 auto; padding: 0.65rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.5rem;
}
.brand {
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.site-nav {
  display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem;
  font-size: 0.875rem;
}
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.header-cta {
  margin-left: auto;
  background: var(--cta); color: var(--cta-ink); text-decoration: none;
  font-size: 0.875rem; font-weight: 600;
  padding: 0.45rem 1.05rem; border-radius: 999px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.header-cta:hover {
  background: var(--cta-hover); text-decoration: none;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.16),
    0 0 22px rgba(41, 151, 255, 0.22);
}
@media (max-width: 45rem) {
  .site-nav {
    order: 3; flex-basis: 100%; flex-wrap: nowrap;
    overflow-x: auto; padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav a { white-space: nowrap; }
}

/* ---------- Footer: deepest black, quiet ---------- */

.site-footer {
  background: var(--bg-deep);
  color: var(--muted);
  border-top: 1px solid var(--hairline-soft);
}
.footer-inner {
  max-width: 62rem; margin: 0 auto; padding: 3rem 1.25rem 3.5rem;
}
.footer-brand { font-weight: 600; font-size: 1.05rem; color: var(--ink); margin-bottom: 0.5rem; }
.footer-tagline { font-weight: 400; color: var(--faint); }
.footer-tagline::before { content: "— "; }
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem;
  margin-bottom: 1.25rem; font-size: 0.95rem;
  padding-top: 1.25rem; border-top: 1px solid var(--hairline-soft);
}
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: none; }
.disclosure { color: var(--faint); font-size: 0.85rem; line-height: 1.6; max-width: 44rem; }
.disclosure a { color: var(--muted); }
.copyright { color: var(--faint); font-size: 0.9rem; margin: 0; }

/* ---------- Homepage hero: a lit object on a dark stage ---------- */

.search-hero {
  position: relative;
  z-index: 0;
  text-align: center;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 7vw, 4.5rem);
}
.search-hero::before {
  /* Shadow light: soft pools of blue and violet thrown on the
     darkness behind the headline. */
  content: "";
  position: absolute;
  z-index: -1;
  top: -6rem; bottom: auto;
  left: 50%; transform: translateX(-50%);
  width: 100vw; height: 40rem;
  background:
    radial-gradient(38rem 21rem at 30% 0%, rgba(41, 151, 255, 0.17), transparent 62%),
    radial-gradient(32rem 19rem at 72% 6%, rgba(125, 74, 255, 0.15), transparent 62%),
    radial-gradient(30rem 16rem at 55% 40%, rgba(255, 100, 130, 0.07), transparent 62%),
    radial-gradient(46rem 12rem at 50% 58%, rgba(41, 151, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.search-hero h1 {
  font-size: clamp(3.25rem, 9vw, 5.75rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--ink);
  background: var(--metal-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* The light the metal throws onto the stage beneath it. */
  filter: drop-shadow(0 14px 44px rgba(41, 151, 255, 0.22));
}
.hero-tagline {
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 0.5rem;
}

.search-box {
  display: flex; align-items: center; gap: 0.5rem;
  max-width: 40rem; margin: 2.5rem auto 1.5rem;
  background: var(--glass-2);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--edge-hi);
  border-radius: 999px;
  padding: 0.45rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 24px 60px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.3s ease;
}
.search-box:focus-within {
  border: 1px solid transparent;
  background: linear-gradient(rgba(20, 20, 26, 0.92),
      rgba(20, 20, 26, 0.92)) padding-box,
    var(--grad) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 0 0 4px rgba(41, 151, 255, 0.16),
    0 0 34px rgba(41, 151, 255, 0.14);
}
.search-box input {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent;
  font: inherit; font-size: 1.125rem; padding: 0.6rem 0.6rem 0.6rem 1.4rem;
  color: var(--ink);
}
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus { outline: none; }
.search-box button {
  flex: 0 0 auto; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--cta); color: var(--cta-ink); font: inherit; font-weight: 600;
  padding: 0.8rem 1.6rem;
  box-shadow: 0 8px 26px rgba(255, 255, 255, 0.12),
    0 0 22px rgba(41, 151, 255, 0.18);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.search-box button:hover {
  background: var(--cta-hover);
  box-shadow: 0 8px 26px rgba(255, 255, 255, 0.18),
    0 0 30px rgba(41, 151, 255, 0.28);
}
.search-box button:disabled { opacity: 0.9; cursor: default; }
.search-box input:disabled { cursor: text; }

.chip-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem;
}
.chip-row {
  display: flex; flex-wrap: wrap; gap: 0.55rem; justify-content: center;
  margin: 0;
}
.error-chip {
  display: inline-block; padding: 0.45rem 1rem; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--glass);
  color: var(--body); font-size: 0.92rem; text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.error-chip:hover {
  text-decoration: none; transform: translateY(-2px);
  border-color: var(--edge-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 10px 26px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(41, 151, 255, 0.13);
}

.how-it-works {
  position: relative;
  z-index: 0;
  background: var(--glass-grad);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  margin-top: clamp(3rem, 7vw, 4.5rem);
  box-shadow: var(--shadow-card);
}
.how-it-works::before {
  /* A single quiet pool of violet light behind the panel. */
  content: "";
  position: absolute;
  z-index: -1;
  inset: -3rem -1.5rem;
  background: radial-gradient(closest-side,
    rgba(125, 74, 255, 0.1), transparent 72%);
  pointer-events: none;
}
.how-it-works h2 { margin-top: 0; }
.how-steps { padding-left: 1.4rem; margin-bottom: 0; }
.how-steps li { margin-bottom: 0.7rem; }
.how-steps li::marker { color: var(--link); font-weight: 700; }
.how-steps li:last-child { margin-bottom: 0; }

/* ---------- Cards & lists: dark glass, machined edges ---------- */

.card-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
@media (min-width: 36rem) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
.card {
  display: block;
  background: var(--glass-grad);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 1.9rem;
  color: var(--body); text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease,
    border-color 0.3s ease;
}
.card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--edge-hi);
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.4rem; background: none; -webkit-text-fill-color: currentColor; color: var(--ink); }
.card p { color: var(--muted); margin-bottom: 0.5rem; line-height: 1.55; }
.card .card-count {
  color: var(--link); font-weight: 600; font-size: 0.95rem;
  margin: 1rem 0 0;
}

.hub-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.hub-list li {
  background: var(--glass-grad);
  border: 1px solid var(--edge);
  border-radius: 18px;
  padding: 1.6rem 1.9rem; margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease,
    border-color 0.3s ease;
}
.hub-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--edge-hi);
}
.hub-list a {
  font-weight: 600; font-size: 1.3rem; letter-spacing: -0.015em;
  color: var(--ink); text-decoration: none;
}
.hub-list a:hover { color: var(--link); text-decoration: none; }
.hub-list p { color: var(--muted); margin: 0.35rem 0 0; }

.category-line {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-top: -0.25rem;
}
.category-line a { color: var(--link); text-decoration: none; }
.category-line a:hover { text-decoration: underline; }

/* ---------- Fix-page components ---------- */

.tldr {
  position: relative;
  z-index: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 0 0 2.5rem;
  /* Dark glass lit by a gradient border — light, not paint. */
  background: linear-gradient(rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.055)) padding-box, var(--grad-soft) border-box;
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.55);
}
.tldr::before {
  /* The spotlight the panel sits in. */
  content: "";
  position: absolute;
  z-index: -1;
  inset: -3.5rem -1.75rem;
  background: radial-gradient(closest-side,
    rgba(41, 151, 255, 0.13), rgba(125, 74, 255, 0.06) 55%, transparent 75%);
  pointer-events: none;
}
.tldr h2 {
  margin: 0 0 0.6rem; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.tldr p:last-child { margin-bottom: 0; }

.fix-steps { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.fix-steps > li { margin-bottom: 1.4rem; padding-left: 0.25rem; }
.fix-steps > li::marker { font-weight: 700; color: var(--link); }

.prompt-block {
  position: relative;
  background: linear-gradient(180deg, #0a0a10, var(--code-bg));
  color: var(--code-ink);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 3.4rem 1.5rem 1.5rem;
  margin: 0 0 2rem;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 0 54px rgba(41, 151, 255, 0.07);
}
.prompt-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle 6px at 24px 50%, #d84f48 98%, transparent),
    radial-gradient(circle 6px at 46px 50%, #dfa92e 98%, transparent),
    radial-gradient(circle 6px at 68px 50%, #37a24d 98%, transparent);
}
.prompt-block pre {
  background: none; border: 0; box-shadow: none;
  padding: 0; margin: 0; border-radius: 0;
  white-space: pre-wrap; word-break: break-word;
  color: var(--code-ink);
}
.prompt-block pre::before { content: none; }
.copy-btn {
  position: absolute; top: 0.42rem; right: 0.8rem; z-index: 1;
  background: rgba(255, 255, 255, 0.08); color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px;
  font: inherit; font-size: 0.85rem; font-weight: 600;
  padding: 0.38rem 1rem; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 16px rgba(41, 151, 255, 0.18);
}

.tool-slot {
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: 18px;
  padding: 1.6rem 1.9rem;
  margin: 0 0 2rem;
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 30px rgba(0, 0, 0, 0.4);
}
.tool-slot-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem;
}
.tool-slot p:last-child { margin-bottom: 0; }
.tool-slot a { font-weight: 600; }

.related {
  border-top: 1px solid var(--hairline-soft);
  margin-top: 4rem; padding-top: 0.5rem;
}
.related h2 { font-size: 1.6rem; margin-top: 1.5rem; }
.related ul { list-style: none; padding: 0; }
.related li { margin-bottom: 0.6rem; }
.related a {
  color: var(--ink); font-weight: 600; font-size: 1.05rem;
  text-decoration: none;
}
.related a:hover { color: var(--link); text-decoration: none; }

/* ---------- Newsletter: the deepest dark chapter ---------- */

.newsletter {
  position: relative;
  overflow: hidden;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-top: clamp(4.5rem, 10vw, 7rem);
  background: var(--bg-deep);
  color: var(--ink);
  text-align: center;
  padding: clamp(4.5rem, 10vw, 7rem) max(1.25rem, calc(50vw - 23rem));
}
.newsletter::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 100%;
  background:
    radial-gradient(42rem 16rem at 50% -6%, rgba(125, 74, 255, 0.2), transparent 62%),
    radial-gradient(30rem 14rem at 12% 110%, rgba(41, 151, 255, 0.13), transparent 62%),
    radial-gradient(30rem 14rem at 88% 110%, rgba(255, 100, 130, 0.08), transparent 62%);
  pointer-events: none;
}
.newsletter h2 {
  position: relative;
  margin: 0 0 0.75rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.025em;
}
.newsletter p {
  position: relative;
  color: var(--muted); max-width: 34rem; margin: 0 auto 0.5rem;
  font-size: 1.13rem; line-height: 1.55;
}
.newsletter-form {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
  margin-top: 1.75rem;
}
.newsletter-form input {
  flex: 1 1 15rem; max-width: 22rem;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); color: var(--ink);
  font: inherit; padding: 0.85rem 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form button {
  border: 0; border-radius: 999px; cursor: pointer; font: inherit;
  font-weight: 600; padding: 0.85rem 1.7rem;
  background: var(--cta); color: var(--cta-ink);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.13),
    0 0 26px rgba(41, 151, 255, 0.2);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.newsletter-form button:hover {
  background: var(--cta-hover);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.2),
    0 0 34px rgba(41, 151, 255, 0.3);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; }
  .reveal.revealed { animation: none; }
  .card:hover, .hub-list li:hover, .error-chip:hover { transform: none; }
  .search-hero h1 { filter: none; }
}
