/* Lumiscan — design tokens & shared styles */

:root {
  --bg: #0a0a0b;
  --bg-elev: #111114;
  --bg-elev-2: #16161a;
  --bg-card: #131317;
  --border: #1f1f24;
  --border-strong: #2a2a31;
  --text: #ececef;
  --text-dim: #a8a8b0;
  --text-muted: #66666f;
  --text-faint: #3d3d44;

  /* Solana-inspired accents */
  --green: #14F195;
  --green-soft: #0ea871;
  --green-dim: rgba(20, 241, 149, 0.15);
  --purple: #9945FF;
  --purple-soft: #7c33d6;
  --purple-dim: rgba(153, 69, 255, 0.18);
  --amber: #ffb547;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Serif 4", "Newsreader", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── Typography ─── */
.serif       { font-family: var(--font-serif); font-weight: 500; }
.serif-i     { font-family: var(--font-serif); font-style: italic; font-weight: 500; }
.mono        { font-family: var(--font-mono); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: clamp(56px, 7vw, 92px); line-height: 1.02; font-family: var(--font-serif); }
h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; font-family: var(--font-serif); }
h3 { font-size: 22px; line-height: 1.3; }
p { margin: 0; }

.muted { color: var(--text-dim); }
.faint { color: var(--text-muted); }

/* ─── Layout ─── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.section { padding: 140px 0; position: relative; }
.section-tight { padding: 80px 0; }

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 24px; color: var(--text); letter-spacing: -0.02em;
}
.nav-logo .dot { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 8px;
  font-size: 13.5px; color: var(--text-dim);
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.nav-link .ico {
  width: 22px; height: 22px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-style: italic; font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-card); color: var(--text-dim);
}
.nav-right { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-dim); border-radius: 8px; transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: rgba(255,255,255,0.05); color: var(--text); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  border: 1px solid transparent; background: var(--bg-card); color: var(--text);
  transition: transform 0.18s ease, background 0.18s, border-color 0.18s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--green); color: #001b10;
  font-weight: 600;
}
.btn-primary:hover { background: #1cffa3; }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.04); }
.btn-sm { padding: 7px 14px; font-size: 12.5px; border-radius: 8px; }
.btn-pill-ico {
  width: 18px; height: 18px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-style: italic; font-size: 10.5px;
  font-weight: 600; background: rgba(0,0,0,0.18);
}

/* product brand icon — italic serif glyph inside coloured tile */
.brand-ico {
  width: 28px; height: 28px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-style: italic; font-weight: 600;
  font-size: 13.5px;
  flex: none;
}
.brand-ico.green  { background: var(--green-dim);  color: var(--green); }
.brand-ico.purple { background: var(--purple-dim); color: #c79bff; }
.brand-ico.lg { width: 38px; height: 38px; font-size: 18px; border-radius: 9px; }

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 110px 0 60px;
  text-align: center;
  overflow: hidden;
}
.hero-spotlight {
  position: absolute; left: 50%; top: -120px;
  width: 900px; height: 720px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at top, rgba(20, 241, 149, 0.10), transparent 60%),
    radial-gradient(ellipse at top, rgba(153, 69, 255, 0.07), transparent 70%);
  pointer-events: none;
  animation: spot-pulse 8s ease-in-out infinite;
}
@keyframes spot-pulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.6; }
}
.hero h1 .em {
  font-style: italic;
  background: linear-gradient(180deg, #fff 0%, #cfcfd6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin: 28px auto 0; max-width: 600px;
  color: var(--text-dim); font-size: 17px; line-height: 1.55;
}
.hero-cta-row {
  display: flex; gap: 12px; justify-content: center; margin-top: 36px;
}

/* particles */
.particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  animation: float 12s linear infinite;
}
@keyframes float {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(var(--dx, 40px), var(--dy, -120px)); opacity: 0; }
}

/* ─── Section heading ─── */
.section-h {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(38px, 4.6vw, 60px); line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 56px;
}
.section-h .em { font-style: italic; }

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.card-glow::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(20,241,149,0.25), transparent 40%, rgba(153,69,255,0.18));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: 0.7;
}

