/**
 * AI Robot Assistant - Demo Site Styles
 * 演示页面样式表
 */

/* ==================== CSS Variables ==================== */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(255, 255, 255, 0.3);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a68;
  --accent-blue: #667eea;
  --accent-purple: #764ba2;
  --accent-green: #10b981;
  --accent-pink: #ec4899;
  --accent-orange: #f59e0b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--primary-gradient);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ==================== Navigation Bar ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: white;
}

/* ==================== Nav Actions ==================== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* GitHub Icon */
.nav-github {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  text-decoration: none;
  border-radius: 10px;
}

.nav-github:hover {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.08);
}

/* Language Switcher Button */
.nav-language-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-language-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-language-icon {
  width: 16px;
  height: 16px;
}

.nav-language-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.nav-language.open .nav-language-arrow {
  transform: rotate(180deg);
}

/* Language Container */
.nav-language {
  position: relative;
  display: flex;
  align-items: center;
}

/* Language Dropdown */
.nav-language-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 6px;
  min-width: 140px;
  width: max-content;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  z-index: 1001;
}

.nav-language-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-left: 1px solid rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(229, 231, 235, 0.6);
  transform: rotate(45deg);
}

.nav-language.open .nav-language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nav-language-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nav-language-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0), rgba(102, 126, 234, 0));
  transition: all 0.25s ease;
  border-radius: 10px;
  z-index: -1;
}

.nav-language-item:hover {
  color: #1a1a2e;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.05));
  transform: scale(1.02);
}

.nav-language-item:hover::before {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
}

.nav-language-item.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.1));
  color: #667eea;
  box-shadow: inset 0 0 0 1px rgba(102, 126, 234, 0.2);
}

.nav-language-item.active::before {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
}

.nav-language-flag {
  font-size: 1.125rem;
  filter: grayscale(0);
  transition: all 0.2s ease;
}

.nav-language-item:hover .nav-language-flag {
  filter: grayscale(0);
  transform: scale(1.05);
}

/* Settings Button */
.nav-settings-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-settings-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.nav-settings-btn .nav-settings-icon {
  width: 16px;
  height: 16px;
}

/* ==================== API Config Modal ==================== */
.api-config-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.api-config-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.api-config-modal {
  background: white;
  border-radius: 24px;
  padding: 40px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
}

.api-config-overlay.visible .api-config-modal {
  transform: translateY(0) scale(1);
}

.api-config-header {
  text-align: center;
  margin-bottom: 32px;
}

.api-config-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.api-config-header p {
  color: #6b7280;
  font-size: 0.875rem;
}

/* 模式选择器 */
.mode-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.mode-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-option:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.mode-option.active {
  background: #eff6ff;
  border-color: #3b82f6;
}

.mode-option[data-mode="mock"].active {
  background: #f0fdf4;
  border-color: #10b981;
}

.mode-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mode-option.active .mode-radio {
  border-color: #3b82f6;
  background: #3b82f6;
}

.mode-option[data-mode="mock"].active .mode-radio {
  border-color: #10b981;
  background: #10b981;
}

.mode-radio-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.mode-option.active .mode-radio-inner {
  opacity: 1;
  transform: scale(1);
}

.mode-info {
  flex: 1;
}

.mode-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.mode-desc {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.4;
}

.api-config-form {
  display: none;
  flex-direction: column;
  gap: 24px;
}

.api-config-form.visible {
  display: flex;
}

/* API 表单操作按钮 */
.api-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.api-form-actions.hidden {
  display: none;
}

