:root {
  --gold: #ebb428;
  --gold-deep: #b68a1e;
  --gold-soft: #fff4d2;
  --ink: #212428;
  --charcoal: #2b2c2e;
  --muted: #606060;
  --line: rgba(33, 36, 40, 0.12);
  --paper: #ffffff;
  --wash: #f4f4f4;
  --footer: #3e3e3e;
  --white: #ffffff;
  --shadow: 0 0 19px -8px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 6rem;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Roboto, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.428;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5.2rem;
  padding: 0.9rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(33, 36, 40, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

body[data-route="auth"] .site-header,
body[data-route="login"] .site-header,
body[data-route="dashboard"] .site-header,
body[data-route="auth"] .site-footer,
body[data-route="login"] .site-footer,
body[data-route="dashboard"] .site-footer {
  display: none;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  color: var(--charcoal);
  font-weight: 600;
}

.brand-lockup img {
  width: 10.5rem;
  height: auto;
  display: block;
}

.brand-lockup span {
  padding-left: 0.8rem;
  border-left: 1px solid var(--line);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: #2b2c2e;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-link-button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-weight: 500;
}

.gold-button,
.outline-button {
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.45rem;
  padding: 0.76rem 1.05rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.gold-button {
  color: #ffffff;
  background: var(--gold);
  box-shadow: 0 0 15px -8px rgba(0, 0, 0, 0.4);
}

.outline-button {
  color: var(--muted);
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 0 15px -8px rgba(0, 0, 0, 0.4);
}

.gold-button:hover,
.outline-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 19px -8px rgba(0, 0, 0, 0.55);
}

.gold-button.is-clicked,
.outline-button.is-clicked,
.side-link.is-clicked {
  animation: clickConfirm 340ms ease both;
}

@keyframes clickConfirm {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(235, 180, 40, 0.24);
  }
  45% {
    transform: scale(0.985);
    box-shadow: 0 0 0 7px rgba(235, 180, 40, 0.16);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 14px rgba(235, 180, 40, 0);
  }
}

.large {
  min-height: 3rem;
  padding-inline: 1.25rem;
}

.menu-button {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.78);
}

.menu-button span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.25rem auto;
  background: var(--ink);
}

.route {
  display: none;
}

.route.is-active {
  display: block;
}

.hero-section,
.movement-section,
.reward-story,
.operators-section,
.ecosystem-section,
.final-cta {
  position: relative;
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
  background: var(--section-bg, #ffffff);
  box-shadow: 0 0 0 100vmax var(--section-bg, #ffffff);
  clip-path: inset(0 -100vmax);
}

.hero-section,
.reward-story,
.ecosystem-section {
  --section-bg: #ffffff;
}

.movement-section,
.operators-section,
.final-cta {
  --section-bg: var(--wash);
}

.hero-section {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(28rem, 1.12fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(2.6rem, 5vw, 4.5rem) 0 3.5rem;
}

.kicker {
  margin: 0;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

.hero-copy h1 {
  max-width: 12ch;
  margin: 0.8rem 0 1rem;
  color: var(--gold);
  font-size: clamp(2.35rem, 4vw, 3.75rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.45rem;
}

.hero-actions.center {
  justify-content: center;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.65rem;
}

.hero-proof span {
  color: #616161;
  font-size: 0.84rem;
  font-weight: 500;
}

.hero-proof span + span::before {
  content: "/";
  margin-right: 0.55rem;
  color: var(--gold-deep);
}

.hero-system {
  position: relative;
  min-height: 26rem;
  display: grid;
  align-items: center;
}

.network-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.network-map path {
  fill: none;
  stroke: rgba(184, 139, 32, 0.35);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 8 12;
  animation: path-flow 16s linear infinite;
}

@keyframes path-flow {
  to {
    stroke-dashoffset: -240;
  }
}

.video-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(33, 36, 40, 0.1);
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(235, 180, 40, 0.16), transparent 18rem),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  padding: 0.7rem;
}

.video-poster {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0.65rem;
  padding: 0;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at center, rgba(235, 180, 40, 0.18), transparent 14rem),
    #f7f7f7;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
}

.video-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(33, 36, 40, 0.16));
}

