.stack-guide-page {
  --sg-bg: #030916;
  --sg-panel: #09152c;
  --sg-text: #edf4ff;
  --sg-muted: #9aacc7;
  --sg-blue: #016bfb;
  --sg-blue-soft: #6ab8ff;
  color: var(--sg-text);
  background: var(--sg-bg);
}

.stack-guide-page h1,
.stack-guide-page h2,
.stack-guide-page p { margin-top: 0; }

.stack-guide-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 80% 15%, rgba(1, 107, 251, .28), transparent 34rem),
    linear-gradient(180deg, #061126 0%, #030916 82%);
}

.stack-guide-hero::after {
  content: "";
  position: absolute;
  inset: auto -15% -10rem 35%;
  height: 18rem;
  background: radial-gradient(ellipse, rgba(106, 184, 255, .12), transparent 70%);
  pointer-events: none;
}

.stack-guide-hero-grid,
.stack-guide-capture-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.stack-guide-copy { max-width: 760px; }

.stack-guide-eyebrow,
.stack-guide-card-kicker {
  margin-bottom: .8rem;
  color: var(--sg-blue-soft);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.stack-guide-copy h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.stack-guide-copy h1 span { color: var(--sg-blue-soft); }

.stack-guide-lede,
.stack-guide-section-head > p:last-child,
.stack-guide-capture-copy > p,
.stack-guide-after > p:last-child {
  color: var(--sg-muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.7;
}

.stack-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.1rem;
  align-items: center;
  margin: 2rem 0;
}

.stack-guide-secondary {
  color: var(--sg-text);
  font-weight: 800;
  text-underline-offset: .25rem;
}

.stack-guide-proof {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-guide-proof li {
  padding: .55rem .75rem;
  border: 1px solid rgba(218, 232, 255, .13);
  border-radius: 999px;
  color: var(--sg-muted);
  background: rgba(255, 255, 255, .035);
  font-size: .85rem;
}

.stack-guide-card,
.stack-guide-form-card {
  position: relative;
  border: 1px solid rgba(106, 184, 255, .24);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(9, 21, 44, .98), rgba(5, 14, 31, .98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .04);
}

.stack-guide-card { padding: clamp(1.4rem, 4vw, 2.2rem); }
.stack-guide-card h2 { margin-bottom: 1.25rem; font-size: clamp(3rem, 7vw, 5rem); letter-spacing: -.05em; }
.stack-guide-card dl { display: grid; gap: .6rem; margin: 0; }
.stack-guide-card dl > div { display: grid; grid-template-columns: 2.5rem 1fr; gap: .8rem; align-items: center; padding: .8rem; border: 1px solid rgba(218, 232, 255, .09); border-radius: 14px; background: rgba(255, 255, 255, .025); }
.stack-guide-card dt { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; color: #fff; background: var(--sg-blue); font-weight: 900; }
.stack-guide-card dd { margin: 0; }
.stack-guide-card dd strong,
.stack-guide-card dd span { display: block; }
.stack-guide-card dd span { margin-top: .1rem; color: var(--sg-muted); font-size: .85rem; }

.stack-guide-method,
.stack-guide-after { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.stack-guide-section-head { max-width: 760px; }
.stack-guide-section-head h2,
.stack-guide-capture-copy h2,
.stack-guide-after h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.035em; }

.stack-guide-gates {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 2rem;
}

.stack-guide-gates article {
  min-height: 135px;
  padding: 1rem;
  border: 1px solid rgba(218, 232, 255, .12);
  border-radius: 18px;
  background: rgba(9, 21, 44, .68);
}
.stack-guide-gates strong { display: block; margin-bottom: .55rem; color: var(--sg-blue-soft); font-size: .9rem; letter-spacing: .09em; }
.stack-guide-gates span { color: var(--sg-muted); line-height: 1.45; }

.stack-guide-band {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  border-block: 1px solid rgba(218, 232, 255, .09);
  background: linear-gradient(180deg, rgba(9, 21, 44, .66), rgba(3, 9, 22, .92));
}

.stack-guide-capture-copy { max-width: 680px; }
.stack-guide-example { margin-top: 1.5rem; padding: 1.15rem 1.25rem; border-left: 3px solid var(--sg-blue); border-radius: 0 14px 14px 0; background: rgba(1, 107, 251, .08); }
.stack-guide-example span { display: block; margin-bottom: .3rem; color: var(--sg-blue-soft); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .11em; }
.stack-guide-example p { margin: 0; line-height: 1.6; }

.stack-guide-form-card { padding: clamp(1.3rem, 4vw, 2rem); }
.stack-guide-form-card h2 { margin-bottom: .55rem; }
.stack-guide-form-lede,
.stack-guide-privacy,
.stack-guide-security { color: var(--sg-muted); }
.stack-guide-form .btn { width: 100%; justify-content: center; }
.stack-guide-privacy { margin: -.15rem 0 .9rem; font-size: .82rem; line-height: 1.45; }
.stack-guide-security { margin: 1rem 0 0; text-align: center; font-size: .78rem; }
.stack-guide-success .btn { margin-top: .75rem; }
.stack-guide-after { max-width: 860px; text-align: center; }

@media (max-width: 980px) {
  .stack-guide-hero-grid,
  .stack-guide-capture-grid { grid-template-columns: 1fr; }
  .stack-guide-card { max-width: 620px; }
  .stack-guide-gates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .stack-guide-hero { padding-top: 3.5rem; }
  .stack-guide-copy h1 { font-size: clamp(2.45rem, 13vw, 3.6rem); }
  .stack-guide-actions { align-items: stretch; }
  .stack-guide-actions .btn,
  .stack-guide-secondary { width: 100%; justify-content: center; text-align: center; }
  .stack-guide-gates { grid-template-columns: 1fr 1fr; }
  .stack-guide-gates article { min-height: 110px; }
  .stack-guide-card,
  .stack-guide-form-card { border-radius: 22px; }
}

@media (max-width: 420px) {
  .stack-guide-gates { grid-template-columns: 1fr; }
}
