:root {
  color-scheme: dark;
  --gold-1: #fff1bd;
  --gold-2: #e7bd69;
  --gold-3: #9a6824;
  --ink: #080c11;
  --glass: rgba(8, 13, 19, 0.68);
  --line: rgba(222, 177, 89, 0.55);
  --mouse-x: 50%;
  --mouse-y: 50%;
  --parallax-x: 0px;
  --parallax-y: 0px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: #dbe5e9;
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.shell {
  width: min(100% - 64px, 1600px);
  margin-inline: auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-rows: 84px 1fr 82px;
  min-height: 100svh;
  overflow: hidden;
  background: #cddce3;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 13, 19, .42) 0%, rgba(8, 14, 19, .12) 37%, transparent 62%),
    linear-gradient(0deg, rgba(3, 7, 10, .72) 0%, transparent 22%, transparent 78%, rgba(7, 11, 16, .35) 100%);
  pointer-events: none;
}

.hero__art {
  position: absolute;
  z-index: 0;
  inset: -28px;
  background: url("assets/hero-celestial.png") center / cover no-repeat;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) scale(1.035);
  animation: hero-breathe 12s ease-in-out infinite alternate;
  will-change: transform;
}

.hero__light {
  position: absolute;
  z-index: 2;
  width: 52vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero__light--left {
  top: -28%; left: -18%;
  background: radial-gradient(circle, rgba(255, 239, 191, .44), transparent 66%);
  animation: holy-pulse 8s ease-in-out infinite;
}

.hero__light--center {
  top: 5%; left: 30%;
  width: 26vw;
  background: radial-gradient(circle, rgba(92, 202, 255, .2), transparent 68%);
  animation: holy-pulse 11s 2s ease-in-out infinite reverse;
}

.cloud {
  position: absolute;
  z-index: 2;
  width: 48vw;
  height: 16vw;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  filter: blur(54px);
  opacity: .58;
  pointer-events: none;
}

.cloud--one { left: -20%; bottom: 5%; animation: cloud-drift 28s linear infinite; }
.cloud--two { left: 28%; bottom: -8%; animation: cloud-drift 36s -12s linear infinite reverse; }

.nav {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  height: 84px;
}

.nav::before {
  content: "";
  position: fixed;
  z-index: -1;
  top: 0; left: 0; right: 0;
  height: 84px;
  background: linear-gradient(180deg, rgba(8, 13, 18, .86), rgba(10, 16, 22, .58));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(125%);
  box-shadow: 0 12px 35px rgba(0,0,0,.12);
}

.brand {
  display: grid;
  place-items: center;
  width: 92px;
  height: 78px;
  transform-style: preserve-3d;
}

.brand img {
  width: 84px;
  max-height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,.65)) drop-shadow(0 0 10px rgba(246, 196, 83, .15));
  animation: emblem-float 5s ease-in-out infinite;
  transition: filter .35s ease;
}

.brand:hover img {
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.7)) drop-shadow(0 0 18px rgba(255, 212, 116, .65));
}

.nav__ornament, .title-ornament, .footer__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.nav__ornament span, .title-ornament span, .footer__ornament span {
  width: min(15vw, 185px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2));
  transform-origin: right;
}

.nav__ornament span:last-child, .title-ornament span:last-child, .footer__ornament span:last-child {
  transform: scaleX(-1);
}

.nav__ornament i, .title-ornament i, .footer__ornament i {
  width: 12px; height: 12px;
  border: 1px solid var(--gold-2);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(235, 190, 91, .6);
  animation: diamond-pulse 2.4s ease-in-out infinite;
}

.nav__links { display: flex; align-items: center; gap: clamp(22px, 3vw, 52px); }

.nav__links a, .footer a {
  position: relative;
  padding: 12px 2px;
  color: rgba(255, 248, 230, .84);
  font-family: "Cinzel", serif;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
  transition: color .3s ease, text-shadow .3s ease;
}

.nav__links a::after, .footer a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%; bottom: 5px;
  height: 1px;
  background: var(--gold-1);
  box-shadow: 0 0 8px var(--gold-2);
  transition: left .3s ease, right .3s ease;
}

