:root {
  --ink: #070a09;
  --ink-2: #101615;
  --panel: #151d1b;
  --panel-2: #1d2825;
  --text: #f4f1e8;
  --muted: #b9b5a9;
  --dim: #817d73;
  --line: rgba(244, 241, 232, 0.14);
  --green: #2f8f6b;
  --green-2: #47b388;
  --gold: #c89c4d;
  --white: #ffffff;
  --shadow: 0 32px 100px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.5;
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(7, 10, 9, 0.76);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(18px, 4vw, 64px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 12px;
  text-decoration: none;
}

.brand-logo,
.footer-logo {
  border-radius: 50%;
  height: 42px;
  object-fit: cover;
  width: 42px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(14px, 3vw, 34px);
}

.site-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

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

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  padding: 8px;
  width: 44px;
}

.nav-toggle span {
  background: var(--text);
  display: block;
  height: 2px;
  margin: 5px 0;
}

.hero {
  background:
    linear-gradient(90deg, rgba(7, 10, 9, 0.96) 0%, rgba(7, 10, 9, 0.82) 42%, rgba(7, 10, 9, 0.18) 100%),
    url("assets/apollo-crypviz-style-bg-20260730.png") center right / cover no-repeat;
  display: grid;
  grid-template-columns: minmax(0, 920px);
  min-height: calc(100vh - 75px);
  overflow: hidden;
  padding: clamp(58px, 7vw, 112px) clamp(18px, 4vw, 64px) clamp(48px, 6vw, 88px);
  position: relative;
}

