:root {
  --bg: #090b0f;
  --bg-elevated: #10141a;
  --panel: rgba(17, 21, 27, 0.9);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f5f7fa;
  --muted: #a7b0bd;
  --soft: #dfe6f1;
  --accent: #b4c9ff;
  --accent-strong: #7aa2ff;
  --shadow: rgba(0, 0, 0, 0.3);
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
  background:
    radial-gradient(circle at top, rgba(122, 162, 255, 0.08), transparent 28%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.site-header {
  padding-top: 18px;
  padding-bottom: 28px;
}

.brand-wrap {
  margin-bottom: 18px;
}

.brand {
  display: inline-block;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 700;
  max-width: 760px;
}

.intro-copy {
  margin: 18px 0 0;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 680px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.step {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 24px;
  width: 100%;
  padding: 28px 22px 26px;
  background: rgba(16, 20, 26, 0.8);
  border: 1px solid var(--panel-border);
  border-radius: 30px;
  box-shadow: 0 10px 30px var(--shadow);
  min-height: 100%;
}

.step-number {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  opacity: 0.92;
  padding-top: 2px;
}

.step-content {
  min-width: 0;
}

.step-content h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.step-content p {
  margin: 0 0 18px;
  max-width: 620px;
  color: var(--soft);
  font-size: 1.02rem;
}

.step-media {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-media img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  background: #11161d;
  border-radius: inherit;
}

.page-footer {
  margin-top: 36px;
}

.done-card {
  background: linear-gradient(180deg, rgba(18, 23, 30, 0.95), rgba(11, 16, 21, 0.95));
  border: 1px solid var(--panel-border);
  border-radius: 30px;
  padding: 28px 26px;
  text-align: center;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.done-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.05em;
}

.done-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 16px 18px;
    border-radius: 24px;
  }

  .step-number {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .step-content h2 {
    font-size: 1.38rem;
  }

  .step-content p {
    font-size: 0.94rem;
    margin-bottom: 14px;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(calc(100% - 22px), var(--max-width));
    padding-top: 20px;
    padding-bottom: 52px;
  }

  .site-header {
    padding-bottom: 16px;
  }

  .brand {
    letter-spacing: 0.12em;
  }

  .steps {
    gap: 18px;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 16px 18px;
    border-radius: 22px;
  }

  .step-number {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    padding-top: 0;
  }

  .step-content h2 {
    font-size: 1.35rem;
    margin-bottom: 8px;
  }

  .step-content p {
    font-size: 0.97rem;
    margin-bottom: 14px;
  }

  .step-media {
    border-radius: 18px;
  }

  .done-card {
    padding: 22px 18px;
    border-radius: 22px;
  }
}
