:root {
  --bg: #080808;
  --bg-soft: #121212;
  --panel: rgba(18, 18, 18, 0.94);
  --border: rgba(212, 175, 55, 0.18);
  --border-strong: rgba(208, 70, 59, 0.3);
  --text-main: #f7f2e8;
  --text-soft: #cfbea6;
  --gold: #d4af37;
  --gold-soft: #f1d580;
  --red: #d0463b;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.36);
  --mono: "IBM Plex Mono", monospace;
  --display: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--display);
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.16), transparent 22%),
    radial-gradient(circle at top right, rgba(208, 70, 59, 0.16), transparent 28%),
    linear-gradient(180deg, #090909 0%, #050505 100%);
}

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

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

code,
pre {
  font-family: var(--mono);
}

.site-shell {
  width: min(1180px, calc(100% - 1.2rem));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.topbar,
.hero-card,
.content-card,
.feature-card,
.panel-card,
.image-card,
.code-card {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 24px;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-soft);
}

.eyebrow,
.meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-card,
.split-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1rem;
}

.hero-card,
.content-card {
  margin-top: 1rem;
  padding: 1.2rem;
  border-radius: 28px;
}

.hero-copy,
.hero-panel,
.section-heading {
  display: grid;
  gap: 0.8rem;
}

.hero-copy h1,
.section-heading h2,
.feature-card h3 {
  margin: 0;
  line-height: 1.08;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  max-width: 11ch;
}

.hero-copy p,
.feature-card p,
.panel-card p,
.steps li,
figcaption {
  color: var(--text-soft);
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid var(--border);
  transition: transform 180ms ease, border-color 180ms ease;
}

.button:hover,
.topbar nav a:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.button.primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--red));
  color: #090909;
  border-color: transparent;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
}

.panel-card,
.feature-card,
.image-card,
.code-card {
  border-radius: 20px;
  padding: 1rem;
}

.hero-panel {
  align-content: start;
}

.panel-card strong {
  display: block;
  margin: 0.4rem 0 0.5rem;
  font-size: 1.25rem;
}

.feature-grid,
.image-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.image-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.image-card {
  overflow: hidden;
}

.image-card img {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.steps {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.code-card {
  background: #0b0b0b;
}

.code-card pre {
  margin: 0;
  overflow: auto;
  color: #f2deb0;
}

@media (max-width: 920px) {
  .hero-card,
  .split-card,
  .feature-grid,
  .image-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-shell {
    width: min(calc(100% - 0.8rem), 1180px);
  }

  .hero-card,
  .content-card {
    padding: 1rem;
  }

  .hero-copy h1 {
    max-width: none;
  }
}
