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

:root {
  /* Colors */
  --bg: #0a1628;
  --bg-gradient: linear-gradient(135deg, #0a1628 0%, #0d1a2d 50%, #0a1628 100%);
  --surface: #0f1f3a;
  --surface-elevated: #152844;
  --card: #111d35;
  --text: #f5f7fa;
  --text-muted: #a8b8d8;
  --text-subtle: #7a8db0;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --accent-gold: #d4a574;
  --accent-gold-muted: #b8906a;
  --accent-blue: #4a7ba7;
  --accent-blue-light: #5a8fc7;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  background-image: 
    radial-gradient(ellipse 1400px 800px at 10% 0%, rgba(212, 165, 116, 0.06), transparent 60%),
    radial-gradient(ellipse 1200px 700px at 95% 15%, rgba(74, 123, 167, 0.08), transparent 65%),
    var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
}

p {
  margin: 0;
}

a {
  color: inherit;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-gold);
}

/* Focus Styles */
a:focus-visible, 
button:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 12px 20px;
  background: var(--surface-elevated);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-md);
  z-index: 9999;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 20px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.brand:hover {
  opacity: 0.9;
}

.brand img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand .name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand .name small {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.625rem;
  margin-top: 2px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  color: var(--text);
  transition: all var(--transition-fast);
  width: 40px;
  height: 40px;
  position: relative;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-gold);
}

.hamburger {
  width: 20px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid transparent;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

/* Mobile Navigation */
@media (max-width: 940px) {
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 24px;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all var(--transition-base);
  }
  
  .nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav a {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    font-size: 1.125rem;
  }
}

/* Buttons */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid var(--accent-gold);
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(212, 165, 116, 0.08));
  color: var(--accent-gold);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.25), rgba(212, 165, 116, 0.15));
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.cta:active {
  transform: translateY(0);
}

.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-blue);
  color: var(--text);
}

/* Main Content */
main {
  padding: 48px 0 80px;
  min-height: calc(100vh - var(--header-height) - 200px);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}

.hero-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0.3;
}

.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  margin: 0 0 20px;
  font-family: 'Inter', sans-serif;
}

.lead {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 65ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-side {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-md);
}

.hero-side img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg);
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}

.stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
}

.stat strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
}

.stat span {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
}

/* Sections */
.section {
  margin-top: 64px;
}

.section h2 {
  margin: 0 0 16px;
}

.section > p {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 1.0625rem;
  max-width: 70ch;
}

/* Page Header */
.page-title {
  margin: 0 0 20px;
}

.page-intro {
  margin: 0 0 32px;
  color: var(--text-muted);
  max-width: 75ch;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Grid Layouts */
.grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Cards */
.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.125rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.card .list {
  margin-top: 16px;
}

/* Lists */
.list {
  margin: 16px 0 0;
  padding: 0 0 0 24px;
  color: var(--text-muted);
  line-height: 1.7;
}

.list li {
  margin: 10px 0;
}

.list a {
  color: var(--accent-blue-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.list a:hover {
  border-bottom-color: var(--accent-blue-light);
}

/* Banner */
.banner {
  margin-top: 40px;
  background: linear-gradient(135deg, rgba(74, 123, 167, 0.12), rgba(212, 165, 116, 0.08));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-md);
}

.banner p {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
}

.banner small {
  color: var(--text-muted);
  display: block;
  font-weight: 500;
  margin-top: 8px;
  font-size: 0.9375rem;
}

.banner a {
  flex-shrink: 0;
}

/* Note */
.note {
  border-left: 4px solid var(--accent-gold);
  padding: 20px 20px 20px 24px;
  background: rgba(212, 165, 116, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-gold);
}

.note p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.note strong {
  color: var(--text);
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

/* Pill */
.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(212, 165, 116, 0.08);
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

/* Divider */
.hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin: 32px 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer strong {
  font-family: 'Playfair Display', serif;
  color: var(--text);
  font-size: 1.125rem;
  display: block;
  margin-bottom: 8px;
}

.footer a {
  text-decoration: none;
  color: var(--text-subtle);
  transition: color var(--transition-fast);
}

.footer a:hover {
  text-decoration: none;
  color: var(--accent-gold);
}

.footer small {
  display: block;
  margin-top: 8px;
  color: var(--text-subtle);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
  }
  
  .hero-card {
    padding: 32px 24px;
  }
  
  .split {
    grid-template-columns: 1fr;
  }
  
  .banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }
  
  .banner .cta,
  .banner .secondary {
    width: 100%;
  }
  
  .section {
    margin-top: 48px;
  }
  
  main {
    padding: 32px 0 60px;
  }
}

@media (max-width: 640px) {
  .hero-card {
    padding: 28px 20px;
  }
  
  .card {
    padding: 24px 20px;
  }
  
  .container {
    padding: 0 20px;
  }
}
