/* ================================================================
   ANGAVU INTELLIGENCE — Enterprise Design System v3.0
   DARK THEME — Navy #1B4965 + Gold #E8A838
   Split Navigation · Glass-morphism · Premium Dark
   ================================================================ */

/* --- CSS Custom Properties --- */
:root {
  --navy-900: #060E1A;
  --navy-800: #0A1628;
  --navy-700: #1B4965;
  --navy-600: #2a6080;
  --navy-500: #3a7a9e;
  --navy-400: #5a9aba;
  --navy-300: #8abdd6;
  --navy-200: #b5d8e8;
  --navy-100: #ddeef5;
  --navy-50: #f0f7fb;

  --gold-700: #c48a1a;
  --gold-600: #d69b2a;
  --gold-500: #E8A838;
  --gold-400: #edbc5e;
  --gold-300: #f2cf84;
  --gold-200: #f7e0aa;
  --gold-100: #fbefd2;
  --gold-50: #fdf8ed;

  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #F5EDE0;

  --white: #ffffff;
  --black: #000000;

  /* Dark Theme Surfaces */
  --bg-body: #0A1628;
  --bg-card: #16213E;
  --bg-card-alt: #1E293B;
  --bg-section-alt: #0F1D32;
  --border-card: #2D3748;
  --text-body: #F0F0F0;
  --text-muted: #A0AEC0;
  --text-dim: #718096;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.4);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.6);
  --shadow-gold: 0 10px 40px -10px rgb(232 168 56 / 0.3);
  --shadow-teal: 0 0 30px rgb(0 78 100 / 0.3);
  --shadow-glow: 0 0 40px rgb(232 168 56 / 0.12);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  --african-orange: #FF6B35;
  --orange-light: #FF8C5A;
  --gold: var(--gold-500);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-body);
  overflow-x: hidden;
  position: relative;
}

/* --- Angavu Logo Watermark --- */
body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vmin;
  height: 60vmin;
  background-image: url('assets/angavu-logo-icon-fullcolor.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.02;
  pointer-events: none;
  z-index: 0;
}

/* Ensure all content stays above watermark */
nav, header, section, footer, .hero, .section, .footer, .nav, .mobile-menu, .sidebar-overlay {
  position: relative;
  z-index: 1;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--gold-500);
  color: var(--navy-900);
  border-radius: var(--radius-md);
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

/* --- Animated Gradient Background (Dark) --- */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-animated {
  background: linear-gradient(-45deg, #0A1628, #0F1D32, #16213E, #0A1628);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

/* --- Floating Orbs (Hero Background) --- */
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

.orb-gold {
  background: var(--gold-500);
}

.orb-navy {
  background: var(--navy-400);
}

/* --- Fade-in Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

@keyframes counter {
  from { --num: 0; }
}

/* Sidebar slide-in animation */
@keyframes sidebarIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes sidebarOut {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll-triggered animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 100ms; }
.animate-on-scroll.delay-2 { transition-delay: 200ms; }
.animate-on-scroll.delay-3 { transition-delay: 300ms; }
.animate-on-scroll.delay-4 { transition-delay: 400ms; }
.animate-on-scroll.delay-5 { transition-delay: 500ms; }
.animate-on-scroll.delay-6 { transition-delay: 600ms; }

/* ================================================================
   NAVIGATION — Split Layout with Glass-morphism
   Desktop: Logo left | Links center | CTA right
   Mobile: Hamburger → Slide-in sidebar from right
   ================================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(10, 22, 40, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition-base);
}

.nav.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  background: rgba(10, 22, 40, 0.95);
  border-bottom-color: rgba(232, 168, 56, 0.1);
}

/* Nav Logo (left) */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-body);
  flex-shrink: 0;
}

.nav-logo svg, .nav-logo img {
  width: 2rem;
  height: 2rem;
}

/* Nav Links (center) — Always visible, horizontal tabs */
.nav-center {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-width: 0;
}
.nav-center::-webkit-scrollbar {
  display: none;
}

.nav-center a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  position: relative;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-center a:hover {
  color: var(--text-body);
  background: rgba(255, 255, 255, 0.06);
}

.nav-center a.active {
  color: var(--gold-500);
  background: rgba(232, 168, 56, 0.08);
}

