/* =========================================================
   EMPERIAL FITNESS — DARK PREMIUM DESIGN SYSTEM
   Built around the brand: obsidian + royal purple
   ========================================================= */

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

:root {
  /* Core palette */
  --obsidian: #0a0a0b;
  --ink: #111114;
  --smoke: #1a1a1f;
  --fog: #252530;
  --stone: #3a3a45;
  --mist: #6c6c7a;

  --pearl: #f8f6f4;
  --pearl-soft: #d8d6d4;
  --pearl-dim: #98969a;

  /* Brand accents (from logo) */
  --royal: #8b2d8f;
  --royal-deep: #4a1447;
  --violet: #c04fc4;
  --violet-glow: #e070e4;
  --plum: #2a0a2c;

  /* Gradients */
  --grad-royal: linear-gradient(135deg, #8b2d8f, #c04fc4);
  --grad-deep: linear-gradient(180deg, #4a1447, #0a0a0b);
  --grad-glow: radial-gradient(circle, rgba(192, 79, 196, 0.4), transparent 60%);

  /* Shadows */
  --shadow-royal: 0 20px 60px -20px rgba(139, 45, 143, 0.5);
  --shadow-ink: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 40px rgba(192, 79, 196, 0.3);

  /* Spacing */
  --gutter: 32px;
  --max-width: 1440px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--obsidian);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--obsidian);
  color: var(--pearl);
  line-height: 1.5;
  font-weight: 400;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ambient background texture - subtle film grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.6;
  mix-blend-mode: overlay;
}

/* Ambient purple glow - top left */
body::after {
  content: '';
  position: fixed;
  top: -20vh;
  left: -20vh;
  width: 80vh;
  height: 80vh;
  background: radial-gradient(circle, rgba(139, 45, 143, 0.15), transparent 60%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

main, section, nav, footer {
  position: relative;
  z-index: 2;
}

/* ===== TYPOGRAPHY ===== */
.display, h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--pearl);
}

h1 { font-weight: 300; }

em, .italic {
  font-style: italic;
  font-weight: 300;
}

.mono, .eyebrow, .label {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }

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

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.6);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(248, 246, 244, 0.06);
  transition: transform 0.3s ease;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.logo-link:hover { opacity: 0.85; }
.logo-mark {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(192, 79, 196, 0.2));
}
.logo-text {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--pearl);
}
.logo-text em {
  color: var(--violet);
  font-weight: 300;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--pearl-soft);
  position: relative;
  padding: 8px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--pearl); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  height: 1px;
  width: 0;
  background: var(--violet);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--pearl); }

.nav-cta {
  background: var(--pearl);
  color: var(--obsidian);
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-cta:hover {
  background: var(--violet);
  color: var(--pearl);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 32px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.005em;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '→';
  font-size: 16px;
  font-family: 'Fraunces', serif;
  transition: transform 0.25s ease;
}
.btn:hover::after { transform: translateX(4px); }

.btn-primary {
  background: var(--grad-royal);
  color: var(--pearl);
  box-shadow: 0 8px 24px rgba(139, 45, 143, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(192, 79, 196, 0.5);
  filter: brightness(1.1);
}

.btn-ghost {
  background: transparent;
  color: var(--pearl);
  border: 1px solid rgba(248, 246, 244, 0.25);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: var(--violet);
  background: rgba(139, 45, 143, 0.15);
  color: var(--pearl);
}

.btn-light {
  background: var(--pearl);
  color: var(--obsidian);
}
.btn-light:hover {
  background: var(--violet-glow);
  color: var(--obsidian);
  transform: translateY(-2px);
}

/* ===== EYEBROW LABEL ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--violet);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--violet);
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(180deg, var(--obsidian), #050506);
  padding: 120px var(--gutter) 40px;
  margin-top: 160px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--royal), transparent);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-brand-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(248, 246, 244, 0.08);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-brand .logo-link { gap: 14px; }
.footer-brand .logo-mark { height: 44px; }
.footer-brand .logo-text { font-size: 24px; }
.footer-tagline {
  font-size: 15px;
  color: var(--pearl-dim);
  line-height: 1.6;
  max-width: 380px;
}

.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--violet);
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: var(--pearl-soft);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--violet); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--pearl-dim);
}
.footer-social {
  display: flex;
  gap: 20px;
}
.footer-social a {
  font-size: 11px;
  letter-spacing: 0.22em;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--violet); }

/* ===== MARQUEE ===== */
.marquee {
  overflow: hidden;
  padding: 32px 0;
  border-top: 1px solid rgba(248, 246, 244, 0.06);
  border-bottom: 1px solid rgba(248, 246, 244, 0.06);
  background: linear-gradient(90deg, var(--obsidian), var(--plum) 50%, var(--obsidian));
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--obsidian), transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--obsidian), transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  align-items: center;
  white-space: nowrap;
  animation: scroll 35s linear infinite;
  font-family: 'Fraunces', serif;
  font-size: 56px;
  font-weight: 300;
  font-style: italic;
  color: var(--pearl);
}
.marquee-track .dot {
  color: var(--violet);
  font-size: 32px;
  font-style: normal;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }
.delay-5 { animation-delay: 0.7s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Scroll reveal variants */
.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.in { opacity: 1; transform: scale(1); }

/* Glow pulse */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(192, 79, 196, 0); }
  50% { box-shadow: 0 0 30px rgba(192, 79, 196, 0.6); }
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .nav-links { display: none; }
  .nav-cta { padding: 10px 18px; font-size: 12px; }
  .logo-mark { height: 28px; }
  .logo-text { font-size: 16px; }
  .marquee-track { font-size: 36px; gap: 36px; }
  .footer-brand-row { grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 48px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  footer { padding-top: 80px; margin-top: 80px; }
}
@media (max-width: 600px) {
  .footer-brand-row { grid-template-columns: 1fr; gap: 40px; }
}
