:root {
  --bg: #070b12;
  --bg-elev: #0e1520;
  --bg-soft: #121b28;
  --line: rgba(125, 211, 252, 0.14);
  --text: #eaf3f7;
  --muted: #8ea3b5;
  --accent: #3ee0b0;
  --accent-2: #7dd3fc;
  --danger: #ff7b72;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font: "Sora", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Code", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(62, 224, 176, 0.12), transparent 50%),
    radial-gradient(900px 500px at -10% 20%, rgba(125, 211, 252, 0.1), transparent 45%),
    var(--bg);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 75%);
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-2);
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  color: inherit;
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #042018;
  font-weight: 600;
}

.btn-primary:hover {
  filter: brightness(1.05);
  color: #042018;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 64px 0 48px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.install {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 420px);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14, 21, 32, 0.88);
  font-family: var(--mono);
  font-size: 0.92rem;
}

.copy {
  border: 0;
  background: transparent;
  color: var(--accent-2);
  font: inherit;
  cursor: pointer;
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(62, 224, 176, 0.08), transparent 40%), var(--bg-elev);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card header {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 0.78rem;
  border-bottom: 1px solid var(--line);
}

.hero-card pre {
  margin: 0;
  padding: 18px 16px 20px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.65;
}

.kw { color: #c4b5fd; }
.fn { color: var(--accent); }
.str { color: #f8d48a; }
.cm { color: #6d8294; }

.section {
  padding: 28px 0 12px;
}

.section h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.section p {
  color: var(--muted);
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-elev);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.94rem;
}

.playground {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-top: 22px;
}

.panel {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-elev);
  overflow: hidden;
}

.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

select,
textarea,
pre.output {
  font-family: var(--mono);
}

select {
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}

textarea {
  width: 100%;
  min-height: 300px;
  border: 0;
  resize: vertical;
  padding: 16px;
  color: var(--text);
  background: transparent;
  font-size: 0.84rem;
  line-height: 1.6;
  outline: none;
}

pre.output {
  margin: 0;
  min-height: 300px;
  padding: 16px;
  white-space: pre-wrap;
  color: #d7fbe9;
  font-size: 0.84rem;
  line-height: 1.6;
}

pre.output.error {
  color: var(--danger);
}

.api {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.api article {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-elev);
}

.api h3 {
  margin: 0 0 10px;
}

.api code {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent-2);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 48px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .hero,
  .playground,
  .grid,
  .api {
    grid-template-columns: 1fr;
  }

  .nav-links .hide-sm {
    display: none;
  }
}
