/* Lucky Rings — orbit nav, tri-orbit features, ring-track gallery */

:root {
  --bg: #eef2ff;
  --bg-deep: #dce6ff;
  --ink: #1e1b4b;
  --muted: #5b567a;
  --gold: #f5a623;
  --gold-dark: #d48806;
  --violet: #8b5cf6;
  --lime: #4ade80;
  --royal: #3b5bdb;
  --cloud: #ffffff;
  --shadow: 0 20px 45px rgba(59, 91, 219, 0.14);
  --radius: 1.35rem;
  --font-display: "Lexend", system-ui, sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--cloud);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 15% 0%, rgba(139, 92, 246, 0.35), transparent 55%),
    radial-gradient(ellipse 65% 50% at 85% 5%, rgba(59, 91, 219, 0.4), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(74, 222, 128, 0.2), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn svg,
.btn i {
  width: 1.2rem;
  height: 1.2rem;
}

.btn--gold {
  color: var(--ink);
  background: linear-gradient(180deg, #ffe066 0%, var(--gold) 55%, var(--gold-dark) 100%);
  box-shadow: 0 8px 0 #b45309, 0 14px 28px rgba(245, 166, 35, 0.35);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 #b45309, 0 18px 32px rgba(245, 166, 35, 0.42);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--royal);
  border: 2px solid rgba(59, 91, 219, 0.2);
  box-shadow: 0 6px 18px rgba(30, 27, 75, 0.06);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 91, 219, 0.45);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.85rem 1.45rem;
  font-size: 1rem;
}

.btn--xl {
  padding: 1rem 1.65rem;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

/* Orbit navigation */
.orbit-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.65rem 0;
  background: rgba(238, 242, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59, 91, 219, 0.08);
  transition: box-shadow 0.25s ease;
}

.orbit-nav.is-scrolled {
  box-shadow: var(--shadow);
}

.orbit-nav__shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.orbit-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
}

.orbit-nav__brand img {
  border-radius: 0.85rem;
  box-shadow: 0 4px 14px rgba(59, 91, 219, 0.25);
}

.orbit-nav__crown {
  font-size: 0.85rem;
  color: var(--gold);
  text-shadow: 0 1px 0 #fff;
}

.orbit-nav__links {
  display: none;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  margin-right: 0.75rem;
}

.orbit-nav__links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.35rem 0.5rem;
}

.orbit-nav__links a:hover {
  color: var(--royal);
}

.orbit-nav__dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.orbit-nav__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.orbit-nav__dots .y {
  background: var(--gold);
}

.orbit-nav__dots .p {
  background: var(--violet);
}

.orbit-nav__dots .g {
  background: var(--lime);
}

.orbit-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.orbit-nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 0.75rem;
  background: var(--cloud);
  box-shadow: 0 4px 12px rgba(30, 27, 75, 0.08);
  cursor: pointer;
}

.orbit-nav__burger span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0 auto;
  background: var(--royal);
  border-radius: 2px;
}

.nav-sheet {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}

.nav-sheet[hidden] {
  display: none !important;
}

.nav-sheet a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(59, 91, 219, 0.1);
}

/* Hero */
.hero__banner {
  max-width: 68rem;
  margin: 1.15rem auto 0;
  padding: 0 1.25rem;
}

.hero__banner img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__orbit-row {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3rem;
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.hero__kicker {
  font-weight: 600;
  color: var(--royal);
  font-size: 0.95rem;
  margin: 0 0 0.65rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 5vw, 2.75rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--gold), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 0.85rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.hero__stage {
  position: relative;
  margin: 0;
  max-width: 16.5rem;
  margin-inline: auto;
}

.hero__stage img {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 1.65rem;
  box-shadow: 0 26px 50px rgba(30, 27, 75, 0.22);
  object-fit: contain;
}

.hero__orbit {
  position: absolute;
  border-radius: 50%;
  border: 5px solid transparent;
  z-index: 1;
  animation: orbit-spin 18s linear infinite;
}

.hero__orbit--gold {
  inset: -8% -12% auto auto;
  width: 55%;
  aspect-ratio: 1;
  border-top-color: var(--gold);
  border-right-color: rgba(245, 166, 35, 0.35);
  animation-duration: 14s;
}

.hero__orbit--violet {
  inset: auto auto -6% -10%;
  width: 48%;
  aspect-ratio: 1;
  border-bottom-color: var(--violet);
  border-left-color: rgba(139, 92, 246, 0.35);
  animation-direction: reverse;
}

.hero__orbit--lime {
  inset: 30% -18% auto auto;
  width: 38%;
  aspect-ratio: 1;
  border-color: rgba(74, 222, 128, 0.5);
  animation-duration: 22s;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

.section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

.eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--royal);
  margin: 0 0 0.45rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0;
  font-weight: 800;
}

