/* ============================================================
   Riftbound — Landing Page
   Single-screen marketing site. Premium-black field with a
   painted-region hero and three phone mockups in a fan layout.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap");
@import url("assets/tokens.css");

:root {
  --page-bg: #000000;
  --hero-tint: rgba(120, 60, 200, 0.18);
  --accent: var(--rift-primary);     /* victory green by default */
  --accent-glow: var(--rift-primary-glow);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--page-bg);
  color: #fff;
  font-family: var(--rift-font-rounded);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* Star-field — fixed behind everything */
.starfield {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1px 1px at 20% 18%, rgba(255,255,255,0.65), transparent 60%),
    radial-gradient(1px 1px at 70% 12%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(1px 1px at 88% 62%, rgba(173,135,230,0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 35% 78%, rgba(250,185,64,0.6), transparent 60%),
    radial-gradient(1px 1px at 12% 55%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 55% 30%, rgba(199,122,201,0.55), transparent 60%),
    radial-gradient(1px 1px at 80% 88%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 45% 50%, rgba(63,255,122,0.35), transparent 60%);
  background-size: 100% 100%;
  animation: drift 60s linear infinite;
  opacity: 0.9;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0); }
  50%  { transform: translate3d(-20px,-10px,0); }
  100% { transform: translate3d(0,0,0); }
}

/* Aurora glow over starfield in hero */
.aurora {
  position: absolute; inset: -10% -5% auto -5%; height: 110%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 50% at 22% 28%, rgba(176,67,224,0.28), transparent 70%),
    radial-gradient(55% 60% at 80% 18%, rgba(33,150,243,0.18), transparent 70%),
    radial-gradient(50% 45% at 65% 80%, rgba(63,255,122,0.12), transparent 70%),
    radial-gradient(70% 60% at 50% 110%, rgba(0,0,0,1), transparent 60%);
  filter: blur(2px);
}

/* ============================================================
   Top Nav
   ============================================================ */
.nav {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 56px;
  max-width: 1440px; margin: 0 auto;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
}
.nav-brand .mark {
  width: 38px; height: 38px; border-radius: 9px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 4px 20px rgba(176,67,224,0.35);
}
.nav-brand .mark img { width: 100%; height: 100%; object-fit: cover; }
.nav-brand .wordmark {
  font-weight: 900; font-size: 18px; letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-brand .sub {
  font-size: 9px; font-weight: 700; letter-spacing: 0.32em;
  color: var(--accent); text-transform: uppercase;
  margin-top: 2px;
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.75);
}
.nav-links a:hover { color: #fff; }
.nav-links .dot {
  width: 4px; height: 4px; background: var(--accent);
  border-radius: 50%; align-self: center;
  box-shadow: 0 0 10px var(--accent-glow);
}
.nav-cta {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 9999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.nav-cta:hover {
  border-color: var(--accent);
  background: rgba(63,255,122,0.05);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; z-index: 1;
  max-width: 1440px; margin: 0 auto;
  padding: 24px 56px 56px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
  min-height: calc(100vh - 88px);
}

/* Hero painted-region backdrop */
.hero-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  border-radius: 0 0 32px 32px;
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background: var(--hero-bg-image, none);
  background-size: cover;
  background-position: center;
  opacity: var(--hero-bg-opacity, 0);
  filter: saturate(0.9) contrast(1.05);
  transition: opacity .4s ease;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(33,23,68,0.6), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.85) 80%, #000 100%);
}

/* ---------------- Hero left column ---------------- */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(63,255,122,0.32);
  background: rgba(63,255,122,0.05);
  border-radius: 9999px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.3em;
  color: var(--accent); text-transform: uppercase;
}
.hero-eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--rift-font-display);
  font-size: clamp(44px, 5.8vw, 76px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
  color: #fff;
}
.hero h1 .accent {
  background: linear-gradient(180deg, #fff 0%, #FAB940 60%, #B7853F 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero h1 .alt {
  color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
}

.hero p.lede {
  margin: 22px 0 0;
  font-size: 18px; line-height: 1.55;
  color: rgba(232,224,255,0.78);
  max-width: 540px;
  font-weight: 500;
}

/* Star rating + reviews */
.rating-row {
  margin-top: 26px;
  display: flex; align-items: center; gap: 14px;
}
.stars {
  display: flex; gap: 2px;
}
.stars svg { color: var(--rift-gold); filter: drop-shadow(0 0 6px rgba(250,185,64,0.45)); }
.rating-row .score {
  font-weight: 900; font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.rating-row .count {
  font-size: 13px; color: rgba(184,174,217,0.72);
  letter-spacing: 0.04em;
}
.rating-row .divider {
  width: 1px; height: 22px; background: rgba(255,255,255,0.14);
}

/* App store badges */
.cta-row {
  margin-top: 28px;
  display: flex; gap: 14px; flex-wrap: wrap;
}
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 18px;
  background: #fff; color: #0A0A14;
  border-radius: 14px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.6), 0 0 24px var(--accent-glow);
}
.store-btn .icon { width: 28px; height: 28px; flex-shrink: 0; }
.store-btn .label { display: flex; flex-direction: column; line-height: 1.05; }
.store-btn .label .top {
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
  color: #4a4a55; text-transform: uppercase;
}
.store-btn .label .bot {
  font-size: 18px; font-weight: 800; letter-spacing: -0.01em;
}

