/* =============================================
   MATHEDEN - Landing Page Styles
   ============================================= */

html { scroll-behavior: smooth; }

/* ── Background Animation ──────────────────── */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.revolving-triangle {
  position: absolute;
  bottom: 5%;
  right: -5%;
  width: 400px;
  height: 400px;
  opacity: 0.12;
  animation: spinSlow 35s infinite linear;
}

@keyframes spinSlow {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.floating-circle {
  position: absolute;
  background: radial-gradient(circle, #fbbf24, #f59e0b);
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(40px);
  animation: float 20s infinite alternate ease-in-out;
}

.floating-square {
  position: absolute;
  background: #3b82f6;
  opacity: 0.06;
  transform: rotate(25deg);
  filter: blur(45px);
  animation: floatSquare 25s infinite alternate;
}

@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -40px) scale(1.3); }
}

@keyframes floatSquare {
  0%   { transform: translate(0px, 0px) rotate(25deg); }
  100% { transform: translate(-60px, 50px) rotate(45deg); }
}

.float-math {
  position: absolute;
  font-size: 1.8rem;
  font-weight: 600;
  opacity: 0.08;
  font-family: var(--font-mono);
  pointer-events: none;
  animation: driftMath 25s infinite linear;
  color: var(--orange-600);
}

@keyframes driftMath {
  0%   { transform: translateY(0vh) rotate(0deg); opacity: 0.05; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0.12; }
}

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

.badge {
  background: var(--orange-100);
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange-700);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

h1 {
  font-size: 3.2rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--green-800), var(--orange-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
  line-height: 1.25;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--gray-600);
  box-shadow: var(--shadow-sm);
}
.location i { color: var(--orange-500); }

/* Token hook pill */
.token-hook {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fffbeb;
  border: 1.5px solid #fbbf24;
  border-radius: var(--radius-full);
  padding: 11px 26px;
  font-size: 0.95rem;
  color: #92400e;
  margin: 26px auto 0;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1), 0 2px 10px rgba(251, 191, 36, 0.18);
  line-height: 1.45;
}
.token-hook i        { color: #f59e0b; font-size: 1rem; flex-shrink: 0; }
.token-hook strong   { color: #b45309; }

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ── Hero solver card ───────────────────────── */
@keyframes heroCardFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.hero-solver-card {
  background: #0f1117;
  border-radius: 16px;
  padding: 24px 28px;
  margin: 44px auto 0;
  max-width: 480px;
  text-align: left;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.07);
  animation: heroCardFloat 4s ease-in-out infinite;
  font-family: var(--font-mono);
}

.solver-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.solver-card-dots { display: flex; gap: 6px; }
.solver-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #374151;
}
.solver-dot:nth-child(1) { background: #ef4444; }
.solver-dot:nth-child(2) { background: #f59e0b; }
.solver-dot:nth-child(3) { background: #22c55e; }

.solver-card-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin-left: auto;
  letter-spacing: 0.5px;
}

.solver-card-problem {
  font-size: 1rem;
  font-weight: 700;
  color: #f97316;
  margin-bottom: 18px;
  font-family: var(--font-mono);
}

.solver-card-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.solver-step {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.87rem;
  font-family: var(--font-mono);
}

.step-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: #4b5563;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.step-text {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.solver-step-answer {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  padding: 9px 13px;
  margin-top: 2px;
}
.step-check {
  color: #22c55e;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.solver-step-answer .step-text {
  color: #86efac;
  font-weight: 600;
}

/* ── Stats ──────────────────────────────────── */
.stats-container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin: 60px 0;
}

.stat-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  flex: 1;
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--orange-100);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 40px -15px rgba(249, 115, 22, 0.15);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--green-800);
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  background: var(--bg-warm);
}

.stat-number::before {
  content: '';
  position: absolute;
  top: -5px; left: -5px; right: -5px; bottom: -5px;
  border-radius: 50%;
  border: 3px dashed var(--orange-500);
  animation: rotateBorder 4s linear infinite;
  opacity: 0.6;
}

