/* ========================================================================
   landing.css — front-door marketing page for Claude Office: On-Chain.
   Loaded AFTER styles.css. Reuses the same CSS vars + classes; only adds
   scrolling-page layout the game's fixed #app grid doesn't provide.
   ======================================================================== */

/* Override the game's locked viewport — the landing page scrolls. */
html,
body {
  overflow: hidden auto;
  height: auto;
  min-height: 100%;
}
body {
  scroll-behavior: smooth;
}

/* ---------------- shared scaffolding ---------------- */
.lp-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
}
.lp-section {
  padding: 70px 0;
  border-bottom: 1px solid var(--border);
}
.lp-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 10px;
}
.lp-h2 {
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.4px;
  line-height: 1.15;
}
.lp-lead {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 0 6px;
}
.grad-text {
  background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- sticky top bar ---------------- */
.lp-top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 22px;
  background: linear-gradient(180deg, rgba(14, 17, 25, 0.96), rgba(12, 14, 19, 0.9));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.lp-top .header-spacer {
  flex: 1;
}
.lp-top .topnav {
  margin-left: 6px;
}
.lp-top .sol-btn {
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 7px;
}
/* logo lockup (image + wordmark) */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.lp-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--border-2), 0 0 14px rgba(153, 69, 255, 0.35);
}
/* X (twitter) icon button */
.x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: var(--panel-2);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: border-color 0.12s, background 0.12s, transform 0.05s;
}
.x-btn:hover {
  border-color: var(--accent);
  background: var(--panel-3);
}
.x-btn:active {
  transform: translateY(1px);
}
/* Buy $COIN button (pump.fun green) */
.coin-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
  font-size: 12px;
  color: #06210f;
  background: linear-gradient(90deg, #14f195, #4ade80);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 13px;
  transition: filter 0.12s, transform 0.05s;
}
.coin-btn:hover {
  filter: brightness(1.08);
}
.coin-btn:active {
  transform: translateY(1px);
}
.coin-btn-lg {
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 9px;
}

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 64px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(153, 69, 255, 0.16), transparent 60%),
    radial-gradient(760px 520px at 8% 112%, rgba(20, 241, 149, 0.12), transparent 60%);
}
/* full-bleed video background (filtered so foreground text stays readable) */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.38) saturate(1.08) contrast(1.04) blur(1px);
  transform: scale(1.04); /* hide the blur edge bleed */
  pointer-events: none;
}
.hero-video-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(153, 69, 255, 0.28), transparent 62%),
    radial-gradient(760px 520px at 8% 112%, rgba(20, 241, 149, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(12, 14, 19, 0.62) 0%, rgba(12, 14, 19, 0.78) 70%, var(--bg) 100%);
}
.hero > .lp-wrap {
  position: relative;
  z-index: 2;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.06;
  letter-spacing: -1.2px;
  font-weight: 800;
  margin: 14px 0 16px;
}
.hero-sub {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.62;
  max-width: 540px;
  margin: 0 0 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

/* CTAs */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
a.sol-btn,
a.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 9px;
  font-weight: 700;
  transition:
    transform 0.08s ease,
    filter 0.12s ease,
    border-color 0.12s ease,
    background 0.12s ease;
}
a.sol-btn {
  background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
  color: #06210f;
  border: 1px solid transparent;
  box-shadow: 0 10px 30px rgba(20, 241, 149, 0.14);
}
a.sol-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
a.btn-ghost {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border-2);
}
a.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--panel-3);
  transform: translateY(-1px);
}
.connect-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12.5px;
}
.connect-link:hover {
  color: var(--sol-green);
}
.connect-link .live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sol-green);
  box-shadow: 0 0 6px var(--sol-green);
}

/* ---------- hero motif: faux office strip ---------- */
.motif {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, var(--panel), var(--bg-2));
  padding: 16px 16px 0;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  min-height: 250px;
}
.motif-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 11px;
}
.motif-bar .tl {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--panel-3);
}
.motif-bar .tl.r {
  background: #5a2230;
}
.motif-bar .tl.y {
  background: #6b5a17;
}
.motif-bar .tl.g {
  background: #1c5a3a;
}
.motif-bar .ttl {
  margin-left: 6px;
  color: var(--text-dim);
}

