/* ============================================
   ScienBio 赛恩斯生物 - Design System
   一站式生信分析科研服务平台
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', sans-serif;
  background: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; cursor: pointer; font-family: inherit; }
input { font-family: inherit; }

/* === Design Tokens === */
:root {
  /* 赛恩斯品牌色系 — 科学蓝 + 基因青 */
  --brand: #1a6bbb;
  --brand-dark: #155694;
  --brand-light: #2d8eed;
  --brand-glow: rgba(45, 142, 237, 0.15);
  --accent: #00b8a9;
  --accent-dark: #009e91;
  --accent-glow: rgba(0, 184, 169, 0.15);

  --bg-dark: #0a1628;
  --bg-dark-2: #0f1f38;
  --bg-dark-3: #16294a;
  --bg-light: #f7f9fc;
  --bg-card: #ffffff;
  --bg-muted: #eef2f7;

  --text-primary: #0f1729;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #f8fafc;
  --text-dark-muted: rgba(248, 250, 252, 0.6);

  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-dark: rgba(255,255,255,0.08);

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.12);
  --shadow-brand: 0 8px 24px rgba(26, 107, 187, 0.25);
  --shadow-accent: 0 8px 24px rgba(0, 184, 169, 0.25);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --header-h: 68px;
  --max-w: 1240px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur: 0.3s;
  --dur-fast: 0.15s;
  --dur-slow: 0.5s;
}

/* === Typography === */
.display, h1, h2, h3, h4, h5 { font-family: 'Sora', 'Noto Sans SC', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }
.text-gradient {
  background: linear-gradient(120deg, var(--brand-light) 0%, #5bb0f5 40%, #00b8a9 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.text-gradient-warm {
  background: linear-gradient(120deg, var(--accent) 0%, #00d4c4 50%, #5eead4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* === Layout === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; position: relative; }
.section--dark { background: var(--bg-dark); color: var(--text-inverse); }
.section--muted { background: var(--bg-muted); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.03em;
  background: var(--brand-glow); color: var(--brand);
  margin-bottom: 16px; text-transform: uppercase;
}
.section--dark .section-head .eyebrow { background: rgba(34,211,238,0.12); color: var(--brand-light); }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.0625rem; color: var(--text-secondary); }
.section--dark .section-head p { color: var(--text-dark-muted); }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-weight: 600; font-family: inherit;
  transition: all var(--dur) var(--ease); white-space: nowrap;
}
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(8,145,178,0.35); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.08); color: var(--text-inverse); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.12); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); }
.btn-outline { border: 1.5px solid var(--border); color: var(--text-primary); background: var(--bg-card); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: 0.8125rem; }
.btn-block { width: 100%; }