@keyframes rotateBorder {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* CAPS text variant — slightly smaller to fit the circle */
.stat-text {
  font-size: 2rem;
  letter-spacing: 1.5px;
}

.stat-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.stat-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── Section helpers ────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.section-header i    { font-size: 2rem; color: var(--orange-500); }
.section-header h2   { font-size: 1.8rem; font-weight: 700; color: var(--gray-800); }

.section-center {
  text-align: center;
  margin-bottom: 44px;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 10px;
  line-height: 1.3;
}

.section-sub {
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1.6;
}

/* ── Topics (kept for any possible reuse) ────── */
.topics-grid   { display: flex; flex-wrap: wrap; gap: 14px; }

.topic-card {
  background: white;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--orange-100);
  transition: all 0.3s ease;
  cursor: default;
}
.topic-card i             { color: var(--orange-500); font-size: 1.05rem; }
.topic-card:hover         { transform: translateY(-3px); border-color: var(--orange-500); box-shadow: 0 8px 20px rgba(249,115,22,0.15); }
.services-note            { margin-top: 24px; font-style: italic; color: var(--gray-500); }
.services-note i          { color: var(--amber-400); margin-right: 6px; }

/* ══════════════════════════════════════════════
   FEATURES SECTION
   ══════════════════════════════════════════════ */

#features { margin: 72px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  border: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.13);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff7ed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--orange-600);
  flex-shrink: 0;
}

.feature-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.feature-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  width: fit-content;
  margin-top: 4px;
}

.badge-available { background: #dcfce7; color: #166534; }
.badge-soon      { background: #f3f4f6; color: #6b7280; }

/* ══════════════════════════════════════════════
   HOW IT WORKS SECTION
   ══════════════════════════════════════════════ */

#how-it-works { margin: 72px 0; }

.steps-row {
  display: flex;
  align-items: flex-start;
  margin-top: 48px;
}

.step-item {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.step-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), var(--green-800));
  color: white;
  font-size: 1.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  position: relative;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.28);
}

.step-circle::before {
  content: '';
  position: absolute;
  top: -6px; left: -6px; right: -6px; bottom: -6px;
  border-radius: 50%;
  border: 3px dashed var(--orange-400);
  animation: rotateBorder 5s linear infinite;
  opacity: 0.45;
}

.step-icon-wrap {
  font-size: 1.55rem;
  color: var(--orange-500);
  margin-bottom: 14px;
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.65;
  max-width: 220px;
  margin: 0 auto;
}

/* Dashed connector line between steps */
.step-connector {
  flex-shrink: 0;
  width: 60px;
  height: 2px;
  border-top: 2.5px dashed var(--orange-300);
  margin-top: 40px;   /* aligns visually with the middle of the circle */
  opacity: 0.55;
  align-self: flex-start;
}

/* ══════════════════════════════════════════════
   TOKEN EXPLAINER BANNER
   ══════════════════════════════════════════════ */

.token-banner {
  background: linear-gradient(135deg, #fff8f0, #fffbeb);
  border: 1.5px solid #fed7aa;
  border-radius: 24px;
  padding: 52px 48px;
  display: flex;
  gap: 52px;
  align-items: center;
  margin: 72px 0;
  box-shadow: 0 4px 24px rgba(249, 115, 22, 0.07);
}

.token-banner-left { flex: 1; min-width: 0; }

.token-banner-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 14px;
  line-height: 1.3;
}

.token-banner-body {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 400px;
}

.token-banner-right {
  flex-shrink: 0;
  width: 290px;
}

.token-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--orange-100);
}

