:root {
  --bg: #10100f;
  --surface: #171615;
  --surface-2: #1d1c1a;
  --ink: #f0eee8;
  --muted: #9e9a90;
  --dim: #6f6a62;
  --line: #302e2b;
  --line-strong: #45413b;
  --hot: #f26d3d;
  --blue: #2d8bd8;
  --green: #72b661;
  --gold: #d0a248;
  --font-ui: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  --max: 1540px;
}

* {
  box-sizing: border-box;
}

html {
  background: #050505;
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(242, 109, 61, 0.08), transparent 22rem),
    radial-gradient(circle at 86% 24%, rgba(45, 139, 216, 0.07), transparent 25rem),
    #050505;
  font-family: var(--font-ui);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 4px, 48px 100%;
  opacity: 0.22;
  mix-blend-mode: screen;
}

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

a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

code {
  font-family: var(--font-mono);
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 2px;
  background: transparent;
}

.scroll-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--hot), var(--blue), var(--green));
}

.site-shell {
  width: min(calc(100% - 48px), var(--max));
  margin: 44px auto;
  overflow: clip;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(19, 18, 17, 0.96);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 18px clamp(20px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(23, 22, 21, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.brand-type {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.79rem;
  font-weight: 600;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 8px 0;
  transition: color 160ms ease;
}

.nav a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::before {
  opacity: 0.72;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
}

.hero {
  padding: clamp(42px, 6vw, 88px) clamp(20px, 3vw, 44px) clamp(32px, 5vw, 68px);
  border-bottom: 1px solid var(--line);
}

.hero-meta,
.hero-actions,
.source-strip,
.story-tags,
.footer-links {
  display: flex;
  flex-wrap: wrap;
}

.secured-radar {
  display: grid;
  grid-template-columns: minmax(220px, 0.26fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: stretch;
}

.radar-copy {
  display: grid;
  align-content: space-between;
  gap: 24px;
  min-height: 148px;
  padding-top: 2px;
}

.radar-copy span,
.feed-row span {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
}

.radar-copy span {
  color: var(--green);
  font-size: 0.78rem;
}

.radar-copy strong {
  max-width: 18rem;
  color: var(--ink);
  font-size: clamp(1.42rem, 2.2vw, 2.2rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.radar-feed {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 148px;
  overflow: hidden;
  border-block: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 20% 100%, 100% 36px;
  perspective: 960px;
}

.feed-row {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 24px;
  min-width: 0;
  min-height: 146px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  opacity: 0.74;
  backface-visibility: hidden;
  transform: rotateX(0deg);
  transform-origin: center bottom;
  transition:
    color 360ms ease,
    opacity 360ms ease,
    transform 360ms ease,
    filter 360ms ease;
  transform-style: preserve-3d;
}

.feed-row::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 20px currentColor;
  transition: background-color 360ms ease, box-shadow 360ms ease;
}

.feed-row span {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(0.92rem, 1.4vw, 1.22rem);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-row p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.28;
}

.feed-row.accent-hot {
  color: var(--hot);
}

.feed-row.accent-blue {
  color: var(--blue);
}

.feed-row.accent-green {
  color: var(--green);
}

.feed-row.accent-gold {
  color: var(--gold);
}

.feed-row.is-lit {
  opacity: 1;
  filter: brightness(1.12);
}

.feed-row.is-entering {
  opacity: 0.28;
  transform: rotateX(92deg);
}

.feed-row.is-swapping {
  opacity: 0.28;
  transform: rotateX(-92deg);
}

.hero-meta {
  gap: 9px 18px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-meta span:not(:last-child)::after {
  content: "/";
  margin-left: 18px;
  color: var(--line-strong);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.34fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: end;
  margin-top: clamp(38px, 6vw, 76px);
}

.hero-copy,
.hero-brief,
.story-main,
.side-rail,
.ranked-story > div {
  min-width: 0;
}

.eyebrow,
.story-kicker,
.section-label span,
.highlight-card span,
.side-rail h2,
.side-rail span,
.compare article span,
.guide-list span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin-top: 14px;
  color: var(--ink);
  font-size: 12.8rem;
  font-weight: 800;
  line-height: 0.78;
  text-transform: uppercase;
}

.lede {
  width: min(100%, 820px);
  margin-top: clamp(20px, 3vw, 34px);
  color: var(--ink);
  font-size: 2.15rem;
  font-weight: 600;
  line-height: 1.12;
}

.hero-brief {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.hero-brief div {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.hero-brief p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.hero-brief code {
  color: var(--ink);
  font-size: 0.92em;
}

.tiny-icon {
  width: 13px;
  height: 13px;
  margin-top: 4px;
  border: 1px solid var(--hot);
  border-radius: 50%;
}

.tiny-icon.square {
  border-color: var(--blue);
  border-radius: 2px;
}

.tiny-icon.triangle {
  width: 0;
  height: 0;
  border: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 13px solid var(--green);
  border-radius: 0;
}

.hero-actions {
  gap: 12px;
  margin-top: clamp(32px, 5vw, 58px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--hot);
  background: var(--hot);
  color: #11100f;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.035);
}

.button.text {
  border-color: transparent;
  color: var(--muted);
}

.button.text:hover {
  color: var(--ink);
}

.highlights,
.story-layout,
.compare,
.guides,
.secured-radar-section,
.final-cta {
  padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
}

.section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.section-label h2,
.list-heading h2,
.final-cta h2 {
  color: var(--ink);
  font-size: 1.95rem;
  line-height: 1;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.highlight-card {
  min-height: 164px;
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.highlight-card:hover {
  transform: translateY(-2px);
  border-color: var(--muted);
  background: #22211f;
}

.highlight-card strong {
  max-width: 18rem;
  color: var(--ink);
  font-size: 1.14rem;
  line-height: 1.22;
}

.highlight-card.accent-hot span {
  color: var(--hot);
}

.highlight-card.accent-blue span {
  color: var(--blue);
}

.highlight-card.accent-green span {
  color: var(--green);
}

.highlight-card .package-count {
  margin-left: 0.52em;
  color: #88a982;
  font-size: 0.94em;
  font-weight: 700;
}

.highlight-card.accent-gold span {
  color: var(--gold);
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.32fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: start;
}

.list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.list-heading p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
}

.list-heading span {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ranked-story {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
}

.rank {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

.ranked-story h3 {
  max-width: 930px;
  margin-top: 5px;
  color: var(--ink);
  font-size: 2.25rem;
  line-height: 1.04;
}

.ranked-story p:not(.story-kicker) {
  max-width: 930px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.ranked-story a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hot);
  text-underline-offset: 0.22em;
}

.story-tags,
.source-strip {
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.story-tags li,
.source-strip span {
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.inline-prompt {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  width: min(100%, 720px);
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #131211;
}

.inline-prompt span {
  grid-column: 1 / -1;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.inline-prompt strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.4;
}

.inline-prompt i {
  min-width: 82px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.inline-prompt i:last-child {
  border-color: var(--green);
  color: var(--green);
}

.app-shot {
  width: min(100%, 760px);
  margin-top: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: #0b0b0a;
}

.app-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.side-rail {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 30px;
}

.side-rail section {
  display: grid;
  gap: 12px;
}

.side-rail h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
}

.side-rail article,
.rail-link {
  display: block;
  padding: 15px;
  border: 1px solid var(--line);
  background: #151412;
}

.side-rail strong,
.rail-link strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.32;
}

.side-rail p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.rail-link {
  transition: border-color 160ms ease, transform 160ms ease;
}

.rail-link:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.compare,
.guides {
  display: grid;
  grid-template-columns: minmax(220px, 0.26fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.compare article {
  min-height: 230px;
  padding: 18px;
  border-left: 1px solid var(--line-strong);
}

.compare article h3 {
  margin-top: 44px;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.06;
}

.compare article p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.guide-list {
  display: grid;
}

.guide-list a {
  display: grid;
  grid-template-columns: 44px minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: color 160ms ease, padding-left 160ms ease;
}

.guide-list a:first-child {
  border-top: 1px solid var(--line);
}

.guide-list a:hover {
  padding-left: 8px;
}

.guide-list strong {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.25;
}

.guide-list p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.final-cta {
  display: grid;
  gap: 28px;
  padding-block: clamp(48px, 7vw, 96px);
}

.final-cta h2 {
  max-width: 950px;
  font-size: 6.25rem;
  line-height: 0.9;
  text-transform: uppercase;
}

.final-cta div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 3vw, 44px);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-links {
  gap: 14px 22px;
}

.footer-links a:hover {
  color: var(--ink);
}

.reveal-ready .feature-section,
.reveal-ready .highlight-card,
.reveal-ready .final-cta {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal-ready .feature-section.is-visible,
.reveal-ready .highlight-card.is-visible,
.reveal-ready .final-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--max));
    margin: 20px auto;
  }

  h1 {
    font-size: 8.7rem;
  }

  .lede {
    font-size: 1.75rem;
  }

  .hero-grid,
  .story-layout,
  .secured-radar,
  .compare,
  .guides {
    grid-template-columns: 1fr;
  }

  .radar-feed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feed-row:nth-child(n + 4) {
    display: none;
  }

  .highlight-grid,
  .compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-cta h2 {
    font-size: 4.8rem;
  }
}

@media (max-width: 760px) {
  .masthead {
    align-items: flex-start;
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(23, 22, 21, 0.98);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-meta span:not(:last-child)::after {
    display: none;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    min-width: 0;
  }

  .button.text {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 0;
  }

  h1 {
    font-size: 4.4rem;
    max-width: 100%;
  }

  .lede {
    font-size: 1.38rem;
    line-height: 1.2;
  }

  .section-label h2,
  .list-heading h2 {
    font-size: 1.72rem;
  }

  .radar-feed {
    grid-template-columns: 1fr;
  }

  .feed-row {
    grid-template-columns: minmax(98px, 0.34fr) minmax(0, 1fr);
    align-content: center;
    align-items: center;
    min-height: 54px;
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feed-row::before {
    display: none;
  }

  .feed-row p {
    font-size: 0.84rem;
  }

  .feed-row:nth-child(n + 4) {
    display: none;
  }

  .ranked-story h3 {
    font-size: 1.72rem;
  }

  .ranked-story p:not(.story-kicker) {
    font-size: 1rem;
  }

  .compare article h3 {
    font-size: 1.36rem;
  }

  .final-cta h2 {
    font-size: 3.1rem;
  }

  .highlight-grid,
  .side-rail,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .ranked-story {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .rank {
    text-align: left;
  }

  .inline-prompt {
    grid-template-columns: 1fr 1fr;
  }

  .inline-prompt strong {
    grid-column: 1 / -1;
  }

  .guide-list a {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .guide-list p {
    grid-column: 2;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: 100%;
    margin: 0;
    border-inline: 0;
    border-radius: 0;
  }

  .brand-type {
    font-size: 0.84rem;
  }

  .hero,
  .highlights,
  .story-layout,
  .compare,
  .guides,
  .secured-radar-section,
  .final-cta {
    padding-inline: 18px;
  }

  .section-label {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 3.9rem;
  }

  .lede {
    font-size: 1.28rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
