:root {
  --bg: #080611;
  --bg-alt: #121127;
  --bg-soft: #1a1430;
  --surface: rgba(22, 18, 38, 0.8);
  --surface-strong: rgba(31, 24, 52, 0.9);
  --surface-light: rgba(255, 255, 255, 0.03);
  --primary: #9c5cff;
  --primary-strong: #7e46ff;
  --secondary: #d0a6ff;
  --gold: #f8d76a;
  --gold-strong: #ffc94e;
  --text: #f5f3ff;
  --muted: #b7afd8;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 25px 50px rgba(26, 16, 44, 0.5);
  --hero-glow: radial-gradient(circle at top left, rgba(156, 92, 255, 0.4), transparent 38%),
    radial-gradient(circle at bottom right, rgba(248, 215, 106, 0.18), transparent 30%);
  --page-gradient: linear-gradient(180deg, rgba(8, 6, 17, 1) 0%, rgba(13, 9, 22, 1) 100%);
  --panel-gradient: linear-gradient(180deg, rgba(31, 24, 52, 0.96), rgba(16, 12, 28, 0.96));
  --input-bg: rgba(255, 255, 255, 0.02);
}

:root[data-theme="light"] {
  --bg: #f4f3fb;
  --bg-alt: #e9e4ff;
  --bg-soft: #efe9ff;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-light: rgba(116, 95, 181, 0.08);
  --primary: #6e3cf5;
  --primary-strong: #5b32db;
  --secondary: #a865ff;
  --gold: #d99400;
  --gold-strong: #f3b535;
  --text: #1a1832;
  --muted: #564f73;
  --border: rgba(39, 35, 58, 0.12);
  --shadow: 0 18px 42px rgba(125, 97, 185, 0.18);
  --hero-glow: radial-gradient(circle at top left, rgba(110, 60, 245, 0.2), transparent 35%),
    radial-gradient(circle at bottom right, rgba(219, 164, 34, 0.18), transparent 28%);
  --page-gradient: linear-gradient(180deg, #f8f7ff 0%, #f1effd 100%);
  --panel-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 236, 255, 0.95));
  --input-bg: rgba(123, 99, 194, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--page-gradient);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: 0.8rem 1.2rem;
  border-radius: 0.75rem;
  background: var(--surface-strong);
  color: var(--text);
}

.page-shell {
  position: fixed;
  inset: 0;
  background: var(--hero-glow);
  pointer-events: none;
  z-index: -1;
}

