:root {
  --bg: #0a0d14;
  --bg-raised: #0d1117;
  --text: #c9d1d9;
  --muted: #8b949e;
  --heading: #f0f3f6;
  --accent: #00e5ff;
  --line: rgba(255, 255, 255, 0.08);
  --line-accent: rgba(0, 229, 255, 0.12);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
}

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

img { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding-inline: 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--accent);
  color: #000;
  padding: 6px 12px;
  border-radius: 6px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(0, 229, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 12px;
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover { color: var(--heading); }

.site-nav a[aria-current="page"] { color: var(--accent); }

/* Content */
main { padding-block: 48px 72px; }

h1, h2, h3 {
  color: var(--heading);
  line-height: 1.2;
}

h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 16px;
}

h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 44px 0 12px;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 8px;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

pre {
  position: relative;
  margin: 16px 0;
  padding: 16px 18px;
  background: var(--bg-raised);
  border: 1px solid rgba(0, 229, 255, 0.08);
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.6;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.88rem;
  color: #e6edf3;
}

pre .c { color: var(--muted); }

.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  font: 500 0.75rem var(--sans);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}

pre:hover .copy,
.copy:focus-visible { opacity: 1; }

@media (hover: none) {
  .copy { opacity: 1; }
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--heading);
  font-weight: 600;
}

td code { white-space: nowrap; }

/* Hero */
.hero {
  text-align: center;
  padding-block: 24px 8px;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 24px;
  padding: 5px 13px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 100px;
  background: rgba(0, 229, 255, 0.05);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #00e5ff 0%, #a855f7 50%, #00e5ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

.hero-subtitle {
  max-width: 600px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #00e5ff, #7c3aed);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.3);
}

.btn-ghost {
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--accent);
}

.btn-ghost:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--accent);
}

/* Terminal frame */
.terminal {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--line-accent);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  text-align: left;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #161a23;
  border-bottom: 1px solid var(--line);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.4);
  font: 0.75rem var(--mono);
}

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.cards li {
  padding: 20px;
  border: 1px solid rgba(0, 229, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.cards li:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.06);
}

.cards strong {
  display: block;
  margin-bottom: 4px;
  color: var(--heading);
}

/* Footer */
.site-footer {
  padding-block: 28px;
  border-top: 1px solid rgba(0, 229, 255, 0.06);
  background: #05080e;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer a {
  color: var(--muted);
  margin-left: 16px;
}

.site-footer a:first-child { margin-left: 0; }

@media (max-width: 600px) {
  main { padding-block: 32px 56px; }
  h1 { font-size: 1.8rem; }
  .hero h1 { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 { animation: none; }
  .btn, .cards li { transition: none; }
}
