[data-density="dense"] {
  --section-py: clamp(56px, 7vw, 96px);
  --gutter: clamp(16px, 2.4vw, 32px);
}
.font-display {
  font-family: "Sora", "Sora Fallback", system-ui, sans-serif;
  letter-spacing: -0.03em;
}
.eyebrow-muted {
  color: var(--ink-3);
}
.container-narrow {
  max-width: 980px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
[data-motion="subtle"] .reveal {
  transition-duration: 0.5s;
  transform: translateY(8px);
}
.hero-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(
      ellipse 90% 60% at 70% 0%,
      rgba(218, 171, 45, 0.18),
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 50% at 0% 30%,
      rgba(83, 223, 221, 0.05),
      transparent 60%
    ),
    linear-gradient(180deg, #020B13 0%, #050f1a 100%);
  border-bottom: 1px solid var(--line);
  padding-top: 120px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 0%, transparent 80%);
  pointer-events: none;
  opacity: 0.5;
}
.noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[data-motion="subtle"] .gold-shimmer {
  animation: none;
  background-position: 25% 50%;
}
.cta-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 18px 40px -10px rgba(218, 171, 45, 0.7);
}
.cta-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}
.universe {
  background: linear-gradient(180deg, #020B13 0%, #04101c 100%);
}
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s ease;
}
.cat-tab:hover {
  border-color: var(--line-2);
  color: var(--ink-1);
}
.cat-tab.active {
  background: var(--gold);
  color: var(--obsidian);
  border-color: var(--gold);
}
.cat-tab .pill {
  font-family: "JetBrains Mono", "JetBrains Mono Fallback", monospace;
  font-size:12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 999px;
}
.cat-tab.active .pill {
  background: rgba(2, 11, 19, 0.18);
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px,100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.calc-cell {
  background: linear-gradient(180deg, #061320 0%, #04101c 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 168px;
  transition: background 0.3s ease;
  position: relative;
  cursor: pointer;
}
.calc-cell:hover {
  background: linear-gradient(180deg, #0a1c2c 0%, #07182a 100%);
}
.calc-cell .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-3);
  font-family: "JetBrains Mono", "JetBrains Mono Fallback", monospace;
  font-size:12px;
  letter-spacing: 0.06em;
}
.calc-cell .name {
  font-family: "Sora", "Sora Fallback", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.calc-cell .meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-4);
  font-size: 12px;
}
.calc-cell .arrow {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-3);
  transition: all 0.25s ease;
}
.calc-cell:hover .arrow {
  background: var(--gold);
  color: var(--obsidian);
  border-color: var(--gold);
  transform: translate(2px, -2px);
}
.calc-cell.feat {
  background: linear-gradient(180deg, rgba(218, 171, 45, 0.08), rgba(218, 171, 45, 0.02));
}
.calc-cell.feat .name {
  color: var(--gold-light);
}
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 168px;
  gap: 14px;
}
.bento .calc-cell {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #061320 0%, #04101c 100%);
}
.bento .b-1 { grid-column: span 6; grid-row: span 2; }
.bento .b-2 { grid-column: span 3; }
.bento .b-3 { grid-column: span 3; }
.bento .b-4 { grid-column: span 4; }
.bento .b-5 { grid-column: span 4; grid-row: span 2; }
.bento .b-6 { grid-column: span 4; }
.bento .b-7 { grid-column: span 4; }
.bento .b-8 { grid-column: span 4; }
.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.mosaic-featured {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  background:
    radial-gradient(ellipse 100% 80% at 100% 0%, rgba(218, 171, 45, 0.16), transparent 60%),
    linear-gradient(180deg, #061522 0%, #04101c 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 420px;
}
.mosaic-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.mosaic-item {
  background: #04101c;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.2s ease;
  cursor: pointer;
}
.mosaic-item:hover {
  background: #07182a;
}
.mosaic-item .label {
  font-family: "JetBrains Mono", "JetBrains Mono Fallback", monospace;
  font-size:12px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
}
.mosaic-item .name {
  font-family: "Sora", "Sora Fallback", sans-serif;
  font-weight: 500;
  font-size: 15px;
}
.tabbed-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #061320 0%, #04101c 100%);
  padding: 36px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  min-height: 420px;
}
.tabbed-panel .col-cats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tabbed-panel .col-cats button {
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink-3);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}
.tabbed-panel .col-cats button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-1);
}
.tabbed-panel .col-cats button.active {
  background: rgba(218, 171, 45, 0.1);
  color: var(--gold);
  border: 1px solid rgba(218, 171, 45, 0.3);
}
.tabbed-panel .col-cats .count {
  margin-left: auto;
  font-family: "JetBrains Mono", "JetBrains Mono Fallback", monospace;
  font-size:12px;
  color: var(--ink-4);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-cell {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-cell:last-child {
  border-right: 0;
}
.stat-num {
  font-family: "Sora", "Sora Fallback", sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}
.stat-num .accent {
  color: var(--gold);
}
.stat-label {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.stat-meta {
  font-family: "JetBrains Mono", "JetBrains Mono Fallback", monospace;
  font-size:12px;
  color: var(--ink-4);
  margin-top: auto;
}
.sources-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 24px;
}
.source-cell:hover {
  background: #07182a;
}
.faq-q:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.convert {
  background: var(--obsidian);
  position: relative;
  overflow: hidden;
}
.convert-card {
  border: 1px solid var(--line-2);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 80px);
  background:
    radial-gradient(ellipse 100% 80% at 0% 0%, rgba(218, 171, 45, 0.12), transparent 60%),
    radial-gradient(ellipse 90% 70% at 100% 100%, rgba(83, 223, 221, 0.04), transparent 60%),
    linear-gradient(180deg, #061522 0%, #03101c 100%);
  position: relative;
  overflow: hidden;
}
.convert-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 50%, transparent 30%, #000 80%);
  pointer-events: none;
  opacity: 0.4;
}
.footer-col a:hover {
  color: var(--gold);
}
.chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 70;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--obsidian);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 32px -8px rgba(218, 171, 45, 0.5);
  border: 0;
  transition: transform 0.3s ease;
}
.chat-bubble:hover { transform: scale(1.06); }
.chat-bubble .ping {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: var(--cyan);
  border: 2px solid var(--obsidian);
  border-radius: 50%;
}
.chat-toast {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 70;
  width: 320px;
  background: rgba(6, 21, 34, 0.95);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
  transform: translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.chat-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.chat-toast .lead {
  color: #fff;
  font-weight: 500;
  margin-bottom: 4px;
}
.chat-toast .gold {
  color: var(--gold);
  font-family: "JetBrains Mono", "JetBrains Mono Fallback", monospace;
  font-size:12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.chat-toast .actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.chat-toast .actions button {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-2);
  transition: all 0.2s ease;
}
.chat-toast .actions button.primary {
  background: var(--gold);
  color: var(--obsidian);
  border-color: var(--gold);
}
@media (max-width: 980px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: 0; }
  .sources-row { grid-template-columns: repeat(4, 1fr); }
  .mosaic { grid-template-columns: 1fr; }
  .tabbed-panel { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .b-1, .bento .b-5 { grid-column: span 6; grid-row: span 1; }
  .bento .b-2, .bento .b-3, .bento .b-4, .bento .b-6, .bento .b-7, .bento .b-8 { grid-column: span 3; }
}
@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-cell:last-child { border-bottom: 0; }
  .sources-row { grid-template-columns: repeat(3, 1fr); }
  .chat-toast { width: calc(100vw - 48px); }
}
