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

:root {
  --bg: #ffffff;
  --bg-subtle: #f7f7f7;
  --border: #e5e5e5;
  --text: #111111;
  --text-muted: #666666;
  --text-soft: #86868b;
  --sidebar-width: 240px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* ── Top nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
}

.nav-logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-logo span {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  min-height: calc(100vh - 88px);
  padding: 140px 32px 80px;
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eyebrow {
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(56px, 9vw, 118px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 28px;
}

.subtitle {
  max-width: 680px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.18;
  color: var(--text);
  letter-spacing: -0.04em;
}

.description {
  margin-top: 28px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
}

.status {
  margin-top: 44px;
  font-size: 14px;
  color: var(--text-soft);
}

/* ── Docs layout ── */
.docs-layout {
  display: flex;
  padding-top: 56px;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 56px;
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - 56px);
  overflow-y: auto;
  padding: 32px 20px;
  border-right: 1px solid var(--border);
  background: var(--bg);
}

.sidebar-section {
  margin-bottom: 28px;
}

.sidebar-links {
  list-style: none;
}

.sidebar-links a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-links a:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.sidebar-links a.active {
  background: var(--bg-subtle);
  color: var(--text);
  font-weight: 500;
}

.docs-content {
  margin-left: var(--sidebar-width);
  padding: 64px 64px 96px;
  max-width: 840px;
  width: 100%;
}

.docs-content h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.docs-content .subtitle {
  max-width: 560px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: var(--text-muted);
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.beta-notice {
  max-width: 640px;
  padding: 40px 0;
}

.beta-notice .eyebrow {
  margin-bottom: 16px;
}

.beta-notice h2 {
  margin-bottom: 20px;
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.beta-notice p {
  max-width: 560px;
  margin-bottom: 16px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
}

footer p {
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav {
    padding: 0 20px;
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 8px 0 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 10px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .hero {
    min-height: calc(100vh - 88px);
    padding: 120px 24px 64px;
  }

  .description {
    font-size: 16px;
  }

  .sidebar {
    display: none;
  }

  .docs-content {
    margin-left: 0;
    padding: 48px 24px 80px;
  }

  .docs-content h1 {
    font-size: 30px;
  }

  .docs-content .subtitle {
    margin-bottom: 40px;
  }

  .beta-notice {
    padding: 24px 0;
  }

  .beta-notice p {
    font-size: 16px;
  }
}
