/* ============================================
   91网浏览器 - Shared Stylesheet
   Modern Web Browser UI Theme (Indigo Style)
   ============================================ */

/* CSS Variables */
:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #4338ca;
  --white: #ffffff;
  --bg-light: #e0e7ff;
  --bg-lighter: #eef2ff;
  --bg-lightest: #f5f7ff;
  --accent-violet: #7c3aed;
  --accent-cyan: #06b6d4;
  --accent-cyan-light: #67e8f9;
  --dark-indigo: #1e1b4b;
  --dark-indigo-light: #312e81;
  --text-dark: #1e1b4b;
  --text-medium: #475569;
  --text-light: #64748b;
  --border-light: #c7d2fe;
  --shadow-sm: 0 1px 2px rgba(30, 27, 75, 0.06);
  --shadow-md: 0 4px 12px rgba(79, 70, 229, 0.12);
  --shadow-lg: 0 12px 32px rgba(79, 70, 229, 0.18);
  --shadow-xl: 0 24px 64px rgba(79, 70, 229, 0.22);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "SF Pro", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-lightest);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* ============================================
   Navigation Bar (Browser Chrome Style)
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark-indigo);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-violet) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
  position: relative;
  overflow: hidden;
}

.nav-logo-icon::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  50% { left: 150%; }
  100% { left: 150%; }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--text-medium);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

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

.nav-menu a.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-violet) 100%);
  color: white;
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-violet) 100%);
  color: white !important;
  padding: 10px 22px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark-indigo);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================
   Browser Window Mockup
   ============================================ */
.browser-window {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.browser-chrome {
  background: linear-gradient(180deg, #f1f5ff 0%, #e8edff 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 12px 0;
}

.browser-tab-bar {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-bottom: 0;
}

.browser-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 10px;
  background: transparent;
  border-radius: 10px 10px 0 0;
  color: var(--text-medium);
  font-size: 0.85rem;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
  max-width: 200px;
}

.browser-tab:hover {
  background: rgba(255, 255, 255, 0.5);
}

.browser-tab.active {
  background: white;
  color: var(--dark-indigo);
  font-weight: 600;
  box-shadow: 0 -2px 6px rgba(79, 70, 229, 0.08);
}

.browser-tab-favicon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent-violet));
  flex-shrink: 0;
}

.browser-tab-favicon.cyan {
  background: linear-gradient(135deg, var(--accent-cyan), var(--primary));
}

.browser-tab-favicon.violet {
  background: linear-gradient(135deg, var(--accent-violet), #ec4899);
}

.browser-tab-close {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.7rem;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.browser-tab-close:hover {
  background: var(--bg-light);
  opacity: 1;
}

.browser-tab-new {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-light);
  font-size: 1rem;
  cursor: pointer;
  margin-left: 4px;
  transition: background 0.2s ease;
}

.browser-tab-new:hover {
  background: rgba(255, 255, 255, 0.6);
}

.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: white;
}

.browser-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-medium);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
}

.browser-nav-btn:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.browser-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.browser-address-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-lightest);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--text-medium);
  transition: all 0.2s ease;
}

.browser-address-bar:hover {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.browser-address-lock {
  width: 14px;
  height: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

.browser-address-url {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-address-url .https {
  color: var(--text-light);
}

.browser-address-url .domain {
  color: var(--dark-indigo);
  font-weight: 500;
}

.browser-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.browser-content {
  background: var(--bg-lightest);
  min-height: 280px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ============================================
   Speed Dial Tiles
   ============================================ */
.speed-dial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 16px;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

.speed-dial-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
  cursor: pointer;
}

.speed-dial-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.speed-dial-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sd-1 { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.sd-2 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.sd-3 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.sd-4 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.sd-5 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.sd-6 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.sd-7 { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.sd-8 { background: linear-gradient(135deg, #ef4444, #f59e0b); }

.speed-dial-label {
  font-size: 0.75rem;
  color: var(--text-medium);
  font-weight: 500;
  text-align: center;
}

/* Bookmark Bar */
.bookmark-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: white;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  overflow-x: auto;
}

.bookmark-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-medium);
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.bookmark-item:hover {
  background: var(--bg-light);
}

.bookmark-icon {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-violet) 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.45);
  color: white;
}

.btn-large {
  padding: 18px 44px;
  font-size: 1.15rem;
  border-radius: 14px;
}

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

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

.btn-cyan {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary) 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.45);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-medium);
}

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

