/* ===================================================================
   ARCFALL — landing page
   Palette pulled from the game art:
   night-blue sky, warm orange/gold hero, violet emblem, grass green.
   =================================================================== */

:root {
  --night-0: #05071a;
  --night-1: #0a0e26;
  --night-2: #111634;
  --night-3: #1a2150;
  --ink:      #e9ecff;
  --muted:    #9aa3cf;
  --faint:    #6c75a6;

  --gold:   #ff9a3c;
  --gold-2: #ffc861;
  --violet: #8b4fe0;
  --violet-2: #b388ff;
  --green:  #5fd06a;
  --red:    #ff5a4d;

  --maxw: 1180px;
  --radius: 20px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--night-0);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .hero__tag {
  font-family: 'Baloo 2', system-ui, sans-serif;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

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

/* ---------- ambient background ---------- */
.bg-stars, .bg-aurora {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
}
.bg-stars {
  background:
    radial-gradient(1.5px 1.5px at 20% 30%, #ffffffcc, transparent),
    radial-gradient(1.5px 1.5px at 75% 15%, #ffffffaa, transparent),
    radial-gradient(1px 1px at 50% 50%, #ffffff99, transparent),
    radial-gradient(1.5px 1.5px at 85% 65%, #cfe0ffaa, transparent),
    radial-gradient(1px 1px at 35% 80%, #ffffff88, transparent),
    radial-gradient(1.5px 1.5px at 10% 60%, #ffffff88, transparent),
    radial-gradient(1px 1px at 60% 25%, #ffffff77, transparent),
    var(--night-0);
  background-size: 100% 100%;
}
.bg-aurora {
  z-index: -1;
  background:
    radial-gradient(60% 50% at 78% 12%, rgba(255,154,60,.18), transparent 70%),
    radial-gradient(55% 45% at 12% 30%, rgba(139,79,224,.20), transparent 70%),
    radial-gradient(70% 60% at 50% 100%, rgba(95,208,106,.10), transparent 70%);
}

/* floating embers */
.embers { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ember {
  position: absolute; bottom: -10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-2), var(--gold) 60%, transparent);
  box-shadow: 0 0 8px 2px rgba(255,154,60,.6);
  animation: rise linear infinite;
  opacity: 0;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: .9; }
  90%  { opacity: .7; }
  100% { transform: translateY(-105vh) translateX(var(--drift, 30px)) scale(.4); opacity: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 700; font-family: 'Baloo 2', sans-serif;
  padding: .85em 1.5em; border-radius: 999px;
  font-size: 1rem; cursor: pointer; border: none;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), filter .2s;
  white-space: nowrap;
}
.btn__glyph { font-size: 1.1em; line-height: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  color: #2b1500;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 8px 24px rgba(255,154,60,.4), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn--gold:hover { box-shadow: 0 12px 34px rgba(255,154,60,.55), inset 0 1px 0 rgba(255,255,255,.5); }

.btn--solana {
  color: #fff;
  background: linear-gradient(135deg, var(--violet-2), var(--violet));
  box-shadow: 0 8px 22px rgba(139,79,224,.45), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn--ghost {
  color: var(--ink);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--lg { font-size: 1.15rem; padding: 1.05em 2em; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem clamp(1rem, 4vw, 2.5rem);
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8,11,30,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav__brand { display: flex; align-items: center; gap: .6rem; }
.nav__emblem { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(139,79,224,.7)); }
.nav__word {
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.35rem;
  letter-spacing: .06em;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav__links { display: flex; gap: 1.8rem; }
.nav__links a {
  color: var(--muted); font-weight: 600; font-size: .95rem;
  position: relative; transition: color .2s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { padding: .6em 1.2em; font-size: .92rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(7rem, 14vh, 11rem) clamp(1.2rem, 4vw, 2rem) 4rem;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--violet-2);
  background: rgba(139,79,224,.12); border: 1px solid rgba(139,79,224,.3);
  padding: .4rem .85rem; border-radius: 999px;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px 1px var(--green); animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.hero__title {
  font-size: clamp(3.6rem, 11vw, 7.2rem); font-weight: 800; letter-spacing: .02em;
  margin: 1.1rem 0 .2rem;
  background: linear-gradient(180deg, #fff 0%, var(--gold-2) 45%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(255,154,60,.35);
  filter: drop-shadow(0 6px 18px rgba(255,120,30,.35));
}
.hero__tag {
  font-size: clamp(1.3rem, 3.2vw, 1.9rem); font-weight: 700; color: var(--ink);
  letter-spacing: .12em;
}
.hero__lead {
  color: var(--muted); font-size: 1.08rem; max-width: 30rem; margin: 1.1rem 0 1.8rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.4rem; }
.hero__meta { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.hero__meta-item { display: flex; flex-direction: column; }
.hero__meta-item strong {
  font-family: 'Baloo 2', sans-serif; font-size: 1.6rem; color: var(--gold-2);
}
.hero__meta-item span { color: var(--faint); font-size: .85rem; }

/* hero art */
.hero__art { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 480px; }
.hero__halo {
  position: absolute; top: 8%; left: 50%; transform: translateX(-50%);
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,154,60,.35), rgba(139,79,224,.12) 55%, transparent 70%);
  filter: blur(10px);
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 0%,100%{transform:translateX(-50%) scale(1);opacity:.9} 50%{transform:translateX(-50%) scale(1.08);opacity:1} }
.hero__char {
  position: relative; width: min(440px, 90%);
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.55));
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-18px)} }
.hero__ground {
  position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%);
  width: 320px; height: 60px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.55), transparent 70%);
  filter: blur(6px);
}

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.25); border-radius: 14px;
  display: grid; place-items: start center; padding-top: 7px;
}
.scroll-cue span { width: 4px; height: 8px; border-radius: 2px; background: var(--gold-2); animation: cue 1.6s infinite; }
@keyframes cue { 0%{opacity:0;transform:translateY(0)} 30%{opacity:1} 100%{opacity:0;transform:translateY(14px)} }

/* ---------- marquee strip ---------- */
.strip {
  overflow: hidden; border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(90deg, rgba(139,79,224,.10), rgba(255,154,60,.08));
  padding: .9rem 0;
}
.strip__track {
  display: flex; gap: 3rem; white-space: nowrap; width: max-content;
  animation: scroll 28s linear infinite;
}
.strip__track span {
  font-family: 'Baloo 2', sans-serif; font-weight: 700; letter-spacing: .12em;
  font-size: .95rem; color: var(--muted); opacity: .85;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- generic section ---------- */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 7.5rem) clamp(1.2rem, 4vw, 2rem);
}
.section__head { max-width: 46rem; margin-bottom: 3rem; }
.section__head.reveal { text-align: left; }
.kicker {
  display: inline-block; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  font-size: .8rem; color: var(--violet-2); margin-bottom: .8rem;
}
.kicker--center { display: block; text-align: center; }
.section__head h2, .world__text h2, .web3 h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 800; margin-bottom: .8rem;
}
.section__head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- features grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card {
  background: linear-gradient(160deg, rgba(26,33,80,.55), rgba(10,14,38,.55));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 1.8rem;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255,154,60,.10), transparent 55%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,154,60,.4);
  box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 1.1rem; font-family: 'Baloo 2', sans-serif; font-weight: 800;
}
.card__icon--gold   { background: rgba(255,154,60,.16);  color: var(--gold-2);   box-shadow: inset 0 0 0 1px rgba(255,154,60,.35); }
.card__icon--violet { background: rgba(139,79,224,.16);  color: var(--violet-2); box-shadow: inset 0 0 0 1px rgba(139,79,224,.35); }
.card__icon--red    { background: rgba(255,90,77,.16);   color: var(--red);      box-shadow: inset 0 0 0 1px rgba(255,90,77,.35); }
.card__icon--green  { background: rgba(95,208,106,.16);  color: var(--green);    box-shadow: inset 0 0 0 1px rgba(95,208,106,.35); }
.card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; }

