/* ============================================================
   Homepage — Royal Vault journey
   ============================================================ */

/* ---- Gate Hero ---- */
.hero { position: relative; padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero__inner { display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 980px) { .hero__inner { grid-template-columns: 1.08fr .92fr; } }

/* curtain / gate reveal */
.hero__gate { position: absolute; inset: 0; z-index: 5; pointer-events: none; display: flex; }
.hero__gate span { flex: 1; background: linear-gradient(180deg, #F7F2E6, #ECE3D1); border-inline: 1px solid var(--color-hairline); }
.hero__gate span:first-child { transform-origin: left; animation: gate-left 1.1s .15s var(--ease-out) both; }
.hero__gate span:last-child { transform-origin: right; animation: gate-right 1.1s .15s var(--ease-out) both; }
@keyframes gate-left { to { transform: translateX(-102%); } }
@keyframes gate-right { to { transform: translateX(102%); } }

.hero__eyebrow { margin-bottom: 1.1rem; }
.hero h1 { font-size: var(--fs-hero); font-family: var(--font-display); font-weight: 700; letter-spacing: 0; line-height: 1.04; margin-bottom: 1rem; }
.hero h1 .text-gold { display: inline-block; }
.hero__sub { font-size: var(--fs-lead); color: var(--color-text-muted); max-width: 52ch; margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.4rem; }
.hero__tg-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-bottom: 1.6rem; }
.hero__tg-note { color: var(--color-text-dim); font-size: .86rem; }
.hero__mini-stats { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--color-hairline-soft); }
.hero__mini-stats div { line-height: 1.2; }
.hero__mini-stats b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--color-text-strong); }
.hero__mini-stats span { font-size: .82rem; color: var(--color-text-dim); }

/* ---- App mockup (phone frame) ---- */
.mockup { position: relative; justify-self: center; width: min(300px, 78vw); z-index: 6; }
.mockup__glow { position: absolute; inset: -18% -12%; z-index: -1; background: radial-gradient(circle at 50% 45%, rgba(212,175,55,.42), transparent 62%); filter: blur(12px); animation: mock-glow 5s var(--ease) infinite alternate; }
@keyframes mock-glow { to { opacity: .6; transform: scale(1.06); } }
.phone {
  position: relative; border-radius: 42px; padding: 12px; background: linear-gradient(160deg, #2a3358, #0c1236 60%);
  border: 1px solid var(--color-hairline); box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.04);
  animation: float-phone 6s var(--ease) infinite alternate;
}
@keyframes float-phone { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-16px) rotate(1deg); } }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 46%; height: 22px; background: #05081f; border-radius: 0 0 16px 16px; z-index: 3; }
.phone__screen { border-radius: 32px; overflow: hidden; aspect-ratio: 735 / 1280; background: #05081f; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
/* floating gold coins */
.mockup__coin { position: absolute; z-index: 7; font-size: 1.8rem; filter: drop-shadow(0 6px 12px rgba(0,0,0,.5)); animation: coin-bob 4s var(--ease) infinite alternate; }
.mockup__coin--1 { top: 8%; left: -14%; animation-delay: .2s; }
.mockup__coin--2 { bottom: 14%; right: -12%; animation-delay: 1.1s; }
.mockup__badge {
  position: absolute; right: -8%; top: 34%; z-index: 8; background: var(--grad-gold); color: var(--color-text-on-gold);
  font-family: var(--font-head); font-weight: 800; font-size: .82rem; padding: .5rem .8rem; border-radius: 12px;
  box-shadow: var(--glow-gold); text-align: center; line-height: 1.1; animation: coin-bob 5s var(--ease) infinite alternate;
}
.mockup__badge b { display: block; font-size: 1.05rem; }
@keyframes coin-bob { to { transform: translateY(-12px) rotate(8deg); } }

/* ---- OG Banner strip ---- */
.og-banner { padding-top: 0; }
.og-banner__frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-hairline);
  box-shadow: var(--shadow); background: var(--color-surface);
}
.og-banner__frame img { width: 100%; height: auto; display: block; }
.og-banner__frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(245,212,130,.18); border-radius: inherit; pointer-events: none; }
.og-banner__cta {
  position: absolute; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 1.8rem); z-index: 2;
}
@media (max-width: 640px) { .og-banner__cta { position: static; margin-top: -1px; display: flex; } .og-banner__cta .btn { border-radius: 0 0 var(--radius-lg) var(--radius-lg); } }

