/* ===================================================================
   Getting Started — Media Guard
   Dark theme matching landing page design.
   =================================================================== */

:root {
  --bg: #0B1220;
  --bg-2: #0F172A;
  --bg-3: #111a2e;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.09);
  --border-2: rgba(255,255,255,0.14);
  --text: #F5F5F4;
  --text-dim: #A8B0BA;
  --text-mute: #6B7280;
  --mint: #6EE7B7;
  --mint-glow: rgba(110, 231, 183, 0.25);
  --violet: #A78BFA;
  --violet-glow: rgba(167, 139, 250, 0.22);
  --red: #F87171;
  --amber: #FBBF24;
  --radius: 14px;
  --radius-lg: 22px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, system-ui, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.wmg-onboarding {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background decoration */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 75%);
  opacity: 0.5;
}
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px circle at 15% 10%, var(--mint-glow), transparent 50%),
    radial-gradient(700px circle at 85% 30%, var(--violet-glow), transparent 55%);
  opacity: 0.9;
}

/* Layout */
.gs-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
}

.gs-main { position: relative; z-index: 1; }

/* ---- NAV ---- */
.gs-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.gs-nav-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.gs-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.gs-logo-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--mint), #34d399);
  border-radius: 8px;
  color: #0B1220;
  box-shadow: 0 0 0 1px var(--border-2), 0 8px 24px -8px var(--mint-glow);
}
.gs-nav-back {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .15s;
}
.gs-nav-back:hover { color: var(--mint); }

/* ---- SUCCESS SECTION ---- */
.gs-success {
  padding: 60px 0 40px;
  text-align: center;
}
.gs-success-icon { margin-bottom: 16px; }
.gs-success h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.gs-success-sub {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- LICENSE CARD ---- */
.gs-license-card {
  background: rgba(110, 231, 183, 0.06);
  border: 1px solid rgba(110, 231, 183, 0.18);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  text-align: left;
}
.gs-license-product {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mint);
  margin-bottom: 8px;
}
.gs-license-key-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.gs-license-key {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  background: none;
  padding: 0;
}
.gs-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.gs-copy-btn:hover {
  color: var(--mint);
  border-color: var(--mint);
}
.gs-copy-btn.copied {
  color: var(--mint);
  border-color: var(--mint);
  background: rgba(110, 231, 183, 0.08);
}
.gs-license-expiry {
  font-size: 13px;
  color: var(--text-mute);
}

/* ---- BUTTONS ---- */
.gs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--sans);
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .2s;
  white-space: nowrap;
}
.gs-btn-primary {
  background: var(--mint);
  color: #0B1220;
  box-shadow: 0 8px 24px -10px var(--mint-glow), inset 0 1px 0 rgba(255,255,255,0.4);
}
.gs-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -10px var(--mint-glow), inset 0 1px 0 rgba(255,255,255,0.4);
}
.gs-btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}
.gs-btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-2);
}
.gs-btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
}

/* ---- SETUP GUIDE ---- */
.gs-guide {
  padding: 60px 0;
}
.gs-guide h1,
.gs-guide h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.gs-guide-sub {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 40px;
}

/* Steps */
.gs-steps {
  display: flex;
  flex-direction: column;
}
.gs-step {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.gs-step:first-child {
  border-top: 1px solid var(--border);
}
.gs-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mint);
  color: #0B1220;
  font-weight: 700;
  font-size: 16px;
  border-radius: 50%;
  margin-top: 2px;
  box-shadow: 0 0 20px -4px var(--mint-glow);
}
.gs-step-content {
  flex: 1;
  min-width: 0;
}
.gs-step-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.gs-step-content p {
  color: var(--text-dim);
  margin-bottom: 12px;
}
.gs-step-content p:last-child { margin-bottom: 0; }
.gs-step-content ol {
  padding-left: 20px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.gs-step-content ol li {
  margin-bottom: 6px;
}
.gs-step-content ol li:last-child { margin-bottom: 0; }
.gs-step-content code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--mint);
}
.gs-step-content strong {
  color: var(--text);
}
.gs-step-content a {
  color: var(--mint);
  text-decoration: none;
}
.gs-step-content a:hover {
  text-decoration: underline;
}

/* Inline key reminder */
.gs-inline-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(110, 231, 183, 0.06);
  border: 1px solid rgba(110, 231, 183, 0.18);
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}
.gs-inline-key span { color: var(--text-mute); }
.gs-inline-key code {
  font-family: var(--mono);
  font-weight: 600;
  background: none;
  padding: 0;
  color: var(--mint);
  font-size: 13px;
}

/* Code block */
.gs-code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 12px;
}
.gs-code-block code {
  font-family: var(--mono);
  font-size: 14px;
  background: none;
  padding: 0;
  color: var(--mint);
}

/* Note */
.gs-note {
  font-size: 14px;
  color: var(--text-mute);
  font-style: italic;
}

/* ---- HELP ---- */
.gs-help {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 40px;
}
.gs-help h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.gs-help p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
}
.gs-help a {
  color: var(--mint);
  text-decoration: none;
}
.gs-help a:hover { text-decoration: underline; }

/* ---- FOOTER ---- */
.gs-footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.gs-footer p {
  font-size: 13px;
  color: var(--text-mute);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .gs-success h1 { font-size: 26px; }
  .gs-license-key { font-size: 15px; }
  .gs-license-key-row { flex-wrap: wrap; }
  .gs-step { flex-direction: column; gap: 12px; }
  .gs-step-num { width: 32px; height: 32px; font-size: 14px; }
  .gs-guide h1, .gs-guide h2 { font-size: 24px; }
  .gs-btn-lg { padding: 12px 24px; font-size: 15px; }
}