/* === Header === */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all var(--dur) var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header__inner {
  max-width: var(--max-w); margin: 0 auto; height: 100%;
  padding: 0 24px; display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: #fff;
  box-shadow: 0 4px 12px rgba(8,145,178,0.3);
}
.logo__text { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.1875rem; }
.logo__text span { color: var(--brand); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav__link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-weight: 500; color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease); cursor: pointer; position: relative;
}
.nav__link:hover { color: var(--brand); background: var(--brand-glow); }
.nav__link.active { color: var(--brand); background: var(--brand-glow); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.header__search {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: var(--bg-muted); border-radius: var(--radius-full);
  border: 1px solid var(--border); cursor: pointer; transition: all var(--dur) var(--ease);
  width: 200px;
}
.header__search:hover { border-color: var(--brand); }
.header__search input { border: none; background: none; outline: none; flex: 1; font-size: 0.875rem; color: var(--text-secondary); }
.header__search svg { flex-shrink: 0; color: var(--text-muted); }
.mobile-toggle { display: none; background: none; font-size: 1.5rem; color: var(--text-primary); }

/* === Hero === */
.hero {
  position: relative; min-height: 640px; padding: calc(var(--header-h) + 60px) 0 80px;
  background: linear-gradient(160deg, #0a0f1e 0%, #0d1526 40%, #0a1f2e 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(34,211,238,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(245,158,11,0.08) 0%, transparent 50%);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.04'%3E%3Cpath d='M30 5 L30 55 M5 30 L55 30 M15 15 L45 45 M45 15 L15 45'/%3E%3Ccircle cx='30' cy='30' r='12'/%3E%3Ccircle cx='30' cy='30' r='24'/%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: var(--radius-full);
  background: rgba(34,211,238,0.1); border: 1px solid rgba(34,211,238,0.2);
  font-size: 0.8125rem; font-weight: 600; color: var(--brand-light);
  margin-bottom: 24px;
  animation: fadeUp 0.6s var(--ease) both;
}
.hero__badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-light); animation: pulse 2s infinite; }
.hero h1 { color: #fff; margin-bottom: 24px; animation: fadeUp 0.7s 0.1s var(--ease) both; }
.hero__sub {
  font-size: 1.125rem; color: var(--text-dark-muted); max-width: 640px;
  margin-bottom: 36px; animation: fadeUp 0.7s 0.2s var(--ease) both;
}
.hero__actions { display: flex; gap: 16px; margin-bottom: 48px; animation: fadeUp 0.7s 0.3s var(--ease) both; }
.hero__search-bar {
  display: flex; align-items: center; gap: 12px; max-width: 580px;
  padding: 14px 20px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius);
  backdrop-filter: blur(12px); transition: all var(--dur) var(--ease);
  animation: fadeUp 0.7s 0.4s var(--ease) both;
}
.hero__search-bar:focus-within { border-color: var(--brand-light); background: rgba(255,255,255,0.1); }
.hero__search-bar input { flex: 1; background: none; border: none; outline: none; color: #fff; font-size: 0.9375rem; }
.hero__search-bar input::placeholder { color: rgba(248,250,252,0.4); }
.hero__search-bar svg { color: var(--text-dark-muted); flex-shrink: 0; }

.hero__stats {
  display: flex; gap: 48px; animation: fadeUp 0.7s 0.5s var(--ease) both;
}
.hero__stat { display: flex; flex-direction: column; gap: 4px; }
.hero__stat-val { font-family: 'Sora', sans-serif; font-size: 1.75rem; font-weight: 700; color: #fff; }
.hero__stat-label { font-size: 0.8125rem; color: var(--text-dark-muted); }

.hero__visual {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  width: 360px; height: 360px; opacity: 0.25; pointer-events: none;
}

/* === Stats Bar === */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 40px; background: var(--bg-card);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  margin-top: -60px; position: relative; z-index: 10;
}
.stat-card { text-align: center; padding: 12px; }
.stat-card__val {
  font-family: 'Sora', sans-serif; font-size: 2.25rem; font-weight: 800;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-card__label { font-size: 0.875rem; color: var(--text-secondary); margin-top: 4px; font-weight: 500; }

/* === Category Grid === */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cat-card {
  padding: 28px 20px; background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); text-align: center; cursor: pointer;
  transition: all var(--dur) var(--ease); position: relative; overflow: hidden;
}
.cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--cat-color, var(--brand)); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.cat-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cat-card:hover::before { transform: scaleX(1); }
.cat-card__icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; margin: 0 auto 16px;
  background: color-mix(in srgb, var(--cat-color, var(--brand)) 10%, transparent);
  transition: all var(--dur) var(--ease);
}
.cat-card:hover .cat-card__icon { transform: scale(1.1); }
.cat-card__name { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1.0625rem; margin-bottom: 6px; }
.cat-card__count { font-size: 0.8125rem; color: var(--text-muted); }
.cat-card__desc { font-size: 0.8125rem; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }

/* === Tool Cards === */
.tools-bar {
  display: flex; align-items: center; gap: 16px; margin-bottom: 32px;
  flex-wrap: wrap;
}
.search-box {
  flex: 1; min-width: 280px; display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all var(--dur) var(--ease);
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }
.search-box input { flex: 1; border: none; outline: none; background: none; font-size: 0.9375rem; color: var(--text-primary); }
.search-box input::placeholder { color: var(--text-muted); }

