/* New Game Plus — landing page only. Shared tokens live in styles.css. */

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

.hero {
  position: relative;
  padding: 84px 0 90px;
  overflow: hidden;
}

/* The two lantern pools from src/ui/fx/TavernBackground.tsx, breathing out of
   phase the way the Skia version does. */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--ember);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 46vw;
  height: 46vw;
  left: -8vw;
  top: -14vw;
  opacity: 0.14;
  animation: lantern 5.2s ease-in-out infinite alternate;
}
.hero::after {
  width: 38vw;
  height: 38vw;
  right: -10vw;
  top: -6vw;
  opacity: 0.1;
  animation: lantern 6.1s ease-in-out infinite alternate-reverse;
}

@keyframes lantern {
  from {
    opacity: 0.07;
  }
  to {
    opacity: 0.2;
  }
}

.cracks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  animation: breathe 2.9s ease-in-out infinite alternate;
}
.cracks .glow {
  stroke: var(--mana);
  stroke-width: 4;
  filter: blur(5px);
}
.cracks .core {
  stroke: var(--mana-core);
  stroke-width: 1.4;
}

@keyframes breathe {
  from {
    opacity: 0.22;
  }
  to {
    opacity: 0.6;
  }
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 20px;
}
.hero h1 .glint {
  background: linear-gradient(100deg, var(--gold) 0%, #fff3d0 45%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  max-width: 30ch;
  margin-bottom: 30px;
}

.hero-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.app-icon {
  width: 132px;
  height: 132px;
  border-radius: 28px;
  border: 1px solid var(--gold-edge);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6), 0 0 46px rgba(255, 180, 94, 0.16);
}

.store-note {
  font-size: 14px;
  color: var(--dim);
  margin-top: 16px;
}

/* ------------------------------------------------------------ rune board -- */

.board {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  width: min(320px, 82vw);
  padding: 12px;
  background: linear-gradient(180deg, #1d1409, #120c05);
  border: 1px solid var(--panel-2);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
}

.board i {
  aspect-ratio: 1;
  border-radius: 7px;
  background: radial-gradient(circle at 32% 28%, var(--c1), var(--c2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  opacity: 0.62;
}

.board .r-red {
  --c1: #ff6b62;
  --c2: #801a12;
}
.board .r-green {
  --c1: #62e785;
  --c2: #136c2c;
}
.board .r-blue {
  --c1: #7bdcff;
  --c2: #146480;
}
.board .r-white {
  --c1: #fff8ea;
  --c2: #a08c62;
}
.board .r-black {
  --c1: #d989ff;
  --c2: #5c1d80;
}

.board .on {
  opacity: 1;
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  box-shadow: 0 0 14px rgba(244, 205, 102, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: chain 2.4s ease-in-out infinite;
}
.board .on:nth-of-type(2) {
  animation-delay: 0.1s;
}
.board .on:nth-of-type(3) {
  animation-delay: 0.2s;
}

@keyframes chain {
  0%,
  70%,
  100% {
    transform: scale(1);
  }
  80% {
    transform: scale(1.1);
  }
}

.board-cap {
  font-size: 14px;
  color: var(--dim);
  text-align: center;
  max-width: 34ch;
  margin: 0;
}

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

.steps {
  counter-reset: step;
}
.steps .card {
  position: relative;
  padding-top: 34px;
}
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: var(--head);
  font-size: 42px;
  line-height: 1;
  color: rgba(244, 205, 102, 0.16);
}
.steps h3 {
  color: var(--gold);
  margin-bottom: 10px;
}
.steps p {
  margin: 0;
  font-size: 16px;
}

/* ------------------------------------------------------------- features -- */

.features .card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.features .head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.features h3 {
  color: var(--text);
  margin: 0;
}
.features p {
  margin: 0;
  font-size: 16px;
  color: var(--body);
}
.features .note {
  font-size: 13px;
  color: var(--dim);
  margin-top: auto;
  padding-top: 6px;
}

.features .quest-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(70, 51, 31, 0.6);
}
.features .quest-icons .ico {
  width: 21px;
  height: 21px;
  color: var(--accent-2);
}

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

.stats {
  padding: 0;
}
.stats ul {
  list-style: none;
  margin: 0;
  padding: 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  border-top: 1px solid var(--panel-2);
  border-bottom: 1px solid var(--panel-2);
  text-align: center;
}
.stats b {
  display: block;
  font-family: var(--head);
  font-size: 34px;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.stats span {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  font-family: var(--head);
}

/* ---------------------------------------------------------------- pledge -- */

.pledge {
  text-align: center;
}
.pledge .card {
  padding: 40px 30px;
  border-color: rgba(95, 200, 232, 0.28);
}
.pledge h2 {
  color: var(--mana-core);
  margin-bottom: 14px;
}
.pledge p {
  max-width: 56ch;
  margin: 0 auto 18px;
}

/* --------------------------------------------------------------- pricing -- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

.plan h3 {
  color: var(--gold);
  margin-bottom: 4px;
}
.plan .price {
  font-family: var(--head);
  font-size: 30px;
  color: var(--text);
  margin: 8px 0 4px;
}
.plan .price small {
  font-size: 14px;
  color: var(--dim);
  letter-spacing: 0.08em;
}
.plan ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  font-size: 16px;
}
.plan li {
  display: flex;
  gap: 10px;
  margin-bottom: 11px;
  align-items: flex-start;
}
.plan li::before {
  content: '◆';
  color: var(--accent-2);
  font-size: 11px;
  line-height: 1.7;
  flex: none;
}
.plan-pro {
  border-color: var(--gold-edge);
  box-shadow: 0 0 0 1px rgba(244, 205, 102, 0.12), 0 16px 40px rgba(0, 0, 0, 0.4);
}
.plan-pro li::before {
  color: var(--gold);
}

.renew {
  font-size: 13px;
  line-height: 1.6;
  color: var(--dim);
  margin: 22px auto 0;
  max-width: 70ch;
}

/* ------------------------------------------------------------ disclaimer -- */

.disclaimer {
  padding-top: 0;
}
.disclaimer p {
  font-size: 15px;
  color: var(--dim);
  max-width: 74ch;
  margin: 0 auto;
  text-align: center;
}

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

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }
  .hero .lede {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  .hero .btn-row {
    justify-content: center;
  }
  .cracks {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 52px 0 64px;
  }
  .app-icon {
    width: 104px;
    height: 104px;
    border-radius: 23px;
  }
  .stats b {
    font-size: 28px;
  }
}