/* banner mosaic (uses the 4 supplied promo banners) */
.banner-mosaic { display: grid; gap: clamp(.8rem, 2vw, 1.2rem); grid-template-columns: 1fr; }
@media (min-width: 720px) { .banner-mosaic { grid-template-columns: 1fr 1fr; } }
.promo-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--color-hairline-soft); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.promo-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 7; }
.promo-card:hover { transform: translateY(-4px); border-color: var(--color-gold-premium); box-shadow: var(--glow-gold); }
.promo-card__label { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; font-family: var(--font-head); font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.7); font-size: 1.05rem; }

/* ---- Screenshot slider ---- */
.shots { position: relative; }
.shots__viewport { overflow: hidden; margin-inline: calc(var(--gutter) * -0.25); padding-block: 1rem; }
.shots__track { display: flex; gap: clamp(.9rem, 2.5vw, 1.4rem); transition: transform var(--dur-slow) var(--ease-out); will-change: transform; }
.shots__item {
  flex: 0 0 auto; width: clamp(180px, 42vw, 248px); border-radius: 28px; overflow: hidden;
  border: 1px solid var(--color-hairline); background: #05081f; box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.shots__item img { width: 100%; height: auto; aspect-ratio: 735 / 1280; object-fit: cover; }
.shots__item.is-active { transform: scale(1.04); box-shadow: var(--glow-gold); }
.shots__nav { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.shots__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--color-hairline-soft); background: var(--color-surface); color: var(--color-royal-blue); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.shots__btn:hover { border-color: var(--color-gold-premium); color: var(--color-gold-text); background: rgba(201,162,39,.10); }
.shots__btn svg { width: 20px; height: 20px; }
.shots__dots { display: flex; gap: .5rem; }
.shots__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tint-strong); border: 0; cursor: pointer; padding: 0; transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.shots__dot.is-active { background: var(--grad-gold); transform: scale(1.3); }

/* ---- The Ledger (stats) ---- */
.ledger { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.8rem, 2vw, 1.4rem); }
@media (min-width: 860px) { .ledger { grid-template-columns: repeat(4, 1fr); } }
.ledger__cell { text-align: center; padding: 1.8rem 1rem; border-radius: var(--radius); border: 1px solid var(--color-hairline-soft); background: var(--grad-surface); position: relative; }
.ledger__cell::before { content: "◆"; position: absolute; top: .7rem; left: 50%; transform: translateX(-50%); color: var(--color-gold-deep); font-size: .6rem; }
.ledger__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1; background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ledger__label { color: var(--color-text-muted); font-size: .88rem; margin-top: .5rem; font-family: var(--font-head); font-weight: 600; }

/* ---- Steps (how it works) ---- */
.steps { display: grid; gap: 1.2rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 2rem 1.4rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--color-hairline-soft); background: var(--grad-surface); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 1.4rem; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--color-text-on-gold); background: var(--grad-gold); box-shadow: var(--glow-gold); }
.step h3 { font-size: 1.1rem; margin: .4rem 0 .4rem; }
.step p { color: var(--color-text-muted); font-size: .92rem; margin: 0; }

