/* Variables and base styling */
:root {
  color-scheme: dark;
  --bg-primary: #050505;
  --bg-secondary: #0a0f1e;
  --bg-deep: #101820;
  --gold: #d4af37;
  --gold-light: #ffd700;
  --gold-soft: #c8a23a;
  --text-light: #f7f1dc;
  --text-muted: #9d9482;
  --border: rgba(212, 175, 55, 0.18);
  --glass: rgba(255, 255, 255, 0.06);
  --shadow: 0 30px 120px rgba(0, 0, 0, 0.45);
  --radius: 26px;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, rgba(212, 175, 55, 0.06), transparent 25%),
    linear-gradient(180deg, #050505 0%, #0a0f1e 45%, #101820 100%);
  color: var(--text-light);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.background-layers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.dark-wave,
.gold-rays,
.bokeh-layer,
.noise-layer,
.particle-field {
  position: absolute;
  inset: 0;
}

.dark-wave {
  background: radial-gradient(circle at 20% 10%, rgba(255,255,255,0.06), transparent 18%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04), transparent 12%);
  opacity: 0.6;
  animation: drift 55s linear infinite;
}

.gold-rays {
  background: radial-gradient(circle at 50% 15%, rgba(212, 175, 55, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(212, 175, 55, 0.06), transparent 50%);
  mix-blend-mode: screen;
  filter: blur(20px);
  opacity: 0.4;
  animation: float 80s linear infinite;
}

.bokeh-layer {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
  opacity: 0.18;
  animation: drift 70s linear infinite reverse;
}

.noise-layer {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.15'/%3E%3C/svg%3E");
  opacity: 0.1;
}

.particle-field {
  pointer-events: none;
}

.main {
  position: relative;
}

.loader-screen {
  position: fixed;
  inset: 0;
  background: #050505;
  display: grid;
  place-items: center;
  z-index: 10;
}

.loader-content {
  text-align: center;
  color: var(--gold-light);
}

.loader-text {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.loader-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  line-height: 1.4;
  opacity: 0.88;
}

.loader-bar {
  width: 260px;
  height: 4px;
  margin: 2rem auto 0;
  background: rgba(212, 175, 55, 0.18);
  overflow: hidden;
  border-radius: 99px;
}

.loader-bar::before {
  content: '';
  display: block;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.9), rgba(212, 175, 55, 0.2));
  transform: translateX(-100%);
  animation: loaderMove 2.6s ease-in-out infinite;
}

.page-content {
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  padding: 4.5rem 2rem;
}

.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding-top: 6rem;
}

.hero-panel {
  position: relative;
}

.hero-copy {
  max-width: 540px;
}

.hero-copy .eyebrow {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.hero-copy h1 {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: clamp(4rem, 7vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-number {
  margin: 1.4rem 0 1.6rem;
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 6vw, 5rem);
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.hero-visual {
  min-height: 620px;
  display: grid;
  place-items: center;
}

.hero-visual__glow,
.hero-visual__spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-visual__glow {
  background: radial-gradient(circle at 50% 35%, rgba(212, 175, 55, 0.22), transparent 28%);
  filter: blur(40px);
}

.hero-visual__spotlight {
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.12), transparent 20%);
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1.15;
  margin: 0 auto;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: translateZ(0);
  animation: float 10s ease-in-out infinite;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  font-size: 0.9rem;
}

.scroll-line {
  width: 1px;
  height: 3.2rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  position: relative;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: scrollPulse 1.8s infinite;
}

.message-section {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem 2rem;
}

.message-copy {
  max-width: 760px;
}

.message-copy h2 {
  margin-bottom: 1.5rem;
  font-family: 'Cinzel', serif;
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  letter-spacing: -0.04em;
}

.message-copy p {
  margin: 0 auto 1.8rem;
  max-width: 700px;
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.message-signature {
  margin: 0;
  font-size: 1rem;
  color: var(--text-light);
  letter-spacing: 0.12em;
}

.site-footer {
  padding: 2rem 2rem 3rem;
  text-align: center;
  color: rgba(247, 241, 220, 0.72);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s ease;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--gold-light);
}

.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2.5rem;
  padding-top: 6rem;
}

.hero-copy {
  max-width: 520px;
}

.hero-description {
  margin-top: 2rem;
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 0.92 / 1;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  animation: float 12s ease-in-out infinite;
}

.hero-visual__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-visual__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.2), transparent 28%);
  filter: blur(40px);
}

.hero-visual__spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.12), transparent 18%);
}

.hero-copy .eyebrow {
  margin-bottom: 1.5rem;
}

.final-section {
  min-height: 100vh;
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 4rem 2rem 6rem;
  position: relative;
  overflow: hidden;
}

.final-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.12), transparent 18%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.04), transparent 28%);
  pointer-events: none;
}

.final-visual {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(42vw, 420px);
  opacity: 0.85;
  pointer-events: none;
}

.final-image {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 80px rgba(0, 0, 0, 0.35));
  animation: float 14s ease-in-out infinite;
}

.final-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.final-copy h2 {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: clamp(4rem, 6vw, 6rem);
  color: var(--gold);
}

.final-copy h1 {
  margin: 0.4rem 0;
  font-family: 'Cinzel', serif;
  font-size: clamp(5.5rem, 8vw, 8.5rem);
  line-height: 0.9;
}

.final-number {
  margin: 0.8rem 0 1rem;
  color: var(--text-light);
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 5vw, 4.8rem);
}

.final-subtitle {
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 20%);
}

.gold-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.85);
  opacity: 0.4;
  filter: blur(1px);
  animation: goldParticle 12s ease-in infinite;
}

.button-primary {
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.button-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.button-primary:hover,
.button-primary:focus {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.button-primary:active::after {
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.fade-up.is-visible {
  transform: translateY(0);
}

.reveal.fade-left {
  transform: translateX(-40px);
}

.reveal.fade-right {
  transform: translateX(40px);
}

@media (max-width: 1100px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  section {
    padding: 3rem 1.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 12vw, 4rem);
  }

  .hero-number {
    font-size: 3rem;
  }

  .hero-image-wrap {
    max-width: 360px;
  }

  .final-visual {
    position: absolute;
    right: 50%;
    transform: translate(50%, -50%);
    width: min(56vw, 320px);
    opacity: 0.9;
  }
}

@keyframes loaderMove {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(15%); }
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-120px, -80px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes scrollPulse {
  0% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 1; }
  100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
}
