/* Gem Merge Fortune — prism nav, triad hero, facet grid, vault pedestals */

:root {
  --sky: #e8f6ff;
  --sky-deep: #b8e0ff;
  --gold: #d4af37;
  --gold-light: #f5e6a8;
  --gold-deep: #a67c00;
  --ruby: #e63946;
  --sapphire: #457b9d;
  --emerald: #2a9d8f;
  --teal: #0f766e;
  --ink: #0c2340;
  --ink-soft: rgba(12, 35, 64, 0.72);
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(12, 35, 64, 0.12);
  --radius: 20px;
  --radius-pill: 999px;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky) 0%, #f8fbff 45%, #fffef8 100%);
  overflow-x: hidden;
}

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

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 12px 4px rgba(212, 175, 55, 0.6);
  animation: sparkle 4s ease-in-out infinite;
}

.spark--1 {
  top: 18%;
  left: 20%;
}

.spark--2 {
  top: 35%;
  right: 15%;
  animation-delay: -1.5s;
}

.spark--3 {
  bottom: 25%;
  left: 40%;
  animation-delay: -3s;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Prism nav — clipped gold corners */
.prism-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 1rem 0;
}

.prism-nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--gold);
  clip-path: polygon(0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease;
}

.prism-nav.is-scrolled .prism-nav__inner {
  box-shadow: 0 20px 48px rgba(12, 35, 64, 0.16);
}

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

.prism-nav__brand img {
  border-radius: 12px;
  box-shadow: 0 0 0 2px var(--gold-light);
}

.prism-nav__links {
  display: none;
  align-items: center;
  gap: 0.1rem;
  margin-left: auto;
  margin-right: 0.35rem;
}

.prism-nav__links a {
  padding: 0.4rem 0.75rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-radius: 8px;
  text-decoration: none;
}

.prism-nav__links a:hover {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-deep);
  text-decoration: none;
}

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

.prism-nav__links ~ .prism-nav__actions {
  margin-left: 0;
}

.prism-nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 2px solid var(--gold-light);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.prism-nav__burger span {
  display: block;
  height: 2px;
  margin: 0 10px;
  background: var(--ink);
}

@media (min-width: 920px) {
  .prism-nav__links {
    display: flex;
  }
  .prism-nav__burger {
    display: none;
  }
}

.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 99;
  padding: 5.5rem 1.25rem 2rem;
  background: rgba(232, 246, 255, 0.98);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.nav-sheet a {
  font-weight: 600;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 2px solid var(--gold-light);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}

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

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

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

.btn--lg {
  font-size: 1rem;
  padding: 0.78rem 1.35rem;
}

.btn--xl {
  font-size: 1.05rem;
  padding: 0.92rem 1.6rem;
}

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

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(166, 124, 0, 0.35);
  border: 1px solid var(--gold-deep);
}

.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border: 2px solid rgba(212, 175, 55, 0.45);
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.hero__banner {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow);
}

.hero__banner img {
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}

.hero__cluster {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__cluster {
    grid-template-columns: 1.05fr 0.88fr;
  }
}

.hero__copy {
  padding: 1.4rem 1.3rem;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid var(--gold-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__kicker {
  margin: 0 0 0.45rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--teal);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.15;
  margin: 0;
}

.hero h1 span {
  display: block;
  color: var(--gold-deep);
}

.hero__sub {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ruby);
  margin: 0.35rem 0 0.85rem;
}

.hero__lead {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
}

.hero__triad {
  position: relative;
  width: 140px;
  height: 100px;
  margin-bottom: 1.25rem;
}

.gem {
  position: absolute;
  width: 36px;
  height: 36px;
  clip-path: polygon(50% 0%, 95% 35%, 78% 100%, 22% 100%, 5% 35%);
  border: 2px solid var(--gold);
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.5);
}

