:root {
  color-scheme: dark;
  --bg: #08111f;
  --bg-soft: #0f1b2d;
  --panel: rgba(13, 24, 42, 0.9);
  --panel-soft: rgba(22, 38, 61, 0.9);
  --border: rgba(125, 211, 252, 0.16);
  --border-strong: rgba(96, 165, 250, 0.32);
  --text: #eef6ff;
  --muted: #9fb3c8;
  --accent: #60a5fa;
  --accent-2: #7dd3fc;
  --accent-3: #f59e0b;
  --success: #2ea043;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(96, 165, 250, 0.16), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(245, 158, 11, 0.14), transparent 18%),
    linear-gradient(180deg, #07101c 0%, #091321 40%, #060d18 100%);
  color: var(--text);
}

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

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar,
.hero-grid,
.footer,
.split-section,
.feature-grid,
.check-grid,
.cta-row {
  display: grid;
  gap: 16px;
}

.topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  width: 40px;
  height: 40px;
}

.topbar-actions {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.ghost-link,
.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ghost-link {
  border-color: var(--border);
  color: var(--muted);
}

.primary-link {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #05101d;
  font-weight: 700;
}

.secondary-link {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}

.large {
  min-height: 48px;
  padding: 0 20px;
}

.ghost-link:hover,
.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-1px);
}

.hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
}

.hero-copy h1,
.section h2 {
  margin: 0;
  line-height: 1.06;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.8vw, 4.5rem);
  max-width: 12ch;
}

.hero-text,
.download-card p,
.footer p,
.feature-card p,
.check-card span {
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-highlights {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.hero-highlights li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-3);
  margin-right: 10px;
}

.hero-panel,
.feature-card,
.check-card,
.download-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(12, 22, 38, 0.94), rgba(10, 17, 30, 0.9));
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 18px;
  border-radius: 28px;
}

.window-chrome {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.window-chrome span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.workspace-preview {
  display: grid;
  grid-template-columns: 64px 1fr;
  min-height: 480px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: #0b1422;
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  background: #09111c;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-sidebar-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.preview-sidebar-icon.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.preview-sidebar-icon.settings {
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.preview-sidebar-spacer {
  flex: 1;
}

.preview-main {
  display: grid;
  grid-template-rows: auto 1fr;
}

.preview-tabs {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.preview-tab {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.preview-tab.active {
  color: var(--text);
  border: 1px solid rgba(96, 165, 250, 0.38);
}

.preview-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 0;
}

.preview-editor,
.preview-response {
  padding: 16px;
}

.preview-editor {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
  overflow: hidden;
}

.method,
.response-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.method.get {
  color: #98ffb6;
  background: rgba(46, 160, 67, 0.18);
  border: 1px solid rgba(46, 160, 67, 0.4);
}

.endpoint {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.code-block {
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #dbeafe;
  font: 500 0.92rem/1.7 "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.response-badge.success {
  margin-bottom: 12px;
  color: #9ff0ae;
  background: rgba(46, 160, 67, 0.18);
  border: 1px solid rgba(46, 160, 67, 0.38);
}

.section {
  margin-top: 88px;
}

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

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.check-card,
.download-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.feature-card h3,
.check-card strong {
  display: block;
  margin-bottom: 10px;
}

.split-section {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

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

.check-card {
  background: linear-gradient(180deg, rgba(14, 25, 42, 0.95), rgba(11, 20, 34, 0.95));
}

.download-card {
  padding: 32px;
  text-align: center;
}

.download-card h2 {
  margin-bottom: 12px;
}

.footer {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 88px;
  padding: 24px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
  display: inline-flex;
  gap: 16px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .split-section,
  .feature-grid,
  .check-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .workspace-preview {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 16px;
  }

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

  .topbar-actions,
  .cta-row {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    display: grid;
  }

  .preview-content {
    grid-template-columns: 1fr;
  }

  .preview-editor {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .workspace-preview {
    grid-template-columns: 56px 1fr;
  }

  .feature-card,
  .check-card,
  .download-card,
  .hero-panel {
    border-radius: 18px;
  }
}
