/* solana-indexer docs — dark only, solana gradient ambient + 3D strips across the whole page */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #000000;
  --bg-elev:      #0a0a0a;
  --fg:           #ffffff;
  --fg-2:         #a0a0a0;
  --fg-3:         #707070;
  --fg-4:         #505050;
  --border:       #1f1f1f;
  --border-soft:  #141414;
  --btn-2-bg:     rgba(255, 255, 255, 0.04);
  --btn-2-fg:     #ffffff;
  --btn-2-border: rgba(255, 255, 255, 0.14);
  --accent:       #14F195;
  --accent-2:     #9945FF;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100vh;
}

::selection {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--fg);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* PAGE-WIDE AMBIENT BACKGROUND — fixed, persists across scroll */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.page-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, color-mix(in srgb, #14F195 22%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 50%, color-mix(in srgb, #9945FF 22%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 95%, color-mix(in srgb, #14F195 12%, transparent) 0%, transparent 60%);
  animation: meshDrift 22s ease-in-out infinite alternate;
}

@keyframes meshDrift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(2%,  1%, 0) scale(1.04); }
}

.page-strip {
  position: fixed;
  left: -30%;
  width: 160%;
  height: 100vh;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 15%,
    color-mix(in srgb, #14F195 35%, transparent) 30%,
    #14F195 45%,
    #9945FF 55%,
    color-mix(in srgb, #9945FF 35%, transparent) 70%,
    transparent 85%,
    transparent 100%
  );
  filter: blur(60px);
  transform-origin: center center;
  pointer-events: none;
  will-change: transform;
}

.page-strip-1 {
  width: 40%;
  left: -10%;
  transform: rotateY(35deg) translateZ(-200px);
  animation: stripDrift1 16s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  opacity: 0.45;
}

.page-strip-2 {
  width: 35%;
  left: 35%;
  transform: rotateY(-30deg) translateZ(-100px);
  animation: stripDrift2 20s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: -6s;
  opacity: 0.5;
}

.page-strip-3 {
  width: 45%;
  left: 65%;
  transform: rotateY(25deg) translateZ(-150px);
  animation: stripDrift3 24s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: -12s;
  opacity: 0.4;
}

@keyframes stripDrift1 {
  0%, 100% { transform: rotateY(35deg) translateZ(-200px) translateX(0); }
  50%      { transform: rotateY(35deg) translateZ(-200px) translateX(80%); }
}

@keyframes stripDrift2 {
  0%, 100% { transform: rotateY(-30deg) translateZ(-100px) translateX(0); }
  50%      { transform: rotateY(-30deg) translateZ(-100px) translateX(-80%); }
}

@keyframes stripDrift3 {
  0%, 100% { transform: rotateY(25deg) translateZ(-150px) translateX(0); }
  50%      { transform: rotateY(25deg) translateZ(-150px) translateX(60%); }
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, #000000 75%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--fg);
}
.brand-text {
  font-family: "Geist", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.brand-text-dim { color: var(--fg-3); font-weight: 500; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--fg); }

/* HERO */
.hero { padding: 120px 0 80px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--accent);
}
.eyebrow code {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.display {
  font-family: "Geist", sans-serif;
  font-weight: 600;
  font-size: clamp(44px, 6.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 28px;
  max-width: 16ch;
}

.lede {
  font-family: "Geist", sans-serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 56ch;
  margin-bottom: 40px;
}
.lede em {
  font-style: normal;
  color: var(--fg);
  font-weight: 500;
}

.cta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Geist", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 0 16px;
  height: 40px;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  border: 1px solid transparent;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.btn.primary {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
}
.btn.primary:hover { background: #f0f0f0; transform: translateY(-1px); }
.btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}
.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.btn.small {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
}

/* STRIP — transparent, hairline dividers, no background */
.strip {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.strip-cell {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.strip-cell:first-child { border-left: none; padding-left: 0; }
.strip-num {
  font-family: "Geist", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--fg-2);
  margin-bottom: 2px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.strip-num code {
  font-family: "Geist Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  background: transparent;
  border: none;
  padding: 0;
}
.strip-label {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* BLOCKS */
.block {
  padding: 72px 0;
}
.block-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
}
.block-left { position: sticky; top: 88px; }
.block-eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  margin-bottom: 10px;
}
.h2 {
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.prose {
  font-family: "Geist", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 60ch;
}
.prose em {
  font-style: normal;
  color: var(--fg);
  font-weight: 500;
}

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}
.feature {
  padding: 0;
}
.feature-h {
  font-family: "Geist", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.feature-body {
  font-family: "Geist", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
}
.feature-body code {
  font-family: "Geist Mono", monospace;
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* INSTALL */
.code-shell {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  margin: 0 0 12px;
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.code-label {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-3);
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-2);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.copy-btn:hover { color: var(--fg); border-color: rgba(255, 255, 255, 0.3); }
.copy-btn.copied { color: var(--accent); border-color: var(--accent); }
.copy-btn.copied .copy-label { display: none; }
.copy-btn.copied::after {
  content: "Copied";
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.codeblock {
  display: block;
  background: transparent;
  color: var(--fg);
  padding: 16px 18px;
  margin: 0;
  overflow-x: auto;
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
}
.codeblock code {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  color: var(--fg);
  background: transparent;
  border: none;
  padding: 0;
}
.codeblock .prompt {
  color: var(--accent);
  margin-right: 10px;
  font-weight: 600;
  user-select: none;
}
.install-note {
  font-family: "Geist", sans-serif;
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.6;
}
.install-note code {
  font-family: "Geist Mono", monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* DEMO */
.demo-wrap {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  margin: 0 0 12px;
}
.demo-gif {
  display: block;
  width: 100%;
  height: auto;
}

/* FOOTER */
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-line {
  font-family: "Geist", sans-serif;
  font-size: 13px;
  color: var(--fg-2);
  margin-bottom: 4px;
}
.foot-meta {
  font-family: "Geist", sans-serif;
  font-size: 12px;
  color: var(--fg-3);
}
.foot a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.15s ease;
}
.foot a:hover { border-bottom-color: var(--fg); }
.foot em { font-style: italic; }
.foot code {
  font-family: "Geist Mono", monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--fg);
  border: 1px solid var(--border);
}
.foot .btn.primary { background: #ffffff; color: #000000; }
.foot .btn.secondary { background: rgba(255, 255, 255, 0.05); color: #ffffff; border-color: rgba(255, 255, 255, 0.18); }
.foot-right { display: flex; gap: 8px; }

/* responsive */
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .hero { padding: 80px 0 56px; }
  .block { padding: 56px 0; }
  .block-grid { grid-template-columns: 1fr; gap: 24px; }
  .block-left { position: static; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .strip-cell { border-left: none; padding: 0 12px; }
  .strip-cell:nth-child(odd) { border-right: 1px solid var(--border-soft); padding-left: 0; }
  .strip-cell:nth-child(even) { padding-right: 0; }
  .features { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}
