/* ============================================
   MiniGameToolchain — 共享设计系统
   基于《官网调整执行方案》v1.0 视觉规范
   ============================================ */

/* CSS Variables */
:root {
  /* Brand Colors */
  --primary: #0D8A6F;
  --primary-dark: #0a6e58;
  --primary-light: #e8f5f1;
  --secondary: #1E3A5F;
  --secondary-dark: #162d4a;
  --accent: #F5A623;
  --accent-dark: #d48d1a;

  /* Neutral Colors */
  --text-heading: #1A1A2E;
  --text-body: #4A4A5A;
  --text-muted: #8A8A9A;
  --border-color: #E5E5EA;
  --bg-white: #FFFFFF;
  --bg-light: #F7F8FA;
  --bg-dark: #1A1A2E;

  /* Functional Colors */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;

  /* Typography */
  --font-heading: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 2.25rem;   /* 36px */
  --text-4xl: 3rem;      /* 48px */

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.12);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
}

/* Section */
.section {
  padding: var(--space-20) 0;
}

.section-light {
  background-color: var(--bg-white);
}

.section-dark {
  background-color: var(--bg-dark);
  color: #fff;
}

.section-alt {
  background-color: var(--bg-light);
}

/* Typography */
.text-heading {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); font-weight: 600; }
h3 { font-size: var(--text-2xl); font-weight: 600; }
h4 { font-size: var(--text-xl); font-weight: 500; }

p {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--text-body);
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--text-heading);
}

.navbar-logo img {
  height: 36px;
  width: auto;
}

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

.navbar-nav > li {
  position: relative;
}

.navbar-nav > li > a {
  color: var(--text-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) 0;
  position: relative;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a.active {
  color: var(--primary);
}

.navbar-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-base);
  border-radius: 1px;
}

.navbar-nav > li > a:hover::after,
.navbar-nav > li > a.active::after {
  width: 100%;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: ' ▾';
  font-size: 0.7em;
  opacity: 0.6;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2) 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  list-style: none;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: var(--space-3) var(--space-5);
  color: var(--text-body);
  font-size: var(--text-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* Navbar CTA */
.navbar-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-heading);
  margin: 5px 0;
  transition: var(--transition-base);
  border-radius: 1px;
}

@media (max-width: 1024px) {
  .navbar-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6);
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
  }

  .navbar-nav.open {
    transform: translateX(0);
  }

  .navbar-nav > li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .navbar-nav > li > a {
    display: block;
    padding: var(--space-4) 0;
    font-size: var(--text-lg);
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding-left: var(--space-4);
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .navbar-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 28px;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 138, 111, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--text-body);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: var(--bg-light);
  color: var(--text-heading);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-sm {
  padding: 8px 20px;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--text-base);
}

/* ============================================
   Cards
   ============================================ */

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.card-featured {
  border: 2px solid var(--primary);
  position: relative;
}

.card-badge {
  position: absolute;
  top: -1px;
  right: var(--space-6);
  background: var(--accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(13, 138, 111, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 640px;
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.15;
  margin-bottom: var(--space-5);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: var(--text-3xl);
  }
  .hero-subtitle {
    font-size: var(--text-lg);
  }
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn {
    width: 100%;
  }
}

/* ============================================
   Trust Bar
   ============================================ */

.trust-bar {
  padding: var(--space-8) 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

.trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

/* ============================================
   Grid
   ============================================ */

.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);
}

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

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

/* ============================================
   Section Header
   ============================================ */

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--text-muted);
}

/* ============================================
   Product Cards
   ============================================ */

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-base);
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.product-card-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  font-size: var(--text-2xl);
}

.product-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.product-card .price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary);
  margin: var(--space-4) 0;
}

.product-card .price .unit {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 400;
}

/* ============================================
   Pricing
   ============================================ */

.pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: all var(--transition-base);
  position: relative;
}

.pricing-card:hover {
  box-shadow: var(--shadow-hover);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-price {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-heading);
}

.pricing-price .unit {
  font-size: var(--text-base);
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin: var(--space-6) 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-body);
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

/* ============================================
   Comparison Table
   ============================================ */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-8) 0;
  font-size: var(--text-sm);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text-heading);
}

.comparison-table td:first-child {
  font-weight: 500;
  color: var(--text-heading);
}

.comparison-table .check {
  color: var(--success);
  font-weight: 700;
}

.comparison-table .cross {
  color: var(--text-muted);
}

/* ============================================
   FAQ
   ============================================ */

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-5) 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-heading);
  font-size: var(--text-base);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
  color: var(--text-body);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-top: var(--space-4);
}

.faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: var(--space-4);
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary);
}

/* ============================================
   Testimonials
   ============================================ */