/* ============================================
   Layout Helpers
   ============================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-tight {
  padding: 48px 0;
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-violet) 50%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-indigo);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-medium);
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================
   Feature Cards
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
}

.feature-icon.indigo {
  background: linear-gradient(135deg, var(--primary), var(--accent-violet));
  color: white;
}

.feature-icon.cyan {
  background: linear-gradient(135deg, var(--accent-cyan), var(--primary));
  color: white;
}

.feature-icon.violet {
  background: linear-gradient(135deg, var(--accent-violet), #ec4899);
  color: white;
}

.feature-icon.dark {
  background: linear-gradient(135deg, var(--dark-indigo), var(--primary));
  color: white;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-indigo);
  margin-bottom: 10px;
}

.feature-desc {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   Stats
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-medium);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--dark-indigo);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

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

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: linear-gradient(180deg, var(--bg-lighter) 0%, var(--bg-lightest) 100%);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--dark-indigo);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-medium);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-medium);
}

.hero-meta-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
}

.hero-mockup {
  position: relative;
}

/* ============================================
   Charts
   ============================================ */
.chart-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  align-items: center;
  gap: 16px;
}

.bar-label {
  font-weight: 600;
  color: var(--dark-indigo);
  font-size: 0.95rem;
}

.bar-track {
  height: 32px;
  background: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding-left: 12px;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  transition: width 1s ease-out;
}

.bar-fill.indigo {
  background: linear-gradient(90deg, var(--primary), var(--accent-violet));
}

.bar-fill.cyan {
  background: linear-gradient(90deg, var(--accent-cyan), var(--primary));
}

.bar-fill.gray {
  background: linear-gradient(90deg, #94a3b8, #64748b);
}

.bar-fill.violet {
  background: linear-gradient(90deg, var(--accent-violet), #ec4899);
}

.bar-value {
  font-weight: 700;
  color: var(--dark-indigo);
  font-size: 0.95rem;
  text-align: right;
}

/* Donut Chart */
.donut-chart {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.donut-chart svg {
  transform: rotate(-90deg);
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark-indigo);
  line-height: 1;
}

.donut-label {
  font-size: 0.85rem;
  color: var(--text-medium);
}

/* ============================================
   Download Cards
   ============================================ */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.download-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.download-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.download-card.featured {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, var(--bg-lighter) 0%, white 50%);
}

.download-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent-violet));
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

.download-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  color: white;
}

.di-windows { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.di-mac { background: linear-gradient(135deg, #64748b, #1e1b4b); }
.di-linux { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.di-android { background: linear-gradient(135deg, #10b981, #06b6d4); }
.di-ios { background: linear-gradient(135deg, #06b6d4, #3b82f6); }

.download-platform {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-indigo);
  margin-bottom: 6px;
}

.download-version {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.download-size {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-light);
  color: var(--text-medium);
  border-radius: 12px;
  font-size: 0.8rem;
  margin-bottom: 20px;
}

/* ============================================
   Extension Grid
   ============================================ */
.ext-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.ext-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
  display: flex;
  gap: 16px;
  transition: all 0.3s ease;
}

.ext-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.ext-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  font-weight: 700;
}

.ext-info {
  flex: 1;
}

.ext-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-indigo);
  margin-bottom: 4px;
}

.ext-desc {
  font-size: 0.85rem;
  color: var(--text-medium);
  margin-bottom: 10px;
  line-height: 1.5;
}

.ext-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.ext-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-weight: 600;
}

.ext-installs {
  color: var(--text-light);
}

/* ============================================
   Category Pills
   ============================================ */
.category-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.pill {
  padding: 8px 18px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill:hover, .pill.active {
  background: linear-gradient(135deg, var(--primary), var(--accent-violet));
  color: white;
  border-color: transparent;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

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

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  color: var(--dark-indigo);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  color: var(--text-medium);
  transition: all 0.3s ease;
}

.faq-item.open .faq-answer {
  padding: 0 24px 20px;
  max-height: 300px;
}

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

/* ============================================
   Security Badges
   ============================================ */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.security-badge {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.security-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.badge-shield {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
  color: white;
}

.badge-shield.cyan {
  background: linear-gradient(135deg, var(--accent-cyan), var(--primary));
}

.badge-shield.violet {
  background: linear-gradient(135deg, var(--accent-violet), #ec4899);
}

.badge-shield.green {
  background: linear-gradient(135deg, #10b981, var(--accent-cyan));
}

.badge-title {
  font-weight: 700;
  color: var(--dark-indigo);
  margin-bottom: 6px;
  font-size: 1rem;
}

.badge-desc {
  font-size: 0.8rem;
  color: var(--text-medium);
}

/* ============================================
   Two Column Layout
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Code Block */
.code-block {
  background: var(--dark-indigo);
  color: #c7d2fe;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-x: auto;
}

.code-block .comment {
  color: #818cf8;
}

.code-block .keyword {
  color: #c4b5fd;
}

.code-block .string {
  color: #67e8f9;
}

/* ============================================
   Table
   ============================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.data-table th {
  background: linear-gradient(135deg, var(--primary), var(--accent-violet));
  color: white;
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

.data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--bg-light);
  color: var(--text-medium);
  font-size: 0.95rem;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--bg-lighter);
}

/* ============================================
   Metric Cards
   ============================================ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.metric-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
  text-align: center;
}

.metric-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.metric-label {
  color: var(--text-medium);
  font-size: 0.9rem;
}

.metric-trend {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 8px;
}

.metric-trend.up {
  background: #d1fae5;
  color: #059669;
}

.metric-trend.down {
  background: #fee2e2;
  color: #dc2626;
}

/* ============================================
   Keyboard Shortcuts
   ============================================ */
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.shortcut-item:hover {
  border-color: var(--primary);
  background: var(--bg-lighter);
}

.shortcut-desc {
  color: var(--text-medium);
  font-size: 0.95rem;
}

.shortcut-keys {
  display: flex;
  gap: 4px;
}

.kbd {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 4px 10px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-indigo);
  min-width: 32px;
  text-align: center;
}

/* ============================================
   Doc Section
   ============================================ */
.doc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.doc-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
}

.doc-nav {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border-light);
}

.doc-nav h4 {
  color: var(--dark-indigo);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  margin-top: 8px;
}

.doc-nav h4:first-child {
  margin-top: 0;
}

.doc-nav a {
  display: block;
  padding: 8px 12px;
  color: var(--text-medium);
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.doc-nav a:hover, .doc-nav a.active {
  background: var(--bg-light);
  color: var(--primary);
  font-weight: 600;
}

.doc-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-light);
}

.doc-content h2 {
  font-size: 1.75rem;
  color: var(--dark-indigo);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-light);
}

.doc-content h3 {
  font-size: 1.25rem;
  color: var(--dark-indigo);
  margin: 28px 0 12px;
}

.doc-content p {
  color: var(--text-medium);
  margin-bottom: 16px;
  line-height: 1.8;
}

.doc-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--text-medium);
}

