
:root {
  --bg: #f5f8fc;
  --card: #ffffff;
  --text: #102033;
  --muted: #64748b;
  --line: #d9e4f0;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #0891b2;
  --green: #16a34a;
  --purple: #7c3aed;
  --orange: #f97316;
  --shadow: 0 16px 40px rgba(15, 23, 42, .08);
  --radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(245, 248, 252, .82);
  border-bottom: 1px solid rgba(217, 228, 240, .85);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; }
.logo {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white; box-shadow: var(--shadow);
}
.navlinks { display: flex; gap: 6px; align-items: center; }
.navlinks a {
  text-decoration: none; padding: 10px 12px; border-radius: 12px;
  color: #334155; font-size: 14px; font-weight: 650;
}
.navlinks a:hover { background: #eaf2ff; color: var(--blue); }
.menu-btn {
  display: none; border: 1px solid var(--line); background: white; border-radius: 12px;
  padding: 9px 12px; font-weight: 700;
}
.hero {
  position: relative; overflow: hidden;
  padding: 82px 0 52px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(37,99,235,.14), transparent 26%),
    radial-gradient(circle at 80% 15%, rgba(124,58,237,.12), transparent 25%),
    radial-gradient(circle at 72% 82%, rgba(8,145,178,.10), transparent 28%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 42px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid #bfdbfe; color: #1d4ed8; background: #eff6ff;
  border-radius: 999px; font-weight: 800; font-size: 13px;
}
h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.05; margin: 20px 0 18px; letter-spacing: -1.6px; }
.lead { font-size: 18px; line-height: 1.85; color: var(--muted); max-width: 680px; margin: 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 14px;
  text-decoration: none; border: 1px solid transparent; font-weight: 800;
}
.btn.primary { background: var(--blue); color: white; box-shadow: 0 12px 28px rgba(37,99,235,.22); }
.btn.primary:hover { background: var(--blue-dark); }
.btn.secondary { background: white; border-color: var(--line); color: var(--blue); }
.btn.ghost { background: transparent; border-color: #cbd5e1; color: #334155; }
.hero-card {
  background: rgba(255,255,255,.88); border: 1px solid rgba(217,228,240,.95);
  border-radius: 28px; padding: 18px; box-shadow: var(--shadow);
}
.hero-card img { border-radius: 20px; border: 1px solid var(--line); }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 24px 0 0;
}
.stat {
  background: white; border: 1px solid var(--line); border-radius: 18px; padding: 16px;
}
.stat strong { display: block; font-size: 24px; }
.stat span { color: var(--muted); font-size: 13px; }
.section { padding: 66px 0; }
.section.alt { background: #ffffff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 26px; }
.section-head h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.8px; }
.section-head p { margin: 8px 0 0; color: var(--muted); line-height: 1.7; max-width: 720px; }
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 10px 28px rgba(15,23,42,.05);
}
.card h3 { margin: 12px 0 10px; font-size: 21px; }
.card p, .card li { color: var(--muted); line-height: 1.7; }
.icon {
  width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center;
  background: #eff6ff; color: var(--blue); font-weight: 900;
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.badge { padding: 6px 10px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 800; }
.badge.ok { background: #ecfdf5; color: #15803d; }
.badge.blue { background: #eff6ff; color: #1d4ed8; }
.badge.orange { background: #fff7ed; color: #c2410c; }
.workflow { counter-reset: step; }
.step {
  display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start;
  padding: 18px; border-radius: 18px; background: white; border: 1px solid var(--line);
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--purple)); color: white; font-weight: 900;
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); line-height: 1.7; }
.arch-box {
  background: #0b1220; color: #dbeafe; border-radius: 22px;
  padding: 24px; overflow: auto; border: 1px solid #1e293b; box-shadow: var(--shadow);
}
.arch-box pre { margin: 0; font-family: Consolas, "SFMono-Regular", monospace; line-height: 1.65; min-width: 760px; }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot { background: white; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.shot img { aspect-ratio: 16/10; object-fit: cover; }
.shot div { padding: 16px 18px; }
.shot h3 { margin: 0 0 6px; }
.shot p { margin: 0; color: var(--muted); line-height: 1.6; }
.download-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: white; border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin-bottom: 16px;
}
.download-card h3 { margin: 0 0 8px; }
.download-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.code {
  background: #0b1220; color: #d1fae5; border-radius: 16px; padding: 16px; overflow: auto;
  font-family: Consolas, "SFMono-Regular", monospace; line-height: 1.6; font-size: 14px;
}
.tree {
  background: white; border: 1px solid var(--line); border-radius: 22px; padding: 22px;
}
.tree details { border-left: 3px solid #dbeafe; margin: 10px 0; padding: 4px 0 4px 14px; }
.tree summary { cursor: pointer; font-weight: 800; color: #0f172a; }
.tree p { color: var(--muted); margin: 8px 0 0; line-height: 1.6; }
.timeline { position: relative; display: grid; gap: 16px; }
.timeline-item {
  background: white; border: 1px solid var(--line); border-radius: 20px; padding: 20px;
}
.timeline-item time { color: var(--blue); font-weight: 900; font-size: 13px; }
.timeline-item h3 { margin: 8px 0; }
.footer {
  background: #0b1220; color: #cbd5e1; padding: 40px 0; margin-top: 30px;
}
.footer a { color: white; text-decoration: none; }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mobile-only { display: none; }
@media (max-width: 900px) {
  .container { width: min(100% - 28px, 1180px); }
  .menu-btn { display: inline-flex; }
  .navlinks {
    position: absolute; top: 72px; left: 14px; right: 14px;
    display: none; flex-direction: column; align-items: stretch;
    background: white; border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: var(--shadow);
  }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 13px 14px; }
  .hero { padding: 52px 0 34px; }
  .hero-grid, .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 46px 0; }
  .section-head { display: block; }
  .screens { grid-template-columns: 1fr; }
  .download-card { display: block; }
  .download-card .btn { width: 100%; margin-top: 14px; }
  h1 { letter-spacing: -1px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .card { padding: 20px; }
  .hero-card { padding: 10px; border-radius: 22px; }
}

/* Final portal pages */
.try-link { background: #2563eb !important; color: #fff !important; }
.product-hero .lead { max-width: 760px; }
.page-hero { padding: 74px 0 34px; background: linear-gradient(180deg, #eef6ff, #f8fbff); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; }
.center-actions { justify-content: center; margin-top: 24px; }
.media-frame { min-height: 340px; display: grid; place-items: center; }
.media-frame .text-fallback { padding: 22px; }
.text-fallback h3 { margin: 0 0 10px; font-size: 24px; }
.text-fallback p { color: var(--muted); line-height: 1.8; }
.feature-list { display: grid; gap: 22px; }
.feature-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 26px; padding: 24px; box-shadow: var(--shadow); }
.feature-row.reverse { grid-template-columns: .95fr 1.05fr; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse img { order: 1; }
.feature-copy h3 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 34px); }
.feature-copy p { margin: 0; color: var(--muted); line-height: 1.85; font-size: 16px; }
.feature-row img { border-radius: 20px; border: 1px solid var(--line); aspect-ratio: 16/10; object-fit: cover; background: #f8fafc; }
.feature-row.media-missing { grid-template-columns: 1fr; }
.feature-row.media-missing img { display: none; }
.split-text { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.split-text > div { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: 0 10px 28px rgba(15,23,42,.04); }
.split-text h3 { margin: 0 0 10px; }
.split-text p { color: var(--muted); line-height: 1.75; margin: 0; }
.manual-preview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.manual-preview a { text-decoration: none; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px; font-weight: 800; color: #1f3a5f; }
.manual-preview a:hover { border-color: #93c5fd; color: var(--blue); }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.video-card { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.video-card video { width: 100%; aspect-ratio: 16/9; border-radius: 18px; background: #0b1220; display: block; }
.video-card h3 { margin: 16px 0 8px; font-size: 20px; }
.video-card p { color: var(--muted); line-height: 1.7; margin: 0; }
.manual-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.manual-toc { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 8px; background: white; border: 1px solid var(--line); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); }
.manual-toc a { display: block; text-decoration: none; color: #334155; font-weight: 750; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.manual-toc a:hover { background: #eff6ff; color: var(--blue); }
.manual-content { display: grid; gap: 18px; }
.manual-section { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: 0 10px 28px rgba(15,23,42,.05); scroll-margin-top: 96px; }
.manual-section h2 { margin: 0 0 12px; font-size: 28px; }
.manual-section h3 { margin: 20px 0 8px; }
.manual-section p { margin: 0; color: var(--muted); line-height: 1.85; }
@media (max-width: 900px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-copy, .feature-row.reverse img { order: initial; }
  .split-text, .manual-preview, .video-grid, .manual-layout { grid-template-columns: 1fr; }
  .manual-toc { position: static; }
}
