/* Jack Rewards — invite rewards site
   Fresh stylesheet. The old Next export CSS is no longer used. */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../media/1b99372b3eaef0c8-s.p.758e15a8.woff2') format('woff2');
}

:root {
  --bg: #04070c;
  --bg-soft: #070d16;
  --panel: #0a121d;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.26);
  --text: #e8eef8;
  --muted: #93a3b8;
  --dim: #64748b;
  --sky: #38bdf8;
  --sky-soft: #7dd3fc;
  --sky-deep: #0284c7;
  --green: #34d399;
  --amber: #fbbf24;
  --danger: #f87171;
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1180px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 78% -10%, rgba(56, 189, 248, 0.16), transparent 65%),
    radial-gradient(760px 480px at 8% 18%, rgba(14, 165, 233, 0.1), transparent 60%),
    radial-gradient(900px 600px at 50% 115%, rgba(2, 132, 199, 0.12), transparent 65%),
    var(--bg);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 78%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(56, 189, 248, 0.32);
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--sky);
  color: #04121c;
  font-weight: 700;
}

.skip:focus {
  left: 12px;
}

/* ---------------------------------------------------------------- header --- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  padding: 14px 0;
  transition: padding 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  padding: 8px 0;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(7, 13, 22, 0.72);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand img {
  width: 58px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.35));
  transition: transform 0.3s ease;
}

.brand:hover img {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sky-soft);
  margin-top: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.is-active {
  color: #fff;
  background: rgba(56, 189, 248, 0.12);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.22);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-menu {
  display: none;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 13, 22, 0.96);
  backdrop-filter: blur(20px);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--muted);
}

.mobile-menu a:hover,
.mobile-menu a.is-active {
  color: #fff;
  background: rgba(56, 189, 248, 0.1);
}

.mobile-menu .btn {
  margin-top: 6px;
  width: 100%;
}

/* --------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8 45%, #0ea5e9);
  color: #04121c;
  box-shadow: 0 12px 34px rgba(56, 189, 248, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 44px rgba(56, 189, 248, 0.42);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(56, 189, 248, 0.4);
}

.btn-discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
  background: #4752c4;
}

.btn-sm {
  height: 38px;
  padding: 0 15px;
  font-size: 13px;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ------------------------------------------------------------------ hero --- */

.hero {
  position: relative;
  padding: 148px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.26);
  background: rgba(56, 189, 248, 0.07);
  color: var(--sky-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 10px var(--sky);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-weight: 800;
}

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(44px, 6vw, 76px);
}

.hero h1 .grad {
  background: linear-gradient(120deg, #fff 8%, #bae6fd 38%, #38bdf8 66%, #0369a1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 540px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sky);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.hero-art .halo {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3), rgba(56, 189, 248, 0.04) 55%, transparent 70%);
  filter: blur(18px);
  animation: breathe 7s ease-in-out infinite;
}

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

.hero-art .ring {
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.16);
}

.hero-art .ring.two {
  width: 104%;
  border-color: rgba(56, 189, 248, 0.08);
}

.hero-art img {
  position: relative;
  width: min(100%, 470px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 46px rgba(56, 189, 248, 0.22));
  animation: float 8s ease-in-out infinite;
}

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

/* ----------------------------------------------------------------- stats --- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stat {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.stat b {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--dim);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------- section --- */

.section {
  padding: 66px 0;
}

.section.tight {
  padding: 40px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
}

.section-head p {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--sky-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.link-more {
  flex: none;
  color: var(--sky-soft);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-more:hover {
  color: #fff;
}

/* ----------------------------------------------------------------- cards --- */

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.34);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(56, 189, 248, 0.08);
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.reward-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
}

.reward-card::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reward-card:hover::after {
  opacity: 1;
}

.reward-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.reward-emoji {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(56, 189, 248, 0.08);
  font-size: 22px;
}

.reward-cost {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.26);
  background: rgba(56, 189, 248, 0.08);
  color: var(--sky-soft);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.reward-cost b {
  font-size: 16px;
  color: #fff;
}

.reward-card h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
}

.reward-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  flex: 1;
}

.reward-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stock i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
}

.stock.out i {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.7);
}

.mini-link {
  color: var(--sky-soft);
  font-size: 12.5px;
  font-weight: 700;
}

.mini-link:hover {
  color: #fff;
}

/* ----------------------------------------------------------------- steps --- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step {
  padding: 24px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 11px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
  color: var(--sky-soft);
  font-size: 13px;
  font-weight: 800;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* ----------------------------------------------------------- leaderboard --- */

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.podium-card {
  padding: 22px 18px;
  text-align: center;
}

.podium-card.first {
  padding-top: 30px;
  padding-bottom: 30px;
  border-color: rgba(56, 189, 248, 0.4);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.12), rgba(255, 255, 255, 0.015));
}

.podium-rank {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 800;
}

.podium-card.first .podium-rank {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #241703;
}

.podium-card img,
.podium-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 2px solid rgba(56, 189, 248, 0.35);
  background: #0d1724;
  object-fit: cover;
}

