/*
 * ============================================================
 * RAFINEXUS PRO ULTIMATE — DESIGN SYSTEM v2.0
 * AI Governance Research Platform | Premium Think Tank Edition
 * ============================================================
 *
 * Design Philosophy: "Institutional Noir Futurism"
 * — The weight of Oxford meets the precision of CERN
 * — Obsidian surfaces, liquid gold accents, data-driven motion
 * ============================================================
 */

/* ============================================================
   1. GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=JetBrains+Mono:wght@300;400;600&family=Syne:wght@400;500;600;700;800&display=swap');

/* ============================================================
   2. CSS CUSTOM PROPERTIES — DESIGN TOKENS
   ============================================================ */
:root {
  /* === PALETTE — DARK MODE (Default) === */
  --obsidian: #05070D;
  --deep-navy: #080E1A;
  --navy-900: #0A1628;
  --navy-800: #0D1E36;
  --navy-700: #112647;
  --navy-600: #163060;

  --gold-100: #FFF8E0;
  --gold-200: #FFE8A0;
  --gold-300: #F5D060;
  --gold-400: #D4AF37;
  --gold-500: #B8941E;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --gold-glow-soft: rgba(212, 175, 55, 0.08);

  --ice-white: #F0F4FF;
  --slate-300: #94A3C8;
  --slate-400: #6B7FA8;
  --slate-500: #4A5A80;

  --crimson: #DC2626;
  --emerald: #10B981;
  --sapphire: #3B82F6;
  --amber: #F59E0B;
  --violet: #8B5CF6;

  /* === SEMANTIC TOKENS === */
  --bg-primary: var(--obsidian);
  --bg-secondary: var(--deep-navy);
  --bg-card: rgba(13, 30, 54, 0.7);
  --bg-card-hover: rgba(22, 48, 96, 0.8);
  --bg-glass: rgba(8, 14, 26, 0.6);
  --bg-glass-light: rgba(255, 255, 255, 0.03);

  --text-primary: var(--ice-white);
  --text-secondary: var(--slate-300);
  --text-muted: var(--slate-400);
  --text-accent: var(--gold-400);

  --border-subtle: rgba(212, 175, 55, 0.1);
  --border-medium: rgba(212, 175, 55, 0.2);
  --border-strong: rgba(212, 175, 55, 0.4);
  --border-glass: rgba(255, 255, 255, 0.06);

  /* === GLASS MORPHISM === */
  --glass-bg: rgba(13, 30, 54, 0.55);
  --glass-blur: blur(20px) saturate(180%);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.06);

  --glass-gold-bg: rgba(212, 175, 55, 0.06);
  --glass-gold-border: 1px solid rgba(212, 175, 55, 0.2);

  /* === TYPOGRAPHY === */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-ui: 'Syne', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  --text-8xl: 6rem;

  /* === SPACING === */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* === BORDER RADIUS === */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* === SHADOWS === */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-xl: 0 20px 80px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 40px rgba(212,175,55,0.2), 0 0 80px rgba(212,175,55,0.1);
  --shadow-gold-sm: 0 0 16px rgba(212,175,55,0.3);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.04) inset;

  /* === TRANSITIONS === */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 600ms;
  --duration-slower: 1000ms;

  /* === Z-INDEX SCALE === */
  --z-base: 0;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* ============================================================
   LIGHT MODE OVERRIDES
   ============================================================ */
[data-theme="light"] {
  --bg-primary: #F4F6FB;
  --bg-secondary: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-light: rgba(0, 0, 0, 0.02);

  --text-primary: #080E1A;
  --text-secondary: #2C3E6A;
  --text-muted: #6B7FA8;
  --text-accent: var(--gold-500);

  --border-subtle: rgba(10, 22, 40, 0.08);
  --border-medium: rgba(212, 175, 55, 0.25);
  --border-glass: rgba(0, 0, 0, 0.06);

  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: 1px solid rgba(0, 0, 0, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 31, 63, 0.1), inset 0 1px 0 rgba(255,255,255,0.8);

  --shadow-sm: 0 2px 8px rgba(0,31,63,0.08);
  --shadow-md: 0 4px 20px rgba(0,31,63,0.1);
  --shadow-lg: 0 8px 40px rgba(0,31,63,0.12);
  --shadow-card: 0 4px 24px rgba(0,31,63,0.08), 0 1px 0 rgba(255,255,255,1) inset;
}

/* ============================================================
   3. GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--duration-slow) var(--ease-in-out),
              color var(--duration-slow) var(--ease-in-out);
  overflow-x: hidden;
}

::selection {
  background: var(--gold-400);
  color: var(--obsidian);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--gold-500);
  border-radius: var(--radius-full);
}

/* ============================================================
   4. TYPOGRAPHY SYSTEM
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.display-mega {
  font-size: clamp(3rem, 8vw, var(--text-8xl));
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.display-xl {
  font-size: clamp(2.5rem, 6vw, var(--text-7xl));
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.display-lg {
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  font-weight: 700;
}

.display-md {
  font-size: clamp(1.5rem, 3vw, var(--text-4xl));
  font-weight: 700;
}

.label-overline {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.body-serif {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.8;
  font-style: italic;
}

.mono {
  font-family: var(--font-mono);
}

/* Gold gradient text */
.text-gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400), var(--gold-300));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ============================================================
   5. GLASSMORPHISM COMPONENTS
   ============================================================ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-gold {
  background: var(--glass-gold-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-gold-border);
  box-shadow: var(--shadow-gold-sm), var(--glass-shadow);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-4px) scale(1.005);
  box-shadow: var(--shadow-lg), var(--shadow-gold-sm);
}