.nav__links a:hover, .footer a:hover { color: #fff3bd; text-shadow: 0 0 14px rgba(255, 214, 116, .55); }
.nav__links a:hover::after, .footer a:hover::after { left: 0; right: 0; }

.nav__toggle { display: none; }

.hero__content {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100% - 64px, 920px);
  margin-left: max(32px, calc((100vw - 1600px) / 2));
  margin-right: auto;
  padding: 24px 0 10px;
  text-align: center;
  transform: translateY(-1vh);
}

.eyebrow {
  margin: 0 0 10px;
  color: #fff8e1;
  font-family: "Cinzel", serif;
  font-size: clamp(10px, .8vw, 13px);
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0,0,0,.7);
}

.title {
  position: relative;
  margin: 0;
  color: var(--gold-2);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(54px, 6vw, 108px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: .98;
  text-transform: uppercase;
  filter: drop-shadow(0 7px 8px rgba(37, 22, 2, .5));
}

.title .letter {
  display: inline-block;
  color: var(--gold-2);
  background: linear-gradient(180deg, #fff8d6 0%, #f5d887 23%, #c98b2d 52%, #fff0ac 76%, #8f5e1b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 1;
  transform: none;
  animation: letter-arrive .75s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(var(--index) * 55ms + 180ms);
}

.title .letter {
  transition: filter .25s ease, transform .25s ease;
}

.title .letter:hover {
  animation: none;
  filter: brightness(1.45) drop-shadow(0 0 10px rgba(255,218,127,.9));
  transform: translateY(-4px);
}

.title-ornament { width: min(86%, 650px); margin: 18px auto 13px; }
.title-ornament span { width: 50%; }
.tagline {
  margin: 0;
  color: #172838;
  font-family: "Cinzel", serif;
  font-size: clamp(16px, 1.55vw, 25px);
  font-weight: 600;
  letter-spacing: clamp(.26em, .8vw, .62em);
  text-indent: .62em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,.7), 0 4px 18px rgba(255,255,255,.8);
}

.download {
  position: relative;
  display: grid;
  place-items: center;
  width: min(430px, 88vw);
  min-height: 96px;
  margin-top: clamp(28px, 4vh, 52px);
  overflow: hidden;
  border: 1px solid #e6bc68;
  background:
    linear-gradient(#11100c, #11100c) padding-box,
    linear-gradient(115deg, #825318, #fff1b2, #8b5b1d) border-box;
  color: #f9e3a4;
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 3px rgba(222, 173, 77, .18),
    inset 0 0 28px rgba(235, 175, 60, .12),
    0 12px 35px rgba(22, 15, 4, .38),
    0 0 0 rgba(255, 212, 118, 0);
  transition: color .35s ease, box-shadow .35s ease, transform .18s ease;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}

.download::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(244, 203, 115, .42);
  clip-path: inherit;
}

.download::after {
  content: "";
  position: absolute;
  inset: -60% -15%;
  background: conic-gradient(from 180deg, transparent, rgba(255,220,137,.16), transparent 28%);
  animation: button-aura 5s linear infinite;
}

.download:hover {
  color: #fff4c8;
  box-shadow: inset 0 0 34px rgba(245, 188, 70, .22), 0 14px 38px rgba(38, 24, 4, .45), 0 0 28px rgba(255, 209, 104, .42);
}

.download:active { transform: scale(.985); }

.download__label { position: relative; z-index: 2; font-size: clamp(20px, 1.7vw, 27px); letter-spacing: .035em; }
.download small { position: relative; z-index: 2; margin-top: -16px; color: rgba(255,240,196,.5); font: 500 9px "Inter", sans-serif; letter-spacing: .22em; }
.download__flare {
  position: absolute;
  z-index: 1;
  top: -40%; left: -35%;
  width: 24%; height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), transparent);
  transform: rotate(18deg);
  animation: button-shine 4.4s 1.2s ease-in-out infinite;
}

.download__corner { position: absolute; z-index: 3; width: 18px; height: 18px; border-color: var(--gold-1); opacity: .9; }
.download__corner--tl { top: 6px; left: 6px; border-top: 2px solid; border-left: 2px solid; }
.download__corner--tr { top: 6px; right: 6px; border-top: 2px solid; border-right: 2px solid; }
.download__corner--bl { bottom: 6px; left: 6px; border-bottom: 2px solid; border-left: 2px solid; }
.download__corner--br { bottom: 6px; right: 6px; border-bottom: 2px solid; border-right: 2px solid; }

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 34px);
  min-height: 66px;
  margin-top: clamp(24px, 4vh, 48px);
  padding: 10px clamp(16px, 3vw, 40px);
  border: 1px solid rgba(217, 173, 86, .38);
  background: linear-gradient(180deg, rgba(8, 13, 18, .7), rgba(8, 12, 17, .52));
  backdrop-filter: blur(13px);
  box-shadow: 0 10px 35px rgba(0,0,0,.14), inset 0 0 25px rgba(255,255,255,.025);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}