.podium-card.first .podium-avatar {
  width: 70px;
  height: 70px;
  border-color: rgba(251, 191, 36, 0.7);
}

.podium-name {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-xp {
  margin-top: 3px;
  color: var(--sky-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.018);
}

.board-row {
  display: grid;
  grid-template-columns: 64px 1fr 120px 110px;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 14px;
}

.board-row:last-child {
  border-bottom: 0;
}

.board-row.head {
  padding: 11px 18px;
  color: var(--dim);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
}

.board-row.me {
  background: rgba(56, 189, 248, 0.07);
  box-shadow: inset 3px 0 0 var(--sky);
}

.board-rank {
  color: var(--dim);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.board-user {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.board-user img,
.board-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: none;
  background: #0d1724;
  object-fit: cover;
}

.board-user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.board-xp {
  color: var(--sky-soft);
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tier {
  justify-self: end;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier.gold {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
}

.tier.silver {
  color: #e2e8f0;
  border-color: rgba(226, 232, 240, 0.3);
  background: rgba(226, 232, 240, 0.06);
}

.tier.bronze {
  color: #fdba74;
  border-color: rgba(251, 146, 60, 0.35);
  background: rgba(251, 146, 60, 0.08);
}

/* ------------------------------------------------------------- dashboard --- */

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 14px;
}

.panel {
  padding: 24px;
}

.panel h3 {
  font-size: 16px;
  margin-bottom: 14px;
}

.balance {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 6px 0 4px;
}

.balance b {
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.balance span {
  padding-bottom: 7px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.progress {
  height: 8px;
  margin: 18px 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #7dd3fc);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
  transition: width 0.8s ease;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12.5px;
}

.kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 13.5px;
}

.kv:last-child {
  border-bottom: 0;
}

.kv span {
  color: var(--dim);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kv b {
  font-weight: 700;
  text-align: right;
}

.copy-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.copy-row input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  font-size: 12.5px;
}

/* ------------------------------------------------------------------ auth --- */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
}

.auth-art {
  position: relative;
  display: grid;
  place-items: center;
  padding: 60px 40px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.auth-art::before {
  content: '';
  position: absolute;
  width: 620px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 65%);
  filter: blur(10px);
}

.auth-art img {
  position: relative;
  width: min(420px, 80%);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}

.auth-art .tag {
  position: absolute;
  bottom: 48px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--dim);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.auth-form-wrap {
  display: grid;
  place-items: center;
  padding: 90px 28px 60px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card h1 {
  font-size: 34px;
  margin-bottom: 8px;
}

.auth-card > p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
}

.field {
  margin-bottom: 13px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--dim);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.26);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--dim);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.form-error {
  display: none;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
  color: #fecaca;
  font-size: 12.5px;
}

.form-error.show {
  display: block;
}

.auth-note {
  margin-top: 22px;
  color: var(--dim);
  font-size: 12px;
  text-align: center;
}

.auth-note a {
  color: var(--sky-soft);
  font-weight: 700;
}

/* ---------------------------------------------------------------- prose --- */

.page-head {
  padding: 132px 0 26px;
}

.page-head h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 14px;
}

.page-head p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.prose {
  max-width: 820px;
  padding-bottom: 40px;
}

.prose h2 {
  margin: 34px 0 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin: 6px 0;
}

.prose a {
  color: var(--sky-soft);
}

.callout {
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(56, 189, 248, 0.06);
  color: var(--muted);
  font-size: 13.5px;
}

/* -------------------------------------------------------------- cta band --- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 40px;
  border-radius: 26px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background:
    radial-gradient(700px 260px at 85% 10%, rgba(56, 189, 248, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(56, 189, 248, 0.04));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-band h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 8px;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------------------------------------------------------------- footer --- */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(4, 7, 12, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr));
  gap: 30px;
  padding: 46px 0 34px;
}

.footer-brand img {
  width: 132px;
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 320px;
  margin: 0 0 18px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.7;
}

.footer-col h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
}

.footer-col a:hover {
  color: var(--sky-soft);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  color: var(--dim);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.26);
  background: rgba(52, 211, 153, 0.07);
  color: #6ee7b7;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}

/* ------------------------------------------------------------------ 404 --- */

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 24px 60px;
}

.error-page img {
  width: min(320px, 70vw);
  margin: 0 auto 24px;
  filter: drop-shadow(0 0 40px rgba(56, 189, 248, 0.25));
}

