:root {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #172234;
  --panel-soft: #1f2b3f;
  --border: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #5b5bf6;
  --accent: #34d399;
  --radius-xl: 28px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(91, 91, 246, 0.15), transparent 30%),
    radial-gradient(circle at right, rgba(52, 211, 153, 0.1), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(91, 91, 246, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.4);
  color: #c4b5fd;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.eyebrow {
  margin: 0 0 6px;
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
}

.panel {
  background: rgba(23, 34, 52, 0.92);
  border: 1px solid rgba(51, 65, 85, 0.95);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.panel-hero {
  min-height: 280px;
}

.body-copy {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button,
.link-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: linear-gradient(135deg, #5b5bf6, #7c5cff);
}

.button-secondary,
.link-home {
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(51, 65, 85, 0.95);
  color: #cbd5e1;
}

.surface-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.stack {
  display: grid;
  gap: 12px;
}

.stack-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}

.stack-label {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100%, calc(100% - 24px));
    padding-top: 18px;
  }

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

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel {
    padding: 22px;
  }

  .stack-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
