/* ══════════════════════════════════════════════════════
   Arrakis Control Panel — Landing Page Styles
   ═══════════════════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
  --bg-deep: #0d0f12;
  --bg-board: #1a1510;
  --parchment: #f5e6c8;
  --parchment-dark: #d4c4a0;
  --sand-light: #ffd08a;
  --sand-mid: #c68b4a;
  --spice-glow: #e8a84c;
  --sienna: #6b3a2a;
  --text-dark: #1a1510;
  --text-light: #f3efe7;
  --muted: #ad9f89;
  --muted-warm: #ceb894;
  --success: #3d8b62;
  --danger: #a74949;
  --border: #302b25;
  --border-strong: #4d4032;
  --font-heading: 'Marcellus', serif;
  --font-body: 'Inter', sans-serif;
  --font-code: ui-monospace, 'SF Mono', 'Consolas', monospace;
  --max-width: 1200px;
  --nav-height: 64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--sand-light); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code { font-family: var(--font-code); font-size: 0.9em; }

/* Focus visibility (fixes #31) */
:focus-visible {
  outline: 2px solid var(--spice-glow);
  outline-offset: 2px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }
[data-reveal]:focus-within { opacity: 1; transform: translateY(0); }

/* Skip link (fixes #39) */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 200;
  padding: 12px 20px; background: var(--spice-glow); color: var(--bg-deep);
  font-weight: 700; font-size: 14px; border-radius: 0 0 8px 8px;
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 0; outline: none; }

