:root {
  --radius: 0.5rem;

  /* Deep midnight base with warm gold + teal accents */
  --background: oklch(0.16 0.02 250);
  --foreground: oklch(0.97 0.01 90);
  --card: oklch(0.20 0.025 250);
  --card-foreground: oklch(0.97 0.01 90);
  --popover: oklch(0.20 0.025 250);
  --popover-foreground: oklch(0.97 0.01 90);

  --primary: oklch(0.78 0.14 80);          /* warm gold */
  --primary-foreground: oklch(0.16 0.02 250);
  --secondary: oklch(0.25 0.03 250);
  --secondary-foreground: oklch(0.97 0.01 90);
  --muted: oklch(0.24 0.025 250);
  --muted-foreground: oklch(0.72 0.02 90);
  --accent: oklch(0.65 0.10 180);          /* teal accent */
  --accent-foreground: oklch(0.10 0.02 250);
  --destructive: oklch(0.60 0.22 25);
  --destructive-foreground: oklch(0.97 0.01 90);
  --border: oklch(0.30 0.02 250 / 60%);
  --input: oklch(0.28 0.02 250);
  --ring: oklch(0.78 0.14 80);

  --gold: oklch(0.78 0.14 80);
  --gold-foreground: oklch(0.16 0.02 250);
  --teal: oklch(0.65 0.10 180);
  --teal-foreground: oklch(0.10 0.02 250);

  --shadow-glow: 0 30px 80px -20px oklch(0.78 0.14 80 / 25%);

  --font-display: "Cormorant Garamond", "Instrument Serif", serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  margin-top: 0;
}

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

p {
  margin-top: 0;
}

button, input, textarea {
  font-family: inherit;
  color: inherit;
}