/* ============================================================
   6. BUTTON SYSTEM
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.btn:hover::before { opacity: 1; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300), var(--gold-400));
  background-size: 200% auto;
  color: var(--obsidian);
  box-shadow: 0 4px 20px var(--gold-glow), 0 1px 0 rgba(255,255,255,0.2) inset;
}

.btn-gold:hover {
  background-position: right center;
  box-shadow: 0 8px 30px var(--gold-glow), 0 1px 0 rgba(255,255,255,0.2) inset;
  transform: translateY(-2px);
  color: var(--obsidian);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--gold-400);
  border: 1px solid var(--border-medium);
}

.btn-ghost:hover {
  background: var(--glass-gold-bg);
  border-color: var(--gold-400);
  box-shadow: var(--shadow-gold-sm);
  color: var(--gold-300);
}

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  color: var(--text-primary);
  border: var(--glass-border);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: 1.25rem 3rem;
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
  letter-spacing: 0.06em;
}

/* Ripple effect */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ============================================================
   7. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-sm { max-width: 900px; }
.container-md { max-width: 1100px; }
.container-lg { max-width: 1600px; }

.section {
  padding: var(--space-24) 0;
}

.section-sm { padding: var(--space-16) 0; }
.section-lg { padding: var(--space-32) 0; }

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ============================================================
   8. ORNAMENTAL DECORATORS
   ============================================================ */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--gold-400);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 12px var(--gold-400);
}

.gold-rule {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-400), transparent);
  border-radius: var(--radius-full);
}

/* Scan line effect */
.scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
}

/* Noise texture */
.noise::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

/* ============================================================
   9. TAG / BADGE SYSTEM
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.3rem 0.8rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  border: 1px solid;
  white-space: nowrap;
  transition: all var(--duration-fast);
}

.tag-gold {
  background: var(--glass-gold-bg);
  border-color: var(--border-medium);
  color: var(--gold-400);
}

.tag-gold:hover {
  background: rgba(212,175,55,0.15);
  border-color: var(--gold-400);
  box-shadow: var(--shadow-gold-sm);
}

.tag-glass {
  background: var(--bg-glass-light);
  border-color: var(--border-glass);
  color: var(--text-secondary);
}

.tag-emerald { border-color: rgba(16,185,129,0.4); color: var(--emerald); background: rgba(16,185,129,0.06); }
.tag-crimson { border-color: rgba(220,38,38,0.4); color: var(--crimson); background: rgba(220,38,38,0.06); }
.tag-sapphire { border-color: rgba(59,130,246,0.4); color: var(--sapphire); background: rgba(59,130,246,0.06); }
.tag-amber { border-color: rgba(245,158,11,0.4); color: var(--amber); background: rgba(245,158,11,0.06); }
.tag-violet { border-color: rgba(139,92,246,0.4); color: var(--violet); background: rgba(139,92,246,0.06); }

/* ============================================================
   10. SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-elastic);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }
.delay-700 { transition-delay: 700ms; }
.delay-800 { transition-delay: 800ms; }

/* ============================================================
   11. STAT COUNTER COMPONENTS
   ============================================================ */
.stat-block {
  position: relative;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
}

.stat-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-8);
  width: 40px;
  height: 2px;
  background: var(--gold-400);
  border-radius: var(--radius-full);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, var(--text-6xl));
  font-weight: 900;
  line-height: 1;
  color: var(--gold-400);
  letter-spacing: -0.04em;
}

.stat-suffix {
  font-size: 0.5em;
  vertical-align: super;
  color: var(--gold-300);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

.stat-delta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  margin-top: var(--space-2);
}

.delta-up { color: var(--emerald); }
.delta-down { color: var(--crimson); }

/* ============================================================
   12. PROGRESS / DATA BARS
   ============================================================ */
.data-bar-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.data-bar-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.data-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400), var(--gold-300));
  border-radius: var(--radius-full);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out);
}

.data-bar-fill.animated {
  transform: scaleX(1);
}

.data-bar-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  min-width: 3ch;
  text-align: right;
}

/* ============================================================
   13. TIMELINE COMPONENT
   ============================================================ */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-400), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-10);
}

.timeline-dot {
  position: absolute;
  left: calc(-2rem - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 4px var(--gold-glow-soft), 0 0 12px var(--gold-400);
  transition: box-shadow var(--duration-base);
}

.timeline-item:hover .timeline-dot {
  box-shadow: 0 0 0 8px var(--gold-glow-soft), 0 0 24px var(--gold-400);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--gold-400);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.timeline-content {
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--duration-base) var(--ease-out);
}

.timeline-item:hover .timeline-content {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

/* ============================================================
   14. ACTIVITY FEED
   ============================================================ */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--duration-fast);
}

.activity-item:hover {
  background: var(--bg-glass-light);
  border-color: var(--border-subtle);
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.activity-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.activity-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.activity-time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   15. NAVIGATION
   ============================================================ */
.rn-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: 72px;
  display: flex;
  align-items: center;
  transition: all var(--duration-base) var(--ease-out);
}

.rn-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-logo span { color: var(--gold-400); }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--space-1);
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1rem;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 1px;
  background: var(--gold-400);
  transition: transform var(--duration-base) var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ============================================================
   16. RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 var(--space-4); }
  .section { padding: var(--space-16) 0; }
  .section-lg { padding: var(--space-20) 0; }
}

/* ============================================================
   17. ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

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

  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --border-glass: rgba(255,255,255,0.3);
    --border-subtle: rgba(255,255,255,0.2);
  }
}