/* ─ Sand Particles ── */
.sand-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sand-particle {
  position: absolute;
  border-radius: 50%;
  background: rgb(255, 208, 138, 0.35);
  animation: sandDrift linear infinite;
}
@keyframes sandDrift {
  0%   { transform: translateX(-5vw) translateY(0); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.7; }
  100% { transform: translateX(105vw) translateY(15vh); opacity: 0; }
}

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgb(13, 15, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}
.nav-brand:hover { text-decoration: none; color: var(--sand-light); }
.nav-brand-group {
  display: flex; align-items: center; gap: 10px;
}
.nav-version {
  font-family: var(--font-code);
  font-size: 11px;
  color: var(--muted);
  background: rgb(232, 168, 76, 0.1);
  border: 1px solid rgb(232, 168, 76, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.nav-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgb(232, 168, 76, 0.4);
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--sand-light); text-decoration: none; }
.nav-cta {
  background: linear-gradient(135deg, var(--spice-glow), var(--sand-mid));
  color: var(--text-dark) !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgb(232, 168, 76, 0.35);
  text-decoration: none;
}
.nav-console {
  background: rgb(232, 168, 76, 0.15);
  color: var(--sand-light) !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid rgb(232, 168, 76, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.nav-console:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgb(232, 168, 76, 0.25);
  background: rgb(232, 168, 76, 0.25);
  text-decoration: none;
}
.nav-donate {
  background: rgb(255, 90, 95, 0.15);
  color: var(--sand-light) !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid rgb(255, 90, 95, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.nav-donate:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgb(255, 90, 95, 0.25);
  background: rgb(255, 90, 95, 0.25);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle-bar {
  width: 24px; height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: 0.3s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgb(232, 168, 76, 0.12) 0%, transparent 70%);
  animation: glowPulse 6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes glowPulse {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-icon {
  display: block;
  width: 120px; height: 120px;
  margin: 0 auto 24px;
  border-radius: 24px;
  box-shadow: 0 0 40px rgb(232, 168, 76, 0.3), 0 0 80px rgb(232, 168, 76, 0.15);
  animation: iconFloat 4s ease-in-out infinite alternate;
}
@keyframes iconFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}
.hero-quote {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 64px);
  color: var(--sand-light);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.hero-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(18px, 3vw, 24px);
  color: var(--parchment-dark);
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Bot Preview ── */
/* ──────────────────────────────────────────────
   Bot Preview — Discord Mockup
   ────────────────────────────────────────────── */
.bot-preview {
  position: relative; z-index: 1;
  padding: 80px 24px;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgb(232 168 76 / .04) 0%, transparent 100%);
}
.discord-mockup {
  max-width: 520px; margin: 0 auto;
  position: relative;
  border-radius: 8px; overflow: hidden;
  background: #313338;
  border: 1px solid rgb(255 255 255 / .06);
  box-shadow: 0 4px 16px rgb(0 0 0 / .35), 0 1px 4px rgb(0 0 0 / .25);
}
.mockup-label {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--spice-glow);
  background: rgb(232 168 76 / .12);
  border: 1px solid rgb(232 168 76 / .25);
  padding: 2px 8px; border-radius: 3px;
}

/* ── Chat area ── */
.discord-channel-name {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  color: #80848e; font-size: 14px; font-weight: 600;
  border-bottom: 1px solid #3f4147;
}
.mockup-divider {
  height: 1px; background: #26272b;
}

/* ── Message ── */
.mockup-msg {
  display: flex; gap: 12px;
  padding: 12px 14px 8px;
}
.mockup-msg:hover { background: rgb(255 255 255 / .01); }
.mockup-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.user-av { background: #5865f2; color: #fff; }
.bot-av {
  background: linear-gradient(135deg, var(--spice-glow), #c87d2e);
}
.mockup-msg-content { flex: 1; min-width: 0; }
.mockup-msg-header {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 4px;
}
.mockup-username {
  font-weight: 600; font-size: 15px; color: #f2f3f5;
}
.mockup-bot-name { color: var(--spice-glow); }
.mockup-bot-tag {
  display: inline-flex; align-items: center;
  background: #5865f2; color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 4px; border-radius: 3px;
  line-height: 1.5;
}
.mockup-timestamp {
  color: #80848e; font-size: 11px; margin-left: 4px;
}
.mockup-cmd-wrapper { margin-top: 2px; }
.mockup-cmd {
  color: #c9cdfb; font-size: 15px;
}

/* ── Embed ── */
.mockup-embed {
  display: flex;
  margin-top: 8px;
  background: #2b2d31;
  border-radius: 4px;
  max-width: 420px;
}
.mockup-embed-accent {
  width: 4px; flex-shrink: 0;
  background: var(--spice-glow);
  border-radius: 4px 0 0 4px;
}
.mockup-embed-accent.accent-green { background: #23a55a; }
.mockup-embed-body {
  padding: 10px 14px 12px;
  flex: 1; min-width: 0;
}
.mockup-embed-author {
  display: flex; align-items: center; gap: 8px;
  color: #dbdee1; font-weight: 600; font-size: 13px;
  margin-bottom: 8px;
}
.mockup-embed-desc {
  color: #dbdee1; font-size: 14px;
  margin-bottom: 10px; line-height: 1.5;
}
.mockup-embed-desc strong { color: #f2f3f5; }
.mockup-embed-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}
.mockup-field-label {
  color: #80848e;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 2px;
}
.mockup-field-value {
  color: #dbdee1; font-size: 14px; font-weight: 500;
}
.mockup-field-value.status-on { color: #23a55a; font-weight: 600; }
.mockup-embed-footer {
  display: flex; align-items: center; gap: 6px;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid #3f4147;
  color: #80848e; font-size: 11px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--spice-glow), var(--sand-mid));
  color: var(--text-dark);
  font-weight: 700;
  font-size: 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgb(232, 168, 76, 0.3);
  animation: ctaGlow 3s ease-in-out infinite alternate;
}
@keyframes ctaGlow {
  0% { box-shadow: 0 4px 24px rgb(232, 168, 76, 0.3); }
  100% { box-shadow: 0 4px 36px rgb(232, 168, 76, 0.5), 0 0 60px rgb(232, 168, 76, 0.15); }
}
.btn-primary:hover { transform: translateY(-2px); text-decoration: none; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid var(--border-strong);
  background: rgb(26, 21, 16, 0.6);
  color: var(--text-light);
  font-weight: 600;
  font-size: 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover {
  border-color: var(--sand-mid);
  background: rgb(198, 139, 74, 0.1);
  text-decoration: none;
}
.hero-donate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: rgb(232, 168, 76, 0.6);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.hero-donate:hover {
  color: rgb(232, 168, 76, 0.9);
  text-decoration: none;
}
.hero-donate svg {
  color: #ff5a5f;
  opacity: 0.8;
}
.hero-donate:hover svg {
  opacity: 1;
}

/* ── Stats Bar ─ */
.stats-bar {
  position: relative;
  z-index: 1;
  background: rgb(26, 21, 16, 0.5);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
}
.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--sand-light);
  font-weight: 700;
  line-height: 1.1;
  transition: color 0.3s;
}
.stat-number.stat-loading {
  color: transparent;
  background: rgb(198, 139, 74, 0.15);
  border-radius: 4px;
  min-width: 3em;
  animation: statBlink 1.5s ease-in-out infinite;
}
@keyframes statBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.stat-number.loaded {
  animation: statAppear 0.4s ease;
}
@keyframes statAppear {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}
.stat-suffix {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--sand-mid);
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.stat-version {
  font-family: var(--font-code);
  font-size: 28px;
  color: var(--sand-light);
  font-weight: 700;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-strong);
}
.stats-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
.badge-pill {
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-warm, #ceb894);
  background: rgb(198, 139, 74, 0.08);
  white-space: nowrap;
}
.stats-live-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4CAF50;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgb(76, 175, 80, 0.4); }
  50% { opacity: 0.5; box-shadow: 0 0 0 4px rgb(76, 175, 80, 0); }
}
.live-text {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-item.updating .stat-number {
  animation: statPulse 0.6s ease;
}
@keyframes statPulse {
  0% { color: var(--sand-light); }
  50% { color: var(--spice-glow); }
  100% { color: var(--sand-light); }
}

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 36px);
  color: var(--sand-light);
  margin-bottom: 12px;
}
.section-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--muted);
  font-size: 17px;
}
.section-quote {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--muted);
  font-size: 18px;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Section Visual Rhythm ── */