.gem--ruby {
  top: 0;
  left: 52px;
  background: linear-gradient(145deg, #ff6b6b, var(--ruby));
}

.gem--sapphire {
  bottom: 0;
  left: 12px;
  background: linear-gradient(145deg, #74c0fc, var(--sapphire));
}

.gem--emerald {
  bottom: 0;
  right: 12px;
  background: linear-gradient(145deg, #69db7c, var(--emerald));
}

.hero__triad-ring {
  position: absolute;
  inset: 8px;
  border: 2px dashed rgba(212, 175, 55, 0.5);
  border-radius: 50%;
  animation: ring-spin 12s linear infinite;
}

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

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

.hero__phone {
  margin: 0 auto;
  max-width: 285px;
  padding: 0.55rem;
  background: linear-gradient(145deg, var(--white), var(--gold-light));
  border: 3px solid var(--gold);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero__phone img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #042f2e;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.section-head .eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--gold-deep);
  margin: 0 0 0.45rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.8vw, 2.15rem);
  margin: 0;
}

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

.section-head__lead {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

.facet-grid {
  margin-top: 4.5rem;
}

.facet-grid__cells {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .facet-grid__cells {
    grid-template-columns: repeat(2, 1fr);
  }
}

.facet-card {
  padding: 1.3rem 1.2rem;
  background: var(--white);
  border: 2px solid var(--gold-light);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(12, 35, 64, 0.06);
}

.facet-card__gem {
  width: 48px;
  height: 48px;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 95% 35%, 78% 100%, 22% 100%, 5% 35%);
  color: var(--white);
}

.facet-card__gem svg {
  width: 22px;
  height: 22px;
}

.facet-card__gem--ruby {
  background: linear-gradient(145deg, #ff8787, var(--ruby));
}

.facet-card__gem--gold {
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  color: var(--ink);
}

.facet-card__gem--sapphire {
  background: linear-gradient(145deg, #91a7ff, var(--sapphire));
}

.facet-card__gem--emerald {
  background: linear-gradient(145deg, #8ce99a, var(--emerald));
}

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

.facet-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.howto {
  margin-top: 3rem;
}

.howto__panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1.35rem;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(232, 246, 255, 0.9));
  border: 2px solid rgba(15, 118, 110, 0.25);
  border-radius: var(--radius);
}

.howto__panel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.howto__list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.howto__list li {
  margin-bottom: 0.35rem;
}

.rewards-note {
  margin-top: 2rem;
}

.rewards-note__box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.2rem;
  background: #fffbeb;
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius);
}

.rewards-note__box > svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--gold-deep);
}

.rewards-note__box h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}

.rewards-note__box p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.vault-gallery {
  margin-top: 4.5rem;
}

.vault-gallery__row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1.25rem 0 1.5rem;
  scroll-snap-type: x mandatory;
  align-items: flex-end;
  border-top: 3px solid var(--gold);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), transparent);
}

.pedestal {
  flex: 0 0 min(66vw, 185px);
  margin: 0;
  scroll-snap-align: center;
  padding: 0.5rem 0.5rem 0;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 8px, #8b7355 8px, #6b5344 100%);
  border-radius: 12px 12px 6px 6px;
  box-shadow: var(--shadow);
}

.pedestal--tall {
  transform: translateY(-12px);
}

.pedestal img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: 8px;
  background: #042f2e;
}

@media (min-width: 960px) {
  .vault-gallery__row {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
  }
}

.download {
  margin-top: 4.5rem;
}

.download__vault {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(50% + 24px) calc(100% - 24px), 50% 100%, calc(50% - 24px) calc(100% - 24px), 0 calc(100% - 24px));
}

.download__icon {
  margin: 0 auto 1rem;
  border-radius: 16px;
  box-shadow: 0 0 0 3px var(--gold-light);
}

.download__vault h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  margin: 0 0 0.35rem;
}

.download__lead {
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 0.35rem;
}

.download__vault p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

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

.footer {
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  border-top: 2px solid var(--gold-light);
}

.footer__inner {
  max-width: 1120px;
  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;
  font-size: 0.95rem;
}

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

.footer__links a {
  font-weight: 600;
  font-size: 0.92rem;
}

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

.modal[hidden] {
  display: none;
}

.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(12, 35, 64, 0.45);
}

.modal__panel {
  position: relative;
  max-width: 400px;
  width: 100%;
  padding: 2rem 1.75rem;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 24px 60px rgba(12, 35, 64, 0.2);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--sky);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__gem {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 95% 35%, 78% 100%, 22% 100%, 5% 35%);
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  color: var(--ink);
}

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

.modal__panel p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}