/* Subtle row under CTAs */
.under-cta {
  margin-top: 18px;
  display: flex; gap: 18px; align-items: center;
  font-size: 12px; color: rgba(184,174,217,0.6);
  letter-spacing: 0.04em;
}
.under-cta .ok {
  display: inline-flex; align-items: center; gap: 6px;
}
.under-cta svg { color: var(--accent); }

/* ---------------- Hero right column — phone fan ---------------- */
.phone-stage {
  position: relative;
  height: 720px;
  display: flex; align-items: center; justify-content: center;
}

/* Painted region backdrop card behind phones */
.phone-stage::before {
  content: "";
  position: absolute;
  inset: 8% 4% 8% 4%;
  background: var(--phones-bg, none);
  background-size: cover;
  background-position: center;
  border-radius: 28px;
  opacity: var(--phones-bg-opacity, 0);
  filter: saturate(1.05);
  z-index: 0;
}
.phone-stage::after {
  content: "";
  position: absolute;
  inset: 8% 4% 8% 4%;
  background: radial-gradient(60% 60% at 50% 50%, transparent 30%, rgba(0,0,0,0.85) 100%);
  border-radius: 28px;
  opacity: var(--phones-bg-opacity, 0);
  z-index: 0;
}

.phone {
  position: absolute;
  width: 264px; height: 540px;
  border-radius: 38px;
  background: #000;
  border: 1.5px solid rgba(255,255,255,0.1);
  box-shadow:
    0 0 0 5px #0a0a0e,
    0 0 0 6px rgba(255,255,255,0.06),
    0 30px 60px rgba(0,0,0,0.65),
    0 0 80px rgba(176,67,224,0.18);
  overflow: hidden;
  z-index: 1;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.phone .notch {
  position: absolute; top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 24px; background: #000;
  border-radius: 12px; z-index: 5;
}
.phone .screen {
  position: absolute; inset: 0;
  border-radius: 36px; overflow: hidden;
}

.phone.left   { transform: translate(-220px, 24px) rotate(-7deg); }
.phone.center { transform: translate(0, -36px) rotate(0deg); z-index: 3; }
.phone.right  { transform: translate(220px, 24px) rotate(7deg); }

/* Layout variants */
.phones-stack .phone.left  { transform: translate(-90px, 0) rotate(-3deg); }
.phones-stack .phone.right { transform: translate(90px, 0) rotate(3deg); }
.phones-row .phone.left   { transform: translate(-300px, 0) rotate(0); }
.phones-row .phone.center { transform: translate(0, 0) rotate(0); }
.phones-row .phone.right  { transform: translate(300px, 0) rotate(0); }

/* Floating testimonial / stat chips around the phones */
.float-chip {
  position: absolute;
  background: rgba(15,15,28,0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
  z-index: 4;
  max-width: 240px;
}
.float-chip .meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.float-chip .meta .av {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--accent);
  background-size: cover; background-position: center;
}
.float-chip .meta .name {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.05em;
}
.float-chip .meta .stars-mini {
  margin-left: auto; display: flex; gap: 1px;
}
.float-chip .meta .stars-mini svg { width: 10px; height: 10px; color: var(--rift-gold); }
.float-chip .quote {
  font-size: 12px; line-height: 1.4;
  color: rgba(255,255,255,0.85);
}

.float-stat {
  position: absolute;
  background: rgba(0,0,0,0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(63,255,122,0.32);
  border-radius: 12px;
  padding: 10px 14px;
  z-index: 4;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 0 24px rgba(63,255,122,0.18);
}
.float-stat .num {
  font-size: 22px; font-weight: 900; color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px var(--accent-glow);
  line-height: 1;
}
.float-stat .lbl {
  font-size: 9px; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
  line-height: 1.2;
}

/* ============================================================
   Below-the-fold sections
   ============================================================ */
.section {
  position: relative; z-index: 1;
  max-width: 1440px; margin: 0 auto;
  padding: 80px 56px;
}
.section-head {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; margin-bottom: 56px;
}
.section-head .eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 0.32em;
  color: var(--accent); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.section-head .eyebrow::before, .section-head .eyebrow::after {
  content: ""; width: 24px; height: 1px;
  background: var(--accent); opacity: 0.5;
}
.section-head h2 {
  font-family: var(--rift-font-display);
  font-size: clamp(32px, 3.6vw, 48px); font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 14px 0 0;
}
.section-head p {
  margin: 16px 0 0; max-width: 560px;
  font-size: 16px; line-height: 1.55;
  color: rgba(184,174,217,0.78);
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.feature {
  position: relative;
  background: linear-gradient(180deg, rgba(27,27,46,0.85), rgba(14,14,26,0.85));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 26px 22px 24px;
  overflow: hidden;
  transition: transform .25s ease, border-color .2s;
}
.feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--feature-accent, var(--accent)), transparent);
  opacity: 0.6;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.16);
}
.feature .ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--feature-accent-bg, rgba(63,255,122,0.1));
  border: 1px solid var(--feature-accent, var(--accent));
  color: var(--feature-accent, var(--accent));
  margin-bottom: 18px;
  box-shadow: 0 0 18px var(--feature-accent-glow, rgba(63,255,122,0.3));
}
.feature h3 {
  font-size: 18px; font-weight: 800; letter-spacing: -0.005em;
  margin: 0 0 8px;
}
.feature .lbl {
  font-size: 9px; font-weight: 800; letter-spacing: 0.28em;
  color: rgba(184,174,217,0.55); text-transform: uppercase;
  margin-bottom: 10px;
}
.feature p {
  margin: 0;
  font-size: 13px; line-height: 1.5;
  color: rgba(184,174,217,0.75);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1240px; margin: 0 auto;
}
.testimonial {
  position: relative;
  background: rgba(15,15,28,0.7);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 16px;
  overflow: hidden;
}
.testimonial::before {
  content: """;
  position: absolute; top: -20px; right: 14px;
  font-family: serif; font-size: 90px;
  color: var(--accent); opacity: 0.18;
  line-height: 1;
}
.testimonial .quote {
  font-size: 15px; line-height: 1.6;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
}
.testimonial .person {
  display: flex; align-items: center; gap: 12px;
}
.testimonial .person .av {
  width: 40px; height: 40px; border-radius: 50%;
  background-size: cover; background-position: center;
  border: 1.5px solid var(--accent);
}
.testimonial .person .name {
  font-size: 14px; font-weight: 800; letter-spacing: -0.005em;
}
.testimonial .person .title {
  font-size: 11px; color: rgba(184,174,217,0.7);
  letter-spacing: 0.04em;
}
.testimonial .stars-line {
  display: flex; gap: 2px; margin-top: -4px;
}
.testimonial .stars-line svg { color: var(--rift-gold); }

/* ============================================================
   Footer CTA
   ============================================================ */
.footer-cta {
  position: relative;
  margin: 0; padding: 80px 56px 64px;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(176,67,224,0.18), transparent 70%),
    radial-gradient(50% 60% at 50% 100%, rgba(63,255,122,0.08), transparent 70%);
  pointer-events: none;
}
.footer-cta-inner { position: relative; max-width: 720px; margin: 0 auto; }
.footer-cta h2 {
  font-family: var(--rift-font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900; letter-spacing: -0.02em;
  margin: 16px 0 14px; line-height: 1;
}
.footer-cta h2 .accent {
  background: linear-gradient(180deg, #fff, #FAB940);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-cta p {
  font-size: 17px; color: rgba(184,174,217,0.78);
  margin: 0 0 28px;
}
.footer-cta .cta-row { justify-content: center; }

.footer-bar {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 56px;
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(184,174,217,0.55);
  letter-spacing: 0.06em;
}
.footer-bar .links { display: flex; gap: 22px; }
.footer-bar .links a:hover { color: var(--accent); }

/* ============================================================
   Phone-screen miniature components (used inside .phone .screen)
   ============================================================ */
.mini { width: 100%; height: 100%; background: #000; position: relative; overflow: hidden; }

/* Real iPhone screenshots inside .phone .screen — fill the frame, top-aligned */
.real-shot {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
  display: block;
}

/* common iOS top-status simulation */
.mini .ios-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 44px; z-index: 6;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 0;
  font-size: 11px; font-weight: 700; color: #fff;
}
.mini .ios-bar .right {
  display: flex; gap: 5px; align-items: center; opacity: 0.95;
}

/* tab bar at the bottom */
.mini .tabbar {
  position: absolute; left: 12px; right: 12px; bottom: 14px; height: 60px;
  background: rgba(10,10,18,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  display: flex; justify-content: space-around; align-items: center;
  z-index: 6;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.mini .tabbar .t {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: rgba(255,255,255,0.45);
  font-size: 8px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mini .tabbar .t.active { color: var(--accent); }
.mini .tabbar .t.active .dia {
  background: var(--rift-gold); border-color: var(--rift-gold);
  box-shadow: 0 0 8px var(--rift-gold-glow);
}
.mini .tabbar .t .dia {
  width: 14px; height: 14px;
  border: 1.5px solid currentColor;
  transform: rotate(45deg);
  border-radius: 2px;
}

/* ===== Score mini ===== */
.mini-score .top, .mini-score .bot {
  position: absolute; left: 0; right: 0; height: 50%;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
.mini-score .top { top: 0; transform: rotate(180deg); }
.mini-score .bot { bottom: 0; }
.mini-score .top::after, .mini-score .bot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.55));
  z-index: 1;
}
.mini-score .num {
  position: relative; z-index: 2;
  font-size: 88px; font-weight: 900; color: #fff;
  line-height: 1; font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 14px rgba(0,0,0,0.7);
  margin-bottom: 4px;
}
.mini-score .row {
  position: relative; z-index: 2;
  display: flex; gap: 18px;
  margin-bottom: 14px;
}
.mini-score .chip {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 14px currentColor, 0 4px 8px rgba(0,0,0,0.4);
  color: #fff;
}
.mini-score .center-bar {
  position: absolute; top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  background: #000; height: 36px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  z-index: 5;
}
.mini-score .center-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 9999px;
  border: 1.2px solid var(--rift-gold);
  background: #000;
  box-shadow: 0 0 10px rgba(250,185,64,0.3);
}
.mini-score .center-pill .t {
  font-size: 11px; font-weight: 900; color: #fff;
  font-variant-numeric: tabular-nums;
}
.mini-score .center-pill .r {
  font-size: 6px; font-weight: 800; letter-spacing: 0.18em;
  color: var(--rift-gold);
}
.mini-score .icon-btn {
  width: 26px; height: 26px; border-radius: 50%;
  background: #1A1A2A; border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(184,174,217,0.85);
}

/* ===== Chronicles mini ===== */
.mini-chron {
  background: linear-gradient(180deg, #0A0A14 0%, #050510 100%);
  padding: 56px 14px 88px;
  overflow: hidden;
}
.mini-chron .head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.mini-chron .head h4 {
  font-size: 22px; font-weight: 900; letter-spacing: -0.01em;
  margin: 0;
}
.mini-chron .head .pill {
  font-size: 8px; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--rift-gold);
  border: 1px solid var(--rift-gold);
  padding: 3px 8px; border-radius: 9999px;
}
.mini-chron .stat-card {
  background: linear-gradient(180deg, #1B1B2E, #0E0E1A);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 14px 16px;
  margin-bottom: 12px;
  position: relative; overflow: hidden;
}
.mini-chron .stat-card .lab {
  font-size: 8px; font-weight: 800; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--rift-text-secondary);
}
.mini-chron .stat-card .big {
  font-size: 38px; font-weight: 900; line-height: 1;
  color: var(--accent); font-variant-numeric: tabular-nums;
  margin-top: 2px;
  text-shadow: 0 0 18px var(--accent-glow);
}
.mini-chron .stat-card .trend {
  position: absolute; right: 10px; bottom: 10px;
  width: 100px; height: 36px;
  opacity: 0.85;
}
.mini-chron .row-list { display: flex; flex-direction: column; gap: 8px; }
.mini-chron .row-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(27,27,46,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 8px 10px;
}
.mini-chron .row-item .av {
  width: 32px; height: 32px; border-radius: 50%;
  background-size: cover; background-position: center;
  border: 1.5px solid var(--rift-accent);
  flex-shrink: 0;
}
.mini-chron .row-item .body {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.mini-chron .row-item .title-line {
  display: flex; gap: 6px; align-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: 0.02em;
  color: #fff;
}
.mini-chron .row-item .meta {
  font-size: 8px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rift-text-tertiary);
}
.mini-chron .row-item .score-pill {
  font-size: 11px; font-weight: 900; color: #fff;
  background: var(--rift-card-hi);
  padding: 4px 8px; border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.mini-chron .row-item.win .score-pill { color: var(--accent); }
.mini-chron .row-item.loss .score-pill { color: var(--rift-error); }

/* ===== Legends mini ===== */
.mini-legends {
  background: linear-gradient(180deg, #0E0E1A 0%, #050510 100%);
  padding: 56px 14px 88px;
}
.mini-legends .hd {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 14px;
}
.mini-legends .hd h4 {
  margin: 0; font-size: 22px; font-weight: 900;
  letter-spacing: -0.01em;
}
.mini-legends .hd .sub {
  font-size: 8px; font-weight: 800; letter-spacing: 0.24em;
  color: var(--rift-text-secondary); text-transform: uppercase;
  margin-top: 2px;
}
.mini-legends .hd .filter {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(173,135,230,0.18);
  border: 1px solid rgba(173,135,230,0.5);
  color: var(--rift-accent);
  display: flex; align-items: center; justify-content: center;
}
.mini-legends .hero-card {
  position: relative;
  border-radius: 14px; overflow: hidden;
  height: 130px;
  margin-bottom: 12px;
  border: 1px solid rgba(250,185,64,0.4);
  box-shadow: 0 0 20px rgba(250,185,64,0.15);
}
.mini-legends .hero-card .img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 20%;
}
.mini-legends .hero-card .grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%);
}
.mini-legends .hero-card .body {
  position: absolute; left: 12px; right: 12px; bottom: 10px;
}
.mini-legends .hero-card .ti {
  font-size: 16px; font-weight: 900; color: #fff;
  letter-spacing: -0.005em;
}
.mini-legends .hero-card .meta {
  display: flex; gap: 8px; align-items: center;
  font-size: 8px; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--rift-gold);
  margin-top: 2px;
}
.mini-legends .hero-card .meta .dot { color: rgba(255,255,255,0.5); }
.mini-legends .grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.mini-legends .lcard {
  position: relative;
  height: 96px;
  background: rgba(27,27,46,0.7);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}
.mini-legends .lcard .img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 20%;
  filter: saturate(1.05);
}
.mini-legends .lcard .grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.8) 100%);
}
.mini-legends .lcard .name {
  position: absolute; left: 8px; bottom: 6px;
  font-size: 11px; font-weight: 800; color: #fff;
}
.mini-legends .lcard .lvl {
  position: absolute; right: 6px; top: 6px;
  width: 18px; height: 18px;
  background: rgba(0,0,0,0.7); border: 1px solid var(--rift-gold);
  transform: rotate(45deg);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
}
.mini-legends .lcard .lvl span {
  transform: rotate(-45deg);
  font-size: 9px; font-weight: 900; color: var(--rift-gold);
}

/* ===== Aethos mini ===== */
.mini-aethos {
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(176,67,224,0.28), transparent 70%),
    linear-gradient(180deg, #1a0d2c 0%, #050510 100%);
  padding: 56px 14px 88px;
  display: flex; flex-direction: column; align-items: center;
}
.mini-aethos h4 {
  font-size: 22px; font-weight: 900; letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.mini-aethos .sub {
  font-size: 8px; font-weight: 800; letter-spacing: 0.24em;
  color: var(--rift-acolyte); text-transform: uppercase;
  margin-bottom: 18px;
}
.mini-aethos .figure {
  width: 168px; height: 220px;
  background: url("assets/aethos.png") center/contain no-repeat;
  filter: drop-shadow(0 0 30px rgba(176,67,224,0.5));
  margin-bottom: 8px;
}
.mini-aethos .xp-card {
  width: 100%; padding: 12px;
  background: linear-gradient(180deg, rgba(27,27,46,0.85), rgba(14,14,26,0.85));
  border: 1px solid rgba(173,135,230,0.3);
  border-radius: 14px;
}
.mini-aethos .xp-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 9px; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--rift-text-secondary);
  margin-bottom: 8px;
}
.mini-aethos .xp-row .lvl { color: var(--rift-gold); }
.mini-aethos .bar {
  height: 8px; border-radius: 8px; overflow: hidden;
  background: rgba(255,255,255,0.06);
  position: relative;
}
.mini-aethos .bar > span {
  position: absolute; left: 0; top: 0; bottom: 0; width: 64%;
  background: var(--rift-aether-grad);
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(247,162,58,0.5);
}

/* ============================================================
   Mobile fallback — at least keep things readable
   ============================================================ */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding: 24px 24px 24px; gap: 24px; }
  .nav { padding: 18px 24px; }
  .section { padding: 64px 24px; }
  .nav-links { display: none; }
  .phone-stage { height: 580px; transform: scale(0.85); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .footer-bar { padding: 24px; flex-direction: column; gap: 16px; text-align: center; }
}
