:root {
  --bg: #0a0a0a;
  --bg-elevated: #101010;
  --bg-card: #181818;
  --bg-card-hover: #202020;
  --border: #2a2a2a;
  --border-hover: #3a3a3a;
  --text: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #606060;
  --accent: #ffffff;
  --accent-subtle: #cccccc;
  --radius: 8px;
  --radius-lg: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1200px;
  --header-h: 60px;
}

@keyframes fade-up {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes scale-in {
  0%   { opacity: 0; transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

@keyframes slide-up {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

.reveal > *:not(.features-grid):not(.steps):not(.commands-list):not(.showcase-grid):not(.faq-grid):not(.bot-setup-grid) {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.reveal-visible > *:not(.features-grid):not(.steps):not(.commands-list):not(.showcase-grid):not(.faq-grid):not(.bot-setup-grid) {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.reveal.reveal-visible .reveal-stagger {
  opacity: 1;
  transform: translateY(0);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

::selection {
  background: #ffffff;
  color: #0a0a0a;
}

/* ─── Back to Top ─── */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 150;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.back-to-top:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--bg-card-hover);
}

.back-to-top-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ─── Utils ─── */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.65;
}

/* ─── Header ─── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s;
}

.header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo svg {
  color: var(--accent);
  width: 20px;
  height: 20px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.header-gh-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.header-gh-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.header-gh-link svg {
  width: 15px;
  height: 15px;
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  font-size: 0.85rem;
}

.nav-lang a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-lang a.active {
  color: var(--text);
  cursor: default;
  pointer-events: none;
}

.nav-lang span {
  color: var(--text-muted);
  font-size: 0.7rem;
  user-select: none;
}

/* ─── Hero ─── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: center center / cover no-repeat;
  background-image: inherit;
  filter: grayscale(1) brightness(0.18) contrast(1.6);
  animation: hero-zoom 25s ease-in-out infinite alternate;
}

@keyframes hero-zoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.06); }
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.4) 50%, rgba(10,10,10,0.92) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.02) 0%, transparent 65%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  animation: fade-up 0.6s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-title-accent {
  color: var(--accent);
}

.hero-desc {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ─── Hero Terminal ─── */

.hero-terminal {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0,0,0,0.5);
  animation: fade-up 0.6s ease 0.2s both;
  backdrop-filter: blur(4px);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

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

.terminal-dot:nth-child(1) { background: #555; }
.terminal-dot:nth-child(2) { background: #444; }
.terminal-dot:nth-child(3) { background: #333; }

.terminal-title {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.terminal-body {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.85;
  color: var(--text-secondary);
  overflow-x: auto;
  white-space: pre;
}

.t-green { color: #a0a0a0; }
.t-cyan  { color: #c0c0c0; }
.t-yellow { color: #b0b0b0; }
.t-dim  { color: #555; }

.terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: var(--text);
  animation: pulse-dot 1.2s infinite;
  vertical-align: text-bottom;
  margin-left: 1px;
}

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid var(--border);
  font-family: var(--font);
  background: var(--bg-card);
  color: var(--text);
}

.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--accent-subtle);
  border-color: var(--accent-subtle);
}

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

/* ─── Features ─── */

.features {
  padding: 100px 24px;
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.features .section-title,
.features .section-desc {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.features .section-label {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  width: fit-content;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-card-wide {
  grid-column: span 2;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── Stats ─── */

.stats {
  padding: 80px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.stat-value {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  color: var(--text);
}

.stat-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-label svg {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
}

/* ─── DSL Showcase ─── */

.showcase {
  padding: 100px 24px;
  overflow: hidden;
}

.showcase-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.showcase .section-title,
.showcase .section-desc {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.showcase .section-label {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  width: fit-content;
}

.showcase .section-desc {
  max-width: 560px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  margin-top: 48px;
  align-items: center;
}

.showcase-editor,
.showcase-result {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0,0,0,0.4);
  transition: border-color 0.3s;
}

.showcase-editor:hover,
.showcase-result:hover {
  border-color: var(--border-hover);
}

.editor-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.editor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.editor-dot:nth-child(1) { background: #555; }
.editor-dot:nth-child(2) { background: #444; }
.editor-dot:nth-child(3) { background: #333; }

.editor-filename {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.editor-body {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.75;
  color: var(--text-secondary);
  overflow-x: auto;
  white-space: pre;
}

.editor-body-result {
  color: var(--text-secondary);
}

.showcase-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  animation: slide-up 1s ease infinite alternate;
}

/* ─── How It Works ─── */

.how-it-works {
  padding: 100px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.how-inner .section-title,
.how-inner .section-desc {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.how-inner .section-label {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  width: fit-content;
}

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

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.step:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step-num {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.step-code {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 0.75rem;
  line-height: 1.7;
  overflow-x: auto;
  margin-top: auto;
}

.step-code code {
  font-family: var(--mono);
  color: var(--text-secondary);
}

/* ─── Commands ─── */

.commands {
  padding: 100px 24px;
}

.commands-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.commands-inner .section-title,
.commands-inner .section-desc {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.commands-inner .section-label {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  width: fit-content;
}

.commands-list {
  max-width: 600px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.command-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.command-row:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(3px);
}

.command-name {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-subtle);
  background: rgba(255,255,255,0.04);
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.command-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ─── Bot Setup ─── */

.bot-setup {
  padding: 100px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bot-setup-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.bot-setup-inner .section-title,
.bot-setup-inner .section-desc {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.bot-setup-inner .section-label {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  width: fit-content;
}

.bot-setup-inner .section-desc {
  max-width: 560px;
}

.bot-setup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.bot-setup-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.bot-setup-step:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.bot-setup-num {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 12px;
}

.bot-setup-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bot-setup-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.bot-setup-code {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 0.75rem;
  line-height: 1.7;
  overflow-x: auto;
  margin-top: auto;
  margin-bottom: 12px;
}

.bot-setup-code code {
  font-family: var(--mono);
  color: var(--text-secondary);
}

.bot-setup-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-subtle);
  text-decoration: none;
  transition: color 0.2s;
}

.bot-setup-link:hover {
  color: var(--text);
}

.bot-setup-link svg {
  width: 14px;
  height: 14px;
}

/* ─── FAQ ─── */

.faq {
  padding: 100px 24px;
}

.faq-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.faq-inner .section-title,
.faq-inner .section-desc {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.faq-inner .section-label {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  width: fit-content;
}

.faq-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s ease;
}

.faq-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.faq-card-q {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.faq-card-a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── Footer ─── */

.footer {
  padding: 56px 24px 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .logo {
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─── Responsive ─── */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-terminal {
    max-width: 520px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card-wide {
    grid-column: span 1;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-arrow {
    transform: rotate(90deg);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 700px) {
  .header-nav a:not(.header-gh-link),
  .nav-lang {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-inner {
    grid-template-columns: 1fr;
  }

  .command-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-terminal {
    display: none;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

/* ─── Page Section (docs, faq, changelog) ─── */

.page-section {
  padding: calc(var(--header-h) + 40px) 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-section h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.page-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
}

.page-section p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.page-section ul,
.page-section ol {
  margin: 0 0 20px 24px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.page-section li {
  margin-bottom: 6px;
}

.page-section pre {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
  margin: 16px 0 24px;
  color: var(--text-secondary);
}

.page-section code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--accent-subtle);
}

.page-section a {
  color: var(--accent-subtle);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-section a:hover {
  color: var(--text);
}

.page-section .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 32px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
}

.page-section .back-link:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

/* ─── Docs Layout ─── */

.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.docs-sidebar-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.docs-toc {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-toc li {
  margin-bottom: 0;
}

.docs-toc a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: all 0.2s;
  line-height: 1.5;
}

.docs-toc a:hover,
.docs-toc a.active {
  color: var(--text);
  border-left-color: var(--text);
}

.docs-toc .docs-toc-sublist {
  list-style: none;
  margin: 0 0 0 14px;
  padding: 0;
}

.docs-toc .docs-toc-sublist a {
  font-size: 0.78rem;
  padding: 2px 0 2px 12px;
}

.docs-content {
  min-width: 0;
}

.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.doc-card:hover {
  border-color: var(--border-hover);
}

.doc-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.doc-card-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--accent-subtle);
  letter-spacing: -0.01em;
}

.doc-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.doc-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.doc-card ul {
  margin: 0 0 12px 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.doc-card li {
  margin-bottom: 4px;
}

.doc-card pre {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.6;
  overflow-x: auto;
  margin: 8px 0 0;
  color: var(--text-secondary);
}

.doc-card code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--accent-subtle);
}

.doc-card .inline-code {
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--accent-subtle);
}

.doc-section-divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

@media (max-width: 960px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    display: none;
  }
}

/* ─── Release / Changelog ─── */

.release {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}

.release-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.release-version {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.release-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.release-tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--accent-subtle);
}

.release-changes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.release-change {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 4px 0;
}

.release-change-type {
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.release-change-feature .release-change-type { color: #57F287; }
.release-change-change .release-change-type { color: #FEE75C; }
.release-change-fix .release-change-type { color: #ED4245; }

/* ─── FAQ Page ─── */

.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item-q {
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.faq-item-q::-webkit-details-marker {
  display: none;
}

.faq-item-q::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item[open] .faq-item-q::after {
  content: '−';
}

.faq-item-a {
  padding-top: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item-a p {
  margin-bottom: 8px;
}

.faq-item-a ol,
.faq-item-a ul {
  margin: 0 0 8px 20px;
  line-height: 1.7;
}

.faq-item-a a {
  color: var(--accent-subtle);
  text-decoration: underline;
  text-underline-offset: 2px;
}
