
:root {
  --bg: #080912;
  --bg-soft: #101220;
  --panel: rgba(18, 20, 36, 0.84);
  --panel-strong: rgba(24, 27, 47, 0.94);
  --gold: #d4af37;
  --gold-soft: #f7e7a1;
  --purple: #8b5cf6;
  --text: #f7f3e8;
  --muted: #b9b7c7;
  --code-bg: #070812;
  --border: rgba(212, 175, 55, 0.24);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  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;
  color: var(--text);
  background:
    linear-gradient(135deg, #070812, #101321 48%, #090a14);
  min-height: 100vh;
}

a {
  color: var(--gold-soft);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.layout {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(28px, 6vw, 64px);
  background:
    linear-gradient(135deg, rgba(20, 22, 42, 0.94), rgba(12, 13, 26, 0.9));
  box-shadow: var(--shadow);
}

.kicker {
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

h1, h2, h3 {
  line-height: 1.08;
  margin: 0;
}

h1 {
  margin-top: 12px;
  max-width: 860px;
  font-size: clamp(2.2rem, 7vw, 5rem);
  letter-spacing: 0;
}

.gold {
  background: linear-gradient(120deg, #fff9dc, #f7e7a1, #d4af37, #b8962e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 34px;
}

.nav a {
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav a:hover {
  background: rgba(212, 175, 55, 0.12);
  text-decoration: none;
}

.section {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 46px rgba(0,0,0,0.24);
  backdrop-filter: blur(14px);
}

.section h2 {
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  letter-spacing: 0;
}

.section h3 {
  margin: 26px 0 12px;
  font-size: 1.15rem;
  color: var(--gold-soft);
}

p, li {
  color: var(--muted);
  line-height: 1.72;
}

ol, ul {
  padding-left: 1.35rem;
}

.note {
  border-left: 3px solid var(--gold);
  padding: 12px 14px;
  margin: 18px 0;
  background: rgba(212, 175, 55, 0.08);
  color: var(--text);
  border-radius: 0 8px 8px 0;
}

.code-card {
  margin: 14px 0 22px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  background: var(--code-bg);
}

.code-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  color: var(--gold-soft);
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: #f7f3e8;
  font-size: 0.92rem;
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.command {
  padding: 18px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 8px;
  background: var(--panel-strong);
}

.command h3 {
  margin-top: 0;
}

.footer {
  margin-top: 34px;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .layout {
    width: min(100% - 22px, 1120px);
    padding-top: 14px;
  }

  .hero,
  .section {
    border-radius: 8px;
  }

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


/* Beginner-guide additions */
.step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #0a0b12;
  font-weight: 900;
  background: linear-gradient(135deg, #fff9dc, #f7e7a1, #d4af37);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.2);
}

.step h3,
.subsection h3 {
  margin-top: 0;
}

h4 {
  margin: 20px 0 8px;
  color: var(--text);
  font-size: 0.98rem;
}

.subsection {
  margin: 20px 0 28px;
  padding: 20px;
  border: 1px dashed rgba(212, 175, 55, 0.28);
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.055);
}

.intro-card {
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.10), rgba(139, 92, 246, 0.08)),
    var(--panel);
}

@media (max-width: 640px) {
  .step {
    grid-template-columns: 1fr;
  }

  .step-number {
    width: 36px;
    height: 36px;
  }
}
