:root {
  --bg: #120a24;
  --bg-alt: #1a1033;
  --surface: #21143d;
  --border: #33245a;
  --text: #ece8f7;
  --muted: #a99fc4;
  --purple: #9b4dff;
  --cyan: #00dcd4;
  --code-bg: #0b0617;
  --radius: 14px;
  --glow-purple: 70%;
  --glow-cyan: 50%;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfaff;
    --bg-alt: #f2eefc;
    --surface: #ffffff;
    --border: #e1d9f5;
    --text: #1c1530;
    --muted: #5d5478;
    --purple: #7a2ee6;
    --cyan: #008f8a;
    --code-bg: #1c1530;
    --glow-purple: 38%;
    --glow-cyan: 34%;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

code, kbd, pre {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
}

code, kbd {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.05em 0.35em;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: 2rem; margin: 0 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }

.nav nav { display: flex; align-items: center; gap: 24px; }
.nav nav a { color: var(--muted); font-size: 0.95rem; }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.nav nav a.nav-cta { color: var(--text); background: var(--surface); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; }

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 96px 0 88px;
}

/* Two lights at the top that breathe and drift, plus a faint dot grid. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -300px;
  width: 900px;
  height: 640px;
  border-radius: 50%;
  filter: blur(24px);
  animation: glow 7s ease-in-out infinite alternate;
}
.hero::before {
  left: calc(50% - 760px);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--purple) var(--glow-purple), transparent), transparent);
}
.hero::after {
  right: calc(50% - 760px);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cyan) var(--glow-cyan), transparent), transparent);
  animation-delay: -3.5s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 14%, transparent) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
}

@keyframes glow {
  from { opacity: 0.6; transform: translate(-70px, -10px) scale(0.92); }
  to { opacity: 1; transform: translate(70px, 30px) scale(1.12); }
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .hero h1 { animation: none; }
}

.hero-icon { width: 128px; height: 128px; filter: drop-shadow(0 18px 40px rgb(0 0 0 / 0.35)); }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 28px 0 16px;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--purple));
  background-size: 200% auto;
  animation: shimmer 10s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede { max-width: 680px; margin: 0 auto; font-size: 1.2rem; color: var(--muted); }

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 36px 0 18px; }

.hero-meta { color: var(--muted); font-size: 0.9rem; margin: 0; }

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}
.button:hover { text-decoration: none; border-color: var(--purple); }
.button.primary { background: var(--purple); border-color: var(--purple); color: #fff; }
.button.primary:hover { filter: brightness(1.1); }

/* Sections */

.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lede { color: var(--muted); font-size: 1.1rem; margin: 0 0 40px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card p, .why p { color: var(--muted); margin: 0; }

.why { margin-top: 32px; gap: 32px 40px; }
.why h3 { border-left: 3px solid var(--cyan); padding-left: 12px; }
.why article:nth-child(odd) h3 { border-color: var(--purple); }

.two-col { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: center; }
.two-col p { color: var(--muted); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 550;
}

/* Screenshots */

.shot { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.28), 0 4px 14px rgb(0 0 0 / 0.12);
}
.hero-shot { max-width: 1000px; margin: 56px auto 0; }

.showcase {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  align-items: center;
  margin: 24px 0 72px;
}
.showcase.flip { grid-template-columns: 3fr 2fr; }
.showcase.flip > div { order: 2; }
.showcase h3 { font-size: 1.5rem; margin-bottom: 12px; }
.showcase p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* FAQ */

.narrow { max-width: 800px; }

.faq { margin-top: 32px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 32px 20px 0;
  font-weight: 600;
  font-size: 1.08rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--cyan); }
.faq details p { color: var(--muted); margin: 0 0 20px; }

/* Install */

.code-block { position: relative; }

pre {
  margin: 0;
  background: var(--code-bg);
  color: #ece8f7;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  line-height: 1.7;
}
pre code { background: none; border: 0; padding: 0; font-size: 1em; }
.code-block pre { padding-right: 96px; font-size: 1rem; }

.copy {
  position: absolute;
  top: 14px;
  right: 14px;
  font: inherit;
  font-size: 0.85rem;
  color: #ece8f7;
  background: #2b1d4f;
  border: 1px solid #47367a;
  border-radius: 8px;
  padding: 4px 12px;
  cursor: pointer;
}
.copy:hover { background: #3a2768; }

.note { color: var(--muted); font-size: 0.95rem; margin: 14px 0 0; }

.install-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 48px; margin-top: 48px; }
.install-grid p, .install-grid li { color: var(--muted); }
.install-grid ul { padding-left: 1.2em; margin: 0; }
.install-grid p { margin: 8px 0 0; }
pre.inline { padding: 12px 16px; font-size: 0.85rem; }

/* Footer */

.footer { padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 20px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

.not-found { min-height: 70vh; display: grid; place-content: center; text-align: center; }
.not-found p { color: var(--muted); }

@media (max-width: 720px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .install-grid { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .showcase.flip { grid-template-columns: 1fr; }
  .showcase.flip > div { order: 0; }
  .hero-shot { margin-top: 40px; }
  .hero { padding: 64px 0; }
  .section { padding: 64px 0; }
}