/* scrolling ticker chip row behind the desk */
.motif-ticker {
  position: relative;
  height: 26px;
  margin: 10px 0;
  overflow: hidden;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.motif-ticker .run {
  position: absolute;
  white-space: nowrap;
  display: inline-flex;
  gap: 18px;
  animation: tickRun 18s linear infinite;
  will-change: transform;
}
.motif-ticker .chip {
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  background: var(--panel-2);
}
.motif-ticker .chip .up {
  color: var(--good);
}
@keyframes tickRun {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* the desk row + sliding agent dots */
.desk-row {
  position: relative;
  height: 120px;
  margin: 6px 0 0;
}
.desk-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(180deg, var(--panel-3), var(--panel-2));
  border: 1px solid var(--border-2);
}
.desk-line::before {
  content: "";
  position: absolute;
  inset: auto 0 -16px 0;
  height: 16px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--border) 0,
      var(--border) 1px,
      transparent 1px,
      transparent 64px
    );
  opacity: 0.4;
}
.agent {
  position: absolute;
  bottom: 30px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
  animation: agentSlide 14s ease-in-out infinite;
}
.agent::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: inherit;
  filter: brightness(1.25);
  transform: translateX(-50%);
  opacity: 0.85;
}
.agent.a1 {
  background: #ff6b6b;
  animation-delay: -0.5s;
}
.agent.a2 {
  background: #fbbf24;
  animation-delay: -4s;
}
.agent.a3 {
  background: #a78bfa;
  animation-delay: -8s;
}
.agent.a4 {
  background: #34d399;
  animation-delay: -11.5s;
}
@keyframes agentSlide {
  0% {
    left: 8%;
  }
  22% {
    left: 30%;
  }
  26% {
    left: 30%;
  }
  50% {
    left: 64%;
  }
  54% {
    left: 64%;
  }
  78% {
    left: 88%;
  }
  100% {
    left: 8%;
  }
}

/* periodic +◎ payout pops */
.pop {
  position: absolute;
  bottom: 64px;
  font-size: 12px;
  font-weight: 800;
  color: var(--sol-green);
  opacity: 0;
  animation: popUp 5s ease-in-out infinite;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.pop.p1 {
  left: 28%;
  animation-delay: 1.2s;
}
.pop.p2 {
  left: 60%;
  animation-delay: 3.4s;
}
.pop.p3 {
  left: 84%;
  color: var(--accent);
  animation-delay: 4.6s;
}
@keyframes popUp {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.9);
  }
  12% {
    opacity: 1;
    transform: translateY(-4px) scale(1);
  }
  30% {
    opacity: 0;
    transform: translateY(-22px) scale(1);
  }
  100% {
    opacity: 0;
  }
}

/* ---------------- 4-up stat bar ---------------- */
.statbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 30px;
}
.stat {
  background: var(--panel);
  padding: 16px 16px;
}
.stat .lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-faint);
  font-weight: 700;
}
.stat .big {
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
  letter-spacing: -0.5px;
}
.stat .big.green {
  color: var(--sol-green);
}
.stat .big.gold {
  color: var(--work);
}
.stat .big.energy {
  color: #ffd23f;
}

/* ---------------- card grids ---------------- */
.card-grid {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}
.card-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.card-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.card-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.lp-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  transition:
    transform 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease;
}
.lp-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.lp-card .step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 10px;
}
.lp-card .ic {
  font-size: 22px;
  margin-bottom: 8px;
}
.lp-card h3 {
  font-size: 14px;
  margin: 2px 0 6px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.lp-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.55;
}
.lp-card .pay {
  color: var(--sol-green);
  font-weight: 700;
}

