/* =============================================================
   AI数字人全息仓 - 深紫色科幻风格主样式
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --primary-light: #a78bfa;
  --primary-glow: rgba(124, 58, 237, 0.4);
  --secondary: #06b6d4;
  --secondary-glow: rgba(6, 182, 212, 0.3);
  --accent: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.3);
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #eab308;
  --info: #3b82f6;
  --bg-dark: #0a0015;
  --bg-card: #120022;
  --bg-card-hover: #1a0033;
  --bg-input: #1a0033;
  --bg-sidebar: #0e001a;
  --text-primary: #f0e6ff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-color: rgba(124, 58, 237, 0.2);
  --border-glow: rgba(124, 58, 237, 0.4);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 15px var(--primary-glow);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --font-display: 'Orbitron', monospace;
  --font-body: 'Rajdhani', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 全局重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(124, 58, 237, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===== 粒子背景 ===== */
#particles-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===== 链接 ===== */
a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); text-shadow: 0 0 8px var(--secondary-glow); }

/* ===== 排版 ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
}

h1 { font-size: 2.5rem; background: linear-gradient(135deg, var(--primary-light), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

/* ===== 导航 ===== */
.navbar {
  background: linear-gradient(180deg, rgba(14, 0, 26, 0.95), rgba(14, 0, 26, 0.8));
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.15em;
}

.navbar-nav { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.navbar-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.navbar-nav a::after {
  content: '';
  position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition);
}

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

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

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}
.btn-primary:hover {
  box-shadow: 0 0 25px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #0891b2);
  color: #fff;
  border-color: var(--secondary);
  box-shadow: 0 0 10px var(--secondary-glow);
}
.btn-secondary:hover { box-shadow: 0 0 25px var(--secondary-glow); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; box-shadow: 0 0 15px var(--primary-glow); }