/* product tabs */
.tabs {
  display: inline-flex; gap: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 5px;
}
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 8px;
  font-size: 13px; color: var(--text-dim);
  background: transparent; border: 0;
  transition: background 0.18s, color 0.18s;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--bg-card); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }

/* product demo frame */
.demo {
  margin-top: 28px;
  background: linear-gradient(180deg, #0d0d10, #08080a);
  border: 1px solid var(--border);
  border-radius: 16px;
  min-height: 460px;
  overflow: hidden;
  position: relative;
}
.demo-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
}
.demo-chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: #2a2a31; }
.demo-chrome .dot.r { background: #ff5f57; opacity: 0.55; }
.demo-chrome .dot.y { background: #febc2e; opacity: 0.55; }
.demo-chrome .dot.g { background: #28c840; opacity: 0.55; }
.demo-title { margin-left: 10px; font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }

/* ─── Charts ─── */
.bar-row {
  display: flex; align-items: flex-end; gap: 6px;
  height: 200px; margin-top: 32px;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
  padding-bottom: 4px;
  position: relative;
}
.bar-row::before, .bar-row::after {
  content: ""; position: absolute; left: 0; right: 0;
  border-top: 1px dashed rgba(255,255,255,0.05);
}
.bar-row::before { top: 33%; }
.bar-row::after { top: 66%; }
.bar {
  flex: 1; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--green) 0%, rgba(20,241,149,0.45) 100%);
  transform-origin: bottom;
  animation: grow-bar 1s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
.bar.purple {
  background: linear-gradient(180deg, var(--purple) 0%, rgba(153,69,255,0.4) 100%);
}
@keyframes grow-bar {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.bar-axis {
  display: flex; justify-content: space-between;
  margin-top: 12px; font-size: 11px; color: var(--text-muted); font-family: var(--font-mono);
}

.stat-num {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(54px, 6.2vw, 84px); line-height: 1;
  letter-spacing: -0.02em;
}
.stat-num.green { color: var(--green); }
.stat-num.purple { color: #c79bff; }
.stat-label { margin-top: 8px; font-size: 13px; }
.stat-label.green { color: var(--green); }
.stat-label.purple { color: #c79bff; }

/* logos rail */
.rail {
  display: flex; gap: 18px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  overflow: hidden;
}
.rail-inner {
  display: flex; gap: 18px;
  animation: rail-scroll 35s linear infinite;
}
@keyframes rail-scroll {
  to { transform: translateX(-50%); }
}
.rail-tile {
  flex: none;
  width: 78px; height: 78px;
  border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border);
}
.rail-name { font-size: 10px; color: var(--text-muted); margin-top: 4px; }

/* trusted-by row */
.trusted-row {
  display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center;
  margin-top: 18px;
}
.trusted-item { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 14px; }
.trusted-logo {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}

/* CTA block (Become One With) */
.cta-block {
  position: relative; overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 64px 56px;
  min-height: 280px;
}
.cta-block::after {
  content: ""; position: absolute; right: -10%; top: 0; bottom: 0; width: 70%;
  background:
    radial-gradient(circle at 70% 50%, rgba(20, 241, 149, 0.18), transparent 50%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 22px);
  pointer-events: none;
}
.cta-block::before {
  content: ""; position: absolute; right: 18%; top: -10%; width: 2px; height: 130%;
  background: linear-gradient(180deg, transparent, var(--green), transparent);
  filter: blur(1px);
  animation: scan-line 5s ease-in-out infinite;
}
@keyframes scan-line {
  0%, 100% { transform: translateX(0) rotate(8deg); opacity: 0.4; }
  50% { transform: translateX(-80px) rotate(8deg); opacity: 0.9; }
}

/* footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  margin-top: 80px;
  color: var(--text-muted);
  font-size: 13px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer-col-h { color: var(--text); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; color: var(--text-dim); transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; }

/* utility */
.row { display: flex; }
.row-between { display: flex; justify-content: space-between; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.gap-12 { gap: 12px; } .gap-24 { gap: 24px; }
.mt-12 { margin-top: 12px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }

/* fade-in on view */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* pulse dot */
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); position: relative;
}
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--green); opacity: 0.4;
  animation: pulse-ring 1.6s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* "pill" 3D shape — drawn with pure CSS */
.pill {
  width: 200px; height: 360px;
  border-radius: 100px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f1f1 49.9%, var(--purple) 50%, var(--purple-soft) 100%);
  box-shadow:
    inset -22px 0 50px rgba(0,0,0,0.25),
    inset 22px 0 30px rgba(255,255,255,0.18),
    0 40px 60px rgba(0,0,0,0.55),
    0 0 80px rgba(153, 69, 255, 0.18);
  transform: rotate(28deg);
  position: relative;
  animation: pill-float 6s ease-in-out infinite;
}
@keyframes pill-float {
  0%, 100% { transform: rotate(28deg) translateY(0); }
  50% { transform: rotate(32deg) translateY(-14px); }
}

/* ── docs/sdk pages ── */
.doc-shell { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 56px 0 120px; }
.doc-side { position: sticky; top: 88px; align-self: start; }
.doc-side-h { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin: 16px 0 8px; }
.doc-side a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--text-dim); font-size: 13.5px; }
.doc-side a:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.doc-side a.active { background: var(--bg-card); color: var(--green); }
.doc-body { max-width: 720px; }
.doc-body h1 { font-size: 44px; }
.doc-body h2 { font-size: 28px; margin-top: 48px; margin-bottom: 16px; }
.doc-body h3 { font-size: 18px; margin-top: 28px; margin-bottom: 8px; color: var(--text); }
.doc-body p { color: var(--text-dim); margin: 12px 0; line-height: 1.65; }
.doc-body code, .inline-code {
  font-family: var(--font-mono); font-size: 0.86em;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 4px; color: var(--green);
}
.code-block {
  background: #08080a; border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 22px; margin: 16px 0; font-family: var(--font-mono); font-size: 13px;
  line-height: 1.7; overflow-x: auto; color: var(--text-dim);
  white-space: pre;
}
.code-block .k  { color: #c79bff; }
.code-block .s  { color: var(--green); }
.code-block .c  { color: var(--text-muted); font-style: italic; }
.code-block .n  { color: #ffb547; }
.code-block .f  { color: #66d9ef; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-family: var(--font-mono);
  background: var(--green-dim); color: var(--green);
  letter-spacing: 0.04em;
}
.tag.purple { background: var(--purple-dim); color: #c79bff; }
.tag.amber  { background: rgba(255,181,71,0.15); color: var(--amber); }

/* ── /app interactive ── */
.app-shell { padding: 40px 0 120px; }
.app-grid { display: grid; grid-template-columns: 280px 1fr; gap: 28px; }
.app-side {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; height: fit-content;
}
.app-side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  color: var(--text-dim); font-size: 13.5px; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.app-side-item:hover { background: rgba(255,255,255,0.03); color: var(--text); }
.app-side-item.active { background: rgba(20,241,149,0.08); color: var(--green); }

.input {
  width: 100%;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  color: var(--text); padding: 14px 18px; border-radius: 10px;
  font-family: var(--font-mono); font-size: 14px; outline: none;
  transition: border-color 0.18s;
}
.input:focus { border-color: var(--green); }

/* terminal */
.term {
  background: #07070a; border: 1px solid var(--border); border-radius: 12px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7;
  padding: 16px 20px; color: #c4c4cc;
  min-height: 320px; overflow-y: auto;
}
.term .ok { color: var(--green); }
.term .warn { color: var(--amber); }
.term .err { color: #ff6b6b; }
.term .dim { color: var(--text-muted); }
.term .label { color: #c79bff; }

/* score gauge */
.gauge {
  position: relative; width: 180px; height: 180px;
}
.gauge svg { transform: rotate(-90deg); }
.gauge-num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 500; font-size: 52px; color: var(--green);
}
.gauge-num small { font-size: 12px; font-family: var(--font-sans); color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }

@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc-shell { grid-template-columns: 1fr; }
  .doc-side { position: static; }
  .app-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 80px 0; }
  .cta-block { padding: 36px 24px; }
}