/* ---------- world ---------- */
.world { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.world__text h2 { margin-top: .2rem; }
.world__text > p { color: var(--muted); font-size: 1.08rem; margin-bottom: 1.4rem; }
.ticks { list-style: none; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.8rem; color: var(--ink); }
.ticks li::before {
  content: '✦'; position: absolute; left: 0; color: var(--gold-2); font-weight: 700;
}
.world__media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.shot {
  border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid rgba(255,255,255,.1); background: var(--night-2);
  box-shadow: 0 20px 45px rgba(0,0,0,.4);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .8rem 1rem .9rem;
  font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: .9rem;
  background: linear-gradient(transparent, rgba(5,7,26,.92));
}
.shot--map { transform: translateY(-1.5rem); }
.shot--boss { transform: translateY(1.5rem); }
.shot--boss img { filter: saturate(1.05); }

/* ---------- bosses ---------- */
.bosses .section__head { max-width: 100%; text-align: center; }
.bosses .kicker { display: block; }
.boss-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.boss {
  background: radial-gradient(120% 120% at 50% 0%, rgba(255,90,77,.12), rgba(10,14,38,.6) 60%);
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
  padding: 1.8rem 1rem 1.2rem; text-align: center;
  transition: transform .3s var(--ease), border-color .3s;
}
.boss:hover { transform: translateY(-6px) scale(1.02); border-color: rgba(255,90,77,.5); }
.boss img {
  width: 96px; height: 96px; object-fit: contain; margin: 0 auto .9rem;
  filter: drop-shadow(0 6px 16px rgba(255,40,40,.4));
  animation: bob 4s ease-in-out infinite;
}
.boss:nth-child(2) img { animation-delay: .6s; }
.boss:nth-child(3) img { animation-delay: 1.2s; }
.boss:nth-child(4) img { animation-delay: 1.8s; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.boss figcaption { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.02rem; }

/* ---------- web3 ---------- */
.web3 { text-align: center; }
.web3__inner { max-width: 60rem; margin: 0 auto; }
.web3__lead { color: var(--muted); font-size: 1.12rem; max-width: 40rem; margin: 0 auto 2.8rem; }
.web3__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.3rem; }
.pill {
  background: linear-gradient(160deg, rgba(139,79,224,.14), rgba(10,14,38,.5));
  border: 1px solid rgba(139,79,224,.25); border-radius: var(--radius);
  padding: 1.8rem 1.4rem; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.pill:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(139,79,224,.25); }
.pill__icon {
  width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem; font-weight: 800;
  font-family: 'Baloo 2', sans-serif; color: var(--violet-2);
  background: rgba(139,79,224,.18); box-shadow: inset 0 0 0 1px rgba(179,136,255,.4), 0 0 18px rgba(139,79,224,.4);
}
.pill h4 { font-size: 1.15rem; margin-bottom: .4rem; }
.pill p { color: var(--muted); font-size: .94rem; }

/* ---------- final CTA ---------- */
.cta { padding: clamp(3rem, 8vw, 6rem) clamp(1.2rem,4vw,2rem); }
.cta__card {
  max-width: 720px; margin: 0 auto; text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(255,154,60,.18), transparent 60%),
    linear-gradient(160deg, rgba(26,33,80,.7), rgba(10,14,38,.85));
  border: 1px solid rgba(255,255,255,.1); border-radius: 28px;
  padding: clamp(2.4rem, 5vw, 3.6rem);
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.cta__icon {
  width: 110px; height: 110px; border-radius: 26px; margin: 0 auto 1.4rem;
  box-shadow: 0 16px 40px rgba(255,120,30,.4), inset 0 0 0 1px rgba(255,255,255,.12);
}
.cta__card h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin-bottom: .6rem; }
.cta__card p { color: var(--muted); font-size: 1.1rem; max-width: 30rem; margin: 0 auto 1.8rem; }
.cta__note { display: block; margin-top: 1.1rem; color: var(--faint); font-size: .88rem; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: var(--maxw); margin: 0 auto;
  padding: 2.4rem clamp(1.2rem,4vw,2rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: .55rem; }
.footer__brand img { width: 28px; height: 28px; filter: drop-shadow(0 0 8px rgba(139,79,224,.6)); }
.footer__brand span { font-family: 'Baloo 2', sans-serif; font-weight: 800; letter-spacing: .06em; color: var(--gold-2); }
.footer__copy { color: var(--faint); font-size: .88rem; }
.footer__links { display: flex; gap: 1.4rem; }
.footer__links a { color: var(--muted); font-size: .9rem; }
.footer__links a:hover { color: var(--ink); }

/* ---------- legal pages (license / privacy) ---------- */
.legal-wrap { max-width: 880px; margin: 0 auto; padding: clamp(7rem, 14vh, 9rem) clamp(1.2rem, 4vw, 2rem) 4rem; }
.legal-hero { text-align: center; margin-bottom: 2.6rem; }
.legal-hero img { width: 60px; height: 60px; margin: 0 auto 1rem; filter: drop-shadow(0 0 14px rgba(139,79,224,.7)); }
.legal-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 800;
  background: linear-gradient(180deg, #fff, var(--gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.legal-hero .legal-date { color: var(--faint); font-size: .92rem; margin-top: .6rem; }
.legal-card {
  background: linear-gradient(160deg, rgba(26,33,80,.45), rgba(10,14,38,.6));
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 3rem);
}
.legal-card h2 {
  font-size: 1.4rem; margin: 2.2rem 0 .8rem; color: var(--gold-2);
  display: flex; gap: .6rem; align-items: baseline;
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card h2 .num { color: var(--violet-2); font-size: 1rem; font-weight: 700; }
.legal-card h3 { font-size: 1.08rem; margin: 1.3rem 0 .5rem; color: var(--ink); }
.legal-card p, .legal-card li { color: var(--muted); font-size: 1rem; }
.legal-card p { margin-bottom: .9rem; }
.legal-card ul { margin: 0 0 1rem 1.2rem; display: grid; gap: .45rem; }
.legal-card li::marker { color: var(--gold); }
.legal-card a { color: var(--violet-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-card a:hover { color: var(--gold-2); }
.legal-card strong { color: var(--ink); }
.legal-intro {
  border-left: 3px solid var(--gold); padding: .2rem 0 .2rem 1.1rem; margin-bottom: 2rem;
  color: var(--ink); font-size: 1.05rem;
}
.legal-back {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 2rem;
  color: var(--muted); font-weight: 600;
}
.legal-back:hover { color: var(--gold-2); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .07s; }
.reveal:nth-child(3) { transition-delay: .14s; }
.reveal:nth-child(4) { transition-delay: .21s; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 7rem; min-height: auto; }
  .hero__copy { order: 2; }
  .hero__art { order: 1; min-height: 340px; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__meta { justify-content: center; }
  .grid { grid-template-columns: 1fr 1fr; }
  .world { grid-template-columns: 1fr; }
  .web3__grid { grid-template-columns: 1fr; max-width: 26rem; margin: 0 auto; }
  .boss-row { grid-template-columns: 1fr 1fr; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .world__media { grid-template-columns: 1fr; }
  .shot--map, .shot--boss { transform: none; }
  .hero__meta { gap: 1.4rem; }
  .nav__cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