.btn-danger { background: linear-gradient(135deg, var(--danger), #dc2626); color: #fff; }
.btn-danger:hover { box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }
.btn-success { background: linear-gradient(135deg, var(--success), #16a34a); color: #fff; }
.btn-warning { background: linear-gradient(135deg, var(--warning), #ca8a04); color: #000; }
.btn-info { background: linear-gradient(135deg, var(--info), #2563eb); color: #fff; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== 卡片 ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  opacity: 0;
  transition: var(--transition);
}

.card:hover { border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.card:hover::before { opacity: 1; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary-light);
}

.card-body { padding: 0; }

.card-footer {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* ===== 表单 ===== */
.form-group { margin-bottom: 1.2rem; }

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

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

.form-control-sm { padding: 0.4rem 0.7rem; font-size: 0.85rem; }

select.form-control { cursor: pointer; }
select.form-control option { background: var(--bg-card); color: var(--text-primary); }

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

.form-text { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-error { font-size: 0.8rem; color: var(--danger); }
.form-row { display: flex; gap: 1rem; }
.form-row > * { flex: 1; }

/* ===== 表格 ===== */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead { background: rgba(124, 58, 237, 0.1); }

thead th {
  padding: 0.8rem 1rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--primary-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
  color: var(--text-primary);
}

tbody tr:hover { background: rgba(124, 58, 237, 0.05); }
tbody tr:last-child td { border-bottom: none; }

/* ===== 徽章 ===== */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-success { background: rgba(34, 197, 94, 0.15); color: var(--success); border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-warning { background: rgba(234, 179, 8, 0.15); color: var(--warning); border: 1px solid rgba(234, 179, 8, 0.3); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: var(--info); border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-secondary { background: rgba(156, 163, 175, 0.15); color: var(--text-secondary); border: 1px solid rgba(156, 163, 175, 0.3); }
.badge-primary { background: rgba(124, 58, 237, 0.15); color: var(--primary-light); border: 1px solid rgba(124, 58, 237, 0.3); }
.badge-dark { background: rgba(0, 0, 0, 0.3); color: var(--text-muted); border: 1px solid rgba(0, 0, 0, 0.5); }

/* ===== 分页 ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 1.5rem;
}

.page-item { list-style: none; }

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: var(--transition);
  cursor: pointer;
}

.page-link:hover,
.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* ===== 提示 ===== */
.alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.alert-success { background: rgba(34, 197, 94, 0.1); color: var(--success); border-color: rgba(34, 197, 94, 0.3); }
.alert-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); border-color: rgba(239, 68, 68, 0.3); }
.alert-warning { background: rgba(234, 179, 8, 0.1); color: var(--warning); border-color: rgba(234, 179, 8, 0.3); }
.alert-info { background: rgba(59, 130, 246, 0.1); color: var(--info); border-color: rgba(59, 130, 246, 0.3); }

/* ===== 模态框 ===== */
.modal-overlay {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 30px var(--primary-glow);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary-light);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover { color: var(--danger); transform: rotate(90deg); }

.modal-body { padding: 1.5rem; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* ===== 统计卡片 ===== */
.stat-card {
  text-align: center;
  padding: 1.5rem;
}

.stat-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 1px solid var(--border-color);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== 进度条 ===== */
.progress {
  height: 8px;
  background: var(--bg-input);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.5s ease;
}

/* ===== 登录页 ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.login-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 40px var(--primary-glow);
}

.login-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-logo p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

/* ===== 切换开关 ===== */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}

.toggle input:checked + .toggle-slider {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: #fff;
}

/* ===== Tabs ===== */
.tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.tab-item {
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  background: none;
  border-top: none; border-left: none; border-right: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.tab-item:hover { color: var(--text-secondary); }
.tab-item.active { color: var(--primary-light); border-bottom-color: var(--primary); }

/* ===== 网格 ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; display: block; }

/* ===== 加载 ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 搜索栏 ===== */
.search-bar {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-bar .form-control { max-width: 300px; }

/* ===== 操作栏 ===== */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.action-bar-left { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.action-bar-right { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }

/* ===== 工具提示 ===== */
.tooltip {
  position: relative;
  display: inline-block;
}
.tooltip-text {
  visibility: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 10;
  margin-bottom: 0.3rem;
}
.tooltip:hover .tooltip-text { visibility: visible; }

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 0; }
  .search-bar { flex-direction: column; }
  .search-bar .form-control { max-width: 100%; }
  .action-bar { flex-direction: column; align-items: stretch; }
  .action-bar-left, .action-bar-right { justify-content: stretch; }
  .navbar { padding: 0 1rem; }
  .navbar-nav { gap: 1rem; }
  .navbar-nav a { font-size: 0.85rem; }
  .card { padding: 1rem; }
  .login-card { padding: 1.5rem; }
  .modal { width: 95%; margin: 1rem; }
  .stat-value { font-size: 1.5rem; }
  .table-container { font-size: 0.8rem; }
  thead th, tbody td { padding: 0.5rem 0.6rem; }
}

@media (max-width: 480px) {
  .btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
  h1 { font-size: 1.5rem; }
  .login-logo h1 { font-size: 1.4rem; }
}

/* ===== 动画 ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 5px var(--primary-glow); } 50% { box-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow); } }

.animate-fadeIn { animation: fadeIn 0.3s ease-out; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }

/* ===== 进度动画 ===== */
.circular-progress {
  width: 80px; height: 80px;
  position: relative;
}
.circular-progress svg { transform: rotate(-90deg); }
.circular-progress circle {
  fill: none;
  stroke-width: 6;
}
.circular-progress .bg { stroke: var(--bg-input); }
.circular-progress .fg {
  stroke: var(--primary);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}
.circular-progress .value {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

/* ===== Notification Toast ===== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  font-weight: 500;
  animation: slideInRight 0.3s ease-out;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info { border-left: 3px solid var(--info); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== Home page hero ===== */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 2rem;
  position: relative;
}

.hero-content { max-width: 800px; z-index: 1; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 1.5rem; }
.hero-content p { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.8; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== Feature section ===== */
.features-section { padding: 4rem 2rem; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.2rem; }
.section-title p { color: var(--text-muted); margin-top: 0.5rem; }
.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.feature-card .icon {
  width: 70px; height: 70px;
  margin: 0 auto 1.2rem;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.feature-card:hover .icon {
  background: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}
