@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-mono/GeistMono-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-mono/GeistMono-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --bg: #09090b;
  --bg-card: #18181b;
  --bg-code: #111113;
  --text: #fafafa;
  --text-muted: #71717a;
  --accent: #38bdf8;
  --accent-dim: rgba(56,189,248,0.12);
  --border: #27272a;
  --max-w: 1100px;
  --mono: "Geist Mono", "SF Mono", "Fira Code", Consolas, monospace;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

.accent-text { color: var(--accent); }

code { font-family: var(--mono); }

p code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

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

.logo-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-svg {
  transition: transform 0.4s ease;
}

.logo-mark:hover .logo-svg {
  transform: rotate(90deg);
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

nav .links { display: flex; gap: 1.5rem; align-items: center; }

nav .links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

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

/* ── Hero ── */
.hero {
  position: relative;
  padding: 56px 0 0;
  flex: 1;
  display: flex;
  align-items: center;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 30%;
  transform: translateX(-50%);
  width: 70vw;
  height: 60vh;
  background: radial-gradient(ellipse at center, rgba(56,189,248,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-family: var(--mono);
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.hero .subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero .subtitle a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--text-muted);
}

.hero .install-cmd {
  max-width: 400px;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 10px;
  padding: 0.7rem 1.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  flex-shrink: 0;
}

.copy-btn:hover { color: var(--text); }

.copy-btn .icon-check { display: none; }
.copy-btn.copied .icon-copy { display: none; }
.copy-btn.copied .icon-check { display: block; color: var(--accent); }

.hero .install-cmd code {
  font-size: 0.9rem;
  color: var(--text);
}

.hero .install-cmd code::before {
  content: "$ ";
  color: var(--text-muted);
}

.hero .compat {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero .compat a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--text-muted);
}

.hero .cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Diagram ── */
.hero-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-diagram svg {
  width: 100%;
  height: auto;
  max-height: 420px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: #d4d4d8;
  color: var(--bg);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-secondary:hover {
  border-color: #3f3f46;
  color: var(--text);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  position: relative;
  overflow: hidden;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

footer .watermark {
  position: absolute;
  bottom: -30px;
  right: -10px;
  font-size: 10rem;
  font-weight: 800;
  color: rgba(255,255,255,0.02);
  pointer-events: none;
  user-select: none;
  font-style: italic;
  line-height: 1;
}

footer .footer-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

footer .footer-left svg {
  flex-shrink: 0;
}

footer .footer-name {
  font-weight: 600;
  font-size: 0.85rem;
}

footer .footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 0.75rem;
}

footer .footer-links {
  display: flex;
  gap: 1.5rem;
}

footer .footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* ── Responsive ── */
@media (max-width: 868px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy { text-align: center; }
  .hero h1 { font-size: 2.4rem; }
  .hero .subtitle { margin-left: auto; margin-right: auto; }
  .hero .install-cmd {
    margin-left: auto;
    margin-right: auto;
  }
  .hero .compat { text-align: center; }
  .hero .cta { justify-content: center; }
  .hero-diagram {
    max-width: 320px;
    margin: 0 auto;
  }
  footer .container { flex-direction: column; gap: 1rem; text-align: center; }
  nav .links { gap: 1rem; }
}
