@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
  --color-primary: #4B0082;
  --color-primary-dark: #2D0057;
  --color-gold: #C9A84C;
  --color-gold-light: #E8C97A;
  --color-white: #FFFFFF;
  --color-cream: #FAF6EF;
  --color-black-soft: #1A1A2E;
  --color-text: #2C2C2C;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --shadow-card: 0 22px 60px rgba(26, 26, 46, 0.11);
  --shadow-soft: 0 14px 38px rgba(45, 0, 87, 0.12);
  --border-gold: 1px solid rgba(201, 168, 76, 0.38);
  --radius-sm: 4px;
  --radius-md: 8px;
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  opacity: 0;
  animation: pageFadeIn 380ms ease forwards;
  text-rendering: optimizeLegibility;
}

body.is-leaving {
  animation: pageFadeOut 180ms ease forwards;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--color-black-soft);
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.06;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.9rem);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
}

main {
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-tight {
  padding: 72px 0;
}

.section-title {
  max-width: 820px;
  margin: 0 auto 18px;
  text-align: center;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .section-title,
  .section .container .section-title,
  .dark-band.dark-band .section-title {
    background-image: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-light) 45%, var(--color-gold) 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: sectionTitleShimmer 2.8s ease both;
  }
}

.section-subtitle {
  max-width: 710px;
  margin: 0 auto 42px;
  color: rgba(44, 44, 44, 0.78);
  font-size: 1.08rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--color-gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

.btn-primary,
.btn-gold,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
  transition: opacity 0.7s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 16px 32px rgba(75, 0, 130, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-primary-dark);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4);
  transform: translateY(-3px);
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  box-shadow: 0 16px 30px rgba(201, 168, 76, 0.25);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--color-gold-light);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4);
  transform: translateY(-3px);
}

.btn-outline {
  border-color: rgba(201, 168, 76, 0.62);
  background: transparent;
  color: var(--color-primary-dark);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--color-gold);
  background: rgba(201, 168, 76, 0.11);
  box-shadow: 0 14px 28px rgba(45, 0, 87, 0.1);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.luxury-card {
  border: var(--border-gold);
  border-radius: var(--radius-md);
  background: var(--color-cream);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background var(--transition);
}

.luxury-card:hover {
  border-color: rgba(201, 168, 76, 0.78);
  box-shadow: 0 28px 68px rgba(45, 0, 87, 0.16);
  transform: translateY(-4px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid rgba(232, 201, 122, 0.2);
  background: rgba(45, 0, 87, 0.94);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(45, 0, 87, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 42px rgba(26, 26, 46, 0.18);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 28px;
  transition: min-height 0.3s ease;
}

.site-header.is-scrolled .navbar {
  min-height: 68px;
}

.brand {
  color: var(--color-gold-light);
  font-family: var(--font-heading);
  font-size: 1.34rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.brand span {
  display: block;
  margin-top: 3px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.nav-menu a:not(.btn-gold) {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-menu a:not(.btn-gold)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--color-gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity var(--transition), transform var(--transition);
}

.nav-menu a:not(.btn-gold):hover,
.nav-menu a:not(.btn-gold):focus-visible,
.nav-menu a[aria-current="page"] {
  color: var(--color-white);
}

.nav-menu a:not(.btn-gold):hover::after,
.nav-menu a:not(.btn-gold):focus-visible::after,
.nav-menu a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta {
  min-height: 42px;
  padding: 11px 17px;
  font-size: 0.84rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(232, 201, 122, 0.45);
  border-radius: var(--radius-sm);
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-white);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.78);
}

footer {
  padding: 60px 40px 30px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-brand {
  color: var(--color-gold-light);
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.05;
}

.footer-brand span {
  display: block;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-heading {
  margin-bottom: 18px;
  color: var(--color-gold-light);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-gold-light);
}

.footer-note {
  max-width: 410px;
}

.footer-meta {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.footer-meta span {
  display: block;
}

.footer-meta a {
  color: var(--color-gold-light);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  background: transparent;
  color: var(--color-gold);
  font-size: 1rem;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: var(--color-primary-dark);
}

.footer-bottom {
  max-width: 1100px;
  margin: 30px auto 0 auto;
  padding: 20px 20px 0 20px;
  border-top: 1px solid rgba(201, 168, 76, 0.3);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  text-align: center;
}

.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: heroTextFadeUp 0.7s ease both;
  animation-delay: calc(var(--hero-line-index, 0) * 0.3s);
  will-change: opacity, transform;
}

.hero-title-words .hero-title-line {
  display: inline-block;
}

.hero-subheadline {
  opacity: 0;
  transform: translateY(22px);
  animation: heroTextFadeUp 0.7s ease both;
  animation-delay: var(--hero-subheadline-delay, 0.7s);
  will-change: opacity, transform;
}

.reveal,
body .reveal.reveal.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  will-change: opacity, transform;
}

.reveal.visible,
.reveal.is-visible,
body .reveal.reveal.reveal.visible,
body .reveal.reveal.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.luxury-card:nth-child(1) {
  transition-delay: 0.1s;
}

.luxury-card:nth-child(2) {
  transition-delay: 0.2s;
}

.luxury-card:nth-child(3) {
  transition-delay: 0.3s;
}

.luxury-card:nth-child(4) {
  transition-delay: 0.4s;
}

.luxury-card:nth-child(5) {
  transition-delay: 0.5s;
}

.luxury-card:nth-child(6) {
  transition-delay: 0.6s;
}

body .luxury-card.reveal.visible:hover,
body .luxury-card.reveal.visible:focus-within {
  transition-delay: 0s;
  transform: translateY(-4px);
}

body .membership-pricing .tier-card.featured.reveal.visible {
  transform: translateY(-10px);
}

body .btn-primary.reveal.visible:hover,
body .btn-primary.reveal.visible:focus-visible,
body .btn-gold.reveal.visible:hover,
body .btn-gold.reveal.visible:focus-visible {
  transition: opacity 0.7s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  transform: translateY(-3px);
}

body .btn-outline.reveal.visible:hover,
body .btn-outline.reveal.visible:focus-visible {
  transition: opacity 0.7s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  transform: translateY(-2px);
}

@keyframes heroTextFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sectionTitleShimmer {
  from {
    background-position: 120% center;
  }

  to {
    background-position: -120% center;
  }
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pageFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

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

  body,
  body.is-leaving {
    opacity: 1;
    animation: none;
  }

  .reveal,
  body .reveal.reveal.reveal {
    opacity: 1;
    transform: none;
  }

  .hero-title-line,
  .hero-subheadline {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .section-title {
    animation: none;
  }
}

@media (max-width: 960px) {
  body .membership-pricing .tier-card.featured.reveal.visible {
    transform: translateY(0);
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    display: grid;
    gap: 18px;
    padding: 24px;
    border: var(--border-gold);
    border-radius: var(--radius-md);
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-soft);
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-cta {
    width: 100%;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .container {
    width: 100%;
  }

  .section {
    padding: 74px 0;
  }

  .section-tight {
    padding: 56px 0;
  }

  footer {
    padding: 40px 24px 24px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.62rem;
  }

  h2 {
    font-size: 2rem;
  }

  .container {
    width: 100%;
  }

  .btn-primary,
  .btn-gold,
  .btn-outline {
    width: 100%;
  }

  .navbar {
    min-height: 72px;
  }

  .nav-menu {
    top: 72px;
    right: 12px;
    left: 12px;
  }
}