.hero::before {
  background: radial-gradient(circle at 80% 20%, rgba(71, 179, 136, 0.22), transparent 34%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero::after {
  animation: scan-drift 7s linear infinite;
  background:
    linear-gradient(180deg, transparent, rgba(71, 179, 136, 0.2), transparent),
    repeating-linear-gradient(90deg, transparent, transparent 118px, rgba(244, 241, 232, 0.05) 120px),
    repeating-linear-gradient(0deg, transparent, transparent 86px, rgba(71, 179, 136, 0.035) 88px);
  content: "";
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
  position: absolute;
}

.market-animation {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.market-animation::before,
.market-animation::after {
  animation: glow-drift 16s ease-in-out infinite alternate;
  background:
    radial-gradient(circle at 62% 42%, rgba(71, 179, 136, 0.28), transparent 14%),
    radial-gradient(circle at 84% 70%, rgba(200, 156, 77, 0.22), transparent 16%);
  content: "";
  filter: blur(18px);
  inset: -8%;
  opacity: 0.78;
  position: absolute;
}

.market-animation::after {
  animation-delay: -8s;
  animation-duration: 22s;
  transform: scale(1.16);
}

.ticker-line {
  animation: chart-slide 11s linear infinite;
  background: linear-gradient(90deg, transparent, rgba(93, 255, 174, 0.88), rgba(200, 156, 77, 0.7), transparent);
  height: 2px;
  position: absolute;
  right: -40%;
  transform-origin: center;
  width: 54%;
}

.ticker-line::before,
.ticker-line::after {
  background: inherit;
  content: "";
  height: 2px;
  position: absolute;
  width: 38%;
}

.ticker-line::before {
  left: 18%;
  top: -42px;
  transform: rotate(-13deg);
}

.ticker-line::after {
  left: 44%;
  top: 34px;
  transform: rotate(16deg);
}

.line-one {
  top: 30%;
}

.line-two {
  animation-delay: -4s;
  animation-duration: 14s;
  opacity: 0.72;
  top: 52%;
}

.line-three {
  animation-delay: -8s;
  animation-duration: 18s;
  opacity: 0.58;
  top: 74%;
}

.pulse-dot {
  animation: pulse-node 3.8s ease-in-out infinite;
  background: var(--green-2);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(71, 179, 136, 0.8);
  height: 8px;
  position: absolute;
  width: 8px;
}

.dot-one {
  right: 31%;
  top: 34%;
}

.dot-two {
  animation-delay: -1.3s;
  background: var(--gold);
  right: 18%;
  top: 57%;
}

.dot-three {
  animation-delay: -2.4s;
  right: 39%;
  top: 72%;
}

.orbit {
  animation: orbit-spin 24s linear infinite;
  border: 1px solid rgba(71, 179, 136, 0.34);
  border-radius: 50%;
  height: 340px;
  position: absolute;
  right: 4%;
  top: 42%;
  width: 340px;
}

.orbit::before {
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(200, 156, 77, 0.9);
  content: "";
  height: 7px;
  left: 50%;
  position: absolute;
  top: -4px;
  width: 7px;
}

.orbit-two {
  animation-duration: 36s;
  animation-direction: reverse;
  height: 460px;
  opacity: 0.64;
  right: -1%;
  top: 34%;
  width: 460px;
}

.matrix-rain {
  display: grid;
  gap: clamp(12px, 2.4vw, 42px);
  grid-template-columns: repeat(16, minmax(14px, 1fr));
  inset: 0;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 26%, #000 100%);
  opacity: 0.34;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.matrix-rain span {
  animation: matrix-fall 9s linear infinite;
  display: block;
  min-height: 36vh;
  overflow: visible;
  transform: translateY(-85vh);
}

.matrix-rain span::before {
  content: attr(data-code);
  color: rgba(93, 255, 174, 0.8);
  display: block;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(0.78rem, 1.1vw, 1rem);
  font-weight: 900;
  line-height: 1.35;
  text-orientation: upright;
  text-shadow:
    0 0 8px rgba(71, 179, 136, 0.82),
    0 0 22px rgba(71, 179, 136, 0.45);
  writing-mode: vertical-rl;
}

.matrix-rain span:nth-child(2n) {
  animation-duration: 12s;
}

.matrix-rain span:nth-child(2n)::before {
  color: rgba(244, 241, 232, 0.64);
}

.matrix-rain span:nth-child(3n) {
  animation-delay: -5s;
  animation-duration: 15s;
}

.matrix-rain span:nth-child(4n) {
  animation-delay: -9s;
  animation-duration: 18s;
}

.matrix-rain span:nth-child(5n) {
  animation-delay: -13s;
}

.matrix-rain span:nth-child(5n)::before {
  color: rgba(200, 156, 77, 0.68);
}

.hero-copy {
  align-self: center;
  max-width: 850px;
  position: relative;
  z-index: 2;
}

.hero-logo {
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  height: 92px;
  margin-bottom: 26px;
  object-fit: cover;
  width: 92px;
}

.eyebrow,
.example-type,
.plan-label {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.5rem, 8.5vw, 9.2rem);
  letter-spacing: 0;
  line-height: 0.86;
  margin-bottom: 30px;
}

h2 {
  font-size: clamp(2.35rem, 5.8vw, 6.8rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 24px;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-lede,
.section p,
.product-card p,
.workflow-item p,
details p,
.price-card li {
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-lede {
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 1px solid rgba(244, 241, 232, 0.34);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  text-decoration: none;
}

.button.primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--ink);
}

.button.primary:hover {
  background: var(--gold);
  border-color: var(--gold);
}

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

.hero-visual {
  display: none;
}

.metric-strip {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.metric-strip div {
  border-right: 1px solid var(--line);
  padding: 28px clamp(18px, 4vw, 64px);
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip strong,
.metric-strip span {
  display: block;
}

.metric-strip strong {
  font-size: 1.25rem;
}

.metric-strip span {
  color: var(--muted);
  margin-top: 5px;
}

.section {
  padding: clamp(76px, 9vw, 138px) clamp(18px, 4vw, 64px);
}

.split,
.platform,
.report-preview,
.pricing,
.contact {
  display: grid;
  gap: clamp(32px, 5vw, 86px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
}

.section-copy,
.section-heading {
  max-width: 860px;
}

.product-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 clamp(18px, 4vw, 64px) clamp(82px, 9vw, 140px);
}

.product-card,
.price-card,
.contact-form,
.terminal-panel,
.example-card {
  background: var(--panel);
  border: 1px solid var(--line);
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 28px;
}

.product-card.featured,
.featured-example {
  background: var(--text);
  color: var(--ink);
}

.product-card.featured p,
.product-card.featured .card-topline,
.featured-example p {
  color: rgba(7, 10, 9, 0.68);
}

.product-card a,
.text-link {
  color: var(--gold);
  font-weight: 900;
  margin-top: auto;
  text-decoration: none;
}

.product-card.featured a {
  color: var(--ink);
}

.card-topline {
  color: var(--dim);
  display: flex;
  font-size: 0.74rem;
  font-weight: 900;
  justify-content: space-between;
  margin-bottom: 56px;
  text-transform: uppercase;
}

.examples,
.faq {
  background: var(--ink-2);
}

.example-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.example-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1fr;
  overflow: hidden;
}

.example-preview {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  min-height: 250px;
  padding: 26px;
}

.example-preview span {
  border-radius: 5px 5px 0 0;
  display: block;
}

.example-preview span:nth-child(1) {
  height: 44%;
}

.example-preview span:nth-child(2) {
  height: 74%;
}

.example-preview span:nth-child(3) {
  height: 58%;
}

.example-preview.morning,
.example-preview.weekly,
.example-preview.candle {
  background: var(--panel-2);
}

.example-preview.stripe {
  background: #0a0d0c;
}

.example-preview.stripe span {
  background: var(--gold);
}

.example-preview.morning span,
.example-preview.candle span {
  background: var(--green);
}

.example-preview.weekly span {
  background: #537da0;
}

.example-preview.candle {
  background:
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(244, 241, 232, 0.08) 49px),
    var(--panel-2);
}

.example-preview.candle span {
  position: relative;
}

.example-preview.candle span::before {
  background: inherit;
  content: "";
  display: block;
  height: 150%;
  left: calc(50% - 1px);
  position: absolute;
  top: -25%;
  width: 2px;
}

.example-content {
  align-content: center;
  display: grid;
  padding: 30px;
}

.platform {
  background: var(--ink);
}

.workflow-list {
  display: grid;
  gap: 14px;
}

.workflow-item {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: 54px 1fr;
  padding: 26px 0;
}

.workflow-item span {
  color: var(--gold);
  font-weight: 900;
}

.workflow-item p {
  margin-bottom: 0;
}

.report-preview {
  align-items: center;
  background: var(--panel);
}

.terminal-panel {
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 36px);
}

.terminal-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.88rem;
  font-weight: 900;
  justify-content: space-between;
  padding-bottom: 18px;
}

.chart-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.4fr 1fr;
  margin-top: 28px;
}

.line-chart {
  aspect-ratio: 1.6;
  background:
    linear-gradient(135deg, transparent 47%, var(--green-2) 48%, var(--green-2) 50%, transparent 51%),
    linear-gradient(12deg, transparent 48%, var(--gold) 49%, var(--gold) 51%, transparent 52%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, var(--line) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 49px, var(--line) 50px);
  border: 1px solid var(--line);
}

.bars {
  align-items: end;
  border: 1px solid var(--line);
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(6, 1fr);
  padding: 18px;
}

.bars span {
  background: #537da0;
  border-radius: 4px 4px 0 0;
}

.bars span:nth-child(even) {
  background: var(--gold);
}

.data-table {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.data-table span {
  background: rgba(244, 241, 232, 0.12);
  height: 18px;
}

.pricing {
  align-items: center;
}

.price-card {
  box-shadow: var(--shadow);
  padding: clamp(26px, 4vw, 44px);
}

.price {
  color: var(--text);
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: 0.95;
}

.price-card ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 30px 0;
  padding: 0;
}

.price-card li {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.text-link {
  display: inline-block;
  margin-top: 16px;
}

.section-heading {
  margin-bottom: 42px;
}

details {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 900;
}

details p {
  margin: 12px 0 0;
  max-width: 780px;
}

.contact {
  align-items: start;
  background: var(--ink);
}

.subscription-page {
  background:
    radial-gradient(circle at 18% 10%, rgba(48, 209, 161, 0.16), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(86, 166, 255, 0.12), transparent 30%),
    var(--bg);
}

.subscription-page .metric-strip {
  background: rgba(3, 7, 10, 0.92);
  border-color: rgba(244, 241, 232, 0.22);
}

.subscription-page .metric-strip div {
  border-color: rgba(244, 241, 232, 0.18);
}

.subscription-page .metric-strip span {
  color: #eee9db;
  font-weight: 700;
}

.subscription-hero {
  min-height: 690px;
}

.subscription-visual {
  min-height: 460px;
}

.subscription-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 44px;
  background:
    linear-gradient(180deg, rgba(3, 7, 10, 0.96), rgba(6, 14, 20, 0.96)),
    var(--ink);
}

.subscription-detail .section-kicker,
.checkout-copy {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 8px;
  background: rgba(3, 7, 10, 0.74);
}

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

.detail-grid article {
  min-height: 240px;
  padding: 26px;
  border: 1px solid rgba(244, 241, 232, 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 31, 44, 0.98), rgba(5, 12, 18, 0.99));
  box-shadow: var(--shadow);
}

