/* ===========================
   FlashFXP 官方下载站 - 全站样式
   =========================== */

:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;

  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.18);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --gradient: linear-gradient(135deg, #1e40af 0%, #06b6d4 100%);
  --gradient-soft: linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);

  --container: 1200px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

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

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

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #ffffff url("../images/logo.png") center / 88% no-repeat;
  box-shadow: 0 4px 14px rgba(34, 197, 94, .25);
  font-size: 0;
  text-indent: -9999px;
  overflow: hidden;
  flex-shrink: 0;
}

.logo small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: .04em;
}

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

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  transition: all .2s;
}

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

.nav-links a.active {
  color: var(--primary);
  background: #eff6ff;
}

.nav-cta {
  margin-left: 12px;
  padding: 10px 20px !important;
  background: var(--gradient);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(30, 64, 175, .4); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: .3s;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 96px 0 80px;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(6, 182, 212, .18), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(30, 64, 175, .15), transparent 60%),
    var(--gradient-soft);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 64, 175, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 64, 175, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(30, 64, 175, .2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
}

.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .2);
}

.hero h1 {
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 800;
  margin-bottom: 22px;
  color: var(--text);
}

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

.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all .25s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(30, 64, 175, .45); color: #fff; }

.btn-ghost {
  background: rgba(255, 255, 255, .8);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: #fff; transform: translateY(-2px); color: var(--text); }

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--text-light);
  font-size: 14px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--accent); }

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.window {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform .5s;
}
.window:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}
.window-bar .dots { display: flex; gap: 6px; }
.window-bar .dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.window-bar .dots i:nth-child(1) { background: #ef4444; }
.window-bar .dots i:nth-child(2) { background: #f59e0b; }
.window-bar .dots i:nth-child(3) { background: #10b981; }
.window-bar .title { font-size: 12px; color: var(--text-light); margin-left: 8px; }

.window-body { padding: 16px; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 12px;
}

/* Hero software screenshot (clean, no shadow, no tilt) */
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  user-select: none;
}
.pane {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  min-height: 200px;
}
.pane-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-muted);
}
.pane-head .addr {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--text-light);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.file-row .ico { width: 14px; height: 14px; }
.file-row.transfer {
  background: linear-gradient(90deg, rgba(6, 182, 212, .12), transparent);
  border-left: 2px solid var(--accent);
  padding-left: 6px;
}

.transfer-bar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-light);
}
.progress {
  flex: 1;
  height: 6px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  width: 68%;
  background: var(--gradient);
  border-radius: 999px;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .65; }
}

/* ============ Sections ============ */
.section { padding: 88px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: #eff6ff;
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.section h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  color: var(--text);
}
.section h2 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head p { color: var(--text-muted); font-size: 17px; }

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature:hover::before { transform: scaleX(1); }
.feature .ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 15px; line-height: 1.7; }

/* Download cards */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.dl-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: all .3s;
  display: flex;
  flex-direction: column;
}
.dl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

.dl-card.recommended {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, #ecfeff 0%, #fff 40%);
}
.dl-card.recommended::after {
  content: "推荐下载";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(6, 182, 212, .4);
  white-space: nowrap;
}

