:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-strong: #040814;
  --surface: rgba(8, 18, 35, 0.8);
  --surface-strong: rgba(11, 24, 46, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(148, 163, 184, 0.18);
  --text: #eef4ff;
  --muted: #9fb2d1;
  --muted-strong: #cad9f0;
  --accent: #63b3ff;
  --accent-strong: #8b5cf6;
  --success: #34d399;
  --warning: #fbbf24;
  --shadow: 0 32px 80px rgba(2, 8, 23, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(99, 179, 255, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 26%),
    linear-gradient(180deg, #091221 0%, var(--bg-strong) 100%);
}

a {
  color: inherit;
}

button,
select {
  font: inherit;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 80px;
}

.hero,
.summary-card,
.workflow-card,
.integration-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 32px;
  background:
    radial-gradient(circle at 0% 0%, rgba(99, 179, 255, 0.12), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(9, 19, 38, 0.98), rgba(7, 17, 31, 0.94));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 179, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.hero-topbar,
.hero-grid,
.summary-grid,
.workflow-grid,
.hero-actions,
.card-links,
.stats-grid,
.integration-meta {
  display: grid;
  gap: 16px;
}

.hero-topbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  margin-bottom: 32px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--muted-strong);
  font-weight: 700;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #08111f;
  font-weight: 900;
}

.eyebrow,
.panel-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-eyebrow {
  margin-bottom: 10px;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 16px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.lead,
.summary-card p,
.workflow-card p,
.integration-description,
.integration-start,
.section-description,
.terminal-note,
.command-caption,
.preview-label,
.stat-label {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 64ch;
  margin-bottom: 24px;
  font-size: 1.04rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr);
  align-items: start;
}

.hero-actions {
  grid-auto-flow: column;
  justify-content: start;
  width: fit-content;
  margin-bottom: 28px;
}

.button,
.copy-button,
.text-link {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.button:hover,
.copy-button:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  color: #08111f;
}

.button-secondary,
.copy-button {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.language-switcher {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 12px;
}

.language-switcher-label {
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.language-form {
  display: flex;
  margin: 0;
}

.language-select {
  width: 160px;
  min-height: 42px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(8, 19, 37, 0.78);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.stats-grid,
.summary-grid,
.workflow-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-card,
.summary-card,
.workflow-card {
  padding: 22px;
  border-radius: 24px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.stat-value {
  display: block;
  margin-bottom: 6px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
}

.hero-terminal {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(99, 179, 255, 0.18);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.94), rgba(6, 14, 28, 0.98));
}

.hero-terminal h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.summary-grid {
  margin: 26px 0 54px;
}

.summary-card {
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: attr(data-icon);
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  opacity: 0.18;
}

.workflow-section,
.integrations-section {
  margin-top: 18px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

.workflow-grid {
  margin-bottom: 56px;
}

.workflow-card {
  background: linear-gradient(180deg, rgba(11, 24, 43, 0.95), rgba(8, 18, 32, 0.86));
}

.workflow-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.integrations-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.integration-card {
  --theme: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(11, 23, 42, 0.95), rgba(7, 16, 30, 0.92)),
    linear-gradient(135deg, rgba(99, 179, 255, 0.16), transparent 45%);
}

.integration-card.theme-react {
  --theme: #61dafb;
}

.integration-card.theme-vue {
  --theme: #42d392;
}

.integration-card.theme-svelte {
  --theme: #ff8c4b;
}

.integration-card.theme-vanilla {
  --theme: #facc15;
}

.integration-card.theme-astro {
  --theme: #a78bfa;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.integration-badge,
.import-path,
.meta-chip,
.route-chip,
.command-toolbar span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.integration-badge {
  margin: 0 0 8px;
  color: var(--theme);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.import-path,
.meta-chip,
.route-chip {
  border: 1px solid color-mix(in srgb, var(--theme) 36%, transparent);
  background: color-mix(in srgb, var(--theme) 12%, transparent);
  color: var(--muted-strong);
}

.integration-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.preview-label {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.preview-path {
  color: var(--text);
  text-decoration: none;
}

.preview-path:hover,
.text-link:hover {
  color: var(--theme);
}

.command-panel {
  border: 1px solid color-mix(in srgb, var(--theme) 22%, rgba(148, 163, 184, 0.18));
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(5, 12, 24, 0.98), rgba(8, 17, 31, 0.98));
}

.command-panel.command-panel-featured {
  --theme: var(--accent);
}

.command-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.command-toolbar span:first-child {
  background: color-mix(in srgb, var(--theme) 16%, transparent);
  color: var(--text);
}

.command-toolbar span:last-child {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.command-lines {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
}

.command-line {
  display: grid;
  grid-template-columns: 26px 18px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  margin: 0;
  font-family: "SFMono-Regular", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92rem;
  line-height: 1.8;
}

.line-number {
  color: rgba(159, 178, 209, 0.54);
  text-align: right;
}

.line-prompt {
  color: var(--theme);
  font-weight: 900;
}

.line-command {
  color: var(--muted-strong);
  white-space: pre-wrap;
  word-break: break-word;
}

.command-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 16px;
}

.command-caption {
  max-width: 34ch;
  margin: 0;
  font-size: 0.92rem;
}

.card-links {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  padding-top: 4px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--theme) 42%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme) 13%, transparent);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(2, 8, 23, 0.22);
}

.text-link:first-child {
  background: linear-gradient(90deg, color-mix(in srgb, var(--theme) 82%, white 8%), color-mix(in srgb, var(--theme) 62%, var(--accent-strong)));
  color: #06101e;
}

.text-link::after {
  content: "↗";
  margin-left: 8px;
  font-size: 0.88rem;
}

.text-link:hover {
  border-color: var(--theme);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--theme) 22%, rgba(2, 8, 23, 0.42));
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .hero-topbar {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    grid-auto-flow: row;
    width: 100%;
  }

  .language-switcher {
    justify-content: start;
  }

  .language-select {
    width: 180px;
  }
}

@media (max-width: 700px) {
  .page {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .hero,
  .summary-card,
  .workflow-card,
  .integration-card {
    padding: 20px;
  }

  .card-header,
  .command-footer {
    flex-direction: column;
    align-items: start;
  }

  .integration-meta {
    grid-template-columns: 1fr;
  }

  .command-line {
    grid-template-columns: 20px 14px minmax(0, 1fr);
    gap: 8px;
  }
}