.video-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0.65rem;
  background: #f2f2f2;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  color: #ffffff;
  background: var(--gold);
  box-shadow: 0 0 19px -8px rgba(0, 0, 0, 0.55);
  font-weight: 600;
  transform: translate(-50%, -50%);
}

.movement-section,
.operators-section,
.ecosystem-section,
.final-cta {
  padding: clamp(4rem, 8vw, 7.25rem) 0;
}

.section-intro {
  max-width: 56rem;
  margin-bottom: 1.8rem;
}

.section-intro.narrow {
  max-width: 49rem;
}

.section-intro h2,
.reward-copy h2,
.operator-copy h2,
.cta-inner h2 {
  margin: 0.65rem 0 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 2.45vw, 2.35rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.process-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  padding-top: 1.4rem;
}

.rail-line {
  position: absolute;
  top: 2.55rem;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(235, 180, 40, 0), rgba(235, 180, 40, 0.8), rgba(235, 180, 40, 0));
}

.process-rail article {
  position: relative;
  min-height: 12rem;
  padding: 3.5rem 0 0;
}

.process-rail article::before {
  content: "";
  position: absolute;
  top: 0.85rem;
  left: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(235, 180, 40, 0.4);
  animation: ping-gold 2.8s ease-out infinite;
}

@keyframes ping-gold {
  70%,
  100% {
    box-shadow: 0 0 0 18px rgba(235, 180, 40, 0);
  }
}

.process-rail span {
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 600;
}

.process-rail h3 {
  max-width: 14rem;
  margin: 0.55rem 0;
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  font-weight: 500;
  line-height: 1.18;
}

.process-rail p,
.reward-copy p,
.operator-copy p,
.capability p,
.cta-inner p {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.4;
}

.reward-story {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(28rem, 1.22fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5.2rem) 0;
}

.disclaimer {
  margin-top: 1.1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 300;
}

.reward-visual {
  position: relative;
  padding: clamp(1rem, 3vw, 2rem);
}

.reward-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 76% 15%, rgba(235, 180, 40, 0.18), transparent 17rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(250, 250, 250, 0.76));
  border: 1px solid rgba(33, 36, 40, 0.08);
  box-shadow: var(--shadow);
}

.reward-scale,
.bonus-ledger {
  position: relative;
  z-index: 1;
}

.scale-row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) 10rem;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(33, 36, 40, 0.08);
}

.scale-row span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.scale-row div {
  height: 0.7rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(33, 36, 40, 0.08);
}

.scale-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ebb428, #f2c759);
}

.scale-row strong {
  text-align: right;
  font-size: 0.98rem;
  font-weight: 600;
}

.scale-row.highlight strong {
  color: var(--gold-deep);
  font-size: 1.08rem;
}