.dl-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 28px;
  box-shadow: var(--shadow);
}
.dl-logo.quark { background: linear-gradient(135deg, #4f46e5, #06b6d4); }
.dl-logo.xunlei { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.dl-logo.baidu { background: linear-gradient(135deg, #2563eb, #06b6d4); }

.dl-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.dl-card .sub { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }
.dl-card .meta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-light);
}
.dl-card .meta span { display: inline-flex; align-items: center; gap: 4px; }

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  margin-top: auto;
  transition: all .25s;
}
.dl-btn.quark { background: linear-gradient(135deg, #4f46e5, #06b6d4); color: #fff; }
.dl-btn.xunlei { background: linear-gradient(135deg, #1e40af, #3b82f6); color: #fff; }
.dl-btn.baidu { background: linear-gradient(135deg, #2563eb, #06b6d4); color: #fff; }
.dl-btn:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff; }

.dl-link {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-light);
  word-break: break-all;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--bg);
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num {
  font-size: 44px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.02em;
}
.stat .label { color: var(--text-muted); font-size: 15px; margin-top: 4px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 20px; right: 24px;
  font-size: 36px;
  font-weight: 800;
  color: var(--bg-alt);
  letter-spacing: -.04em;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; padding-right: 50px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* Page hero (inner pages) */
.page-hero {
  padding: 64px 0 48px;
  background: var(--gradient-soft);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 64, 175, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 64, 175, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.page-hero-inner { position: relative; text-align: center; }
.page-hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.page-hero p { color: var(--text-muted); font-size: 17px; max-width: 680px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }

/* FAQ / Help */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: all .2s;
}
.faq-item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  color: var(--primary);
  transition: transform .25s;
}
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-body { padding: 0 24px 22px; color: var(--text-muted); font-size: 15px; line-height: 1.8; }
.faq-body p + p { margin-top: 10px; }
.faq-body code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--primary);
}

/* Help categories */
.help-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.help-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all .2s;
}
.help-cat:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.help-cat .ico {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--gradient-soft);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.help-cat h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.help-cat p { color: var(--text-muted); font-size: 14px; }
.help-cat ul { list-style: none; margin-top: 12px; }
.help-cat ul li { padding: 4px 0; }
.help-cat ul li a { font-size: 14px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.help-cat ul li a:hover { color: var(--primary); }

/* Versions */
.version-wrap { max-width: 900px; margin: 0 auto; }
.version-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
  position: relative;
}
.version-item.latest { border-color: var(--accent); }
.version-item.latest::before {
  content: "最新版本";
  position: absolute;
  top: -10px; left: 28px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
}
.version-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}
.version-num { font-size: 22px; font-weight: 800; color: var(--text); }
.version-date { color: var(--text-light); font-size: 14px; }
.version-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 10px;
  vertical-align: middle;
}
.version-tag.new { background: #dcfce7; color: #15803d; }
.version-tag.fix { background: #fef3c7; color: #b45309; }
.version-tag.improve { background: #dbeafe; color: #1e40af; }
.version-body h4 { font-size: 14px; color: var(--text-light); margin: 14px 0 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.version-body ul { list-style: none; }
.version-body ul li {
  padding: 5px 0 5px 22px;
  position: relative;
  color: var(--text-muted);
  font-size: 15px;
}
.version-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.version-body ul li.add::before { background: var(--success); }
.version-body ul li.fix::before { background: var(--warning); }

/* Tutorial */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 32px;
}
.toc h3 { font-size: 14px; color: var(--text-light); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.toc ol { list-style: none; counter-reset: toc; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.toc ol li { counter-increment: toc; }
.toc ol li a {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--text-muted);
  font-size: 14px;
  padding: 6px 0;
}
.toc ol li a::before {
  content: counter(toc);
  color: var(--primary);
  font-weight: 700;
}

.tut-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  scroll-margin-top: 90px;
}
.tut-block h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tut-block h2 .num {
  width: 32px; height: 32px;
  background: var(--gradient);
  color: #fff;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 15px;
}
.tut-block p { color: var(--text-muted); margin-bottom: 12px; line-height: 1.8; }
.tut-block .note {
  background: #eff6ff;
  border-left: 3px solid var(--primary);
  padding: 14px 18px;
  border-radius: 6px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--text);
}
.tut-block .note strong { color: var(--primary); }
.tut-block .tip {
  background: #ecfdf5;
  border-left: 3px solid var(--success);
  padding: 14px 18px;
  border-radius: 6px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--text);
}
.tut-block code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--primary);
}
.tut-block .screenshot {
  margin: 18px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--gradient-soft);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: var(--text-light);
  font-size: 13px;
  position: relative;
  overflow: hidden;
}
.tut-block .screenshot.real {
  aspect-ratio: auto;
  background: #fff;
  padding: 0;
  display: block;
}
.tut-block .screenshot.real img {
  width: 100%;
  height: auto;
  display: block;
}
.tut-block .screenshot .mock-ui {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: center;
}
.about-text h2 { font-size: 32px; font-weight: 800; margin-bottom: 18px; letter-spacing: -.02em; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.85; }
.about-text ul { list-style: none; margin-top: 20px; }
.about-text ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text);
}
.about-text ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 18px; height: 18px;
  background: var(--gradient);
  border-radius: 50%;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / 12px no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / 12px no-repeat;
}

.about-visual {
  background: var(--gradient);
  border-radius: var(--radius-xl);
  padding: 48px;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-xl);
}
.about-visual .big-num { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.about-visual .big-label { font-size: 15px; opacity: .9; margin-top: 6px; }
.about-visual .divider { height: 1px; background: rgba(255,255,255,.2); margin: 24px 0; }
.about-visual .row { display: flex; justify-content: space-around; }
.about-visual .row .item .v { font-size: 26px; font-weight: 700; }
.about-visual .row .item .l { font-size: 12px; opacity: .85; margin-top: 2px; }

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px #eff6ff;
}
.timeline-item .year { font-size: 14px; font-weight: 700; color: var(--primary); }
.timeline-item h3 { font-size: 18px; font-weight: 700; margin: 4px 0 6px; }
.timeline-item p { color: var(--text-muted); font-size: 14px; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value {
  text-align: center;
  padding: 28px;
}
.value .ico {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--gradient-soft);
  color: var(--primary);
  display: grid; place-items: center;
}
.value h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.value p { color: var(--text-muted); font-size: 14px; }

/* CTA */
.cta {
  background: var(--gradient);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.15), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.12), transparent 40%);
}
.cta-inner { position: relative; }
.cta h2 { font-size: 34px; font-weight: 800; margin-bottom: 14px; letter-spacing: -.02em; }
.cta p { font-size: 17px; opacity: .92; margin-bottom: 28px; }
.cta .btn-white {
  background: #fff;
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
}
.cta .btn-white:hover { transform: translateY(-2px); color: var(--primary-dark); }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand .logo small { color: #94a3b8; }
.footer-brand p { font-size: 14px; color: #94a3b8; line-height: 1.8; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #94a3b8; font-size: 14px; transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
}
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: #cbd5e1; }

/* Misc */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 40px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .features, .dl-grid, .stats, .steps, .help-cats, .values { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .section h2, .page-hero h1 { font-size: 32px; }
  .toc ol { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform .3s;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .menu-toggle { display: block; }

  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 16px; }
  .float-badge { display: none; }

  .features, .dl-grid, .stats, .steps, .help-cats, .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta { padding: 40px 24px; }
  .cta h2 { font-size: 26px; }
  .tut-block, .version-item { padding: 22px; }
  .section h2, .page-hero h1 { font-size: 26px; }
  .toc ol { grid-template-columns: 1fr; }
  .stat .num { font-size: 36px; }
}

/* Animated reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
