/* ==========================================================================
   CSS Variables & Tokens (势速浩擎 · AWS 云服务 · Premium Corporate)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Colors - Deep Slate & Navy (Dark Mode Default) */
  --bg-dark: #0B1120;
  --bg-gradient: radial-gradient(circle at top right, #151e32 0%, #0B1120 100%);
  --surface: rgba(255, 255, 255, 0.02);
  --surface-hover: rgba(255, 255, 255, 0.04);
  --surface-solid: #151e32;
  --glass-bg: rgba(15, 23, 42, 0.7);

  --ink: #F8FAFC;
  --ink2: #94A3B8;
  --muted: #64748B;

  /* Brand Colors - AWS Orange Default */
  --hue-primary: 32;
  --accent-primary: #FF9900;
  --accent-secondary: #FFB84D;
  --accent-cta: #2563EB;
  --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  --accent-glow: rgba(255, 153, 0, 0.25);

  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 153, 0, 0.3);

  --footer-bg: #060A14;
  --nav-scrolled-bg: rgba(11, 17, 32, 0.85);
  --nav-border: rgba(255, 255, 255, 0.05);

  /* Typography - Premium Corporate (Latin + CJK fallback) */
  --font-heading: 'Lexend', 'Noto Sans SC', sans-serif;
  --font-body: 'Source Sans 3', 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Border Radius - Soft & Elegant */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Shadows - Deep & Soft */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);

  /* Transitions (Strictly 150ms-300ms as requested) */
  --transition-fast: 150ms ease-out;
  --transition-base: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-dark: #F8FAFC;
  --bg-gradient: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 100%);
  --surface: rgba(255, 255, 255, 0.8);
  --surface-hover: #FFFFFF;
  --surface-solid: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.85);

  --ink: #0F172A;
  --ink2: #475569; /* 4.8:1 contrast on #F8FAFC (AA Compliant) */
  --muted: #64748B;

  --accent-primary: #FF9900;
  --accent-secondary: #E68A00;
  --accent-cta: #2563EB;
  --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  --accent-glow: rgba(255, 153, 0, 0.15);

  --border: rgba(15, 23, 42, 0.08);
  --border-glow: rgba(255, 153, 0, 0.2);

  --footer-bg: #FFFFFF;
  --nav-scrolled-bg: rgba(255, 255, 255, 0.9);
  --nav-border: rgba(15, 23, 42, 0.05);

  /* Softer shadows for light mode */
  --shadow-md: 0 10px 30px -3px rgba(15, 23, 42, 0.05), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 20px 40px -5px rgba(15, 23, 42, 0.08), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Accessibility Focus States */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent-cta);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* Canvas Background */
#particles-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Preloader
   ========================================================================== */
#preloader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: var(--bg-dark);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.text-display {
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: var(--space-md);
}

.text-h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}

.text-h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -0.01em;
}

.text-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink2);
  max-width: 65ch;
  font-weight: 400;
  line-height: 1.85;
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.section-kicker::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* ==========================================================================
   Images & Media
   ========================================================================== */
.img-responsive {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  transition: var(--transition-base);
  border: 1px solid var(--border);
}

.img-responsive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-glow);
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 1;
}

section {
  padding: var(--space-xl) 0;
  position: relative;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   Components
   ========================================================================== */
/* Navigation */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 80px;
  display: flex;
  align-items: center;
  z-index: 100;
  background-color: transparent;
  transition: var(--transition-base);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: var(--nav-scrolled-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  transition: var(--transition-fast);
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: var(--surface-hover);
}

.mobile-menu-toggle span {
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink2);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--ink);
}

/* Theme Toggle & Color Picker */
.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink2);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.theme-toggle:hover {
  background: var(--surface-hover);
  color: var(--ink);
  transform: scale(1.05);
}

[data-theme="light"] .sun-icon { display: none !important; }
[data-theme="light"] .moon-icon { display: block !important; }

