/* ==========================================================================
   PERKVERSE — shared stylesheet
   Display: Space Grotesk / Body: Inter / Data: JetBrains Mono
   ========================================================================== */

:root {
  --ink: #14102b;
  --ink-soft: #1c1640;
  --surface: #1e1840;
  --surface-raised: #262056;
  --line: #362f66;

  --text: #f5f3ff;
  --text-muted: #a79dd6;
  --text-faint: #746a9e;

  --gold: #f2b705;
  --gold-soft: #ffd75e;
  --lavender: #a78bfa;
  --lavender-soft: #cbb9ff;
  --green: #35d68a;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow: 0 20px 50px -20px rgba(8, 5, 26, 0.6);

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(167, 139, 250, 0.16), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(242, 183, 5, 0.10), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 183, 5, 0.18);
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

section { padding: 88px 0; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #241a00;
  box-shadow: 0 10px 30px -10px rgba(242, 183, 5, 0.55);
}
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(242, 183, 5, 0.7); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--lavender); color: var(--lavender-soft); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 16, 43, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.wordmark span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.93rem;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }
.nav-links .current { color: var(--gold-soft); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; }

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  margin: 18px 0 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero p.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Orbit signature element */
.orbit-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.orbit-ring {
  position: absolute;
  border: 1px dashed var(--line);
  border-radius: 50%;
}
.orbit-ring.r1 { inset: 0; }
.orbit-ring.r2 { inset: 13%; border-color: rgba(167,139,250,0.28); }

.orbit-core {
  position: relative;
  z-index: 2;
  width: 44%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--surface-raised), var(--ink-soft));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 0 60px -10px rgba(242, 183, 5, 0.25), inset 0 0 40px rgba(167,139,250,0.08);
}
.orbit-core .balance {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--gold-soft);
}
.orbit-core .balance-label {
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.orbit-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.orbit-tag span { color: var(--gold-soft); font-family: var(--font-mono); }
.t1 { top: 4%; left: 50%; animation-delay: 0s; }
.t2 { top: 30%; left: 96%; animation-delay: 1s; }
.t3 { top: 74%; left: 88%; animation-delay: 2s; }
.t4 { top: 92%; left: 38%; animation-delay: 3s; }
.t5 { top: 62%; left: 2%; animation-delay: 4s; }
.t6 { top: 20%; left: 6%; animation-delay: 5s; }

@keyframes float {
  0%, 100% { margin-top: 0px; }
  50% { margin-top: -8px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .orbit-wrap { max-width: 380px; margin-inline: auto; }
}

/* ---------- Stat bar ---------- */
.stat-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-grid strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.7rem;
  color: var(--gold-soft);
}
.stat-grid span {
  font-size: 0.82rem;
  color: var(--text-muted);
}
@media (max-width: 700px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}

/* ---------- Section headings ---------- */
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 14px; }
.section-head p { color: var(--text-muted); margin-top: 12px; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
}
.step .num {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.85rem;
  border: 1px solid var(--line);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.94rem; }

@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Cards grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--lavender); transform: translateY(-3px); }
.card .tag-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(242, 183, 5, 0.12);
  color: var(--gold-soft);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 14px; }
.card .earn-rate {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--green);
}

@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- Redeem tiers ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  text-align: center;
}
.tier.featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 20px 40px -20px rgba(242,183,5,0.4);
}
.tier .cash {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--text);
}
.tier .points-needed {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 8px 0 18px;
}
@media (max-width: 900px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tier-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-muted); margin-top: 12px; font-size: 0.94rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--surface-raised), var(--ink-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 54px 44px;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px; }
.cta-banner p { color: var(--text-muted); margin-bottom: 26px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-grid p { color: var(--text-muted); font-size: 0.9rem; margin-top: 10px; max-width: 32ch; }
.footer-grid h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a { color: var(--text-muted); font-size: 0.92rem; }
.footer-grid ul a:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 60px 0;
}
.auth-card {
  width: min(420px, 92vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 28px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field input:focus { border-color: var(--lavender); outline: none; }
.field-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-muted); }
.field-row a { color: var(--lavender-soft); }

.auth-switch {
  text-align: center;
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.auth-switch a { color: var(--gold-soft); font-weight: 600; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.checkbox-row input { margin-top: 3px; }

/* ---------- Dashboard ---------- */
.dash-header { padding: 40px 0 0; }
.dash-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
.balance-card {
  background: linear-gradient(150deg, var(--surface-raised), var(--ink-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.balance-card .eyebrow { margin-bottom: 14px; }
.balance-card .big-num {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  color: var(--gold-soft);
}
.balance-card .cash-eq { color: var(--text-muted); margin: 6px 0 26px; }
.progress-track {
  height: 8px;
  border-radius: 99px;
  background: var(--ink-soft);
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, var(--lavender), var(--gold));
  border-radius: 99px;
}
.progress-note { font-size: 0.82rem; color: var(--text-faint); }

.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.side-card h3 { font-size: 1.02rem; margin-bottom: 16px; }
.quick-earn { display: grid; gap: 12px; }
.quick-earn a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.quick-earn a:hover { border-color: var(--gold); }
.quick-earn .plus { font-family: var(--font-mono); color: var(--green); }

.activity-list { margin-top: 20px; }
.activity-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.activity-row:last-child { border-bottom: none; }
.activity-main { display: flex; flex-direction: column; }
.activity-main strong { font-size: 0.95rem; }
.activity-main span { font-size: 0.8rem; color: var(--text-faint); }
.activity-points { font-family: var(--font-mono); font-weight: 600; }
.activity-points.pos { color: var(--green); }
.activity-points.neg { color: var(--text-muted); }

/* ---------- Static legal pages ---------- */
.legal-wrap { padding: 60px 0 90px; }
.legal-wrap h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-wrap .updated { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 40px; }
.legal-wrap h2 { font-size: 1.15rem; margin: 34px 0 12px; color: var(--lavender-soft); }
.legal-wrap p, .legal-wrap li { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 10px; }
.legal-wrap ul { padding-left: 20px; list-style: disc; }

/* ---------- Utility ---------- */
.center-copy { text-align: center; margin-inline: auto; }
