:root {
  --navy: #081228;
  --indigo: #1b2a6e;
  --violet: #4b1f6b;
  --wine: #7a2448;
  --gold: #f3d79b;
  --gold-strong: #e9b96a;
  --white: #ffffff;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  height: 100vh;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  padding: clamp(16px, 2.4vw, 28px) clamp(20px, 4.5vw, 60px);
  animation: fadeDown 0.9s ease-out both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
}

.brand__chip {
  display: grid;
  place-items: center;
  width: clamp(52px, 5vw, 64px);
  height: clamp(52px, 5vw, 64px);
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(3, 8, 24, 0.45);
}

.brand__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__text {
  font-size: clamp(12px, 1.3vw, 14px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.brand__text-accent {
  color: var(--gold);
}

.hero {
  position: relative;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("../images/hero-bg.jpg") center center / cover no-repeat;
  background-color: var(--navy);
  transform: scale(1.08);
  will-change: transform;
}

.hero__overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 62% 55% at 50% 48%, rgba(4, 8, 24, 0.42) 0%, rgba(4, 8, 24, 0) 70%),
    linear-gradient(125deg, rgba(8, 20, 54, 0.9) 0%, rgba(34, 22, 84, 0.74) 45%, rgba(116, 34, 70, 0.62) 100%);
}

.hero__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 9, 26, 0.72) 0%, rgba(5, 9, 26, 0) 34%);
}

.hero__orb {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero__orb--one {
  width: clamp(240px, 32vw, 460px);
  height: clamp(240px, 32vw, 460px);
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, rgba(72, 96, 220, 0.5) 0%, rgba(72, 96, 220, 0) 70%);
  animation: driftOne 16s ease-in-out infinite;
}

.hero__orb--two {
  width: clamp(260px, 34vw, 500px);
  height: clamp(260px, 34vw, 500px);
  bottom: -12%;
  right: -8%;
  background: radial-gradient(circle, rgba(233, 185, 106, 0.4) 0%, rgba(233, 185, 106, 0) 70%);
  animation: driftTwo 19s ease-in-out infinite;
}

.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 clamp(20px, 6vw, 80px);
  will-change: transform;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6.6vw, 5.4rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  max-width: 15ch;
  background: linear-gradient(180deg, #ffffff 40%, #f7e6c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: riseIn 1s 0.15s ease-out both;
}

.hero__divider {
  display: block;
  width: clamp(80px, 12vw, 130px);
  height: 3px;
  margin: clamp(22px, 3.2vw, 34px) 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--gold) 50%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 0 18px rgba(233, 185, 106, 0.65);
  animation: riseIn 1s 0.4s ease-out both;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.1vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.5);
  animation: riseIn 1s 0.6s ease-out both, glowPulse 3.4s 1.6s ease-in-out infinite;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 1;
    letter-spacing: 0.55em;
  }
  50% {
    opacity: 0.72;
    letter-spacing: 0.6em;
  }
}

@keyframes driftOne {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(50px, 40px, 0);
  }
}

@keyframes driftTwo {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-46px, -36px, 0);
  }
}

@media (max-width: 640px) {
  .brand__text {
    display: none;
  }

  .hero__title {
    max-width: 12ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