.features,
.security,
.setup-cta {
  background: rgb(26, 21, 16, 0.3);
}
.how-it-works,
.commands,
.faq {
  background: transparent;
}
.bot-preview + .stats-bar {
  border-top: 1px solid rgb(232, 168, 76, 0.08);
}
.stats-bar + .features {
  border-top: 1px solid rgb(232, 168, 76, 0.08);
}
.features + .how-it-works {
  border-top: 1px solid rgb(232, 168, 76, 0.08);
}
.how-it-works + .security {
  border-top: 1px solid rgb(232, 168, 76, 0.08);
}
.security + .commands {
  border-top: 1px solid rgb(232, 168, 76, 0.08);
}
.commands + .setup-cta {
  border-top: 1px solid rgb(232, 168, 76, 0.08);
}
.setup-cta + .faq {
  border-top: 1px solid rgb(232, 168, 76, 0.08);
}

/* ── Features / Questboard ── */
.features {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
}
.questboard {
  max-width: var(--max-width);
  margin: 0 auto;
}
.board-frame {
  position: relative;
  border: 8px solid var(--bg-board);
  border-radius: 12px;
  padding: 32px;
  background:
    repeating-linear-gradient(
      90deg,
      rgb(26, 21, 16, 0.9) 0px,
      rgb(34, 28, 20, 0.9) 2px,
      rgb(26, 21, 16, 0.9) 4px,
      rgb(30, 25, 18, 0.9) 8px
    );
  box-shadow: inset 0 0 40px rgb(0,0,0,0.4), 0 8px 32px rgb(0,0,0,0.3);
}
.board-frame::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px solid rgb(198, 139, 74, 0.15);
  border-radius: 8px;
  pointer-events: none;
}
.quest-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.quest-card {
  position: relative;
  perspective: 600px;
}
.quest-card-wide {
  grid-column: 1 / -1;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}
.quest-pin {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e8c87a, #a07830);
  box-shadow: 0 2px 6px rgb(0,0,0,0.5), 0 0 0 2px rgb(160, 120, 48, 0.3);
  z-index: 2;
}
.quest-parchment {
  position: relative;
  padding: 24px 20px 20px;
  background:
    radial-gradient(ellipse at 50% 0%, rgb(245, 230, 200, 0.95), rgb(212, 196, 160, 0.92));
  border-radius: 4px;
  color: var(--text-dark);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgb(0,0,0,0.2);
  border: 1px solid rgb(160, 120, 48, 0.2);
}
.quest-parchment::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background:
    radial-gradient(circle at 20% 80%, rgb(139, 105, 20, 0.08), transparent 50%),
    radial-gradient(circle at 80% 20%, rgb(139, 105, 20, 0.06), transparent 40%);
  pointer-events: none;
}
.quest-card:hover .quest-parchment {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 8px 24px rgb(0,0,0,0.3);
}
.quest-icon {
  color: var(--sienna);
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}
.quest-title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--sienna);
  margin-bottom: 4px;
}
.quest-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.quest-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-code);
  background: rgb(107, 58, 42, 0.12);
  color: var(--sienna);
  border: 1px solid rgb(107, 58, 42, 0.2);
}

/* ── How It Works ── */
.how-it-works {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  background: rgb(26, 21, 16, 0.3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.step {
  flex: 1;
  max-width: 320px;
  text-align: center;
  padding: 0 16px;
}
.step-number {
  font-family: var(--font-heading);
  font-size: 48px;
  color: rgb(198, 139, 74, 0.15);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.step-icon {
  color: var(--sand-mid);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}
.step h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--sand-light);
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
}
.step code {
  display: inline-block;
  padding: 4px 10px;
  background: rgb(13, 15, 18, 0.6);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--sand-light);
}
.step-connector {
  width: 60px;
  flex-shrink: 0;
  position: relative;
  top: 40px;
}
.step-connector::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--sand-mid), var(--border));
}