/* Mock 模式确认按钮 */
.mock-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.mock-confirm-actions.hidden {
  display: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group label .required {
  color: #ef4444;
}

.form-group input {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
  color: #9ca3af;
}

.form-hint {
  font-size: 0.75rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.api-config-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.api-config-btn {
  flex: 1;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.api-config-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.api-config-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.api-config-btn.secondary {
  background: #f3f4f6;
  color: #374151;
}

.api-config-btn.secondary:hover {
  background: #e5e7eb;
}

.api-config-btn:active {
  transform: translateY(0);
}

/* Status Message */
.status-message {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.status-message.success {
  background: #d1fae5;
  color: #065f46;
  display: flex;
}

.status-message.error {
  background: #fee2e2;
  color: #991b1b;
  display: flex;
}

/* ==================== Hero Section ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  position: relative;
}

.hero-content {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  color: white;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: white;
  color: var(--accent-purple);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Robot Showcase */
.hero-robot {
  position: relative;
}

.robot-showcase {
  background: var(--card-bg);
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-border);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  gap: 20px;
  overflow: visible;
  padding-bottom: 40px;
}

/* 机器人展示区域 - 包含机器人和 hint 文本 */
.robot-display-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

/* ==================== 炫光特效 ==================== */
/* 特效容器 - 使用固定定位， centered within robot-showcase */
.showcase-glow-effect {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

/* 旋转光环 - 相对于 showcase-glow-effect 中心定位 */
.glow-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(102, 126, 234, 0.25);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
  animation: glowRingRotate 20s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.glow-ring.ring-1 {
  width: 350px;
  height: 350px;
  border-color: rgba(102, 126, 234, 0.35);
  animation-duration: 20s;
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
}

.glow-ring.ring-2 {
  width: 400px;
  height: 400px;
  border-color: rgba(118, 75, 162, 0.25);
  animation-duration: 25s;
  animation-direction: reverse;
  box-shadow: 0 0 25px rgba(118, 75, 162, 0.35);
}

.glow-ring.ring-3 {
  width: 450px;
  height: 450px;
  border-color: rgba(102, 126, 234, 0.15);
  animation-duration: 30s;
  box-shadow: 0 0 25px rgba(102, 126, 234, 0.25);
}

@keyframes glowRingRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 漂浮光球 */
.floating-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 175, 255, 0.9) 0%, rgba(102, 126, 234, 0.6) 50%, transparent 70%);
  filter: blur(8px);
  animation: floatOrb 8s ease-in-out infinite;
  opacity: 0.6;
}

.floating-orb.orb-1 {
  width: 50px;
  height: 50px;
  top: 0;
  left: 10%;
  animation-delay: 0s;
}

.floating-orb.orb-2 {
  width: 35px;
  height: 35px;
  top: 10%;
  right: 0;
  animation-delay: -2s;
}

.floating-orb.orb-3 {
  width: 45px;
  height: 45px;
  bottom: 0;
  left: 10%;
  animation-delay: -4s;
}

.floating-orb.orb-4 {
  width: 30px;
  height: 30px;
  bottom: 10%;
  right: 0;
  animation-delay: -6s;
}

@keyframes floatOrb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  25% {
    transform: translate(20px, -30px) scale(1.15);
    opacity: 0.75;
  }
  50% {
    transform: translate(-15px, 20px) scale(0.9);
    opacity: 0.55;
  }
  75% {
    transform: translate(30px, 15px) scale(1.05);
    opacity: 0.65;
  }
}

/* 光束效果 */
.light-beam {
  position: absolute;
  width: 1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: beamPulse 4s ease-in-out infinite;
  top: 50%;
  left: 50%;
  transform-origin: center top;
}

.light-beam.beam-1 {
  animation-delay: 0s;
  transform: rotate(30deg) translateY(-80px);
}

.light-beam.beam-2 {
  animation-delay: -1.3s;
  transform: rotate(150deg) translateY(-80px);
}

.light-beam.beam-3 {
  animation-delay: -2.6s;
  transform: rotate(270deg) translateY(-80px);
}

@keyframes beamPulse {
  0%, 100% {
    opacity: 0.25;
    height: 80px;
  }
  50% {
    opacity: 0.6;
    height: 140px;
  }
}

/* 机器人容器 - 确保在特效层之上 */
#hero-robot-container {
  width: 270px;
  height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  animation: robotPulseGlow 3s ease-in-out infinite;
  background: transparent;
}

@keyframes robotPulseGlow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 35px rgba(118, 75, 162, 0.5));
  }
}

#hero-robot-container ai-robot {
  display: block;
  width: 0;
  height: 0;
  opacity: 0;
  visibility: hidden;
  background: transparent !important;
  border: none !important;
  outline: none !important;
}

/* Shadow DOM 宿主元素样式 */
ai-robot::part(host) {
  background: transparent;
  border: none;
}

.robot-hint {
  color: var(--text-secondary) !important;
  font-size: 0.75rem !important;
  text-align: center;
  line-height: 1.6;
  position: relative;
  z-index: 10;
}

/* ==================== Skin Switcher ==================== */
.skin-switcher {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.skin-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.skin-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.skin-btn.active {
  transform: scale(1.15);
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}

/* ==================== Features Section ==================== */
.features-section {
  padding: 100px 20px;
  background: rgba(0, 0, 0, 0.1);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
}

.section-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==================== Usage Section ==================== */
.usage-section {
  padding: 100px 20px;
}

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

.usage-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
}

.usage-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.usage-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.code-wrapper {
  flex: 1;
  min-height: 200px;
  display: flex;
  align-items: stretch;
}

.code-block {
  background: #1a1a2e;
  color: #e0e0e0;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  width: 100%;
  display: block;
}

.code-block .keyword { color: #c792ea; }
.code-block .string { color: #c3e88d; }
.code-block .function { color: #82aaff; }
.code-block .comment { color: #676e95; }

/* ==================== API Section ==================== */
.api-section {
  padding: 100px 20px;
  background: rgba(0, 0, 0, 0.1);
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
}

.api-table th,
.api-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.api-table th {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  font-weight: 600;
}

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

.api-table tr:hover {
  background: rgba(102, 126, 234, 0.05);
}

.api-param {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  background: rgba(102, 126, 234, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--accent-blue);
  font-weight: 600;
}

/* ==================== Footer ==================== */
.footer {
  padding: 60px 20px;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ==================== Scroll Hint ==================== */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s ease-in-out infinite;
}

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

.scroll-arrow {
  font-size: 1.5rem;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .usage-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .nav-links {
    display: none;
  }

  .features-grid,
  .usage-grid {
    grid-template-columns: 1fr;
  }
}