.detail-grid span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  border: 1px solid rgba(61, 226, 177, 0.44);
  border-radius: 50%;
  color: var(--mint);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
}

.detail-grid h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.detail-grid p,
.checkout-copy p,
.stripe-checkout-card p {
  margin: 0;
  color: #eee9db;
  font-weight: 600;
}

.checkout-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr);
  gap: 36px;
  align-items: start;
  background:
    radial-gradient(circle at 76% 8%, rgba(61, 226, 177, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(5, 12, 18, 0.98), rgba(3, 7, 10, 0.98));
}

.checkout-copy {
  padding-top: clamp(22px, 3vw, 34px);
}

.checkout-copy h2 {
  margin: 0 0 16px;
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 0.95;
}

.checkout-copy ul {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.checkout-copy li {
  position: relative;
  padding-left: 30px;
  color: #fffaf0;
  font-weight: 800;
}

.checkout-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mint), transparent 70%);
  box-shadow: 0 0 18px rgba(61, 226, 177, 0.72);
}

.stripe-checkout-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(61, 226, 177, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(61, 226, 177, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(12, 27, 39, 0.96), rgba(5, 12, 18, 0.98));
  box-shadow: var(--shadow);
}

.stripe-checkout-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.38;
}

.stripe-checkout-card > * {
  position: relative;
  z-index: 1;
}

