/* ============================================
   HEIMDALL - Setup Page Styles
   ============================================ */

.setup-hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9rem 2rem 5rem;
  overflow: hidden;
  text-align: center;
}

.setup-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(212, 175, 55, 0.1), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(10, 10, 15, 1), transparent 62%);
  z-index: 2;
}

.setup-hero-content {
  position: relative;
  z-index: 3;
  max-width: 880px;
}

.setup-title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: 1.12;
  margin-bottom: 1.4rem;
}

.setup-sub {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 2.25rem;
  line-height: 1.85;
}

.setup-sub strong {
  color: var(--text-primary);
  font-weight: 600;
}

.setup-sub code,
.section-desc code,
.setup-callout code,
.step-list code,
.step-body p code,
.note-card p code {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  font-family: 'Courier New', monospace;
  font-size: 0.84em;
}

.setup-overview {
  padding-top: 1rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.overview-card {
  background: rgba(18, 18, 26, 0.94);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.overview-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.overview-label {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
}

.overview-card h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.overview-card p {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.94rem;
}

.setup-guide {
  background:
    linear-gradient(180deg, rgba(14, 14, 22, 0.88), rgba(10, 10, 15, 1)),
    var(--bg-section);
}

.setup-callout {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin: 0 auto 2rem;
  max-width: 920px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.setup-callout strong {
  color: var(--gold);
}

.step-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.step-number {
  position: sticky;
  top: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.04));
  border: 1px solid rgba(212, 175, 55, 0.24);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.step-body {
  background: rgba(18, 18, 26, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
}

.step-label {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--gold);
}

.step-body h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1.35;
  margin-bottom: 0.85rem;
}

.step-body p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.step-body pre,
.note-card pre {
  margin: 1rem 0 1.15rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: #0c0c12;
  border: 1px solid rgba(212, 175, 55, 0.12);
  overflow-x: auto;
}

.step-body pre code,
.note-card pre code {
  font-family: 'Courier New', monospace;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #f4edd8;
  background: none;
  border: none;
  padding: 0;
}

.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
}

.step-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.08);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.15rem;
}

.note-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 12px;
  padding: 1.2rem;
}

.note-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.55rem;
}

.note-card p {
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}

.setup-resources {
  padding-top: 2rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.resource-card {
  display: block;
  background: rgba(18, 18, 26, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.6rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.24);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.resource-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.resource-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  .overview-grid,
  .resource-grid,
  .note-grid {
    grid-template-columns: 1fr;
  }

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

  .step-number {
    position: relative;
    top: auto;
    width: 74px;
    height: 74px;
    font-size: 1.55rem;
  }
}

@media (max-width: 768px) {
  .setup-hero {
    min-height: auto;
    padding: 7rem 1.5rem 4rem;
  }

  .setup-title {
    font-size: clamp(2.1rem, 9vw, 3.2rem);
  }

  .setup-sub {
    font-size: 1rem;
  }

  .overview-card,
  .step-body,
  .resource-card {
    padding: 1.4rem;
  }

  .step-body h3 {
    font-size: 1.35rem;
  }
}