.social > i { width: 1px; height: 26px; background: linear-gradient(transparent, var(--gold-2), transparent); }
.social__link { display: flex; align-items: center; gap: 12px; padding: 8px; color: rgba(255,248,229,.9); transition: color .3s ease; }
.social__link svg { width: 25px; height: 25px; fill: var(--gold-2); filter: drop-shadow(0 0 0 transparent); transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .35s ease; }
.social__link span { font: 500 clamp(11px, .9vw, 14px) "Cinzel", serif; letter-spacing: .045em; text-transform: uppercase; }
.social__link:hover { color: #fff3bd; }
.social__link:hover svg { transform: translateY(-3px) scale(1.12) rotate(-4deg); filter: drop-shadow(0 0 9px rgba(255,205,100,.8)); }

.footer {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr minmax(180px, 340px) 1fr;
  align-items: center;
  height: 82px;
  font-family: "Cinzel", serif;
}

.footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0; right: 0; bottom: 0;
  height: 82px;
  border-top: 1px solid var(--line);
  background: rgba(6, 10, 14, .82);
  backdrop-filter: blur(16px);
}

.footer p { margin: 0; color: rgba(255,245,218,.66); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.footer nav { display: flex; justify-content: flex-end; gap: 30px; }
.footer a { font-size: 11px; }

.particles {
  position: fixed;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  mix-blend-mode: screen;
  pointer-events: none;
}
.feathers { position: absolute; z-index: 4; inset: 0; overflow: hidden; pointer-events: none; }
.feather {
  position: absolute;
  top: -14vh;
  width: var(--size);
  height: calc(var(--size) * 2.8);
  border-radius: 100% 0 100% 0;
  background: linear-gradient(110deg, rgba(255,255,255,.92), rgba(255,255,255,.16));
  box-shadow: 0 0 8px rgba(255,255,255,.45);
  opacity: var(--opacity);
  transform-origin: center;
  animation: feather-fall var(--duration) var(--delay) linear infinite;
}

.feather::after { content: ""; position: absolute; left: 48%; top: 3%; width: 1px; height: 105%; background: rgba(150,166,176,.45); transform: rotate(-8deg); }

.cursor-glow {
  position: fixed;
  z-index: 1;
  left: var(--mouse-x); top: var(--mouse-y);
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,232,166,.15), transparent 65%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity .3s ease;
}

.reveal { opacity: 1; transform: none; animation: reveal-up .85s cubic-bezier(.2,.8,.2,1) forwards; }
.eyebrow.reveal { animation-delay: .12s; }
.title-ornament.reveal { animation-delay: .82s; }
.tagline.reveal { animation-delay: .9s; }
.download.reveal { animation-delay: 1.05s; }
.social.reveal { animation-delay: 1.2s; }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%; bottom: 98px;
  padding: 12px 18px;
  border: 1px solid rgba(229,184,94,.6);
  background: rgba(8,12,17,.9);
  color: #f8e5ae;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes hero-breathe { from { filter: saturate(.96) brightness(.98); } to { filter: saturate(1.08) brightness(1.04); } }
