:root {
  color-scheme: dark;
  --bg: #0e1116;
  --bg-2: #141920;
  --panel: rgba(20, 24, 31, 0.9);
  --panel-strong: rgba(25, 30, 38, 0.98);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #f3f4f6;
  --muted: #a9b0ba;
  --accent: #d8dde5;
  --accent-2: #8c94a1;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Aptos", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 28%),
    radial-gradient(circle at right center, rgba(255, 255, 255, 0.03), transparent 30%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 52%, #0c0f14 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 84%);
  opacity: 0.2;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 120px 120px;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
  display: grid;
  gap: 22px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(24, 29, 36, 0.92), rgba(16, 19, 25, 0.98));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 40px 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e0e4ea;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.ad-shell h3 {
  margin: 0;
  letter-spacing: -0.05em;
}

.hero h1 {
  margin-top: 18px;
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.92;
}

.hero-copy {
  max-width: 52ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions,
.key-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, opacity 160ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.button-giant {
  min-height: 76px;
  padding: 0 34px;
  border-radius: 22px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary {
  color: #111318;
  background: linear-gradient(135deg, var(--accent), #f3f4f6);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  font-weight: 800;
}

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

.hero-metrics {
  width: min(720px, 100%);
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-metrics > div,
.key-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel-strong);
  border-radius: var(--radius-lg);
}

.hero-metrics > div {
  padding: 18px 16px;
}

.metric-label {
  display: block;
  color: #9aa3af;
  font-size: 0.77rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-metrics strong,
.key-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.gate,
.key-panel {
  padding: 28px;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.ad-shell {
  margin-top: 22px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.ad-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #dde1e8;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-shell h3 {
  margin-top: 18px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.ad-shell-copy {
  max-width: 62ch;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.ad-shell p {
  max-width: 62ch;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.progress-wrap {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 180ms linear;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.94rem;
}

.ad-shell .button {
  margin-top: 18px;
}

.key-panel {
  display: grid;
  gap: 18px;
}

.key-card {
  padding: 22px;
}

#access-code {
  margin-top: 10px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.14em;
  word-break: break-word;
  font-family: "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
}

#preview-code {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.key-actions {
  justify-content: flex-start;
}

.ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-inline: auto;
}

.ad-slot--desktop {
  display: none;
}

.ad-slot--mobile {
  display: flex;
}

.ad-slot--top {
  margin-bottom: 4px;
}

.ad-slot--main {
  margin-top: 18px;
}

.ad-slot--bottom {
  margin-top: 4px;
}

.ad-slot__frame {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.ad-slot__frame--728x90 {
  width: min(728px, 100%);
  min-height: 90px;
}

.ad-slot__frame--320x50 {
  width: min(320px, 100%);
  min-height: 50px;
}

.ad-slot__frame--336x280 {
  width: min(336px, 100%);
  min-height: 280px;
}

.ad-slot__frame--320x100 {
  width: min(320px, 100%);
  min-height: 100px;
}

.ad-slot__frame--300x250 {
  width: min(300px, 100%);
  min-height: 250px;
}

.ad-slot__frame--160x600 {
  width: 160px;
  min-height: 600px;
}

.ad-slot__content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: inherit;
}

.ad-slot__content ins.adsbygoogle {
  width: 100%;
}

.ad-slot__placeholder {
  display: grid;
  gap: 6px;
  place-items: center;
  width: 100%;
  min-height: inherit;
  padding: 16px;
  text-align: center;
  color: var(--muted);
}

.ad-slot__placeholder-label,
.ad-slot__placeholder-id {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-slot__placeholder strong {
  color: #dbe4ff;
  font-size: 0.95rem;
}

.ad-slot__placeholder-note {
  max-width: 28ch;
  margin: 4px 0 0;
  color: #8fa0d0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.ad-rail {
  display: none;
}

.ad-rail--desktop {
  position: fixed;
  top: 50%;
  right: max(12px, calc((100vw - 1120px) / 2 - 180px));
  z-index: 2;
  transform: translateY(-50%);
  opacity: 0.96;
}

.ad-sticky {
  display: none;
}

.ad-sticky--mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: rgba(12, 15, 20, 0.96);
  backdrop-filter: blur(12px);
}

@media (min-width: 768px) {
  .ad-slot--desktop {
    display: flex;
  }

  .ad-slot--mobile {
    display: none;
  }

  .ad-sticky--mobile {
    display: none;
  }
}

@media (min-width: 1320px) {
  .ad-rail--desktop {
    display: block;
  }
}

@media (max-width: 767px) {
  .ad-sticky--mobile {
    display: block;
  }

  .page {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 860px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .page {
    width: min(100% - 20px, 1120px);
    padding: 18px 0 30px;
  }

  .hero {
    min-height: calc(100svh - 48px);
    padding: 34px 20px;
  }

  .gate,
  .key-panel {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .hero-actions,
  .key-actions {
    flex-direction: column;
    width: 100%;
  }

  .button,
  .button-giant {
    width: 100%;
  }

  .progress-meta {
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
  }
}