.nav-center a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold-500);
  transition: width var(--transition-base);
  border-radius: 1px;
}

.nav-center a:hover::after,
.nav-center a.active::after {
  width: 60%;
}

/* Nav CTA (right) — Always visible */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--gold-500) !important;
  color: var(--navy-900) !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--transition-base);
}

.nav-cta:hover {
  background: var(--gold-400) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.nav-cta::after {
  display: none !important;
}

/* Hamburger Button — Hidden (direct tabs instead) */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-body);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1099;
  animation: overlayIn 0.3s ease-out;
}

.sidebar-overlay.open {
  display: block;
}

/* Slide-in Sidebar (Mobile) */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #0F1D32;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-header .nav-logo {
  font-size: 1rem;
}

.sidebar-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.sidebar-close:hover {
  color: var(--text-body);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.875rem 1.5rem;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--text-body);
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--gold-500);
}

.sidebar-nav a.active {
  color: var(--gold-500);
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-footer .nav-cta {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Legacy mobile-menu (hidden, replaced by sidebar) */
.mobile-menu { display: none !important; }

/* --- Hero Section (Dark) --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-body);
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-body);
  max-width: 900px;
  animation: fadeInUp 0.8s ease-out;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.375rem);
  color: var(--text-muted);
  max-width: 640px;
  margin-top: 1.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(232, 168, 56, 0.1);
  border: 1px solid rgba(232, 168, 56, 0.25);
  border-radius: var(--radius-full);
  color: var(--gold-500);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: fadeInDown 0.6s ease-out;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-badge svg {
  width: 1rem;
  height: 1rem;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold-500);
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(232, 168, 56, 0.2);
}

.hero-stats .stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Hero CTA Buttons */
.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  background: var(--african-orange);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--text-body);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-dim);
  animation: fadeIn 1s ease-out 0.8s both;
}

/* --- Section Styles (Dark) --- */
.section {
  padding: 6rem 2rem;
  background: var(--bg-body);
}

.section-dark {
  background: var(--bg-section-alt);
  color: var(--text-body);
}

.section-gray {
  background: #0F1D32;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header .overline {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-body);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.section-dark .section-header h2 {
  color: var(--text-body);
}

.section-header p {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-dark .section-header p {
  color: var(--text-muted);
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card-grid-2 { grid-template-columns: 1fr; }
.card-grid-3 { grid-template-columns: 1fr; }
.card-grid-4 { grid-template-columns: 1fr; }

.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border-card);
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card:hover {
  border-color: rgba(0, 78, 100, 0.5);
  box-shadow: 0 8px 30px rgba(0, 78, 100, 0.15), 0 0 0 1px rgba(0, 78, 100, 0.2);
  transform: translateY(-4px);
  background: var(--bg-card-alt);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card-icon-navy {
  background: rgba(27, 73, 101, 0.3);
  color: var(--navy-300);
}

.card-icon-gold {
  background: rgba(232, 168, 56, 0.15);
  color: var(--gold-500);
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Dark cards */
.card-dark {
  background: var(--bg-card);
  border-color: var(--border-card);
}

.card-dark:hover {
  background: var(--bg-card-alt);
  border-color: rgba(0, 78, 100, 0.5);
  box-shadow: 0 8px 30px rgba(0, 78, 100, 0.15);
}

.card-dark h3 {
  color: var(--text-body);
}

.card-dark p {
  color: var(--text-muted);
}

/* --- Pricing Cards (Dark) --- */
.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--border-card);
  transition: all var(--transition-base);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--gold-500), var(--shadow-glow);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-tier {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-500);
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-body);
  letter-spacing: -0.02em;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.pricing-features li svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gold-500);
  flex-shrink: 0;
}

/* --- Stats Bar (Dark) --- */
.stats-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stats-bar .stat-item .stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--gold-500);
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(232, 168, 56, 0.2);
}

.stats-bar .stat-item .stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- Code Block --- */
.code-block {
  background: #060E1A;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  color: #e2e8f0;
  border: 1px solid var(--border-card);
}