.stripe-checkout-card h3 {
  margin: 10px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.stripe-button-frame {
  min-height: 112px;
  margin-top: 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.subscription-report-preview {
  margin-bottom: 24px;
}

.report-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12, 27, 39, 0.96), rgba(5, 12, 18, 0.98));
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
}

.window-bar span:nth-child(2) {
  background: var(--gold);
}

.window-bar span:nth-child(3) {
  background: #537da0;
}

.window-bar strong {
  margin-left: auto;
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.report-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
  padding: 18px;
}

.chart-card {
  min-height: 138px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, transparent 47%, var(--green-2) 48%, var(--green-2) 50%, transparent 51%),
    linear-gradient(12deg, transparent 48%, var(--gold) 49%, var(--gold) 51%, transparent 52%),
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(244, 241, 232, 0.09) 32px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(244, 241, 232, 0.09) 40px);
}

.chart-card.tall {
  grid-row: span 2;
}

.chart-card.wide {
  grid-column: 1 / -1;
  min-height: 96px;
}

.preview-copy p {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 34px);
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.9rem;
  font-weight: 900;
  gap: 8px;
}

input,
select,
textarea {
  background: rgba(244, 241, 232, 0.05);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  font: inherit;
  padding: 13px;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(200, 156, 77, 0.16);
}

.site-footer {
  background: #030404;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr auto;
  padding: 38px clamp(18px, 4vw, 64px);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer p {
  margin: 0;
  max-width: 680px;
}

.fine-print {
  grid-column: 1 / -1;
}

.library-hero {
  background:
    linear-gradient(90deg, rgba(7, 10, 9, 0.96), rgba(7, 10, 9, 0.68)),
    url("assets/apollo-crypviz-style-bg-20260730.png") center right / cover no-repeat;
  padding: clamp(76px, 10vw, 150px) clamp(18px, 4vw, 64px);
}

.library-hero p {
  color: var(--muted);
  max-width: 760px;
}

.pattern-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 clamp(18px, 4vw, 64px) clamp(82px, 9vw, 140px);
}

.pattern-card {
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 310px;
  padding: 24px;
}

.pattern-card h2 {
  font-size: clamp(1.28rem, 2vw, 1.7rem);
  line-height: 1.05;
  margin-top: 24px;
}

.pattern-card p {
  color: var(--muted);
}

.library-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 clamp(18px, 4vw, 64px) 28px;
}

.filter-button {
  background: rgba(244, 241, 232, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 42px;
  padding: 0 16px;
}

.filter-button.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--ink);
}

.pattern-card.is-hidden {
  display: none;
}

.pattern-chart {
  background: rgba(244, 241, 232, 0.96);
  border: 1px solid var(--line);
  display: block;
  height: 150px;
  object-fit: contain;
  padding: 10px;
  width: 100%;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pattern-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .example-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero,
  .split,
  .platform,
  .report-preview,
  .pricing,
  .contact,
  .subscription-detail,
  .checkout-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-visual {
    display: none;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 18px 18px 24px;
    position: absolute;
    right: 0;
    top: 75px;
  }

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

  .metric-strip,
  .product-grid,
  .example-grid,
  .pattern-grid,
  .chart-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 270px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .brand span {
    max-width: 190px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .subscription-hero {
    min-height: 760px;
  }

  .stripe-checkout-card {
    padding: 22px;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .chart-card.tall,
  .chart-card.wide {
    grid-column: auto;
    grid-row: auto;
  }
}

@keyframes matrix-fall {
  0% {
    transform: translateY(-90vh);
  }

  100% {
    transform: translateY(120vh);
  }
}

@keyframes scan-drift {
  0% {
    background-position: 0 -100vh, 0 0;
  }

  100% {
    background-position: 0 100vh, 120px 0;
  }
}

@keyframes chart-slide {
  0% {
    transform: translateX(0) rotate(-8deg);
  }

  100% {
    transform: translateX(-190vw) rotate(-8deg);
  }
}

@keyframes pulse-node {
  0%,
  100% {
    opacity: 0.36;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.9);
  }
}

@keyframes orbit-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes glow-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(-4%, 5%, 0) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .matrix-rain span,
  .market-animation::before,
  .market-animation::after,
  .ticker-line,
  .pulse-dot,
  .orbit {
    animation: none;
  }
}