.doc-content li {
  margin-bottom: 8px;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
  background: linear-gradient(180deg, var(--dark-indigo) 0%, var(--primary) 100%);
  color: white;
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 60%);
  border-radius: 50%;
}

.page-header::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 60%);
  border-radius: 50%;
}

.page-header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto;
}

.page-header .section-tag {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* ============================================
   System Requirements
   ============================================ */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.req-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-light);
}

.req-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark-indigo);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.req-card ul {
  list-style: none;
}

.req-card li {
  padding: 8px 0;
  color: var(--text-medium);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px solid var(--bg-lighter);
}

.req-card li:last-child {
  border-bottom: none;
}

.req-card li::before {
  content: "→";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================
   Installation Steps
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border-light);
  position: relative;
  counter-increment: step;
}

.step-card::before {
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 24px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent-violet));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.step-card h4 {
  color: var(--dark-indigo);
  font-size: 1.1rem;
  margin: 12px 0 8px;
}

.step-card p {
  color: var(--text-medium);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   Speed Gauge
   ============================================ */
.speed-gauge {
  position: relative;
  width: 280px;
  height: 160px;
  margin: 0 auto;
  overflow: hidden;
}

.speed-gauge svg {
  width: 100%;
  height: 100%;
}

.speed-needle {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform-origin: bottom center;
  transform: rotate(-60deg);
  transition: transform 1.5s ease-out;
}

.speed-readout {
  text-align: center;
  margin-top: -40px;
}

.speed-readout-value {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.speed-readout-unit {
  color: var(--text-medium);
  font-size: 0.95rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero-content,
  .two-col,
  .two-col-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-light);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero {
    padding: 48px 0;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .page-header {
    padding: 56px 0 48px;
  }

  .page-header h1 {
    font-size: 2.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bar-row {
    grid-template-columns: 100px 1fr 60px;
    gap: 8px;
  }

  .bar-label {
    font-size: 0.85rem;
  }

  .browser-content {
    padding: 20px;
  }

  .doc-content {
    padding: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container, .hero-content, .page-header-content {
    padding: 0 16px;
  }

  .speed-dial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-number {
    font-size: 2rem;
  }
}

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

.fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Utility */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.text-medium { color: var(--text-medium); }
.text-center { text-align: center; }
