@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #020617;
  --bg-elevated: #0f172a;
  --surface: #1e293b;
  --border: #334155;
  --border-soft: rgba(51, 65, 85, 0.6);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #0ea5e9;
  --accent-glow: rgba(14, 165, 233, 0.25);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.15);
  --orange: #f97316;
  --red: #ef4444;
  --discord: #5865f2;
  --discord-glow: rgba(88, 101, 242, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --max: 920px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Figtree', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(14, 165, 233, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(88, 101, 242, 0.08), transparent),
    linear-gradient(rgba(51, 65, 85, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 65, 85, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(2, 6, 23, 0.82);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover { text-decoration: none; }

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #0369a1);
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.header-cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Layout ── */
.page {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 100px;
}

/* ── Hero ── */
.hero {
  padding: 48px 0 40px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-dim);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 span {
  background: linear-gradient(135deg, #38bdf8, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 32px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.stat {
  text-align: center;
}

.stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* ── Motto ── */
.motto {
  margin: 4px 0 36px;
  padding: 18px 16px;
  text-align: center;
  border-top: 1px solid var(--border-soft);
}

.motto-text {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 6px;
}

.motto-end {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  opacity: 0.75;
}

/* ── Journey stepper ── */
.journey {
  margin: 20px 0 36px;
}

.journey-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative;
}

.journey-track::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.journey-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--muted);
  transition: color 0.2s;
}

.journey-step:hover { color: var(--text); }

.journey-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  transition: all 0.25s;
}

.journey-step.active .journey-num,
.journey-step.done .journey-num {
  border-color: var(--accent);
  background: var(--accent);
  color: #082f49;
  box-shadow: 0 0 20px var(--accent-glow);
}

.journey-step.done .journey-num {
  background: var(--green);
  border-color: var(--green);
}

.journey-label {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  max-width: 90px;
}

.journey-step.active .journey-label { color: var(--accent); }

@media (max-width: 600px) {
  .journey-track { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .journey-track::before { display: none; }
}

/* ── Step navigation ── */
.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}

.step-nav-card {
  margin-top: 24px;
  margin-bottom: 0;
  background: rgba(2, 6, 23, 0.5);
}

.step-indicator {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  flex: 1;
  min-width: 0;
}

.step-nav .btn-step-prev,
.step-nav .btn-step-next {
  min-width: 120px;
}

.step-nav .btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

@media (max-width: 520px) {
  .step-nav .btn-step-prev,
  .step-nav .btn-step-next {
    min-width: auto;
    padding: 10px 12px;
    font-size: 13px;
  }
  .step-indicator { font-size: 12px; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.05); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, var(--accent));
  color: #082f49;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-discord {
  background: var(--discord);
  color: #fff;
  box-shadow: 0 4px 20px var(--discord-glow);
}

.btn-success {
  background: linear-gradient(135deg, #4ade80, var(--green));
  color: #052e16;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-sm { padding: 8px 14px; font-size: 13px; }

.btn-icon { font-size: 16px; line-height: 1; }

/* ── Cards ── */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}

.card-icon.blue { background: rgba(14, 165, 233, 0.15); }
.card-icon.discord { background: rgba(88, 101, 242, 0.15); }
.card-icon.green { background: var(--green-dim); }
.card-icon.orange { background: rgba(249, 115, 22, 0.15); }

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.card-desc {
  color: var(--muted);
  font-size: 15px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

/* ── Checklist ── */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #cbd5e1;
  padding: 12px 14px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.checklist li:hover { border-color: var(--border-soft); }

.check-num {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ── Code / commands ── */
code, .cmd {
  font-family: 'Consolas', 'SF Mono', monospace;
  font-size: 0.9em;
}

code {
  background: rgba(2, 6, 23, 0.8);
  padding: 2px 8px;
  border-radius: 6px;
  color: #7dd3fc;
  border: 1px solid var(--border-soft);
}

.cmd-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #0a0f1a;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 12px 0;
}

.cmd-block .cmd {
  flex: 1;
  color: #e2e8f0;
  font-size: 15px;
}

.cmd-block .cmd-prefix { color: var(--discord); font-weight: 700; }

/* ── Visual mocks ── */
.visual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 700px) {
  .visual-row { grid-template-columns: 1fr; }
}

.mock-browser {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #0f172a;
  border-bottom: 1px solid var(--border);
}

.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot.r { background: #ef4444; }
.mock-dot.y { background: #eab308; }
.mock-dot.g { background: #22c55e; }

.mock-url {
  flex: 1;
  margin-left: 8px;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 6px;
}

.mock-body {
  height: 160px;
  position: relative;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.mock-widget {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  width: 168px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.mock-widget-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.mock-widget-btn {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
}

.mock-widget-btn.copied {
  background: var(--green);
}

.mock-discord {
  background: #313338;
  border-radius: 12px;
  border: 1px solid #1e1f22;
  padding: 16px;
}

.mock-discord-channel {
  font-size: 12px;
  color: #949ba4;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-discord-msg {
  background: #2b2d31;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.mock-discord-cmd {
  color: #dbdee1;
  font-size: 14px;
}

.mock-discord-cmd span { color: #5865f2; }

/* Stock preview bars */
.stock-preview {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}

.stock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.stock-row:last-child { margin-bottom: 0; }

.stock-name {
  width: 80px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}

.stock-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.stock-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.stock-pct {
  width: 36px;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

/* ── Info boxes ── */
.info-box {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-top: 16px;
}

.info-box.tip {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: #bae6fd;
}

.info-box.warn {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: #fed7aa;
}

/* ── FAQ ── */
.faq {
  margin-top: 32px;
}

.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.faq-q:hover { background: rgba(30, 41, 59, 0.4); }

.faq-q .chevron {
  transition: transform 0.2s;
  color: var(--muted);
  font-size: 12px;
}

.faq-item.open .faq-q .chevron { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.faq-item.open .faq-a { display: block; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-elevated);
  border: 1px solid var(--green);
  color: var(--green);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
  max-width: calc(100% - 40px);
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── Sticky dock (mobile) ── */
.action-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 16px;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-soft);
  display: none;
  gap: 8px;
}

.action-dock .btn { flex: 1; padding: 12px 10px; font-size: 13px; }

@media (max-width: 768px) {
  .action-dock { display: flex; }
  .page { padding-bottom: 120px; }
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border-soft);
  margin-top: 48px;
}

.site-footer p + p {
  margin-top: 10px;
}

.site-contact {
  font-size: 13px;
  color: var(--muted);
}

.contact-link {
  display: inline;
  border: none;
  background: none;
  padding: 0 2px;
  font: inherit;
  font-weight: 600;
  color: var(--discord);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-link:hover {
  color: #818cf8;
}

.contact-link-inline {
  font-size: inherit;
  vertical-align: baseline;
}

.section-anchor {
  scroll-margin-top: 80px;
}

.hidden-section { display: none; }
.hidden-section.active { display: block; }