.color-picker {
  display: flex;
  gap: 6px;
  align-items: center;
  background: var(--surface);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.color-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s;
}
.color-btn:hover { transform: scale(1.2); }
.color-btn.active { border-color: var(--ink); transform: scale(1.1); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  height: 48px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: #0B1120;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--accent-glow);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--surface-hover);
  border-color: var(--muted);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Glass Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2.5rem;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--surface-hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
  transition: var(--transition-base);
}

.glass-card:hover .card-icon {
  background: var(--accent-primary);
  color: #0B1120;
  border-color: transparent;
  transform: scale(1.05);
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.card-desc {
  color: var(--ink2);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.card-meta {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meta-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.meta-value {
  font-size: 0.9rem;
  color: var(--ink2);
  text-decoration: line-through;
  opacity: 0.6;
}

.meta-outcome {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   Sections
   ========================================================================== */
/* Hero */
.hero {
  padding-top: calc(80px + var(--space-xl));
  padding-bottom: var(--space-lg);
  min-height: 90vh;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 2rem;
  align-items: start;
}

.hero-content {
  max-width: 860px;
  position: relative;
  z-index: 1;
  text-align: left;
}

.hero-badge {
  margin-bottom: var(--space-md);
}

.hero .text-lead {
  margin: 0 0 var(--space-lg);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-start;
  margin-bottom: var(--space-xl);
}

.trusted-by {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: inline-block;
  min-width: 60%;
}

.trusted-label {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.hero-proof {
  padding: 2rem;
  position: sticky;
  top: 108px;
}

.hero-proof-title {
  font-size: 1.35rem;
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

.proof-list {
  display: grid;
  gap: 1rem;
}

.proof-item {
  padding: 1rem 0 1.1rem;
  border-top: 1px solid var(--border);
}

.proof-item:first-child {
  border-top: none;
  padding-top: 0;
}

.proof-metric {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.proof-copy {
  color: var(--ink2);
  font-size: 0.95rem;
}

.proof-band {
  margin-top: 1.75rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  display: grid;
  gap: 0.85rem;
}

.proof-band strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.proof-band span {
  display: block;
  color: var(--ink2);
  font-size: 0.9rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stat {
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  box-shadow: var(--shadow-sm);
}

.hero-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.55rem;
}

.hero-stat-label {
  display: block;
  color: var(--ink2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.logo-strip {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
}

.logo-strip-label {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.logo-strip-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

/* Architecture / Network Diagram Panel */
.arch-panel {
  background: #0F1B33;
  border: 1px solid rgba(255,153,0,0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.arch-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,153,0,0.15);
}

.arch-panel-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FF9900;
  font-weight: 600;
}

.arch-panel-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: #4ADE80;
  font-weight: 500;
}

.arch-panel-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ADE80;
  animation: gentlePulse 2s infinite ease-in-out;
}

.arch-svg { width: 100%; height: auto; display: block; }

/* Problem Section */
.problem-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.problem-card {
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition-fast);
}

.problem-card:hover {
  background: var(--surface-hover);
}

.problem-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.problem-desc {
  color: var(--ink2);
  font-size: 0.95rem;
}

/* Before / After Comparison */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.compare-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.compare-card.before { border-color: rgba(239,68,68,0.25); }
.compare-card.after {
  border-color: rgba(34,197,94,0.3);
  background: linear-gradient(180deg, rgba(34,197,94,0.07) 0%, rgba(34,197,94,0.01) 100%);
}

.compare-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-weight: 600;
}
.compare-card.before .compare-label { color: #EF4444; }
.compare-card.after .compare-label { color: #22C55E; }

.compare-list { display: grid; gap: 0.7rem; }
.compare-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink2);
  line-height: 1.5;
}
.compare-item svg { flex-shrink: 0; margin-top: 3px; }

.compare-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  width: 40px;
  height: 40px;
}

/* Process Section */
.process-section {
  position: relative;
}

.process-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.step-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.step-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent-primary);
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
}

.step-card:hover .step-num {
  background: var(--accent-primary);
  color: #0B1120;
}

.step-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

/* Results */
.results-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.result-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.result-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.85rem);
  color: var(--accent-primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.result-desc {
  font-size: 1rem;
  color: var(--ink2);
}

.proof-quotes {
  margin-top: 2rem;
}

.quote-card {
  padding: 2rem;
}

.quote-label {
  display: inline-flex;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
}

.quote-copy {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.quote-author {
  color: var(--ink2);
  font-size: 0.92rem;
}

/* Avatar Icon (no photos available) */
.avatar-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0B1120;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* CTA */
.cta-section {
  text-align: center;
  padding: var(--space-xl) 0;
  position: relative;
}

.cta-content {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem 2.5rem;
  max-width: 1040px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.cta-content .text-lead {
  margin: 0 auto 2.5rem auto;
}

.cta-mini-stats {
  display: grid;
  gap: 1rem;
}

.contact-section {
  padding-top: 0;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1.5rem;
  align-items: stretch;
}

.contact-copy,
.contact-panel {
  min-height: 100%;
}

.contact-copy {
  padding: 2rem 0;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.contact-link {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 0.15rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-item {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.contact-item:first-child {
  padding-top: 0;
  border-top: none;
}

.contact-label {
  display: inline-flex;
  margin-bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
}

.contact-text {
  color: var(--ink2);
  line-height: 1.8;
  font-size: 0.95rem;
}

.faq-section {
  padding-top: 0;
  padding-bottom: var(--space-xl);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.faq-item {
  padding: 2rem;
}

.faq-title {
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.faq-copy {
  color: var(--ink2);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0 var(--space-md);
  background: var(--footer-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-desc {
  color: var(--muted);
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-heading {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.footer-link {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-primary);
}

.footer-note {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   Animations & Transitions
   ========================================================================== */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: all var(--transition-slow);
}
.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-scale { transform: scale(0.95); }

.is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Skeletons */
.skeleton-card { position: relative; overflow: hidden; }
.skeleton-number, .skeleton-text {
  background: var(--surface-hover);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.skeleton-number { width: 60%; height: 3rem; margin: 0 auto 1rem; }
.skeleton-text { width: 90%; height: 1rem; margin: 0 auto 0.5rem; }
.skeleton-text.short { width: 60%; }

.skeleton-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
}
[data-theme="light"] .skeleton-card::after {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* AI Assistant Widget */
.ai-assistant {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 1rem;
}

.ai-avatar {
  width: 52px; height: 52px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
}
.ai-avatar:hover {
  transform: scale(1.05);
  border-color: var(--accent-primary);
}

.ai-avatar-inner {
  width: 20px; height: 20px;
  background: var(--accent-primary);
  border-radius: 4px;
  animation: gentlePulse 3s infinite ease-in-out;
}

@keyframes gentlePulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.ai-tooltip {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border-bottom-right-radius: 4px;
  max-width: 280px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}

.ai-tooltip.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ai-typing-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink);
}

.ai-typing-text::after {
  content: '|';
  color: var(--accent-primary);
  animation: blink 1s infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-shell {
    grid-template-columns: 1fr;
  }
  .hero-proof {
    position: relative;
    top: auto;
  }
  .logo-strip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .contact-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .compare-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  :root {
    --space-xl: 5rem;
    --space-lg: 3rem;
  }
  .nav-container {
    position: relative;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: min(320px, calc(100vw - 2rem));
    padding: 1rem;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    z-index: 20;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-link {
    display: block;
    padding: 0.35rem 0;
  }
  .color-picker {
    justify-content: center;
  }
  .theme-toggle {
    margin: 0 auto;
  }
  .hero-content {
    text-align: center;
  }
  .hero .text-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: stretch;
  }
  .hero-proof {
    padding: 1.5rem;
  }
  .logo-strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-copy {
    padding: 0;
    text-align: center;
  }
  .contact-actions {
    justify-content: center;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .cta-content { padding: 3rem 1.5rem; border-radius: 0; border-left: none; border-right: none; }
}