.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: var(--radius-full);
  font-size: 0.8125rem; font-weight: 600; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tool-card {
  padding: 24px; background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); cursor: pointer;
  transition: all var(--dur) var(--ease); position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
}
.tool-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--cat-color, var(--brand)); opacity: 0; transition: opacity var(--dur) var(--ease);
}
.tool-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.tool-card:hover::before { opacity: 1; }
.tool-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tool-card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.375rem;
  background: color-mix(in srgb, var(--cat-color, var(--brand)) 8%, transparent);
  flex-shrink: 0;
}
.tool-card__name { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1rem; line-height: 1.3; }
.tool-card__desc { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.5; flex: 1; }
.tool-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tool-card__uses { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.tool-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  padding: 2px 8px; border-radius: var(--radius-xs);
  font-size: 0.6875rem; font-weight: 600;
  background: var(--bg-muted); color: var(--text-secondary);
}

/* Level badges */
.badge {
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.02em;
}
.badge-free { background: #dcfce7; color: #15803d; }
.badge-vip { background: #fef3c7; color: #b45309; }
.badge-provip { background: #fce7f3; color: #be185d; }
.badge-popular { background: #dbeafe; color: #1d4ed8; }

/* === Dev Status === */
.badge-dev {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fcd34d;
  animation: devPulse 2s ease-in-out infinite;
}
@keyframes devPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0); }
}
.tool-card--dev, .wf-card--dev {
  position: relative;
}
.tool-card--dev::after, .wf-card--dev::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: repeating-linear-gradient(90deg, #f59e0b 0, #f59e0b 8px, #fbbf24 8px, #fbbf24 16px);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.dev-notice {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; margin-bottom: 24px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d; border-radius: var(--radius);
  border-left: 4px solid #f59e0b;
}
.dev-notice__icon { font-size: 1.5rem; flex-shrink: 0; }
.dev-notice strong { display: block; font-size: 0.9375rem; color: #92400e; margin-bottom: 4px; }
.dev-notice p { font-size: 0.8125rem; color: #78350f; line-height: 1.6; margin: 0; }

/* === Featured Tools === */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.featured-card {
  padding: 32px; background: var(--bg-card); border-radius: var(--radius-xl);
  border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: all var(--dur) var(--ease); cursor: pointer;
}
.featured-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-6px); }
.featured-card__glow {
  position: absolute; top: -40px; right: -40px; width: 120px; height: 120px;
  border-radius: 50%; filter: blur(40px); opacity: 0.15;
  background: var(--cat-color, var(--brand));
}
.featured-card__icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 1.75rem;
  margin-bottom: 20px; position: relative; z-index: 1;
  background: color-mix(in srgb, var(--cat-color, var(--brand)) 10%, transparent);
}
.featured-card h3 { margin-bottom: 8px; position: relative; z-index: 1; }
.featured-card p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 20px; position: relative; z-index: 1; }
.featured-card__meta { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.featured-card__dev {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 0.6875rem; font-weight: 700;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e; border: 1px solid #fcd34d;
}

/* === Workflow Cards === */
.wf-cats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.wf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wf-card {
  padding: 28px; border-radius: var(--radius-lg); cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-card);
  transition: all var(--dur) var(--ease); position: relative; overflow: hidden;
}
.wf-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--wf-color, var(--brand));
}
.wf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.wf-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.wf-card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  background: color-mix(in srgb, var(--wf-color, var(--brand)) 10%, transparent);
}
.wf-card__name { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1.0625rem; }
.wf-card__desc { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }
.wf-card__meta { display: flex; align-items: center; gap: 16px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.wf-card__meta-item { display: flex; align-items: center; gap: 4px; font-size: 0.8125rem; color: var(--text-muted); }

/* === Workflow Steps === */
.wf-steps { display: flex; align-items: center; gap: 0; margin: 48px 0; flex-wrap: wrap; justify-content: center; }
.wf-step { display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; flex: 1; min-width: 140px; }
.wf-step__num {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; background: var(--bg-card);
  border: 2px solid var(--brand); color: var(--brand); font-weight: 700;
  position: relative; z-index: 1; transition: all var(--dur) var(--ease);
}
.wf-step:hover .wf-step__num { background: var(--brand); color: #fff; transform: scale(1.1); box-shadow: var(--shadow-brand); }
.wf-step__name { font-size: 0.875rem; font-weight: 600; }
.wf-step__desc { font-size: 0.75rem; color: var(--text-muted); text-align: center; max-width: 120px; }
.wf-step__connector { position: absolute; top: 24px; left: 50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.wf-step:last-child .wf-step__connector { display: none; }

/* === Features Grid === */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  padding: 32px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-dark);
  transition: all var(--dur) var(--ease);
}
.feature-card:hover { background: rgba(255,255,255,0.07); transform: translateY(-4px); border-color: rgba(34,211,238,0.3); }
.feature-card__icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  margin-bottom: 20px; background: rgba(34,211,238,0.1); color: var(--brand-light);
}
.feature-card h3 { color: #fff; margin-bottom: 8px; font-size: 1.125rem; }
.feature-card p { color: var(--text-dark-muted); font-size: 0.875rem; line-height: 1.6; }

/* === Testimonials === */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testi-card {
  padding: 32px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  position: relative; transition: all var(--dur) var(--ease);
}
.testi-card:hover { box-shadow: var(--shadow-lg); }
.testi-card__quote { font-size: 2rem; color: var(--brand); opacity: 0.15; position: absolute; top: 16px; right: 20px; }
.testi-card__text { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.testi-card__author { display: flex; align-items: center; gap: 14px; }
.testi-card__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
}
.testi-card__name { font-weight: 600; font-size: 0.9375rem; }
.testi-card__role { font-size: 0.8125rem; color: var(--text-muted); }

/* === CTA Section === */
.cta-section {
  position: relative; padding: 80px 0; text-align: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0a1f2e 100%);
  overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(34,211,238,0.1) 0%, transparent 60%);
}
.cta-section__inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 0 24px; }
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: var(--text-dark-muted); font-size: 1.0625rem; margin-bottom: 32px; }
.cta-section__actions { display: flex; gap: 16px; justify-content: center; }