/* ── Security ── */
.security {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
}
.seal {
  color: var(--sand-mid);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  opacity: 0.7;
}
.security-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.security-card {
  padding: 24px 18px;
  background: rgb(26, 21, 16, 0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.security-card:hover {
  border-color: var(--sand-mid);
  transform: translateY(-2px);
}
.security-icon {
  color: var(--sand-mid);
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}
.security-card h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--sand-light);
  margin-bottom: 6px;
}
.security-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Commands / Accordion ── */
.commands {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  background: rgb(26, 21, 16, 0.3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.accordion {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.accordion-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgb(26, 21, 16, 0.4);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-body);
  text-align: left;
  transition: background 0.2s;
}
.accordion-trigger:hover { background: rgb(198, 139, 74, 0.08); }
.accordion-trigger[aria-expanded="true"] { background: rgb(198, 139, 74, 0.12); }
.accordion-title {
  font-family: var(--font-heading);
  color: var(--sand-light);
}
.accordion-chevron {
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--muted);
}
.accordion-trigger[aria-expanded="true"] .accordion-chevron { transform: rotate(180deg); }
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.35s ease;
}
.accordion-content > * { min-height: 0; }
.accordion-content.open { grid-template-rows: 1fr; }
.cmd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cmd-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: rgb(13, 15, 18, 0.3);
}
.cmd-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgb(48, 43, 37, 0.5);
  color: var(--muted);
}
.cmd-table td:first-child code {
  color: var(--sand-light);
  font-weight: 600;
}
.cmd-table tr:last-child td { border-bottom: none; }
.commands-footer {
  text-align: center;
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.commands-hidden {
  display: none;
}
.commands-hidden.visible {
  display: block;
}

/* ── Setup CTA ── */
.setup-cta {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
}
.setup-panel {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px;
  background: rgb(26, 21, 16, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}
.setup-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.setup-desc code {
  background: rgb(232, 168, 76, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--sand-light);
}
.setup-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FAQ ── */
.faq {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  background: rgb(26, 21, 16, 0.3);
  border-top: 1px solid var(--border);
}
.faq .accordion-content p {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.faq .accordion-content code {
  color: var(--sand-light);
  background: rgb(13, 15, 18, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
}
.faq .accordion-content strong { color: var(--text-light); }

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  padding: 40px 24px 24px;
  border-top: 1px solid var(--border);
  background: linear-gradient(to bottom, transparent, rgb(26, 21, 16, 0.3));
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.footer-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--spice-glow), var(--sand-mid));
  box-shadow: 0 0 16px rgb(232, 168, 76, 0.3);
}
.footer-brand strong {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--sand-light);
}
.footer-brand p {
  font-size: 14px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--sand-light); text-decoration: none; }
.footer-credit {
  font-size: 13px;
  color: var(--muted);
  opacity: 0.7;
}

/* ── Scroll Reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .quest-cards { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .step-connector { display: none; }
  .steps { flex-direction: column; align-items: center; gap: 32px; }
  .nav-links { gap: 8px; }
  .nav-links a:not(.nav-console, .nav-cta, .nav-donate) { font-size: 13px; }
}
@media (max-width: 768px) {
  .nav-links a:not(.nav-console, .nav-cta, .nav-donate) { display: none; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    width: 260px;
    height: calc(100vh - var(--nav-height));
    background: rgb(13, 15, 18, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .quest-cards { grid-template-columns: 1fr; }
  .quest-card-wide { max-width: 100%; }
  .security-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 100px 20px 60px; }
  .hero-icon { width: 80px; height: 80px; }
  .stats-inner { gap: 20px; }
  .stat-number { font-size: 24px; }
  .stat-divider { height: 32px; }
  .board-frame { padding: 20px; }
  .setup-panel { padding: 20px; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .setup-actions { flex-direction: column; }
  .stats-inner { flex-direction: column; gap: 16px; }
  .stat-divider { width: 48px; height: 1px; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ── Mockup Preview Label (#43) ── */
/* ── Nav Active Scroll-Spy (#41) ── */
.nav-links a.nav-active {
  color: var(--sand-light);
}

/* ── Print Styles (#45) ── */
@media print {
  .navbar, .sand-layer, .hero-glow,
  .btn-primary, .btn-secondary, .hero-actions,
  .stats-badges, .stats-live-indicator, .commands-footer,
  .setup-actions, .nav-toggle, .accordion-chevron {
    display: none !important;
  }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hero { min-height: auto; padding: 20px 0; }
  .hero-title { color: #000; }
  .hero-desc, .section-subtitle, .stat-label, .quest-subtitle,
  .step p, .security-card p, .cmd-table td, .faq .accordion-content p {
    color: #333;
  }
  .accordion-content { grid-template-rows: 1fr !important; }
  .commands-hidden { display: grid !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .section-title, .quest-title, .stat-number { color: #000; }
  a { color: #000; text-decoration: underline; }
  .skip-link { display: none !important; }
}