/* ---- The Throne (bonus CTA) ---- */
.throne { position: relative; text-align: center; padding: clamp(2.4rem, 6vw, 4.5rem) clamp(1.2rem, 4vw, 3rem); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--color-hairline); background: radial-gradient(700px 380px at 50% -20%, rgba(212,175,55,.24), transparent 60%), var(--grad-surface); }
.throne__crown { font-size: 2.6rem; margin-bottom: .6rem; filter: drop-shadow(0 6px 16px rgba(212,175,55,.5)); animation: crown-float 4s var(--ease) infinite alternate; }
@keyframes crown-float { to { transform: translateY(-8px); } }
.throne h2 { font-size: var(--fs-h1); font-family: var(--font-display); font-weight: 700; }
.throne__amount { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 8vw, 4.4rem); line-height: 1; background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin: .4rem 0; }
.throne p { color: var(--color-text-muted); max-width: 56ch; margin: 0 auto 1.6rem; }
.throne .btn { position: relative; }
.throne .btn--gold { animation: throne-pulse 2.6s var(--ease) infinite; }
@keyframes throne-pulse { 0%,100% { box-shadow: 0 0 0 1px rgba(212,175,55,.5), 0 0 0 0 rgba(212,175,55,.4); } 50% { box-shadow: 0 0 0 1px rgba(212,175,55,.8), 0 0 42px 6px rgba(212,175,55,.35); } }

/* ---- Testimonials (The Court) ---- */
.court { position: relative; }
.court__viewport { overflow: hidden; }
.court__track { display: flex; transition: transform var(--dur-slow) var(--ease-out); }
.court__item { flex: 0 0 100%; padding: .5rem; }
@media (min-width: 760px) { .court__item { flex: 0 0 50%; } }
@media (min-width: 1080px) { .court__item { flex: 0 0 33.333%; } }
.quote { height: 100%; padding: 1.8rem; border-radius: var(--radius-lg); border: 1px solid var(--color-hairline-soft); background: var(--grad-surface); }
.quote__stars { color: var(--color-gold-premium); letter-spacing: 2px; margin-bottom: .8rem; }
.quote p { color: var(--color-text-primary); font-size: 1rem; }
.quote__who { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; }
.quote__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-gold); color: var(--color-text-on-gold); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; }
.quote__name { font-family: var(--font-head); font-weight: 700; font-size: .92rem; }
.quote__meta { color: var(--color-text-dim); font-size: .78rem; }

/* ---- FAQ scroll ---- */
.faq { max-width: 820px; margin-inline: auto; }
.accordion__item { border: 1px solid var(--color-hairline-soft); border-radius: var(--radius); margin-bottom: .8rem; overflow: hidden; background: var(--grad-surface); transition: border-color var(--dur) var(--ease); }
.accordion__item.is-open { border-color: var(--color-hairline); }
.accordion__trigger { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; background: none; border: 0; cursor: pointer; color: var(--color-text-strong); font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; }
.accordion__icon { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--color-hairline); display: grid; place-items: center; color: var(--color-gold-text); transition: transform var(--dur) var(--ease); }
.accordion__item.is-open .accordion__icon { transform: rotate(45deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease); }
.accordion__panel-inner { padding: 0 1.4rem 1.3rem; color: var(--color-text-muted); font-size: .96rem; }

/* keyword ribbon */
.kw-ribbon { border-radius: var(--radius-lg); border: 1px dashed var(--color-hairline); padding: 1.6rem; background: rgba(201,162,39,.08); }
.kw-ribbon h3 { font-size: 1rem; color: var(--color-gold-text); margin-bottom: .9rem; text-transform: uppercase; letter-spacing: .04em; }

/* split content (image + text) */
.split { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse .split__media { order: 2; } }
.split__media img { border-radius: var(--radius-lg); border: 1px solid var(--color-hairline); box-shadow: var(--shadow); }
.split h2 { font-size: var(--fs-h2); }
.split ul.check { list-style: none; padding: 0; }
.split ul.check li { position: relative; padding-left: 1.9rem; color: var(--color-text-muted); margin-bottom: .7rem; }
.split ul.check li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--color-gold-premium); }