.code-block .comment { color: #64748b; }
.code-block .keyword { color: #c084fc; }
.code-block .string { color: #86efac; }
.code-block .function { color: #7dd3fc; }
.code-block .number { color: #fcd34d; }
.code-block .property { color: #93c5fd; }

/* --- Testimonial (Dark) --- */
.testimonial {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border-card);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  color: rgba(232, 168, 56, 0.15);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(27, 73, 101, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--navy-300);
  font-size: 0.875rem;
}

.testimonial-name {
  font-weight: 700;
  color: var(--text-body);
  font-size: 0.9375rem;
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* --- Footer (Dark) --- */
.footer {
  background: #060E1A;
  color: var(--text-muted);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  color: var(--text-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold-500);
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--gold-500);
}

/* --- Timeline (Dark) --- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-card);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.375rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--gold-500);
  border: 3px solid var(--bg-body);
  box-shadow: 0 0 0 2px var(--gold-500);
  transform: translateX(-50%);
  margin-left: 1px;
}

.timeline-year {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gold-500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Accordion / FAQ (Dark) --- */
.faq-item {
  border-bottom: 1px solid var(--border-card);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-body);
  text-align: left;
  font-family: var(--font-sans);
}

.faq-question svg {
  transition: transform var(--transition-base);
  flex-shrink: 0;
  color: var(--text-dim);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Steps (Dark) --- */
.steps {
  display: flex;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-number {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-500);
  color: var(--navy-900);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.125rem;
  margin: 0 auto 1rem;
  box-shadow: 0 0 20px rgba(232, 168, 56, 0.2);
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- Table (API docs, Dark) --- */
.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.api-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  font-weight: 700;
  color: var(--text-body);
  border-bottom: 2px solid var(--border-card);
}

.api-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.api-table code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--gold-400);
}

/* --- Badge (Dark) --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-gold {
  background: rgba(232, 168, 56, 0.12);
  color: var(--gold-400);
  border: 1px solid rgba(232, 168, 56, 0.25);
}

.badge-navy {
  background: rgba(27, 73, 101, 0.2);
  color: var(--navy-300);
  border: 1px solid rgba(27, 73, 101, 0.3);
}

.badge-green {
  background: rgba(72, 187, 120, 0.12);
  color: #68D391;
  border: 1px solid rgba(72, 187, 120, 0.25);
}

/* --- Language Toggle --- */
.lang-toggle {
  cursor: pointer;
  user-select: none;
}

/* ================================================================
   RESPONSIVE — Mobile-first
   ================================================================ */

/* Base mobile: nav tabs always visible horizontally */
.nav-center { display: flex; }
.nav-right { display: flex; }
.mobile-menu-btn { display: none; }

/* Base mobile: hero compact */
.hero-content { padding: 6rem 1.5rem 3rem; }
.hero-stats { flex-direction: column; gap: 1rem; }
.hero-stats .stat-number { font-size: 1.75rem; }
.hero-ctas { flex-direction: column; align-items: center; }

/* Base mobile: sections compact */
.section { padding: 4rem 1.5rem; }

/* Base mobile: steps stacked */
.steps { flex-direction: column; }

/* Base mobile: footer stacked */
.footer-grid { grid-template-columns: 1fr; gap: 2rem; }
.footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

/* Base mobile: pricing compact */
.pricing-card { padding: 2rem; }

/* Base mobile: stats bar single column */
.stats-bar .stat-item .stat-number { font-size: 2rem; }

/* Tablet (640px+) */
@media (min-width: 640px) {
  .hero-stats { flex-direction: row; gap: 1.5rem; }
  .hero-stats .stat-number { font-size: 1.75rem; }
  .hero-ctas { flex-direction: row; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: row; }
}

/* Desktop (1024px+) — Split nav appears */
@media (min-width: 1024px) {
  .nav-center { max-width: none; }

  .hero-content { padding: 8rem 2rem 4rem; }
  .hero-stats { gap: 3rem; }
  .hero-stats .stat-number { font-size: 2.5rem; }

  .section { padding: 6rem 2rem; }

  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }

  .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; }
  .footer-bottom { flex-direction: row; gap: 0; text-align: left; }

  .stats-bar { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .stats-bar .stat-item .stat-number { font-size: 2.75rem; }

  .pricing-card { padding: 2.5rem; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
  .orb { animation: none !important; }
  .gradient-animated { animation: none !important; }
  .hero-content h1,
  .hero-subtitle,
  .hero-badge,
  .hero-stats,
  .hero-ctas {
    animation: none !important;
  }
  .mobile-sidebar {
    transition: none !important;
  }
}

/* --- Print --- */
@media print {
  .nav, .mobile-menu-btn, .mobile-sidebar, .sidebar-overlay, .footer { display: none; }
  .hero { min-height: auto; padding: 2rem; }
  body { color: #000; background: #fff; }
  body::before { display: none; }
}

/* --- Selection Color --- */
::selection {
  background: rgba(232, 168, 56, 0.3);
  color: var(--text-body);
}

/* --- Focus Visible --- */
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

/* ====== LIVE MARKET TICKER (Dark) ====== */
.market-ticker {
  position: relative;
  width: 100%;
  height: 44px;
  background: #060E1A;
  border-top: 1px solid rgba(232, 168, 56, 0.15);
  border-bottom: 1px solid rgba(232, 168, 56, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 10;
  animation: ticker-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.3s;
  transform: translateY(-100%);
}

@keyframes ticker-enter {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.ticker-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px 0 12px;
  background: linear-gradient(to right, #060E1A 70%, transparent);
  z-index: 2;
  min-width: 80px;
}

.ticker-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48BB78;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}

.ticker-live-text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-400);
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  margin-left: 80px;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  will-change: transform;
}

.market-ticker:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 0 4px;
  transition: background var(--transition-fast);
  border-radius: var(--radius-sm);
}

.ticker-commodity {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-200);
}

.ticker-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.ticker-change {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.ticker-up   { color: #48BB78; }
.ticker-down { color: #FC8181; }
.ticker-flat { color: var(--gray-400); }

.ticker-source {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--navy-400);
  opacity: 0.7;
}

.ticker-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.ticker-featured {
  background: rgba(232, 168, 56, 0.06);
  border: 1px solid rgba(232, 168, 56, 0.15);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
}

.ticker-sparkline {
  flex-shrink: 0;
}

.ticker-item.flash {
  animation: price-flash 800ms ease-out;
}

@keyframes price-flash {
  0%   { background: transparent; }
  25%  { background: rgba(232, 168, 56, 0.15); }
  100% { background: transparent; }
}

.ticker-item.flash .ticker-price {
  animation: price-scale 400ms ease-out;
}

@keyframes price-scale {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Ticker Mobile */
@media (max-width: 768px) {
  .market-ticker {
    height: 36px;
  }

  .ticker-commodity {
    font-size: 12px;
  }

  .ticker-price {
    font-size: 12px;
  }

  .ticker-source {
    display: none;
  }

  .ticker-featured {
    display: none;
  }

  .ticker-track {
    gap: 24px;
  }

  .ticker-label {
    padding: 0 12px 0 8px;
    min-width: 60px;
  }

  .ticker-viewport {
    margin-left: 60px;
  }
}

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none !important;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 8px 16px;
  }
  .market-ticker {
    height: auto;
    min-height: 44px;
  }
  .ticker-live-dot {
    animation: none;
  }
  .ticker-divider {
    display: none;
  }
}

/* --- Smooth image loading --- */
img {
  max-width: 100%;
  height: auto;
}

/* --- Horizontal Rule --- */
hr.gold-line {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  max-width: 200px;
  margin: 2rem auto;
}

/* ── Eye Watermark — Brand Mark ── */
.page-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    background-image: url('assets/logo-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    background-image: url('assets/logo-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
}

.page-hero, .hero {
    position: relative;
}

.page-hero > *, .hero > * {
    position: relative;
    z-index: 1;
}

/* ── Product Status Badges ── */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-badge.live {
    background: rgba(72, 187, 120, 0.12);
    color: #68D391;
    border: 1px solid rgba(72, 187, 120, 0.25);
}

.status-badge.pilot {
    background: rgba(232, 168, 56, 0.12);
    color: var(--gold-400);
    border: 1px solid rgba(232, 168, 56, 0.25);
}

.status-badge.coming {
    background: rgba(160, 174, 192, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(160, 174, 192, 0.2);
}
