:root {
  --bg: #0a0f19;
  --bg2: #101d31;
  --fg: #ecf7ff;
  --muted: #94a9c4;
  --cyan: #8df6ff;
  --glass: rgba(14, 24, 40, 0.62);
  --border: rgba(165, 236, 255, 0.24);
  --mx: 50vw;
  --my: 50vh;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--fg);
  background: radial-gradient(circle at 20% -5%, #21385f 0%, var(--bg) 40%), radial-gradient(circle at 85% 30%, #133847 0%, var(--bg2) 45%), var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }


body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(141, 246, 255, 0.16), transparent 72%);
  transition: background 0.12s ease-out;
}

a, button, .panel, .hero-art, .editor, .topbar {
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

a:hover, button:hover, .btn:hover {
  box-shadow: 0 0 0 1px rgba(141, 246, 255, 0.5), 0 12px 38px rgba(89, 232, 255, 0.25);
}

.panel:hover, .hero-art:hover, .editor:hover {
  border-color: rgba(141, 246, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 24px 60px rgba(16, 107, 127, 0.28);
}

.gloom-fog {
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  filter: blur(56px);
  opacity: 0.65;
}
.fog {
  position: absolute;
  width: 38vw;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: drift 18s ease-in-out infinite;
}
.fog-a { top: 2%; left: -4%; background: radial-gradient(circle, rgba(66, 134, 255, 0.45), transparent 65%); }
.fog-b { top: 42%; right: -6%; background: radial-gradient(circle, rgba(61, 208, 217, 0.42), transparent 65%); animation-delay: -6s; }
.fog-c { bottom: -10%; left: 30%; background: radial-gradient(circle, rgba(122, 82, 245, 0.36), transparent 68%); animation-delay: -11s; }

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(3, 8, 18, 0.6);
  backdrop-filter: blur(20px);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.intro-overlay.hidden { opacity: 0; visibility: hidden; }
.intro-card {
  text-align: center;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(45, 78, 104, 0.26), rgba(15, 25, 43, 0.66));
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(22px) saturate(125%);
}
.intro-logo {
  width: 88px;
  aspect-ratio: 1;
  margin: 0 auto 1rem;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(130, 244, 255, 0.45));
}
.intro-card p { color: var(--muted); margin-bottom: 0; }

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 4vw;
  backdrop-filter: blur(14px) saturate(120%);
  background: linear-gradient(125deg, rgba(18, 30, 48, 0.74), rgba(8, 12, 20, 0.48));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar a { color: var(--fg); text-decoration: none; font-weight: 600; }
.topbar nav { display: flex; gap: 1rem; }
.brand { color: var(--cyan); font-weight: 800; }

main { width: min(1700px, 98vw); margin: 0 auto; }
.section { padding: 4.2rem 1rem; }
.eyebrow { color: var(--cyan); font-size: 0.8rem; letter-spacing: 0.14em; margin: 0 0 0.7rem; }
h1, h2, h3 { margin: 0; }
h2 { font-size: clamp(1.4rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.lead { color: var(--muted); max-width: 70ch; }

.hero { min-height: 82vh; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 2rem; }
.hero-actions { display: flex; gap: 0.8rem; margin-top: 1.3rem; flex-wrap: wrap; }
.btn {
  border: 1px solid var(--border); border-radius: 12px; padding: 0.72rem 1rem;
  color: var(--fg); background: rgba(19, 33, 55, 0.5); text-decoration: none; font-weight: 700;
}
.btn.primary { background: linear-gradient(135deg, rgba(89, 232, 255, 0.35), rgba(89, 174, 255, 0.25)); }
.btn.ghost { background: transparent; }

.hero-art {
  min-height: 460px; border-radius: 22px; border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(53, 102, 124, 0.34), rgba(11, 16, 30, 0.72));
  display: grid; place-items: center;
  backdrop-filter: blur(24px) saturate(130%);
}
.logo-wrap {
  width: min(82%, 520px); aspect-ratio: 4/5; border-radius: 30px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 20%, rgba(152, 255, 255, 0.25), transparent 58%);
  box-shadow: inset 0 0 40px rgba(118, 248, 255, 0.14), 0 0 40px rgba(82, 242, 255, 0.2);
}
.logo-mark {
  width: min(100%, 520px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 0 36px rgba(117, 246, 255, 0.55));
  transition: transform 0.15s ease-out;
}

.panel {
  position: relative;
  background: linear-gradient(145deg, rgba(61, 98, 125, 0.2), var(--glass));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(22px) saturate(135%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.17), 0 20px 50px rgba(1, 8, 18, 0.38);
}
.panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 42%);
  mix-blend-mode: screen;
}
.panel p, .panel li { color: var(--muted); }
.hub-panel ul, .plan ul { margin: 0.8rem 0 0; padding-left: 1.15rem; }

.pricing-single { display: grid; grid-template-columns: minmax(280px, 460px); }
.plan .price { font-size: 2rem; font-weight: 800; color: var(--cyan); margin: 0.8rem 0; }
.plan .price span { color: var(--muted); font-size: 1rem; font-weight: 500; }
.featured { box-shadow: 0 0 0 1px rgba(141, 246, 255, 0.8), 0 12px 40px rgba(89, 232, 255, 0.18); }

.code-section .editor { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #0a111d; }
.editor-bar {
  height: 42px; display: flex; align-items: center; gap: 0.4rem;
  padding: 0 0.8rem; background: #121c2d; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.editor-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2f3e56; }
.editor-bar span:nth-child(1) { background: #ff6f61; }
.editor-bar span:nth-child(2) { background: #ffca57; }
.editor-bar span:nth-child(3) { background: #28c840; }
.editor-bar strong { margin-left: 0.45rem; font-size: 0.85rem; color: var(--muted); }
pre {
  margin: 0;
  padding: 1rem;
  max-height: 600px;
  overflow: auto;
  font-family: "JetBrains Mono", monospace;
  color: #cde6ff;
  font-size: 0.86rem;
  line-height: 1.5;
}

.tok-com { color: #6b8bad; }
.tok-key { color: #7dd3fc; }
.tok-fn { color: #c4b5fd; }
.tok-kw { color: #f9a8d4; }
.tok-str { color: #86efac; }
.tok-num { color: #fcd34d; }
.tok-op { color: #f8fafc; }

.faq { display: grid; gap: 0.7rem; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin-bottom: 0; }

.doc-block h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1.02rem;
}
.doc-block h3:first-child { margin-top: 0; }
.doc-block p { margin: 0 0 0.7rem; }
.doc-block ul { margin: 0 0 0.9rem; padding-left: 1.15rem; }
.doc-block li { margin-bottom: 0.25rem; }


@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2vw, -2vh, 0) scale(1.08); }
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
}
@media (max-width: 680px) {
  .topbar { padding: 0.8rem 1rem; }
  .topbar nav { gap: 0.7rem; font-size: 0.9rem; }
  .section { padding: 3.2rem 0.4rem; }
  pre { max-height: 460px; }
}
