:root {
  --bg: #0b1020;
  --bg-alt: #10182e;
  --panel: #131d38;
  --panel-soft: #182444;
  --text: #e7ecf8;
  --muted: #a8b6d5;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #71a6ff;
  --primary-strong: #4888f5;
  --success: #19c37d;
  --warning: #f5b942;
  --danger: #ef6b73;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(72, 136, 245, 0.22), transparent 28%),
    radial-gradient(circle at top left, rgba(25, 195, 125, 0.16), transparent 22%),
    linear-gradient(180deg, #07101f 0%, #0b1020 35%, #0d1426 100%);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  backdrop-filter: blur(18px);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #8fbbff);
  color: #08101f;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand h1,
.brand p {
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.topnav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
}

main {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2rem 0 5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  padding: 3rem 0 2rem;
}

.hero-copy,
.hero-panel,
.card,
.resource-card,
.highlight,
.check-panel,
.tab-panel {
  background: linear-gradient(180deg, rgba(19, 29, 56, 0.92), rgba(13, 20, 38, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2rem;
}

.hero-panel {
  padding: 1.5rem;
}

.hero h2 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
}

.lead {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.5rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible,
.copy-button:hover,
.copy-button:focus-visible,
.tab:hover,
.tab:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #07111f;
}

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

.hero-badges {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-badges li {
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(113, 166, 255, 0.22);
  border-radius: 999px;
  background: rgba(113, 166, 255, 0.08);
  color: #d8e6ff;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-panel h3 {
  margin-top: 0;
}

.decision-card {
  padding: 1rem 1rem 1rem 1.1rem;
  border-radius: 18px;
  margin-top: 0.9rem;
  border: 1px solid var(--line);
}

.decision-card.success {
  background: rgba(25, 195, 125, 0.09);
}

.decision-card.info {
  background: rgba(113, 166, 255, 0.09);
}

.decision-card.warning {
  background: rgba(245, 185, 66, 0.1);
}

.decision-label {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 1.6rem 0;
}

.section.alt {
  position: relative;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card,
.highlight,
.check-panel,
.tab-panel {
  padding: 1.35rem;
}

.card h3,
.highlight h3,
.tab-panel h3 {
  margin-top: 0;
}

.wide {
  margin-top: 1rem;
}

.highlight {
  margin-top: 1rem;
  border-color: rgba(25, 195, 125, 0.2);
  background: linear-gradient(180deg, rgba(25, 195, 125, 0.1), rgba(19, 29, 56, 0.9));
}

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

.note {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.note h4 {
  margin: 0 0 0.4rem;
}

.note.full {
  margin-top: 1rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.tab {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.tab.is-active {
  background: rgba(113, 166, 255, 0.16);
  color: var(--text);
  border-color: rgba(113, 166, 255, 0.3);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.checklist,
.steps,
.timeline,
.resource-list {
  margin: 0;
  padding: 0;
}

.checklist {
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-top: 0.7rem;
  color: var(--muted);
  line-height: 1.65;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(25, 195, 125, 0.12);
}

.steps {
  padding-left: 1.2rem;
  color: var(--muted);
}

.steps li {
  margin: 0.85rem 0;
  line-height: 1.65;
}

.steps.compact li {
  margin: 0.5rem 0;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(180deg, rgba(19, 29, 56, 0.88), rgba(12, 19, 35, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.timeline-index {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(113, 166, 255, 0.12);
  color: #d8e6ff;
  font-weight: 800;
  font-size: 1.15rem;
}

.timeline-item h3 {
  margin: 0 0 0.35rem;
}

.timeline-item p,
.card p,
.highlight p,
.note p,
.resource-card p,
.footer p {
  color: var(--muted);
  line-height: 1.72;
}

.code-block {
  position: relative;
  margin-top: 0.9rem;
}

.copy-button {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 1;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

pre {
  margin: 0;
  padding: 1.1rem;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(113, 166, 255, 0.15);
  background: rgba(7, 11, 22, 0.9);
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.65;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}

thead {
  background: rgba(113, 166, 255, 0.08);
}

th,
td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}

th {
  color: var(--text);
}

.danger {
  border-color: rgba(239, 107, 115, 0.22);
  background: linear-gradient(180deg, rgba(239, 107, 115, 0.08), rgba(19, 29, 56, 0.96));
}

.check-panel {
  display: grid;
  gap: 0.9rem;
}

.check-panel label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.check-panel input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
}

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

.resource-card {
  display: block;
  padding: 1.2rem;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.resource-card:hover,
.resource-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(113, 166, 255, 0.28);
}

.resource-card h3 {
  margin-top: 0;
}

.footer {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 3rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
}

::selection {
  background: rgba(113, 166, 255, 0.35);
}

@media (max-width: 1080px) {
  .hero,
  .grid.two,
  .grid.three,
  .resource-list,
  .mini-grid {
    grid-template-columns: 1fr;
  }
}

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

  main,
  .footer {
    width: min(100% - 1rem, var(--max));
  }

  .hero-copy,
  .hero-panel,
  .card,
  .highlight,
  .tab-panel,
  .check-panel {
    padding: 1.1rem;
  }

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

  .timeline-index {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }
}
