/* ========================================
   CodeAgent 官网样式
   Design System Variables
   ======================================== */

:root {
  /* 品牌色 */
  --color-primary: #1a1a2e;
  --color-secondary: #16213e;
  --color-accent: #0ea5e9;
  --color-accent-alt: #6366f1;
  --color-accent-gradient: linear-gradient(135deg, #0ea5e9, #6366f1);

  /* 文字色 */
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-text-on-dark: #e2e8f0;
  --color-text-on-dark-muted: #94a3b8;

  /* 背景色 */
  --color-bg: #ffffff;
  --color-bg-light: #f8fafc;
  --color-bg-dark: #0f172a;
  --color-bg-card: #ffffff;
  --color-bg-code: #1e293b;

  /* 边框 */
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 30px rgba(14,165,233,0.3);

  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

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

  /* 排版 */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 40px;
  --text-5xl: 48px;
  --text-6xl: 56px;

  /* 过渡 */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* 布局 */
  --max-width: 1200px;
  --nav-height: 72px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-accent-alt);
}

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-tag {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(14,165,233,0.08);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

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

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-light);
  transition: color var(--transition-fast);
}
.nav-links a:hover {
  color: var(--color-primary);
}

.nav-cta {
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-accent-gradient);
  color: white !important;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast) !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f172a 50%, var(--color-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(14,165,233,0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(99,102,241,0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(14,165,233,0.04) 0%, transparent 40%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.3;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl);
}

.hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin-bottom: var(--space-xl);
  color: var(--color-accent);
  animation: hero-icon-float 3s ease-in-out infinite;
}

@keyframes hero-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-logo-img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: contain;
}

.hero-badge {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(14,165,233,0.12);
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(36px, 6vw, var(--text-6xl));
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  color: var(--color-text-on-dark-muted);
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent-gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(14,165,233,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14,165,233,0.4);
  color: white;
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: white;
}

.btn-sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-on-dark-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.hero-scroll .mouse {
  width: 20px;
  height: 32px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  position: relative;
}
.hero-scroll .mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   Features Section
   ======================================== */
.features {
  padding: var(--space-4xl) 0;
  background: var(--color-bg);
}

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

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

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

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(14,165,233,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--color-accent);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Feature tags */
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-md);
}

.feature-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--color-bg-light);
  color: var(--color-text-light);
}

.feature-tag.accent {
  background: rgba(14,165,233,0.08);
  color: var(--color-accent);
}

.feature-tag.purple {
  background: rgba(99,102,241,0.08);
  color: var(--color-accent-alt);
}

.feature-tag.green {
  background: rgba(34,197,94,0.08);
  color: #22c55e;
}

.feature-tag.orange {
  background: rgba(249,115,22,0.08);
  color: #f97316;
}

/* ========================================
   Stats / Trust bar
   ======================================== */
.stats-bar {
  background: var(--color-bg-light);
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
}

.stat-item h3 {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-item h3 .counter-suffix {
  font-size: var(--text-2xl);
}

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

/* ========================================
   Installation Section
   ======================================== */
.installation {
  padding: var(--space-4xl) 0;
  background: var(--color-bg);
}

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

.install-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  transition: all var(--transition-base);
  box-sizing: border-box;
}

.install-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.install-card .method-number {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(14,165,233,0.08);
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.install-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.install-card p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.code-block {
  background: var(--color-bg-code);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.code-block .code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-block .code-header span {
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
  font-family: var(--font-mono);
}

.copy-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--color-text-on-dark-muted);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.copy-btn:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

.copy-btn.copied {
  background: rgba(34,197,94,0.2);
  color: #22c55e;
}

.code-block pre {
  padding: var(--space-md);
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: #e2e8f0;
  line-height: 1.6;
  white-space: pre;
}

/* Installation docs link */
.install-footer {
  text-align: center;
  margin-top: var(--space-2xl);
}

.install-footer p {
  color: var(--color-text-light);
  font-size: var(--text-sm);
}

/* Scroll hint */
.install-scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  color: var(--color-text-light);
  font-size: var(--text-sm);
  animation: hintPulse 2s ease-in-out infinite;
}
.scroll-arrow {
  font-size: var(--text-lg);
  opacity: 0.6;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* macOS DMG Downloads */
.dmg-section {
  margin-top: var(--space-3xl);
  text-align: center;
}

.dmg-divider {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  color: var(--color-text-light);
  font-size: var(--text-sm);
  font-weight: 500;
}

.dmg-divider::before,
.dmg-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.dmg-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.btn-dmg {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-2xl);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--transition-base);
  min-width: 240px;
  justify-content: center;
}

.btn-dmg:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--color-primary);
}

.btn-dmg .dmg-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.3;
}

.btn-dmg .dmg-label strong {
  font-size: var(--text-base);
  font-weight: 700;
}

.btn-dmg .dmg-label small {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  font-weight: 400;
}

.dmg-note {
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* ========================================
   Quick Start Section
   ======================================== */
.quickstart {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-light);
}

.steps {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 56px;
  bottom: -24px;
  width: 2px;
  background: var(--color-border);
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-lg);
  position: relative;
  z-index: 1;
}

.step-content h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.step-content p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.7;
}

.step-content .step-detail {
  margin-top: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.step-content .step-detail code {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  background: var(--color-bg-light);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--color-accent);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(14,165,233,0.08) 0%, transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(99,102,241,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-section p {
  font-size: var(--text-lg);
  color: var(--color-text-on-dark-muted);
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
  position: relative;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  position: relative;
}

.btn-cta {
  background: white;
  color: var(--color-primary) !important;
  border: none;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  color: var(--color-primary) !important;
}

.btn-cta-ghost {
  background: transparent;
  color: white !important;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-cta-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: white !important;
  transform: translateY(-2px);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--color-bg-dark);
  padding: var(--space-3xl) 0 var(--space-xl);
  color: var(--color-text-on-dark-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

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

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: var(--text-lg);
  color: white;
  margin-bottom: var(--space-md);
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: var(--space-3xl);
}

.footer-links-group h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer-links-group a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}
.footer-links-group a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
}

.footer-bottom a {
  color: var(--color-text-on-dark-muted);
}
.footer-bottom a:hover {
  color: var(--color-accent);
}

/* ========================================
   Animations (Scroll Reveal)
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ========================================
   Toast / Tooltip
   ======================================== */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--color-bg-dark);
  color: white;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  opacity: 0;
  transition: all var(--transition-base);
  z-index: 9999;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Install cards switch to horizontal scroll */
  .install-methods {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-md);
  }
  .install-methods::-webkit-scrollbar {
    display: none;
  }
  .install-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
  }
  .install-scroll-hint {
    display: flex;
  }
}

@media (max-width: 768px) {
  :root {
    --text-4xl: 32px;
    --text-5xl: 36px;
    --text-6xl: 40px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--color-border);
  }

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

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    padding: var(--space-3xl) var(--space-md);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .install-methods {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .stats-grid {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .dmg-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-dmg {
    width: 100%;
    max-width: 300px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .step {
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: var(--text-4xl);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

  .section-title {
    font-size: var(--text-3xl);
  }
}

/* ========================================
   Skeleton Loading
   ======================================== */
.skeleton {
  background: linear-gradient(90deg, var(--color-bg-light) 25%, #e8ecf1 50%, var(--color-bg-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

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

/* ========================================
   Print
   ======================================== */
@media print {
  .nav, .hero-scroll, .toast { display: none; }
  .hero { min-height: auto; padding: var(--space-3xl) 0; }
}