::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Utilities */
.container-x {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 80rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .container-x {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.text-balance { text-wrap: balance; }

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: oklch(0.78 0.14 80 / 80%);
  font-weight: 500;
}

.glass-card {
  background: oklch(1 0 0 / 4%);
  backdrop-filter: blur(12px);
  border: 1px solid oklch(1 0 0 / 8%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.focus\:not-sr-only:focus {
  position: absolute;
  width: auto;
  height: auto;
  padding: 0.75rem 1.5rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 500;
}

/* Basic Tailwind replacements for layout & styling used in the project */
.min-h-screen { min-height: 100vh; }
.min-h-\[100svh\] { min-height: 100svh; }
.min-h-\[60svh\] { min-height: 60svh; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-end { align-items: flex-end; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:inline-flex { display: inline-flex; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
}

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.bottom-6 { bottom: 1.5rem; }
.left-1\/2 { left: 50%; }
.right-6 { right: 1.5rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Spacing */
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-16 { margin-top: 4rem; }
.mt-32 { margin-top: 8rem; }
.-mt-20 { margin-top: -5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.pt-20 { padding-top: 5rem; }
.pt-32 { padding-top: 8rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }
.pb-24 { padding-bottom: 6rem; }
.pb-32 { padding-bottom: 8rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-28 { padding-top: 7rem; padding-bottom: 7rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }

.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

@media (min-width: 768px) {
  .md\:p-10 { padding: 2.5rem; }
  .md\:p-20 { padding: 5rem; }
  .md\:py-36 { padding-top: 9rem; padding-bottom: 9rem; }
}

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-[10px] { font-size: 10px; }

@media (min-width: 768px) {
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-6xl { font-size: 3.75rem; }
  .md\:text-7xl { font-size: 4.5rem; }
}

@media (min-width: 1024px) {
  .lg\:text-5xl { font-size: 3rem; }
  .lg\:text-6xl { font-size: 3.75rem; }
  .lg\:text-8xl { font-size: 6rem; }
}

.font-display { font-family: var(--font-display); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.not-italic { font-style: normal; }
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.02\] { line-height: 1.02; }
.leading-\[1\.05\] { line-height: 1.05; }
.leading-\[1\.1\] { line-height: 1.1; }
.text-center { text-align: center; }

/* Colors */
.text-primary { color: var(--primary); }
.text-primary\/30 { color: oklch(0.78 0.14 80 / 30%); }
.text-primary\/80 { color: oklch(0.78 0.14 80 / 80%); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-foreground { color: var(--foreground); }
.text-foreground\/80 { color: oklch(0.97 0.01 90 / 80%); }
.text-foreground\/85 { color: oklch(0.97 0.01 90 / 85%); }
.text-foreground\/90 { color: oklch(0.97 0.01 90 / 90%); }
.text-muted-foreground { color: var(--muted-foreground); }

.bg-background { background-color: var(--background); }
.bg-background\/70 { background-color: oklch(0.16 0.02 250 / 70%); }
.bg-background\/80 { background-color: oklch(0.16 0.02 250 / 80%); }
.bg-background\/95 { background-color: oklch(0.16 0.02 250 / 95%); }
.bg-primary { background-color: var(--primary); }
.bg-primary\/10 { background-color: oklch(0.78 0.14 80 / 10%); }
.bg-primary\/20 { background-color: oklch(0.78 0.14 80 / 20%); }
.bg-primary\/90 { background-color: oklch(0.78 0.14 80 / 90%); }
.bg-card { background-color: var(--card); }
.bg-card\/30 { background-color: oklch(0.20 0.025 250 / 30%); }
.bg-card\/40 { background-color: oklch(0.20 0.025 250 / 40%); }
.bg-card\/50 { background-color: oklch(0.20 0.025 250 / 50%); }
.bg-card\/60 { background-color: oklch(0.20 0.025 250 / 60%); }
.bg-input\/40 { background-color: oklch(0.28 0.02 250 / 40%); }
.bg-transparent { background-color: transparent; }

/* Gradients */
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-tr { background-image: linear-gradient(to top right, var(--tw-gradient-stops)); }
.bg-gradient-to-bl { background-image: linear-gradient(to bottom left, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }

.from-background\/85 { --tw-gradient-from: oklch(0.16 0.02 250 / 85%); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-background\/70 { --tw-gradient-from: oklch(0.16 0.02 250 / 70%); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-primary { --tw-gradient-from: var(--primary); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-primary\/5 { --tw-gradient-from: oklch(0.78 0.14 80 / 5%); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-primary\/20 { --tw-gradient-from: oklch(0.78 0.14 80 / 20%); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-primary\/15 { --tw-gradient-from: oklch(0.78 0.14 80 / 15%); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-accent\/20 { --tw-gradient-from: oklch(0.65 0.10 180 / 20%); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-card { --tw-gradient-from: var(--card); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }

.via-background\/60 { --tw-gradient-stops: var(--tw-gradient-from), oklch(0.16 0.02 250 / 60%), var(--tw-gradient-to, transparent); }
.via-transparent { --tw-gradient-stops: var(--tw-gradient-from), transparent, var(--tw-gradient-to, transparent); }
.via-card { --tw-gradient-stops: var(--tw-gradient-from), var(--card), var(--tw-gradient-to, transparent); }

.to-background { --tw-gradient-to: var(--background); }
.to-background\/40 { --tw-gradient-to: oklch(0.16 0.02 250 / 40%); }
.to-accent { --tw-gradient-to: var(--accent); }
.to-accent\/5 { --tw-gradient-to: oklch(0.65 0.10 180 / 5%); }
.to-accent\/20 { --tw-gradient-to: oklch(0.65 0.10 180 / 20%); }
.to-primary\/10 { --tw-gradient-to: oklch(0.78 0.14 80 / 10%); }

/* Borders & Radius */
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-y { border-top-width: 1px; border-top-style: solid; border-bottom-width: 1px; border-bottom-style: solid; }
.border-transparent { border-color: transparent; }
.border-border { border-color: var(--border); }
.border-border\/60 { border-color: oklch(0.30 0.02 250 / 36%); } /* 60% of 60% approx */
.border-border\/40 { border-color: oklch(0.30 0.02 250 / 24%); }
.border-primary { border-color: var(--primary); }
.last\:border-0:last-child { border-width: 0; }

.rounded-md { border-radius: 0.375rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Sizing */
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.h-20 { height: 5rem; }
.h-64 { height: 16rem; }
.w-64 { width: 16rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-md { max-width: 28rem; }

/* Misc */
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.blur-3xl { filter: blur(64px); }
.opacity-60 { opacity: 0.6; }
.shadow-\[var\(--shadow-glow\)\] { box-shadow: var(--shadow-glow); }
.backdrop-blur-xl { backdrop-filter: blur(24px); }
.backdrop-blur { backdrop-filter: blur(8px); }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.aspect-video { aspect-ratio: 16 / 9; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pointer-events-none { pointer-events: none; }
.select-none { user-select: none; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.drop-shadow-\[var\(--shadow-glow\)\] { filter: drop-shadow(0 0 15px oklch(0.78 0.14 80 / 40%)); }

/* Transitions & Effects */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-500 { transition-duration: 500ms; }

/* Hover states */
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:opacity-100:hover { opacity: 1; }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:border-primary:hover { border-color: var(--primary); }
.hover\:border-border:hover { border-color: var(--border); }
.hover\:bg-card\/50:hover { background-color: oklch(0.20 0.025 250 / 50%); }
.hover\:bg-card\/80:hover { background-color: oklch(0.20 0.025 250 / 80%); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.group:hover .group-hover\:text-primary { color: var(--primary); }
.group:hover .group-hover\:text-primary\/60 { color: oklch(0.78 0.14 80 / 60%); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:bg-primary { background-color: var(--primary); }
.group:hover .group-hover\:text-primary-foreground { color: var(--primary-foreground); }
.hover\:border-primary\/50:hover { border-color: oklch(0.78 0.14 80 / 50%); }
.hover\:gap-3:hover { gap: 0.75rem; }

/* Form inputs */
input:focus, textarea:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--primary);
}
.resize-none { resize: none; }

/* Animations System (AnimateIn equivalent) */
.animate-in {
  opacity: 0;
  transition-property: all;
  transition-duration: 1200ms;
  transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}

.animate-in[data-animate="up"] { transform: translateY(3rem); }
.animate-in[data-animate="down"] { transform: translateY(-3rem); }
.animate-in[data-animate="left"] { transform: translateX(-3rem); }
.animate-in[data-animate="right"] { transform: translateX(3rem); }
.animate-in[data-animate="none"] { transform: translate(0); }

.animate-in.is-visible {
  opacity: 1;
  transform: translate(0);
}

/* Premium Animations */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-shimmer {
  background: linear-gradient(90deg, var(--primary) 0%, oklch(0.9 0.1 90) 50%, var(--primary) 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.btn-press:active {
  transform: scale(0.97);
}

/* Page Transition Loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
}

.page-loader.hidden-loader {
  opacity: 0;
  visibility: hidden;
}

.pulse-logo {
  animation: pulseLogo 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseLogo {
  0%, 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 15px oklch(0.78 0.14 80 / 40%)); }
  50% { opacity: .7; transform: scale(0.95); filter: drop-shadow(0 0 5px oklch(0.78 0.14 80 / 20%)); }
}

/* Nav Link Hover */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-link:hover::after, .nav-link.active-link::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero Pills — fade only, no transform to avoid conflict with absolute positioning */
@keyframes pillFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-pill {
  opacity: 0;
  animation: pillFadeIn 0.8s ease forwards;
  animation-delay: var(--pill-delay, 0.8s);
}
.pointer-events-auto { pointer-events: auto; }
.justify-end { justify-content: flex-end; }