/* ---------------- energy mini-store rows ---------------- */
.energy-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}
.energy-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}
.energy-panel .ep-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: var(--text-dim);
}
.erow {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.erow:last-child {
  border-bottom: none;
}
.erow .ico {
  font-size: 19px;
  width: 24px;
  text-align: center;
  flex: 0 0 auto;
}
.erow .grow {
  flex: 1;
  min-width: 0;
}
.erow .nm {
  font-weight: 600;
  font-size: 12.5px;
}
.erow .ds {
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.35;
  margin-top: 1px;
}
.erow .cost {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: #ffd23f;
  white-space: nowrap;
}
.convert-callout {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background:
    linear-gradient(90deg, rgba(153, 69, 255, 0.1), rgba(20, 241, 149, 0.08));
  font-size: 13px;
}
.convert-callout b {
  color: #ffd23f;
}

/* ---------------- tier ladder ---------------- */
.ladder {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}
.rung {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 4px;
}
.rung .meta {
  width: 168px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
}
.rung .meta .tier-ic {
  font-size: 18px;
}
.rung .meta .tn {
  font-weight: 700;
  font-size: 13px;
}
.rung .meta .ms {
  color: var(--text-faint);
  font-size: 10px;
}
.rung .track {
  flex: 1;
  height: 26px;
  border-radius: 7px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.rung .fill {
  height: 100%;
  border-radius: 6px 0 0 6px;
  transition: width 0.4s ease;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.25);
}
.rung .share {
  flex: 0 0 auto;
  width: 92px;
  text-align: right;
  font-size: 11px;
  color: var(--text-dim);
}
.rung .share b {
  color: var(--text);
}

/* ---------------- reward pool teaser ---------------- */
.pool-panel {
  margin-top: 26px;
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 28px;
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(20, 241, 149, 0.12), transparent 60%),
    radial-gradient(600px 320px at 0% 100%, rgba(153, 69, 255, 0.14), transparent 60%),
    var(--panel);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}
.pool-stat-label {
  font-size: 10px;
  letter-spacing: 0.8px;
  color: var(--text-faint);
  font-weight: 700;
  text-transform: uppercase;
}
.pool-panel .pool-amt {
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  margin: 8px 0 6px;
}
.pool-panel .pool-amt .grad-text {
  display: inline;
}
.pool-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pool-stat {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
  padding: 12px 14px;
}
.pool-stat .k {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-faint);
  font-weight: 700;
}
.pool-stat .vv {
  font-size: 18px;
  font-weight: 800;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.pool-stat .vv.count {
  color: var(--sol-green);
}

/* ---------------- achievements teaser ---------------- */
.achv-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.achv-tile {
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
  padding: 14px 10px;
  text-align: center;
  transition:
    transform 0.1s ease,
    border-color 0.1s ease;
}
.achv-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.achv-tile .ai {
  font-size: 24px;
}
.achv-tile .an {
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.25;
}
.achv-tile .ap {
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
  margin-top: 3px;
}

/* ---------------- safety / FAQ ---------------- */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}
.legend .li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 12px;
  background: var(--panel-2);
  font-size: 12px;
  color: var(--text-dim);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
  padding: 16px 18px;
}
.faq-item h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
}
.faq-item p {
  margin: 0;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.55;
}

/* ---------------- page footer ---------------- */
.lp-footer {
  padding: 34px 0 110px;
  text-align: center;
  color: var(--text-faint);
  font-size: 12px;
}
.lp-footer .fnav {
  display: inline-flex;
  gap: 16px;
  margin-bottom: 12px;
}
.lp-footer .fnav a {
  color: var(--text-dim);
  text-decoration: none;
}
.lp-footer .fnav a:hover {
  color: var(--sol-green);
}

/* ---------------- sticky safety bar (mirrors the game #ticker) ---------------- */
.safety-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  background: #0a0c11;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-dim);
  text-align: center;
}
.safety-bar .live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sol-green);
  box-shadow: 0 0 6px var(--sol-green);
  flex: 0 0 auto;
}

/* ---------------- responsive ---------------- */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .pool-panel {
    grid-template-columns: 1fr;
  }
  .achv-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 760px) {
  .lp-section {
    padding: 52px 0;
  }
  .statbar,
  .card-grid.cols-4,
  .card-grid.cols-3 {
    grid-template-columns: 1fr 1fr;
  }
  .energy-cols,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .achv-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .rung .meta {
    width: 132px;
  }
  .rung .share {
    width: 72px;
  }
  .lp-top .topnav {
    display: none;
  }
}
@media (max-width: 480px) {
  .statbar,
  .card-grid.cols-4,
  .card-grid.cols-2 {
    grid-template-columns: 1fr;
  }
  .achv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