.error-page h1 {
  font-size: clamp(60px, 12vw, 120px);
  background: linear-gradient(180deg, #fff, rgba(56, 189, 248, 0.5));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 0.9;
}

.error-page p {
  color: var(--muted);
  margin: 16px auto 26px;
  max-width: 420px;
}

/* -------------------------------------------------------------- utilities --- */

.center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.hidden {
  display: none !important;
}

.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--dim);
  font-size: 14px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  color: transparent !important;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------ responsive --- */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero {
    padding-top: 128px;
  }

  .hero-art {
    order: -1;
    min-height: 300px;
  }

  .hero-art img {
    width: min(78%, 360px);
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .reward-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .dash-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-art {
    min-height: 320px;
    padding: 110px 24px 40px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .auth-art .tag {
    display: none;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 18px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reward-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .podium {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .podium-card.first {
    order: -1;
  }

  .board-row {
    grid-template-columns: 40px 1fr 70px;
    padding: 12px 14px;
    gap: 10px;
  }

  .board-row .tier {
    display: none;
  }

  .board-row.head span:last-child {
    display: none;
  }

  .brand-text span {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .auth-form-wrap {
    padding: 40px 20px 60px;
  }
}

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

  .nav-shell {
    padding: 8px 10px 8px 12px;
  }

  .brand img {
    width: 48px;
  }

  .brand-text strong {
    font-size: 16px;
  }
}

/* --------------------------------------------------------- invite extras --- */

.brand img {
  width: 64px;
}

.footer-brand img {
  width: 168px;
}

.hero-art img {
  width: min(100%, 520px);
}

.auth-art img {
  width: min(460px, 82%);
}

.error-page img {
  width: min(360px, 80vw);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.chip {
  height: 38px;
  padding: 0 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  color: #fff;
  border-color: rgba(56, 189, 248, 0.4);
}

.chip.is-active {
  color: #04121c;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  border-color: transparent;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 17px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(56, 189, 248, 0.06);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.notice b {
  color: #fff;
}

.ok {
  color: #6ee7b7 !important;
}

.bad {
  color: #fca5a5 !important;
}

.check-value {
  font-size: 15px;
  font-weight: 700;
  text-align: right;
}

.claim-list .kv span {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--text);
}

.auth-card .btn {
  width: 100%;
}

.auth-card .divider {
  margin: 24px 0 18px;
}

@media (max-width: 460px) {
  .brand img {
    width: 52px;
  }

  .footer-brand img {
    width: 140px;
  }
}

.stat b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .stat b {
    font-size: 22px;
  }
}

/* ---------------------------------------------------------- type + brand --- */

body {
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

.brand img {
  width: 44px;
  height: 44px;
}

.link-more {
  white-space: nowrap;
}

.stat b[data-stat="top"] {
  font-size: 20px;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .stat b[data-stat="top"] {
    font-size: 17px;
  }
}

@media (max-width: 460px) {
  .brand img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 980px) {
  .hero-art img {
    width: min(78%, 360px);
  }
}

@media (max-width: 460px) {
  .hero-art img {
    width: min(86%, 320px);
  }
}

body {
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Cambria Math', 'Noto Sans Symbols 2', sans-serif;
}

/* --------------------------------------------------------- logo aspect --- */
/* The hero <img> carries width/height attributes, and CSS only set width, so
   the browser used the 670px height attribute as a fixed height and squashed
   the 1024x670 lockup into a tall, thin mark. Keep every logo on its real
   aspect ratio instead. */

.hero-art img,
.auth-art img,
.error-page img {
  height: auto;
}

/* ---------------------------------------------------------- status page --- */

.status-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 28px;
  margin-bottom: 14px;
  border-radius: 20px;
  border: 1px solid rgba(74, 222, 128, 0.28);
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(74, 222, 128, 0.14), transparent 70%),
    linear-gradient(135deg, rgba(74, 222, 128, 0.07), rgba(56, 189, 248, 0.04));
}

.status-pulse {
  width: 54px;
  height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.1);
}

.status-pulse i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4ade80;
  animation: statusPulse 2.2s ease-out infinite;
}

@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.status-hero-copy .kicker {
  margin-bottom: 4px;
  color: #6ee7b7;
}

.status-hero-copy h2 {
  margin: 0 0 4px;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.status-hero-copy p {
  margin: 0;
}

.status-hero-meta {
  display: flex;
  gap: 34px;
  margin-left: auto;
}

.status-hero-meta span {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-hero-meta b {
  font-size: 19px;
}

.status-checks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.status-check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12.5px;
  font-weight: 600;
}

.status-check i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.85);
}

.status-check span {
  color: var(--muted);
}

.status-check b {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #6ee7b7;
}

.node-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.node-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
}

.node-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.node-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

.node-badge {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.1);
  color: #6ee7b7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.node-loc {
  margin: 6px 0 15px;
  font-size: 11.5px;
  color: var(--muted);
}

.node-specs {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
  font-size: 12px;
}

.node-specs span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text);
}

.node-specs span::before {
  content: '';
  width: 4px;
  height: 4px;
  margin-top: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--sky);
}

.node-load {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.node-load b {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--text);
}

.meter {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #7dd3fc);
}

.node-card footer {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}

.net-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 14px;
  padding: 15px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  color: var(--muted);
}

.net-strip b {
  color: #fff;
}

@media (max-width: 980px) {
  .status-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .node-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-hero-meta {
    width: 100%;
    margin-left: 74px;
  }
}

@media (max-width: 560px) {
  .status-hero {
    padding: 20px;
  }

  .status-hero-copy h2 {
    font-size: 26px;
  }

  .status-hero-meta {
    margin-left: 0;
    gap: 24px;
  }

  .status-checks {
    grid-template-columns: 1fr;
  }

  .node-grid {
    grid-template-columns: 1fr;
  }
}