.token-card-header {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.token-card-header i { color: var(--orange-500); font-size: 0.9rem; }

.token-card-balance {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: 14px;
  line-height: 1;
}

.token-card-bar {
  height: 8px;
  background: #f3f4f6;
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}

.token-card-fill {
  height: 100%;
  background: linear-gradient(to right, var(--orange-400), var(--orange-500));
  border-radius: 100px;
}

.token-card-meta {
  font-size: 0.73rem;
  color: var(--gray-400);
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

.token-card-recent {
  font-size: 0.76rem;
  color: var(--gray-500);
  background: #fafafa;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  line-height: 1.45;
  border: 1px solid #f3f4f6;
}
.token-card-recent i { color: var(--orange-500); flex-shrink: 0; }

/* ── Challenge section outer heading ─────────── */
.challenge-section-header {
  margin-top: 72px;
  margin-bottom: 20px;
}

/* ── Challenge Box ───────────────────────────── */
.challenge-box {
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  border-radius: var(--radius-2xl);
  padding: 44px;
  margin: 0 0 50px;
  box-shadow: var(--shadow-xl);
  color: #fef3c7;
}

.challenge-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.challenge-header i    { font-size: 2rem; color: var(--amber-400); }
.challenge-header h2   { color: var(--amber-400); font-size: 1.5rem; margin: 0; }
.challenge-box > p     { color: #e2e8f0; opacity: 0.9; margin-bottom: 24px; }

.equation-display {
  font-size: 1.6rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: var(--radius-full);
  text-align: center;
  margin: 24px 0;
  color: var(--amber-400);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.challenge-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 24px 0;
}
.challenge-inputs input {
  padding: 14px 24px;
  border-radius: var(--radius-full);
  border: none;
  font-size: 0.95rem;
  font-family: inherit;
  min-width: 200px;
  flex: 1;
  max-width: 300px;
}
.challenge-inputs input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.5);
}

.challenge-feedback {
  text-align: center;
  margin: 16px 0;
  font-weight: 600;
  min-height: 24px;
}

/* ── Challenge auth gate ─────────────────────── */
.challenge-auth-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  margin: 8px 0 20px;
}
.challenge-auth-gate i { font-size: 1.8rem; color: var(--amber-400); opacity: 0.7; }
.challenge-auth-gate p { color: #e2e8f0; margin: 0; font-size: 0.95rem; }
.challenge-gate-btns   { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── Leaderboard ─────────────────────────────── */
.leaderboard-panel {
  background: white;
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-top: 32px;
  color: var(--gray-800);
}
.leaderboard-panel h3    { color: var(--orange-600); margin-bottom: 20px; font-size: 1.1rem; }
.leaderboard-panel h3 i  { margin-right: 8px; }
.leaderboard-list        { list-style: none; }

.leaderboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
}
.leaderboard-item:last-child { border-bottom: none; }
.leaderboard-rank  { font-weight: 800; width: 50px; color: var(--orange-600); font-size: 1rem; }
.leaderboard-name  { flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.leaderboard-name i { color: var(--orange-400); }
.leaderboard-time  { color: var(--gray-500); font-size: 0.85rem; }

.empty-state    { text-align: center; padding: 28px; color: var(--gray-400); }
.empty-state i  { font-size: 2rem; margin-bottom: 8px; display: block; }

/* ── Booking ──────────────────────────────────── */
.booking-sub {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin: -16px 0 28px;
  line-height: 1.65;
}

.booking-card {
  background: white;
  border-radius: 42px;
  padding: 44px;
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--orange-100);
}

.form-row          { display: flex; gap: 20px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 220px; }

.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--orange-200);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}
.form-group textarea { border-radius: var(--radius-lg); resize: vertical; }
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
.required  { color: var(--orange-600); }
.optional  { color: var(--gray-400); font-weight: 400; }