.section-head h2 span {
  color: var(--violet);
}

.section-head__lead {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Tri-orbit features */
.tri-orbit {
  padding: 2.5rem 0 3.5rem;
}

.tri-orbit__hub {
  position: relative;
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: grid;
  gap: 1.25rem;
}

.tri-orbit__core {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5rem;
  height: 5rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 6px solid rgba(59, 91, 219, 0.15);
  box-shadow: inset 0 0 0 4px var(--cloud);
}

.loop-card {
  background: var(--cloud);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: 0 12px 32px rgba(30, 27, 75, 0.07);
}

.loop-card__ring {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  border: 4px solid;
  background: var(--bg);
}

.loop-card__ring svg {
  width: 1.3rem;
  height: 1.3rem;
}

.loop-card__ring--gold {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.loop-card__ring--violet {
  border-color: var(--violet);
  color: var(--violet);
}

.loop-card__ring--lime {
  border-color: var(--lime);
  color: #16a34a;
}

.loop-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.loop-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Ring track gallery */
.ring-track {
  padding: 1rem 0 3.5rem;
}

.ring-track__scroll {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 1.25rem 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--royal) transparent;
}

.ring-frame {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: center;
}

.ring-frame__shell {
  width: min(12rem, 78vw);
  aspect-ratio: 1080 / 1920;
  padding: 6px;
  border-radius: 1.35rem;
  background: var(--cloud);
  box-shadow: var(--shadow);
}

.ring-frame--gold .ring-frame__shell {
  outline: 4px solid var(--gold);
  outline-offset: 2px;
}

.ring-frame--violet .ring-frame__shell {
  outline: 4px solid var(--violet);
  outline-offset: 2px;
}

.ring-frame--lime .ring-frame__shell {
  outline: 4px solid var(--lime);
  outline-offset: 2px;
}

.ring-frame__shell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 1rem;
}

.ring-track__hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  opacity: 0.7;
}

/* Download */
.download {
  padding: 1.5rem 1.25rem 3.5rem;
}

.download__plate {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
  padding: 2.25rem 1.65rem;
  border-radius: 2rem;
  background: linear-gradient(165deg, var(--cloud), #f5f0ff);
  box-shadow: var(--shadow);
  border: 2px solid rgba(139, 92, 246, 0.12);
}

.download__icon {
  margin: 0 auto 1rem;
  border-radius: 1.2rem;
  box-shadow: 0 10px 24px rgba(59, 91, 219, 0.22);
}

.download h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.95rem);
  margin: 0 0 0.65rem;
}

.download__lead {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.download__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer {
  padding: 2rem 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(59, 91, 219, 0.1);
}

.footer__inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer__brand img {
  border-radius: 0.5rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.15rem;
}

.footer__links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--royal);
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
}

.footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 27, 75, 0.5);
}

.modal__panel {
  position: relative;
  max-width: 22rem;
  width: 100%;
  padding: 2rem 1.65rem;
  background: var(--cloud);
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(30, 27, 75, 0.28);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: var(--bg);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--royal);
}

.modal__rings {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 5px solid var(--gold);
  box-shadow:
    -14px 0 0 -2px var(--violet),
    14px 0 0 -2px var(--lime);
}

.modal__panel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.65rem;
}

.modal__panel p {
  color: var(--muted);
  margin: 0 0 1.15rem;
  font-size: 0.96rem;
}

@media (min-width: 768px) {
  .orbit-nav__links {
    display: flex;
  }

  .orbit-nav__actions {
    margin-left: 0;
  }

  .orbit-nav__burger {
    display: none;
  }

  .nav-sheet {
    display: none !important;
  }

  .hero__orbit-row {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }

  .hero__stage {
    margin-inline: 0;
    justify-self: end;
  }

  .tri-orbit__hub {
    min-height: 22rem;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: start;
  }

  .tri-orbit__core {
    display: block;
  }

  .loop-card--north {
    grid-column: 1 / -1;
    max-width: 22rem;
    justify-self: center;
    text-align: center;
  }

  .loop-card--north .loop-card__ring {
    margin-inline: auto;
  }

  .loop-card--west {
    justify-self: end;
    max-width: 18rem;
  }

  .loop-card--east {
    justify-self: start;
    max-width: 18rem;
  }

  .ring-frame__shell {
    width: 13rem;
  }

  .ring-track__hint {
    display: none;
  }

  .download__actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  .ring-track__scroll {
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__orbit {
    animation: none;
  }

  .btn:hover {
    transform: none;
  }
}