@keyframes holy-pulse { 0%,100% { opacity: .48; transform: scale(.9); } 50% { opacity: .9; transform: scale(1.12); } }
@keyframes cloud-drift { from { transform: translateX(-10vw); } to { transform: translateX(80vw); } }
@keyframes emblem-float { 0%,100% { transform: translateY(0) rotateY(-4deg); } 50% { transform: translateY(-5px) rotateY(4deg); } }
@keyframes diamond-pulse { 0%,100% { transform: rotate(45deg) scale(.8); opacity: .5; } 50% { transform: rotate(45deg) scale(1.15); opacity: 1; } }
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes letter-arrive {
  from { opacity: 0; transform: translateY(28px) rotateX(-55deg); }
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}
@keyframes letter-glint { 50% { filter: brightness(1.5) drop-shadow(0 0 10px rgba(255,218,127,.9)); transform: translateY(-4px); } }
@keyframes button-aura { to { transform: rotate(360deg); } }
@keyframes button-shine { 0%,62% { left: -35%; opacity: 0; } 68% { opacity: .8; } 83%,100% { left: 125%; opacity: 0; } }
@keyframes feather-fall {
  0% { transform: translate3d(0,-12vh,0) rotate(0deg) rotateY(0); }
  30% { transform: translate3d(6vw,30vh,0) rotate(100deg) rotateY(150deg); }
  65% { transform: translate3d(-4vw,70vh,0) rotate(220deg) rotateY(300deg); }
  100% { transform: translate3d(9vw,116vh,0) rotate(360deg) rotateY(540deg); }
}

@media (max-width: 900px) {
  .shell { width: min(100% - 32px, 760px); }
  .hero { grid-template-rows: 72px 1fr auto; min-height: 100svh; }
  .nav { height: 72px; grid-template-columns: 80px 1fr auto; }
  .nav::before { height: 72px; }
  .brand {
    width: 60px;
    height: 64px;
    padding-top: 4px;
  }
  .brand img { width: 52px; max-height: 56px; }
  .nav__ornament { display: none; }
  .nav__toggle { display: grid; gap: 5px; width: 42px; height: 42px; place-content: center; border: 1px solid rgba(225,181,90,.45); background: rgba(7,11,15,.5); color: #fff; }
  .nav__toggle span { display: block; width: 20px; height: 1px; background: var(--gold-1); transition: transform .3s ease, opacity .3s ease; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav__links { position: fixed; top: 72px; left: 0; right: 0; display: grid; gap: 0; padding: 12px 24px 22px; background: rgba(6,10,14,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); opacity: 0; transform: translateY(-14px); pointer-events: none; transition: .3s ease; }
  .nav__links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__links a { padding: 14px; text-align: center; }
  .hero__art {
    inset: 0;
    background-position: 72% center;
    transform: none;
  }
  .hero::after { background: linear-gradient(90deg, rgba(7,13,19,.52), rgba(7,13,19,.12)), linear-gradient(0deg, rgba(4,8,12,.72), transparent 35%); }
  .hero__content { width: min(100% - 32px, 670px); margin-inline: auto; padding-top: 52px; }
  .title { font-size: clamp(48px, 12vw, 78px); }
  .eyebrow { letter-spacing: .25em; }
  .social { margin-bottom: 22px; }
  .footer { grid-template-columns: 1fr; gap: 6px; height: auto; min-height: 96px; padding: 18px 0; text-align: center; }
  .footer::before { height: 100%; }
  .footer__ornament { display: none; }
  .footer nav { justify-content: center; }
}

@media (max-width: 560px) {
  .hero {
    grid-template-rows: 72px minmax(610px, 1fr) auto;
    min-height: 100dvh;
  }
  .hero__art {
    background-position: 73% center;
    filter: saturate(.9) brightness(.86);
    animation: none;
  }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(5,9,13,.08) 10%, rgba(5,9,13,.2) 42%, rgba(3,7,10,.76) 100%),
      linear-gradient(90deg, rgba(5,9,13,.28), transparent 54%, rgba(5,9,13,.08));
  }
  .hero__content {
    justify-content: center;
    width: min(100% - 32px, 460px);
    padding: 190px 0 28px;
    transform: none;
  }
  .hero__content .reveal,
  .hero__content .title .letter {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .eyebrow { display: none; }
  .title {
    font-size: clamp(34px, 10vw, 48px);
    white-space: nowrap;
  }
  .tagline { font-size: 13px; letter-spacing: .25em; }
  .download { min-height: 78px; margin-top: 26px; }
  .download__label { font-size: 19px; }
  .social { width: 100%; gap: 10px; padding-inline: 10px; }
  .social__link { gap: 0; }
  .social__link span { position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); overflow: hidden; }
  .social > i { height: 20px; }
  .footer nav { gap: 14px; }
  .footer::before {
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
  }
  .cursor-glow { display: none; }
  .cloud { opacity: .25; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .title .letter, .reveal { opacity: 1; transform: none; }
}