/* ── Nav signed-in state ─────────────────────── */
.nav-user-name {
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-user-name i { color: var(--orange-400); }

/* ══════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  0.5s ease var(--stagger-delay, 0ms),
    transform 0.5s ease var(--stagger-delay, 0ms);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════
   RESPONSIVE — 1024px
   ══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .token-banner {
    gap: 36px;
    padding: 44px 36px;
  }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — 900px (navbar)
   ══════════════════════════════════════════════ */

@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — 768px
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Navbar ───────────────────────────────── */
  .navbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 16px 0;
    gap: 12px;
  }
  .nav-links    { display: none; }
  .nav-actions  { gap: 8px; margin-left: auto; }
  .nav-user-name { display: none; }

  /* ── Hero ─────────────────────────────────── */
  h1              { font-size: 2rem; line-height: 1.2; }
  .hero           { padding: 32px 0 24px; }
  .hero-description { font-size: 1rem; padding: 0 4px; }
  .badge          { font-size: 0.78rem; padding: 6px 14px; }
  .token-hook     { font-size: 0.88rem; padding: 10px 18px; max-width: 100%; }
  .hero-solver-card { display: none; }  /* hidden on mobile */
  .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
  }
  .btn-group .btn-large {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  /* ── Stats ────────────────────────────────── */
  .stats-container { gap: 16px; margin: 40px 0; }
  .stat-card {
    min-width: unset;
    padding: 28px 20px;
    flex: 1 1 calc(50% - 8px);
  }
  .stat-number { font-size: 2rem; width: 90px; height: 90px; }
  .stat-text   { font-size: 1.6rem; }

  /* ── Section headings ─────────────────────── */
  .section-title { font-size: 1.5rem; }
  .section-sub   { font-size: 0.93rem; }
  .section-header h2 { font-size: 1.4rem; }

  /* ── Features ─────────────────────────────── */
  #features        { margin: 52px 0; }
  .features-grid   { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .feature-card    { padding: 22px 18px; }

  /* ── How It Works ─────────────────────────── */
  #how-it-works { margin: 52px 0; }
  .steps-row {
    flex-direction: column;
    align-items: center;
    margin-top: 32px;
  }
  .step-item {
    width: 100%;
    max-width: 340px;
    padding: 0 16px 36px;
  }
  .step-connector { display: none; }   /* hide connector line on mobile */

  /* ── Token Banner ─────────────────────────── */
  .token-banner {
    flex-direction: column-reverse;   /* card on top, text below */
    gap: 28px;
    padding: 36px 28px;
    margin: 52px 0;
  }
  .token-banner-right { width: 100%; }
  .token-banner-body  { max-width: 100%; }

  /* ── Challenge ─────────────────────────────── */
  .challenge-section-header { margin-top: 52px; }
  .challenge-box {
    padding: 28px 20px;
    border-radius: var(--radius-xl);
  }
  .challenge-header i  { font-size: 1.5rem; }
  .challenge-header h2 { font-size: 1.2rem; }
  .equation-display {
    font-size: 1.2rem;
    padding: 18px 16px;
    border-radius: var(--radius-lg);
    letter-spacing: 0.5px;
    word-break: break-word;
  }
  .challenge-inputs      { flex-direction: column; align-items: stretch; }
  .challenge-inputs input { max-width: 100%; min-width: unset; width: 100%; }
  .challenge-gate-btns   { flex-direction: column; align-items: stretch; }
  .challenge-gate-btns .btn { justify-content: center; }
  .leaderboard-panel     { padding: 20px 16px; }
  .leaderboard-item      { font-size: 0.85rem; }

  /* ── Booking ──────────────────────────────── */
  .booking-card { padding: 24px 18px; border-radius: var(--radius-xl); }
  .form-row     { flex-direction: column; gap: 0; }
  .form-row .form-group { min-width: unset; }

  /* ── Background ───────────────────────────── */
  .revolving-triangle { width: 200px; height: 200px; opacity: 0.07; }
  .floating-square    { display: none; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — 480px
   ══════════════════════════════════════════════ */

@media (max-width: 480px) {
  h1              { font-size: 1.7rem; }
  .token-hook     { font-size: 0.82rem; padding: 9px 14px; }
  .stat-card      { flex: 1 1 100%; }
  .stat-number    { font-size: 1.8rem; width: 80px; height: 80px; }
  .stat-text      { font-size: 1.5rem; }
  .features-grid  { grid-template-columns: 1fr; }
  .section-title  { font-size: 1.3rem; }
  .step-circle    { width: 68px; height: 68px; font-size: 1.6rem; }
  .token-banner   { padding: 28px 20px; }
  .token-banner-title { font-size: 1.35rem; }
  .token-card-balance { font-size: 2rem; }
  .equation-display   { font-size: 1.05rem; }
  .btn-sm         { padding: 8px 14px; font-size: 0.82rem; }
}