.testimonial {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.testimonial-stars {
  color: var(--accent);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.testimonial-text {
  font-size: var(--text-base);
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author .name {
  font-weight: 600;
  color: var(--text-heading);
  font-size: var(--text-sm);
}

.testimonial-author .role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  background: var(--secondary);
  color: #fff;
  padding: var(--space-20) 0;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--bg-dark);
  color: #fff;
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--text-xl);
  color: #fff;
  margin-bottom: var(--space-4);
}

.footer-brand .logo img {
  height: 32px;
  width: auto;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.footer-column h4 {
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: var(--space-3);
}

.footer-column a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-xs);
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: #fff;
}

.footer-newsletter {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.footer-newsletter input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: var(--text-sm);
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter input:focus {
  outline: none;
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Forms
   ============================================ */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-family: var(--font-body);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background: var(--bg-white);
  color: var(--text-heading);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 138, 111, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Tool Cards
   ============================================ */

.tool-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.tool-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.tool-card-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
}

.tool-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.tool-card .usage-count {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-4);
}

/* ============================================
   Badge & Tag
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 600;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-accent {
  background: rgba(245, 166, 35, 0.15);
  color: var(--accent-dark);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

/* ============================================
   Blog / Docs Sidebar
   ============================================ */

.sidebar {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: var(--space-2);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--bg-white);
  color: var(--primary);
}

.sidebar-nav .section-title {
  font-weight: 600;
  color: var(--text-heading);
  font-size: var(--text-sm);
  padding: var(--space-3);
  margin-top: var(--space-4);
}

/* ============================================
   Breadcrumb
   ============================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .sep {
  color: var(--border-color);
}

/* ============================================
   Page Title
   ============================================ */

.page-title {
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-12);
  background: var(--bg-light);
}

.page-title h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.page-title p {
  font-size: var(--text-xl);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Data Stats
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.stat-item {
  text-align: center;
  padding: var(--space-6);
}

.stat-number {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-2);
}

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

/* ============================================
   Case Study Card
   ============================================ */

.case-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.case-card:hover {
  box-shadow: var(--shadow-hover);
}

.case-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-light);
}

.case-card-content {
  padding: var(--space-6);
}

.case-card .tags {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.case-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.case-card .metrics {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
}

.case-card .metric {
  text-align: center;
}

.case-card .metric .value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary);
}

.case-card .metric .label {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ============================================
   Team Card
   ============================================ */

.team-card {
  text-align: center;
  padding: var(--space-6);
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-4);
  border: 3px solid var(--border-color);
  transition: border-color var(--transition-base);
}

.team-card:hover img {
  border-color: var(--primary);
}

.team-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.team-card .role {
  font-size: var(--text-sm);
  color: var(--primary);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.team-card .bio {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============================================
   Timeline
   ============================================ */

.timeline {
  position: relative;
  padding-left: var(--space-8);
}

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

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) + 4px);
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-date {
  font-size: var(--text-sm);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.timeline-title {
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--space-1);
}

.timeline-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============================================
   Comparison Block
   ============================================ */

.comparison-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.comparison-side {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.comparison-side.vs-ours {
  background: var(--primary-light);
  border: 1px solid var(--primary);
}

.comparison-side h4 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-4);
  color: var(--text-muted);
}

.comparison-side.vs-ours h4 {
  color: var(--primary);
}

.comparison-side ul {
  list-style: none;
}

.comparison-side li {
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.comparison-side li::before {
  content: '•';
  color: var(--text-muted);
}

.comparison-side.vs-ours li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

@media (max-width: 768px) {
  .comparison-block {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Feature Grid
   ============================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-item {
  padding: var(--space-6);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.feature-item h4 {
  margin-bottom: var(--space-2);
}

.feature-item p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Responsive Spacing
   ============================================ */

@media (max-width: 768px) {
  .section {
    padding: var(--space-12) 0;
  }
  .page-title {
    padding: calc(var(--nav-height) + var(--space-10)) 0 var(--space-8);
  }
  .page-title h1 {
    font-size: var(--text-3xl);
  }
  .cta-section h2 {
    font-size: var(--text-2xl);
  }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.pt-4 { padding-top: var(--space-4); }
.pt-8 { padding-top: var(--space-8); }
.pt-12 { padding-top: var(--space-12); }

.pb-4 { padding-bottom: var(--space-4); }
.pb-8 { padding-bottom: var(--space-8); }
.pb-12 { padding-bottom: var(--space-12); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.w-full { width: 100%; }
.max-w-md { max-width: 480px; }
.max-w-lg { max-width: 600px; }
.max-w-xl { max-width: 720px; }
.max-w-2xl { max-width: 900px; }
.max-w-3xl { max-width: 1100px; }

.mx-auto { margin-left: auto; margin-right: auto; }