.container {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-heading {
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  max-width: 12ch;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  margin-bottom: 0.85rem;
  max-width: 15ch;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 0.7rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(8, 6, 17, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

:root[data-theme="light"] .site-header {
  background: rgba(250, 247, 255, 0.7);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(156, 92, 255, 0.2), rgba(248, 215, 106, 0.2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand-mark svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-tag {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav,
.footer-nav {
  display: none;
  gap: 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.main-nav a,
.footer-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.footer-nav a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  border-color: transparent;
  color: white;
  box-shadow: 0 12px 28px rgba(126, 70, 255, 0.36);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 0.45rem 0.8rem;
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(248, 215, 106, 0.12);
  color: var(--gold);
}

.hero {
  padding-top: 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
}

.lead {
  max-width: 58ch;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.8rem 0;
}

.hero-metrics {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.hero-metrics li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.hero-metrics strong {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text);
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.76rem;
}

.hero-visual {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.55;
}

.orb-one {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(156, 92, 255, 0.9), rgba(156, 92, 255, 0.1) 58%, transparent 72%);
  top: 42px;
  left: 40px;
}

.orb-two {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(248, 215, 106, 0.6), rgba(248, 215, 106, 0.08) 58%, transparent 72%);
  bottom: 32px;
  right: 26px;
}

.game-shell {
  position: relative;
  width: min(100%, 490px);
  padding: 1.1rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(27, 21, 42, 0.9), rgba(16, 12, 24, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .game-shell {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(238, 233, 255, 0.9));
}

.shell-header,
.panel-top,
.arena-topline,
.screen-header,
.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.live-badge,
.panel-badge,
.cat-tag,
.mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-badge {
  background: rgba(255, 90, 90, 0.12);
  color: #ff8b8b;
  padding: 0.4rem 0.7rem;
}

.mini-pill {
  background: rgba(156, 92, 255, 0.12);
  color: var(--secondary);
  padding: 0.45rem 0.7rem;
}

.shell-stage {
  margin-top: 1.15rem;
  display: grid;
  gap: 1rem;
}

.arena-card {
  position: relative;
  padding: 1rem;
  border-radius: 1.35rem;
  background: linear-gradient(135deg, rgba(18, 12, 31, 0.85), rgba(48, 35, 84, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 200px;
}

:root[data-theme="light"] .arena-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(238, 232, 255, 0.98));
}

.player-tag {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.score {
  font-weight: 800;
  color: var(--gold);
}

.character-figure {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  height: 150px;
  margin-top: 1.4rem;
}

.avatar {
  position: absolute;
  bottom: 0;
  width: 78px;
  height: 110px;
  border-radius: 1.25rem 1.25rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(156, 92, 255, 1), rgba(78, 58, 122, 1));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 15px 25px rgba(106, 70, 160, 0.38);
}

.avatar::before {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  top: 16px;
  left: 18px;
}

.avatar-two {
  left: 170px;
  background: linear-gradient(180deg, rgba(248, 215, 106, 1), rgba(166, 120, 28, 1));
}

.avatar-one {
  left: 110px;
}

.mini-boards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.board-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.board-card span,
.board-card small {
  color: var(--muted);
}

.board-card strong {
  font-size: 1.3rem;
}

.bar {
  position: relative;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.bar span {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--gold), var(--primary));
  border-radius: inherit;
}

.highlight-card {
  background: linear-gradient(135deg, rgba(156, 92, 255, 0.18), rgba(248, 215, 106, 0.14));
}

.feature-grid,
.category-grid,
.quest-grid,
.steps-grid,
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card,
.category-card,
.quest-card,
.step-card,
.why-card {
  position: relative;
  padding: 1.4rem;
  border-radius: 1.5rem;
  background: var(--panel-gradient);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.quest-card {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 13, 31, 0.9), rgba(31, 22, 48, 0.92));
}

:root[data-theme="light"] .quest-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 232, 255, 0.98));
}

.accent-purple {
  background: linear-gradient(135deg, rgba(156, 92, 255, 0.12), rgba(26, 18, 39, 0.92));
}

.accent-gold {
  background: linear-gradient(135deg, rgba(248, 215, 106, 0.18), rgba(25, 18, 34, 0.92));
}

.accent-rose {
  background: linear-gradient(135deg, rgba(255, 120, 170, 0.14), rgba(25, 18, 34, 0.92));
}

.quest-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.quest-badge {
  display: inline-flex;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quest-score {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.85rem;
}

.progress-bar {
  position: relative;
  height: 0.55rem;
  margin-top: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.progress-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--primary));
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-weight: 600;
}

.community-showcase {
  display: flex;
  justify-content: center;
}

.showcase-card {
  width: min(100%, 470px);
  padding: 1.5rem;
  border-radius: 1.8rem;
  background: linear-gradient(135deg, rgba(124, 79, 255, 0.18), rgba(22, 16, 36, 0.9));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.mini-label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.avatar-row {
  display: flex;
  margin: 1.2rem 0;
}

.mini-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 2px solid rgba(255,255,255,0.18);
  margin-left: -0.4rem;
}

.mini-avatar:first-child {
  margin-left: 0;
}

