:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-soft: #eff6ff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --surface: #f7f9fc;
  --white: #fff;
  --success: #16a34a;
  --error: #ef4444;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }

.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 96px 0; }
.section-soft { background: var(--surface); }

.section-heading { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section-kicker { margin: 0 0 10px; color: var(--primary-dark); font-size: 14px; font-weight: 700; letter-spacing: .12em; }
.section-heading h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 42px); line-height: 1.2; letter-spacing: -.03em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 17px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 231, 235, .8);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
}

.navbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: #374151; font-size: 15px; font-weight: 600; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-links .nav-primary { padding: 9px 18px; color: var(--white); background: var(--primary); border-radius: 8px; }
.nav-links .nav-primary:hover { color: var(--white); background: var(--primary-dark); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; border-radius: 8px; color: var(--text); cursor: pointer; }
.menu-toggle svg { width: 24px; margin: auto; }

.hero { position: relative; overflow: hidden; padding: 92px 0 104px; }
.hero::before { content: ""; position: absolute; width: 480px; height: 480px; right: -220px; top: -220px; border-radius: 50%; background: #eff6ff; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 68px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 6px 12px; color: var(--primary-dark); background: var(--primary-soft); border-radius: 999px; font-size: 14px; font-weight: 700; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--primary); border-radius: 50%; }
.hero h1 { margin: 0 0 22px; font-size: clamp(44px, 6vw, 68px); line-height: 1.08; letter-spacing: -.045em; }
.hero h1 span { display: block; margin-top: 12px; font-size: .62em; font-weight: 700; letter-spacing: -.035em; }
.hero-copy { max-width: 560px; margin: 0 0 32px; color: var(--muted); font-size: 18px; }
.hero-copy strong { display: block; margin-bottom: 4px; color: #374151; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border: 1px solid transparent; border-radius: 8px; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: var(--white); background: var(--primary); }
.btn-primary:hover { color: var(--white); background: var(--primary-dark); }
.btn-secondary { color: #374151; background: var(--white); border-color: var(--border); }
.btn-secondary:hover { color: var(--primary-dark); border-color: #bfdbfe; background: #f8fbff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .58; cursor: not-allowed; transform: none; }

.network-visual { position: relative; width: min(100%, 470px); aspect-ratio: 1; margin-left: auto; }
.network-shell { position: absolute; inset: 8%; border: 1px solid #dbeafe; border-radius: 50%; background: linear-gradient(145deg, #fff, #f5f9ff); box-shadow: var(--shadow); }
.network-ring { position: absolute; inset: 20%; border: 1px dashed #bfdbfe; border-radius: 50%; }
.network-line { position: absolute; left: 50%; top: 50%; width: 31%; height: 1px; background: #bfdbfe; transform-origin: left; }
.line-1 { transform: rotate(-48deg); }
.line-2 { transform: rotate(24deg); }
.line-3 { transform: rotate(130deg); }
.line-4 { transform: rotate(188deg); }
.network-center { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; transform: translate(-50%, -50%); display: grid; place-items: center; border: 8px solid #dbeafe; border-radius: 50%; background: var(--primary); color: white; box-shadow: 0 14px 30px rgba(59, 130, 246, .28); }
.network-center svg { width: 38px; }
.node { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; color: var(--primary-dark); background: var(--white); border: 1px solid #dbeafe; border-radius: 16px; box-shadow: 0 10px 26px rgba(30, 64, 175, .1); }
.node svg { width: 25px; }
.node-1 { left: 18%; top: 14%; }
.node-2 { right: 8%; top: 39%; }
.node-3 { left: 20%; bottom: 8%; }
.node-4 { left: 2%; top: 45%; }
.status-pill { position: absolute; right: 8%; bottom: 15%; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: white; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 24px rgba(15, 23, 42, .08); color: #374151; font-size: 13px; font-weight: 700; }
.status-pill i { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { padding: 30px; background: white; border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-3px); border-color: #bfdbfe; box-shadow: 0 14px 34px rgba(15, 23, 42, .06); }
.icon-box { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 22px; color: var(--primary); background: var(--primary-soft); border-radius: 12px; }
.icon-box svg { width: 25px; }
.feature-card h3 { margin: 0 0 10px; font-size: 20px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }

.download-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.download-card { padding: 26px 22px; text-align: center; background: var(--white); border: 1px solid var(--border); border-radius: 14px; }
.platform-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 18px; color: #374151; background: var(--surface); border-radius: 14px; }
.platform-icon svg { width: 28px; height: 28px; }
.download-card h3 { margin: 0 0 6px; font-size: 18px; }
.download-card p { min-height: 48px; margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.download-card .btn { width: 100%; padding-inline: 12px; }

.cta { padding: 0 0 96px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 46px 52px; color: var(--white); background: #172554; border-radius: 18px; }
.cta-inner h2 { margin: 0 0 6px; font-size: clamp(26px, 4vw, 36px); }
.cta-inner p { margin: 0; color: #cbd5e1; }
.cta .btn { flex: 0 0 auto; color: var(--primary-dark); background: white; }
.cta .btn:hover { background: #eff6ff; }

.site-footer { padding: 28px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--primary); }
.support-contact a { color: var(--primary-dark); font-weight: 600; }

.toast-container { position: fixed; z-index: 1000; top: 20px; right: 20px; display: grid; gap: 10px; pointer-events: none; }
.toast { min-width: 280px; max-width: min(380px, calc(100vw - 40px)); display: flex; align-items: center; gap: 10px; padding: 13px 16px; color: #374151; background: white; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 9px; box-shadow: 0 12px 35px rgba(15, 23, 42, .14); opacity: 0; transform: translateY(-10px); transition: opacity .2s, transform .2s; pointer-events: auto; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--error); }
.toast-icon { flex: 0 0 auto; width: 19px; height: 19px; display: grid; place-items: center; color: white; background: var(--primary); border-radius: 50%; font-size: 12px; font-weight: 800; }
.toast-success .toast-icon { background: var(--success); }
.toast-error .toast-icon { background: var(--error); }

.legal-page { min-height: 100vh; background: var(--surface); }
.legal-header { padding: 22px 0; border-bottom: 1px solid var(--border); background: white; }
.legal-main { padding: 64px 0 90px; }
.legal-card { max-width: 800px; margin: 0 auto; padding: 48px; background: white; border: 1px solid var(--border); border-radius: 14px; }
.legal-card h1 { margin: 0 0 28px; font-size: 36px; line-height: 1.2; }
.legal-card h2 { margin: 28px 0 8px; font-size: 20px; }
.legal-card p, .legal-card li { color: #4b5563; }
.legal-card ul { padding-left: 20px; }
.legal-card .btn { margin-top: 24px; }

@media (max-width: 900px) {
  .hero-grid { gap: 32px; }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { width: min(calc(100% - 32px), 1120px); }
  .section { padding: 72px 0; }
  .menu-toggle { display: block; }
  .nav-links { position: fixed; inset: 73px 0 auto 0; display: grid; gap: 0; padding: 12px 16px 20px; background: white; border-bottom: 1px solid var(--border); box-shadow: 0 14px 25px rgba(15, 23, 42, .08); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .nav-links .nav-primary { margin-top: 6px; text-align: center; }
  .hero { padding: 64px 0 76px; }
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-content { text-align: center; }
  .hero-copy { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .network-visual { width: min(100%, 400px); margin: auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta { padding-bottom: 72px; }
  .cta-inner { align-items: flex-start; flex-direction: column; padding: 36px 30px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .legal-main { padding: 32px 0 64px; }
  .legal-card { padding: 30px 24px; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 42px; }
  .hero-actions .btn { width: 100%; }
  .network-center { width: 78px; height: 78px; }
  .node { width: 46px; height: 46px; border-radius: 13px; }
  .download-grid { grid-template-columns: 1fr; }
  .download-card p { min-height: auto; }
  .toast-container { right: 12px; top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Public home page */
.home-page { color: #172033; }
.home-page .brand, .home-page .section-kicker { letter-spacing: 0; }
.home-page .navbar { max-width: 1220px; }
.home-page .nav-links { gap: 24px; }
.home-hero { padding: 54px 0 48px; text-align: center; background: #f7faff; border-bottom: 1px solid #e8eef7; }
.home-hero-inner { max-width: 900px; }
.hero-logo { width: 50px; height: 50px; margin: 0 auto 8px; }
.hero-brand { margin: 0 0 14px; color: #2563eb; font-size: 17px; font-weight: 800; }
.home-hero h1 { max-width: 820px; margin: 0 auto 16px; color: #14213d; font-size: clamp(42px, 6vw, 66px); line-height: 1.13; letter-spacing: 0; }
.hero-summary { margin: 0 auto 24px; color: #64748b; font-size: 19px; line-height: 1.8; }
.hero-price { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 8px; margin: -8px 0 25px; color: #64748b; }.hero-price[hidden] { display: none; }.hero-price strong { color: #dc2626; font-size: 30px; line-height: 1; }.hero-price small { color: #94a3b8; font-size: 12px; }
.home-hero .hero-actions { justify-content: center; }
.platform-line { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 27px; color: #64748b; font-size: 13px; }
.platform-line span { color: #94a3b8; }.platform-line b { color: #475569; font-weight: 650; }.platform-line i { width: 3px; height: 3px; background: #cbd5e1; border-radius: 50%; }
.home-page .section-heading h2 { letter-spacing: 0; }
.home-page section[id] { scroll-margin-top: 94px; }
.client-preview-section { padding-top: 36px; padding-bottom: 48px; }
.client-preview-section .section-heading { margin-bottom: 24px; }
.client-preview { width: 100%; max-width: 1060px; margin: 0 auto; padding: 14px; background: #f7faff; border: 1px solid #e3e9f2; border-radius: 14px; }
.client-preview-link { display: block; width: fit-content; max-width: 100%; margin-inline: auto; cursor: zoom-in; }
.client-preview img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(60vh, 580px); object-fit: contain; border-radius: 8px; }
.client-preview figcaption { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; padding: 14px 8px 2px; color: #475569; font-size: 13px; }
.client-preview figcaption span { color: #64748b; }
.step-link { display: inline-block; margin-top: 12px; color: #2563eb; font-size: 14px; font-weight: 600; }
.home-page a:focus-visible, .home-page button:focus-visible, .home-page summary:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; border-radius: 4px; }
.home-page .faq-list p a { color: #2563eb; text-decoration: underline; }
@media (max-width: 520px) { .home-hero h1 { overflow-wrap: anywhere; }.client-preview { padding: 6px; border-radius: 10px; }.client-preview-section { padding-block: 32px; }.client-preview img { width: 100%; max-height: none; }.client-preview figcaption { font-size: 12px; } }
.home-steps { display: grid; grid-template-columns: minmax(0,1fr) 32px minmax(0,1fr) 32px minmax(0,1fr); align-items: center; gap: 12px; }
.home-step { min-height: 154px; display: flex; align-items: flex-start; gap: 16px; padding: 26px; background: #fff; border: 1px solid #e3e9f2; border-radius: 8px; }
.home-step > span { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; color: #fff; background: #2563eb; border-radius: 50%; font-weight: 800; }
.home-step h3 { margin: 2px 0 8px; font-size: 18px; }.home-step p { margin: 0; color: #64748b; font-size: 14px; }
.step-arrow { color: #94a3b8; text-align: center; font-size: 24px; }
.simple-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 25px; }.simple-tags span { padding: 7px 12px; color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 6px; font-size: 13px; font-weight: 700; }
.benefit-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.benefit-item { padding: 26px 24px; background: #fff; border: 1px solid #e3e9f2; border-radius: 8px; }.benefit-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; color: #2563eb; background: #eff6ff; border-radius: 8px; font-size: 20px; font-weight: 800; }.benefit-item h3 { margin: 0 0 9px; font-size: 18px; }.benefit-item p { margin: 0; color: #64748b; font-size: 14px; }
.home-plan-wrap { max-width: 600px; margin: 0 auto; }.home-plan-loading { padding: 44px; color: #64748b; text-align: center; border: 1px solid #e3e9f2; border-radius: 8px; }
.home-plan-card { display: grid; grid-template-columns: 1fr auto; gap: 24px 42px; padding: 34px; background: #fff; border: 1px solid #dbe4f0; border-top: 4px solid #2563eb; border-radius: 8px; box-shadow: 0 14px 36px rgba(15,23,42,.07); }
.home-plan-badge { display: inline-block; margin-bottom: 10px; padding: 4px 8px; color: #1d4ed8; background: #eff6ff; border-radius: 5px; font-size: 12px; font-weight: 800; }.home-plan-card h3 { margin: 0 0 5px; font-size: 25px; }.home-plan-subtitle { margin: 0; color: #64748b; }.home-plan-price { align-self: center; text-align: right; }.home-plan-price strong { color: #172033; font-size: 38px; line-height: 1; }.home-plan-price small { color: #64748b; }.home-plan-traffic { grid-column: 1/-1; display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 18px 0; border-top: 1px solid #edf1f5; border-bottom: 1px solid #edf1f5; }.home-plan-traffic strong { font-size: 26px; }.home-plan-traffic span { color: #64748b; font-size: 13px; }.home-plan-scenes { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 8px; }.home-plan-scenes span { padding: 6px 9px; color: #475569; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 5px; font-size: 12px; }.home-plan-card .btn { grid-column: 1/-1; }.all-plans-link { display: block; width: max-content; margin: 22px auto 0; color: #2563eb; font-weight: 700; }
.home-page .download-card { display: flex; flex-direction: column; border-radius: 8px; }.home-page .platform-icon { color: #fff; font-size: 27px; font-weight: 800; }.windows-icon { background: #0ea5e9; }.android-icon { background: #65a30d; }.apple-icon { background: #64748b; }.ios-icon { background: #172033; }.home-page .download-card .btn { margin-top: auto; }.home-page .download-card p { min-height: 44px; }
.faq-container { max-width: 860px; }.faq-list { border-top: 1px solid #e2e8f0; }.faq-list details { border-bottom: 1px solid #e2e8f0; }.faq-list summary { position: relative; padding: 20px 42px 20px 4px; cursor: pointer; list-style: none; color: #263449; font-weight: 750; }.faq-list summary::-webkit-details-marker { display: none; }.faq-list summary::after { content: "+"; position: absolute; right: 8px; top: 15px; color: #2563eb; font-size: 24px; font-weight: 400; }.faq-list details[open] summary::after { content: "−"; }.faq-list details p { margin: -5px 42px 20px 4px; color: #64748b; font-size: 14px; line-height: 1.8; }
.help-cta { padding: 0 0 96px; }.help-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 34px 38px; background: #f7faff; border: 1px solid #dbe4f0; border-radius: 8px; }.help-cta h2 { margin: 0 0 5px; font-size: 25px; }.help-cta p { margin: 0; color: #64748b; }.help-cta-inner > div:last-child { display: flex; gap: 10px; }
.home-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; }.home-footer > div small { display: block; margin-top: 8px; color: #94a3b8; }.home-footer nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 18px; }.home-footer nav a:hover { color: #2563eb; }

@media (max-width: 960px) { .benefit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.home-steps { grid-template-columns: 1fr; }.step-arrow { transform: rotate(90deg); }.home-step { min-height: 0; } }
@media (max-width: 768px) { .home-page .nav-links { gap: 0; }.home-hero { padding: 40px 0 42px; }.hero-logo { width: 44px; height: 44px; }.hero-summary { font-size: 17px; }.help-cta-inner,.home-footer { align-items: flex-start; flex-direction: column; }.home-footer nav { justify-content: flex-start; }.home-plan-card { gap: 20px; }.home-plan-price strong { font-size: 32px; } }
@media (max-width: 520px) { .home-hero h1 { font-size: 39px; }.platform-line { max-width: 330px; margin-inline: auto; }.benefit-grid { grid-template-columns: 1fr; }.home-page .download-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.home-page .download-card { padding: 20px 12px; }.home-page .download-card h3 { font-size: 16px; }.home-page .download-card p { font-size: 12px; }.home-page .download-card .btn { min-height: 42px; padding: 8px 7px; font-size: 12px; }.home-plan-card { grid-template-columns: 1fr; padding: 25px 22px; }.home-plan-price { text-align: left; }.home-plan-traffic,.home-plan-scenes,.home-plan-card .btn { grid-column: 1; }.home-plan-traffic { align-items: flex-start; flex-direction: column; gap: 4px; }.help-cta { padding-bottom: 72px; }.help-cta-inner { padding: 28px 22px; }.help-cta-inner > div:last-child { width: 100%; flex-direction: column; }.help-cta-inner .btn { width: 100%; } }
