@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0b0c0e;
  --fg: #f3f4f2;
  --card: #131417;
  --muted: #9a9fa6;
  --border: rgba(255,255,255,0.09);
  --input: rgba(255,255,255,0.13);
  --primary: #5eeab0;
  --primary-fg: #062017;
  --ring: rgba(94,234,176,0.5);
  --radius: 10px;
}

* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
code, pre, .mono { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(94,234,176,0.3); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

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

header.site {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(11,12,14,0.8);
  backdrop-filter: blur(10px);
}
header.site .wrap { height: 56px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; font-family: "JetBrains Mono", monospace; font-size: 14px; font-weight: 500; }
.brand svg { color: var(--primary); }
nav.links { display: flex; align-items: center; gap: 24px; }
nav.links a { font-size: 14px; color: var(--muted); transition: color .15s; display: flex; align-items: center; gap: 6px; }
nav.links a:hover { color: var(--fg); }
.license-tag { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--muted); }

.hero { position: relative; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
                     linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 0%, black 20%, transparent 78%);
}
.hero .wrap { position: relative; padding: 80px 24px 96px; }
.hero h1 { max-width: 760px; font-size: 44px; line-height: 1.14; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.hero h1 .accent { color: var(--primary); }
.hero .sub { max-width: 620px; font-size: 18px; line-height: 1.6; color: var(--muted); margin: 22px 0 0; }
.hero .quote {
  max-width: 620px; margin: 30px 0 0; padding-left: 16px;
  border-left: 2px solid rgba(94,234,176,0.5);
  font-family: "JetBrains Mono", monospace; font-size: 14px; line-height: 1.7;
}
.hero .quote .accent { color: var(--primary); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; }

.install-cmd {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); background: var(--card);
  border-radius: 8px; padding: 10px 16px;
}
.install-cmd code { font-size: 14px; }
.install-cmd code .dollar { color: var(--muted); }
.copy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px; border: none; background: transparent;
  color: var(--muted); cursor: pointer; transition: color .15s;
}
.copy-btn:hover { color: var(--fg); }
.copy-btn.copied { color: var(--primary); }

.btn-row { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
  transition: background-color .15s, color .15s; cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); border: none; }
.btn-primary:hover { background: rgba(94,234,176,0.85); }
.btn-outline { border: 1px solid var(--input); color: var(--fg); }
.btn-outline:hover { background: rgba(255,255,255,0.06); }

section { border-top: 1px solid var(--border); }
section.tinted { background: rgba(255,255,255,0.015); }
section .wrap { padding: 64px 24px; }
h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.section-body { color: var(--muted); line-height: 1.7; margin-top: 16px; }
.section-body p + p { margin-top: 14px; }
.section-body strong { color: var(--fg); font-weight: 500; }

.usage-grid { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .usage-grid { grid-template-columns: 1fr; } .why-grid { grid-template-columns: 1fr !important; } }

.codeblock { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--card); }
.codeblock .cb-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.codeblock .cb-head span { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); }
.codeblock pre { margin: 0; padding: 20px; overflow-x: auto; font-size: 13px; line-height: 1.75; }
.tok-keyword { color: #58e6b0; }
.tok-string { color: #7fd6b6; }
.tok-fn { color: #8ef0c9; }
.tok-comment { color: #6f7480; font-style: italic; }
.tok-num { color: #a8e0a0; }
.tok-punct { color: #8b909a; }

.api-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 860px) { .api-grid { grid-template-columns: 1fr; } }
.api-card { border: 1px solid var(--border); border-radius: 12px; padding: 24px; background: var(--card); transition: border-color .15s; }
.api-card:hover { border-color: rgba(255,255,255,0.3); }
.api-card .idx { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); }
.api-card h3 { font-family: "JetBrains Mono", monospace; font-size: 16px; font-weight: 500; color: var(--primary); margin: 16px 0 0; }
.api-card code.sig { display: block; margin-top: 12px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); font-size: 12px; line-height: 1.6; color: rgba(243,244,242,0.9); }
.api-card p { margin: 16px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); }

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.why-diagram { border: 1px solid var(--border); border-radius: 12px; padding: 24px; background: var(--card); font-family: "JetBrains Mono", monospace; font-size: 13px; line-height: 2; }
.why-diagram .muted { color: var(--muted); }
.why-diagram hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.why-diagram .accent { color: var(--primary); }

.nongoals-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .nongoals-list { grid-template-columns: 1fr; } }
.nongoals-list li { display: flex; gap: 12px; }
.nongoals-list .ban { flex-shrink: 0; margin-top: 3px; color: var(--muted); }
.nongoals-list .title { font-size: 14px; font-weight: 500; }
.nongoals-list .body { font-size: 14px; line-height: 1.7; color: var(--muted); margin-top: 4px; }

.cta { text-align: center; }
.cta h2 { }
.cta p { max-width: 460px; margin: 16px auto 0; color: var(--muted); line-height: 1.7; }
.cta .hero-actions { justify-content: center; margin-top: 32px; }

footer.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 32px 24px; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand svg { color: var(--primary); }
.footer-brand .mono { font-size: 14px; }
.footer-brand .lic { font-size: 12px; color: var(--muted); margin-left: 8px; }
footer.site nav { display: flex; gap: 24px; }
footer.site nav a { font-size: 14px; color: var(--muted); transition: color .15s; }
footer.site nav a:hover { color: var(--fg); }