.a1 { background: linear-gradient(135deg, #f8d76a, #ef9d4a); }
.a2 { background: linear-gradient(135deg, #a382ff, #7c58ff); }
.a3 { background: linear-gradient(135deg, #ffb2d2, #ff7ca3); }
.a4 { background: linear-gradient(135deg, #7ce0ff, #39a6ff); }

.club-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.club-metrics div {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.club-metrics strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.club-metrics span {
  color: var(--muted);
}

.icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.icon-wrap.purple {
  background: rgba(156, 92, 255, 0.15);
}

.icon-wrap.gold {
  background: rgba(248, 215, 106, 0.14);
}

.icon-wrap.violet {
  background: rgba(126, 70, 255, 0.14);
}

.icon-wrap.rose {
  background: rgba(255, 120, 170, 0.12);
}

.category-card {
  min-height: 220px;
}

.cat-icon {
  font-size: 1.5rem;
}

.cat-tag {
  color: var(--secondary);
  background: rgba(156, 92, 255, 0.12);
  padding: 0.45rem 0.7rem;
}

.dashboard-grid,
.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.stat-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.dashboard-panel {
  padding: 1.25rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--panel-gradient);
  box-shadow: var(--shadow);
}

.panel-top small {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.panel-badge {
  padding: 0.45rem 0.7rem;
  color: #89f0c2;
  background: rgba(78, 214, 146, 0.12);
}

.bars {
  display: flex;
  align-items: end;
  height: 200px;
  gap: 0.8rem;
  padding: 1.5rem 0 1rem;
}

.bars span {
  display: block;
  flex: 1;
  height: var(--height);
  border-radius: 0.75rem 0.75rem 0 0;
  background: linear-gradient(180deg, rgba(248, 215, 106, 0.9), rgba(156, 92, 255, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.rank-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.rank-row div {
  padding: 0.8rem 0.6rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  text-align: center;
}

.rank-row span {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  margin-bottom: 0.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step-number {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  background: linear-gradient(135deg, rgba(156, 92, 255, 0.2), rgba(248, 215, 106, 0.22));
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.phone-stage {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: min(100%, 320px);
  padding: 1rem 0.8rem 0.9rem;
  border-radius: 2.1rem;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(17, 14, 26, 0.95), rgba(39, 31, 59, 0.95));
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .phone-shell {
  background: linear-gradient(165deg, rgba(255,255,255,0.9), rgba(240,235,255,0.97));
}

.phone-notch {
  width: 122px;
  height: 20px;
  margin: 0 auto 0.9rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
}

.phone-screen {
  border-radius: 1.5rem;
  padding: 1rem;
  background: radial-gradient(circle at top, rgba(156, 92, 255, 0.25), rgba(15, 12, 24, 0.9) 40%);
  min-height: 500px;
}

.dot-group {
  display: inline-flex;
  gap: 0.35rem;
}

.dot-group i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  display: inline-block;
}

.screen-card {
  margin-top: 1.3rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.screen-card small {
  color: var(--muted);
  display: block;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.66rem;
}

.screen-card strong {
  font-size: 1.8rem;
}

.sparkline {
  display: flex;
  align-items: end;
  gap: 0.35rem;
  height: 56px;
  margin-top: 0.9rem;
}

.sparkline span {
  display: block;
  width: 100%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--gold), var(--primary));
}

.sparkline span:nth-child(1) {height: 30%;}
.sparkline span:nth-child(2) {height: 45%;}
.sparkline span:nth-child(3) {height: 60%;}
.sparkline span:nth-child(4) {height: 80%;}
.sparkline span:nth-child(5) {height: 90%;}
.sparkline span:nth-child(6) {height: 100%;}

.mini-list {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.mini-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
}

.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--primary));
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 800;
}

.store-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.store-badge {
  min-width: 150px;
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  text-align: center;
}

.contact-shell {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 2rem;
  background: var(--panel-gradient);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--input-bg);
  color: var(--text);
  padding: 0.9rem 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand p,
.footer-meta {
  color: var(--muted);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 620px) {
  .feature-grid,
  .category-grid,
  .quest-grid,
  .steps-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-shell {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

@media (min-width: 768px) {
  .main-nav,
  .footer-nav {
    display: inline-flex;
    align-items: center;
  }

  .hero-grid,
  .dashboard-grid,
  .app-grid {
    grid-template-columns: 1.08fr 0.92fr;
  }

  .site-header {
    position: sticky;
  }

  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-grid,
  .quest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid,
  .why-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 360px) {
  .nav-actions {
    gap: 0.5rem;
  }

  .theme-label {
    display: none;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }
}