.bonus-ledger {
  margin-top: 1.8rem;
  padding: 1.15rem;
  border-radius: 0.75rem;
  color: var(--white);
  background: linear-gradient(135deg, #2b2c2e, #3b3c3e);
}

.bonus-ledger h3 {
  margin: 0 0 0.8rem;
}

.bonus-ledger p {
  margin: 0.6rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.bonus-ledger strong {
  color: var(--gold);
}

.operators-section {
  display: grid;
  grid-template-columns: minmax(24rem, 0.98fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.network-map {
  position: relative;
  min-height: 29rem;
}

.network-map path {
  stroke: rgba(33, 36, 40, 0.14);
}

.network-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 14rem;
  min-height: 8rem;
  display: grid;
  place-items: center;
  gap: 0.3rem;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(33, 36, 40, 0.1);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.network-core img {
  width: 9rem;
}

.network-core img.anchor-mark {
  width: 3.9rem;
}

.network-core span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.network-node {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(33, 36, 40, 0.1);
  padding: 0.55rem 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(33, 36, 40, 0.08);
  color: #2b2c2e;
  font-size: 0.84rem;
  font-weight: 500;
}

.n1 { left: 8%; top: 12%; }
.n2 { right: 10%; top: 10%; }
.n3 { right: 0; top: 52%; }
.n4 { right: 16%; bottom: 9%; }
.n5 { left: 11%; bottom: 12%; }
.n6 { left: 0; top: 50%; }

.operator-copy p {
  max-width: 43rem;
}

.operator-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.3rem;
}

.operator-list button {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  border: 0;
  border-left: 3px solid rgba(235, 180, 40, 0.34);
  padding: 0.8rem 1rem;
  color: #2b2c2e;
  background: transparent;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.operator-list button:hover {
  border-color: var(--gold);
  background: rgba(235, 180, 40, 0.08);
  transform: translateX(4px);
}

.operator-list strong {
  font-size: 1.05rem;
  font-weight: 500;
}

.operator-list span {
  color: var(--muted);
  line-height: 1.55;
}

.why-panel {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(33, 36, 40, 0.1);
  border-radius: 1rem;
  background: rgba(33, 36, 40, 0.1);
  box-shadow: var(--shadow);
}

.why-brand,
.capability {
  min-height: 10rem;
  padding: clamp(1rem, 2.3vw, 1.35rem);
  background: rgba(255, 255, 255, 0.88);
}

.why-brand {
  display: grid;
  align-content: center;
  gap: 1rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(235, 180, 40, 0.18), transparent 12rem),
    rgba(255, 255, 255, 0.92);
}

.why-brand img {
  width: 11rem;
}

.why-brand p,
.capability p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.capability {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  border-left: 3px solid transparent;
}

.capability:hover {
  border-left-color: var(--gold);
}

.capability h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.capability p {
  font-size: 0.88rem;
}

.final-cta {
  padding-top: clamp(4rem, 8vw, 7.25rem);
}

.cta-inner {
  display: grid;
  justify-items: center;
  text-align: center;
  border-radius: 1rem;
  padding: clamp(2rem, 4.8vw, 3.8rem);
  background:
    radial-gradient(circle at 28% 0%, rgba(235, 180, 40, 0.22), transparent 22rem),
    linear-gradient(135deg, #2b2c2e, var(--footer));
  color: white;
  box-shadow: var(--shadow);
}

.cta-inner img {
  width: 10.5rem;
  filter: brightness(1.9);
}

.cta-inner img.anchor-mark {
  width: 4.4rem;
  filter: none;
}

.cta-inner h2 {
  color: white;
  max-width: 15ch;
}

.cta-inner p {
  max-width: 37rem;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  position: relative;
  width: min(1220px, calc(100% - 2rem));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.3rem;
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
  color: rgba(255, 255, 255, 0.78);
  background: var(--footer);
  box-shadow: 0 0 0 100vmax var(--footer);
  clip-path: inset(0 -100vmax);
  font-size: 0.9rem;
  font-weight: 400;
}

.site-footer img {
  width: 8rem;
  margin-right: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.site-footer button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
}

.site-footer a,
.site-footer button {
  transition: color 160ms ease;
}

.site-footer a:hover,
.site-footer button:hover {
  color: #ffffff;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(28rem, 1.18fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0;
}

.auth-route.is-active {
  background:
    radial-gradient(circle at 24% 20%, rgba(235, 180, 40, 0.16), transparent 20rem),
    linear-gradient(180deg, #ffffff 0%, var(--wash) 100%);
}

.auth-route.is-active .auth-copy {
  animation: authCopyIn 460ms ease both;
}

.auth-route.is-active .application-form {
  animation: authFormIn 520ms 80ms ease both;
}

.auth-route.is-active .application-form label {
  animation: authFieldIn 420ms ease both;
}

.auth-route.is-active .application-form label:nth-child(1) { animation-delay: 120ms; }
.auth-route.is-active .application-form label:nth-child(2) { animation-delay: 155ms; }
.auth-route.is-active .application-form label:nth-child(3) { animation-delay: 190ms; }
.auth-route.is-active .application-form label:nth-child(4) { animation-delay: 225ms; }
.auth-route.is-active .application-form label:nth-child(5) { animation-delay: 260ms; }
.auth-route.is-active .application-form label:nth-child(6) { animation-delay: 295ms; }
.auth-route.is-active .application-form label:nth-child(7) { animation-delay: 330ms; }
.auth-route.is-active .application-form label:nth-child(8) { animation-delay: 365ms; }

@keyframes authCopyIn {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes authFormIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes authFieldIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.application-orbit {
  position: relative;
  width: 7.5rem;
  aspect-ratio: 1;
  margin-bottom: 1.25rem;
  display: grid;
  place-items: center;
}

.application-orbit img {
  position: relative;
  z-index: 2;
  width: 3rem;
  margin: 0;
}

.application-orbit span {
  position: absolute;
  inset: 0.45rem;
  border: 1px solid rgba(235, 180, 40, 0.26);
  border-radius: 50%;
  animation: orbitPulse 2.4s ease-in-out infinite;
}

.application-orbit span:nth-child(2) {
  inset: 1.25rem;
  animation-delay: 220ms;
}

.application-orbit span:nth-child(3) {
  inset: 2rem;
  background: rgba(235, 180, 40, 0.12);
  animation-delay: 420ms;
}

@keyframes orbitPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.55; }
  50% { transform: scale(1.04); opacity: 1; }
}

.back-link {
  position: fixed;
  left: 1.25rem;
  top: 1.25rem;
  border: 0;
  background: transparent;
  color: var(--gold-deep);
  font-weight: 600;
}

.auth-copy img {
  width: 12rem;
  margin-bottom: 2rem;
}

.auth-copy h1 {
  margin: 1rem 0;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.08;
}

.auth-copy p:not(.kicker) {
  color: var(--muted);
  line-height: 1.7;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(235, 180, 40, 0.14), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--wash) 100%);
}

.login-card {
  width: min(100%, 28rem);
  border: 1px solid rgba(33, 36, 40, 0.1);
  border-radius: 0.9rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1.25rem 4rem rgba(33, 36, 40, 0.12);
  animation: cardRise 380ms ease both;
}

.login-card img {
  width: 11rem;
  margin-bottom: 1.25rem;
}

.login-card h1 {
  margin: 0.65rem 0;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 500;
  line-height: 1.08;
}

.login-card p:not(.kicker),
.login-meta {
  color: var(--muted);
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.demo-credentials {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  border: 1px solid rgba(235, 180, 40, 0.26);
  border-radius: 0.65rem;
  padding: 0.75rem 0.85rem;
  background: rgba(235, 180, 40, 0.1);
  color: var(--charcoal);
}

.demo-credentials span {
  color: var(--muted);
  font-weight: 600;
}

.demo-credentials strong {
  font-weight: 800;
}

.login-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.82rem;
}

.login-meta a {
  color: var(--gold-deep);
  font-weight: 600;
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.application-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 1.2rem;
  border: 1px solid rgba(33, 36, 40, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.application-form.compact {
  max-width: 58rem;
  box-shadow: none;
}

label {
  display: grid;
  gap: 0.4rem;
  color: #2b2c2e;
  font-size: 0.84rem;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid rgba(33, 36, 40, 0.14);
  border-radius: 0.5rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.72rem 0.8rem;
  outline: none;
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(235, 180, 40, 0.9);
  box-shadow: 0 0 0 4px rgba(235, 180, 40, 0.16);
}

.wide {
  grid-column: 1 / -1;
}

.app-route.is-active {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  min-height: 100vh;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.25rem;
  border-right: 1px solid rgba(33, 36, 40, 0.1);
  background: rgba(255, 255, 255, 0.94);
}

.app-sidebar img {
  width: 10rem;
}

.app-sidebar nav {
  display: grid;
  gap: 0.35rem;
}

.side-link {
  display: flex;
  align-items: center;
  min-height: 2.7rem;
  border: 0;
  border-left: 3px solid transparent;
  color: #2b2c2e;
  background: transparent;
  padding: 0.65rem 0.75rem;
  text-align: left;
  font-weight: 500;
}

.side-link.is-active,
.side-link:hover {
  border-color: var(--gold);
  background: rgba(235, 180, 40, 0.1);
}

.app-main {
  min-width: 0;
  padding: clamp(1rem, 3vw, 2rem);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.app-header h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  font-weight: 500;
  line-height: 1.18;
}

.dashboard-subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.user-chip {
  border: 1px solid rgba(33, 36, 40, 0.1);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: white;
  color: var(--ink);
  font-weight: 500;
}

.user-menu {
  position: relative;
  display: inline-flex;
}

.user-menu .user-chip::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.55rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  z-index: 10;
  display: grid;
  min-width: 11rem;
  border: 1px solid rgba(33, 36, 40, 0.1);
  border-radius: 0.65rem;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1rem 2.5rem rgba(33, 36, 40, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.user-menu.is-open .user-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.user-dropdown a {
  border-radius: 0.45rem;
  padding: 0.65rem 0.75rem;
  color: var(--charcoal);
  font-weight: 600;
}

.user-dropdown a:hover {
  background: rgba(235, 180, 40, 0.1);
}

.app-panel {
  display: none;
}

.app-panel.is-active {
  display: block;
  animation: panelIn 240ms ease both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-metrics,
.dashboard-canvas,
.resource-list {
  display: grid;
  gap: 1rem;
}

.dashboard-metrics {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.dashboard-metrics article,
.dashboard-canvas article,
.workspace-panel,
.resource-list article {
  border: 1px solid rgba(33, 36, 40, 0.1);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.84);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.dashboard-metrics span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.dashboard-metrics strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 2rem;
  font-weight: 500;
}

.dashboard-canvas {
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.86fr);
  margin-top: 1rem;
}

.mini-chart.tall {
  height: 17rem;
}

.mini-chart.is-empty {
  position: relative;
}

.mini-chart.is-empty i {
  opacity: 0.25;
}

.mini-chart.is-empty span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 500;
}

.activity-feed,
.ledger-list,
.status-timeline {
  display: grid;
  gap: 0.65rem;
}

.activity-feed div,
.ledger-list div,
.resource-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border-radius: 0.55rem;
  background: rgba(250, 250, 250, 0.9);
}

.empty-state {
  display: grid !important;
  justify-content: start !important;
  gap: 0.35rem !important;
  color: var(--muted);
  text-align: left;
}

.empty-state strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.table-empty {
  min-height: 8rem;
  place-items: center;
  justify-content: center !important;
  text-align: center;
}

.rewards-empty {
  min-height: 9rem;
  align-content: center;
  border: 1px dashed rgba(33, 36, 40, 0.16);
  border-radius: 0.7rem;
  padding: 1rem;
  background: rgba(250, 250, 250, 0.72);
}

.resource-grid {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.resource-grid article {
  align-items: flex-start;
  flex-direction: column;
  min-height: 13rem;
}

.resource-grid img {
  width: 100%;
  max-height: 5.5rem;
  object-fit: contain;
  border: 1px solid rgba(33, 36, 40, 0.08);
  border-radius: 0.55rem;
  padding: 0.9rem;
  background: white;
}

.settings-grid,
.analytics-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.settings-card,
.analytics-card,
.admin-card,
.category-card {
  border: 1px solid rgba(33, 36, 40, 0.1);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.86);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.settings-card h2,
.analytics-card h2,
.admin-card h2,
.category-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.profile-list,
.alert-list,
.analytics-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.profile-list div,
.analytics-list div,
.alert-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0.55rem;
  padding: 0.8rem;
  background: rgba(250, 250, 250, 0.9);
}

.profile-list span,
.analytics-list span,
.alert-toggle span {
  color: var(--muted);
}

.alert-toggle input {
  width: 2.55rem;
  height: 1.35rem;
  accent-color: var(--gold);
}

.resource-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.resource-tabs button {
  border: 1px solid rgba(33, 36, 40, 0.1);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  background: white;
  color: var(--charcoal);
  font-weight: 600;
}

.resource-tabs button.is-active {
  border-color: rgba(235, 180, 40, 0.52);
  background: rgba(235, 180, 40, 0.12);
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(33, 36, 40, 0.1);
  border-radius: 0.8rem;
  background: white;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem;
  border-bottom: 1px solid rgba(33, 36, 40, 0.08);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-chip {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 0.36rem 0.65rem;
  color: #5d4510;
  background: rgba(235, 180, 40, 0.18);
  font-size: 0.78rem;
  font-weight: 850;
}

.status-timeline {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.copy-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.panel-note {
  max-width: 42rem;
  margin: 0.35rem 0 1rem;
  color: var(--muted);
}

.referral-tools {
  display: grid;
  grid-template-columns: 8.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.qr-card {
  display: grid;
  place-items: center;
  width: 8.25rem;
  aspect-ratio: 1;
  border: 1px solid rgba(33, 36, 40, 0.1);
  border-radius: 0.65rem;
  padding: 0.55rem;
  background: #ffffff;
  opacity: 0.55;
  transition: opacity 180ms ease, box-shadow 180ms ease;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  gap: 0.25rem;
  color: var(--muted);
  text-align: center;
}

.qr-placeholder span {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: rgba(235, 180, 40, 0.14);
  color: var(--gold-deep);
  font-weight: 900;
}

.qr-placeholder small {
  max-width: 6.5rem;
  font-size: 0.7rem;
  line-height: 1.25;
}

.qr-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-card.is-ready {
  opacity: 1;
  box-shadow: 0 1rem 2.5rem rgba(33, 36, 40, 0.1);
}

.qr-download {
  display: none;
  width: fit-content;
  margin-top: 0.85rem;
}

.qr-download.is-ready {
  display: inline-flex;
}

.referral-instructions {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
}

code {
  max-width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid rgba(33, 36, 40, 0.1);
  border-radius: 0.55rem;
  background: rgba(250, 250, 250, 0.92);
  padding: 0.75rem;
}

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

.delay-1 { transition-delay: 120ms; }

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

@media (max-width: 1060px) {
  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 4.6rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.96);
  }

  .nav-links.is-open {
    display: flex;
  }

  .menu-button {
    display: block;
  }

  .hero-section,
  .reward-story,
  .operators-section,
  .auth-shell,
  .app-route.is-active {
    grid-template-columns: 1fr;
  }

  .hero-system {
    min-height: auto;
  }

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

  .rail-line {
    display: none;
  }

  .why-panel {
    grid-template-columns: 1fr 1fr;
  }

  .why-brand {
    grid-column: 1 / -1;
  }

  .app-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(33, 36, 40, 0.1);
  }

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

@media (max-width: 700px) {
  .brand-lockup img {
    width: 8rem;
  }

  .brand-lockup span {
    display: none;
  }

  .hero-section,
  .movement-section,
  .reward-story,
  .operators-section,
  .ecosystem-section,
  .final-cta {
    width: min(100% - 1rem, 1220px);
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 10vw, 3.1rem);
  }

  .hero-system {
    min-height: auto;
  }

  .process-rail,
  .dashboard-canvas,
  .application-form,
  .referral-tools {
    grid-template-columns: 1fr;
  }

  .why-panel {
    grid-template-columns: 1fr;
  }

  .process-rail article {
    min-height: 0;
    padding-top: 3.8rem;
  }

  .scale-row {
    grid-template-columns: 5.8rem minmax(0, 1fr);
    gap: 0.65rem;
  }

  .scale-row strong {
    grid-column: 2;
    text-align: left;
  }

  .network-map {
    min-height: 30rem;
  }

  .network-node {
    font-size: 0.75rem;
  }

  .app-sidebar nav {
    grid-template-columns: 1fr;
  }
}