/* === Footer === */
.footer { background: var(--bg-dark); color: var(--text-inverse); padding: 64px 0 0; }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer__brand h3 { font-size: 1.25rem; margin-bottom: 12px; }
.footer__brand p { color: var(--text-dark-muted); font-size: 0.875rem; line-height: 1.7; max-width: 280px; }
.footer__col h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 16px; color: var(--text-inverse); }
.footer__col li { margin-bottom: 10px; }
.footer__col a { font-size: 0.8125rem; color: var(--text-dark-muted); transition: color var(--dur-fast); }
.footer__col a:hover { color: var(--brand-light); }
.footer__bottom {
  padding: 24px 0; border-top: 1px solid var(--border-dark);
  display: flex; justify-content: space-between; align-items: center;
}
.footer__bottom p { font-size: 0.8125rem; color: var(--text-dark-muted); }

/* === Page Header === */
.page-header {
  padding: calc(var(--header-h) + 60px) 0 40px;
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(34,211,238,0.08) 0%, transparent 50%);
}
.page-header__inner { position: relative; z-index: 1; }
.page-header h1 { color: #fff; margin-bottom: 12px; }
.page-header p { color: var(--text-dark-muted); font-size: 1.0625rem; max-width: 640px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 0.8125rem; color: var(--text-dark-muted); }
.breadcrumb a:hover { color: var(--brand-light); }

/* === Dashboard === */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 40px 0; }
.dash-sidebar { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.dash-nav { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 12px; }
.dash-nav__item {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-radius: var(--radius-sm); font-size: 0.9375rem; font-weight: 500;
  color: var(--text-secondary); cursor: pointer; transition: all var(--dur-fast) var(--ease);
}
.dash-nav__item:hover { background: var(--bg-muted); color: var(--text-primary); }
.dash-nav__item.active { background: var(--brand-glow); color: var(--brand); font-weight: 600; }
.dash-nav__item .icon { font-size: 1.125rem; }
.dash-content { min-height: 600px; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.dash-stat {
  padding: 24px; background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.dash-stat__val { font-family: 'Sora', sans-serif; font-size: 1.75rem; font-weight: 700; color: var(--brand); }
.dash-stat__label { font-size: 0.8125rem; color: var(--text-muted); margin-top: 4px; }
.dash-panel { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 24px; margin-bottom: 24px; }
.dash-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dash-panel__title { font-family: 'Sora', sans-serif; font-size: 1.125rem; font-weight: 600; }

/* Task table */
.task-table { width: 100%; }
.task-table th, .task-table td { text-align: left; padding: 12px 16px; font-size: 0.875rem; }
.task-table th { color: var(--text-muted); font-weight: 600; border-bottom: 2px solid var(--border); }
.task-table tr { border-bottom: 1px solid var(--border-light); transition: background var(--dur-fast); }
.task-table tr:hover { background: var(--bg-muted); }
.task-status { padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.status-running { background: #fef3c7; color: #b45309; }
.status-done { background: #dcfce7; color: #15803d; }
.status-failed { background: #fee2e2; color: #b91c1c; }
.status-queued { background: #dbeafe; color: #1d4ed8; }

/* === Resources === */
.res-tabs { display: flex; gap: 8px; margin-bottom: 32px; border-bottom: 2px solid var(--border); }
.res-tab { padding: 12px 20px; font-size: 0.9375rem; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--dur-fast); }
.res-tab:hover { color: var(--text-primary); }
.res-tab.active { color: var(--brand); border-color: var(--brand); }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-card {
  padding: 0; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--bg-card); overflow: hidden; cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.course-card__thumb { height: 160px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.course-card__body { padding: 24px; }
.course-card__cat { font-size: 0.75rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.course-card__title { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1.0625rem; margin-bottom: 8px; }
.course-card__desc { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; }
.course-card__meta { display: flex; align-items: center; gap: 16px; font-size: 0.75rem; color: var(--text-muted); }

/* === Partners === */
.partners { display: flex; align-items: center; justify-content: center; opacity: 0.8; }
.partners span { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1.125rem; color: var(--text-inverse); white-space: nowrap; }

/* === Animations === */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.fade-up { animation: fadeUp 0.6s var(--ease) both; }
.stagger > * { animation: fadeUp 0.6s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.4s; }

/* DNA helix decoration */
.dna-deco { position: absolute; pointer-events: none; opacity: 0.08; }

/* View transitions */
.view { display: none; animation: fadeIn 0.4s var(--ease); }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: fadeIn 0.2s var(--ease);
}
.modal {
  background: var(--bg-card); border-radius: var(--radius-xl);
  max-width: 720px; width: 100%; max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow-xl); animation: fadeUp 0.3s var(--ease);
}
.modal__head { padding: 28px 32px 0; display: flex; justify-content: space-between; align-items: flex-start; }
.modal__close { background: none; font-size: 1.5rem; color: var(--text-muted); line-height: 1; }
.modal__body { padding: 24px 32px 32px; }
.modal__steps { display: flex; flex-direction: column; gap: 16px; }
.modal__step { display: flex; gap: 16px; padding: 16px; border-radius: var(--radius); background: var(--bg-muted); }
.modal__step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; flex-shrink: 0; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 3000;
  padding: 16px 24px; background: var(--bg-dark); color: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-xl);
  font-size: 0.875rem; display: flex; align-items: center; gap: 12px;
  animation: fadeUp 0.3s var(--ease);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .wf-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .header__search { display: none; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-toggle { display: block; }
  .nav.open {
    display: flex; flex-direction: column; position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--bg-card); padding: 16px; gap: 4px; overflow-y: auto;
  }
  .hero { min-height: auto; padding-bottom: 60px; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid, .wf-grid, .features-grid, .testi-grid, .course-grid { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .hero__actions { flex-direction: column; }
  .cta-section__actions { flex-direction: column; }
  .wf-steps { flex-direction: column; gap: 24px; }
  .wf-step__connector { display: none; }
}

/* === Utility === */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
