﻿:root {
  --ink: #0f172a;
  --muted: #475569;
  --soft: #64748b;
  --line: #d8e3ea;
  --line-strong: #b8c8d3;
  --paper: #ffffff;
  --bg: #f6f9fb;
  --bg-strong: #eaf2f7;
  --teal: #0f766e;
  --teal-2: #14b8a6;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --amber: #f59e0b;
  --orange: #f97316;
  --danger: #dc2626;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(15, 23, 42, .10);
  --font: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
ul, ol { margin: 0; padding-left: 1.25rem; }

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header,
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 249, 251, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav .container,
.nav-shell {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.brand,
.nav-logo {
  display: inline-flex;
  align-items: center;
  min-width: 140px;
}

.brand img { width: 140px; height: auto; }
.nav-logo img { width: 140px; height: auto; }
.nav-logo-text {
  font-size: 23px;
  font-weight: 800;
  color: var(--ink);
}

.site-nav,
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a,
.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  padding: 8px 10px;
  border-radius: var(--radius);
}

.site-nav a:hover,
.nav-link:hover,
.nav-link.active {
  color: var(--teal);
  background: #e7f5f2;
}

.nav-cta,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn,
.btn-orange,
.btn-outline,
.btn-blue,
.btn-submit,
.btn-verify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.btn:hover,
.btn-orange:hover,
.btn-outline:hover,
.btn-blue:hover,
.btn-submit:hover,
.btn-verify:hover {
  transform: translateY(-1px);
}

.btn.primary,
.btn-orange,
.btn-blue,
.btn-submit {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 10px 24px rgba(15, 118, 110, .20);
}

.btn.primary:hover,
.btn-orange:hover,
.btn-blue:hover,
.btn-submit:hover {
  background: #0b5f59;
  border-color: #0b5f59;
}

.btn.secondary,
.btn-outline,
.btn-verify {
  color: var(--ink);
  background: #fff;
  border-color: var(--line-strong);
}

.btn.secondary:hover,
.btn-outline:hover,
.btn-verify:hover {
  color: var(--teal);
  border-color: var(--teal);
  background: #f1fbf9;
}

.btn.ghost {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

.btn.large { min-height: 50px; padding: 0 24px; font-size: 15px; }
.btn.small,
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  margin: 5px 0;
}

.section { padding: 86px 0; }
.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}
.section-head.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: end;
  gap: 32px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.16;
  letter-spacing: 0;
  margin-bottom: 0;
}
h3 { font-size: 19px; line-height: 1.3; margin-bottom: 10px; }
.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 690px;
}
.section-copy,
.section-head p {
  color: var(--muted);
  font-size: 16px;
}

.product-hero {
  padding: 82px 0 70px;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, .10) 1px, transparent 1px),
    linear-gradient(rgba(15, 118, 110, .08) 1px, transparent 1px),
    linear-gradient(135deg, #f8fbfc 0%, #eaf2f7 100%);
  background-size: 48px 48px, 48px 48px, auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 38px;
}
.hero-copy { min-width: 0; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 34px;
}
.hero-art img {
  width: 100%;
  filter: drop-shadow(0 20px 45px rgba(15, 23, 42, .12));
}

.workflow-section { background: #fff; }
.workflow-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.workflow-card img { width: 100%; }
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.process-list article,
.module-block,
.auth-card,
.help-article,
.policy-toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.process-list article { padding: 22px; }
.process-list span {
  display: inline-flex;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 18px;
}
.process-list p,
.module-block p { color: var(--muted); font-size: 14px; margin-bottom: 0; }

.modules-section { background: var(--bg); }
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.module-block {
  position: relative;
  padding: 26px;
  min-height: 268px;
  overflow: hidden;
}
.module-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--teal);
}
.module-block.accent-blue::before { background: var(--blue); }
.module-block.accent-amber::before { background: var(--amber); }
.module-block.accent-slate::before { background: #334155; }
.module-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--teal);
  font-weight: 850;
  margin-bottom: 24px;
}
.accent-blue .module-icon { background: var(--blue); }
.accent-amber .module-icon { background: var(--amber); }
.accent-slate .module-icon { background: #334155; }
.module-block small {
  display: block;
  margin-top: 22px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.5;
}

.security-section {
  background: #102a43;
  color: #fff;
}
.security-section .eyebrow { color: #7dd3fc; }
.security-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: 42px;
  align-items: center;
}
.security-section .section-copy { color: #cbd5e1; }
.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: #99f6e4;
  font-weight: 800;
}
.control-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.12);
}
.control-panel div {
  padding: 24px;
  background: rgba(255,255,255,.06);
}
.control-panel strong {
  display: block;
  font-size: 25px;
  line-height: 1;
  margin-bottom: 10px;
}
.control-panel span { color: #cbd5e1; font-size: 14px; }

.pricing-section { background: #fff; }
.quote-table {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.quote-row {
  display: grid;
  grid-template-columns: 170px 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.quote-row:first-child { border-top: 0; }
.quote-row span {
  padding: 18px 20px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.quote-row span:first-child {
  border-left: 0;
  color: var(--ink);
  font-weight: 800;
}
.quote-row.header span {
  color: #fff;
  background: var(--ink);
  font-weight: 850;
}

.cta-band {
  padding: 58px 0;
  background: linear-gradient(135deg, #dff5ef 0%, #eef7ff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}
.cta-grid h2 { max-width: 760px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer,
.footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 58px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr .7fr 1fr;
  gap: 38px;
}
.footer-logo { width: 176px; padding: 8px; border-radius: var(--radius); background: #fff; margin-bottom: 18px; }
.site-footer p,
.footer p { color: #94a3b8; margin-bottom: 0; }
.site-footer nav,
.site-footer address,
.footer nav,
.footer address {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-style: normal;
}
.site-footer strong,
.footer strong { color: #fff; margin-bottom: 6px; }
.site-footer a,
.footer a { color: #cbd5e1; font-size: 14px; }
.site-footer a:hover,
.footer a:hover { color: #99f6e4; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #94a3b8;
  font-size: 13px;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; color: var(--muted); font-size: 13px; }
.cookie-banner a { color: var(--teal); font-weight: 800; }
.cookie-banner > div { display: flex; gap: 8px; flex-shrink: 0; }

/* Policy pages */
.policy-hero {
  padding: 74px 0 42px;
  background: linear-gradient(135deg, #edf7f5 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--line);
}
.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--teal);
  background: #dff5ef;
  font-size: 12px;
  font-weight: 800;
}
.policy-hero-title {
  font-size: 42px;
  margin: 10px 0 10px;
}
.policy-hero-sub { color: var(--muted); margin: 0; }
.policy-body { padding: 46px 0 76px; background: #fff; }
.policy-body .container {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
}
.policy-toc {
  position: sticky;
  top: 94px;
  padding: 20px;
}
.policy-toc-title {
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 12px;
}
.policy-toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid #eef3f6;
}
.policy-toc a:hover,
.policy-toc a.active { color: var(--teal); }
.policy-content {
  color: var(--muted);
  font-size: 15px;
  max-width: 860px;
}
.policy-content h2 {
  color: var(--ink);
  font-size: 23px;
  padding-top: 28px;
  margin: 12px 0 14px;
}
.policy-content h2:first-child { padding-top: 0; }
.policy-content p { margin-bottom: 14px; }
.policy-content table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.policy-content th,
.policy-content td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.policy-content th {
  color: var(--ink);
  background: #eef7f5;
}
.policy-content li { margin-bottom: 6px; }

/* Auth pages */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #eaf2f7 0%, #f8fafc 100%);
}
.auth-main {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 54px 20px;
}
.auth-card {
  width: min(440px, 100%);
  padding: 34px;
  box-shadow: var(--shadow);
}
.auth-logo,
.auth-logo-text { text-align: center; }
.auth-logo { margin-bottom: 20px; }
.auth-logo-text { color: var(--teal); font-size: 24px; font-weight: 850; }
.auth-title { text-align: center; font-size: 26px; margin-bottom: 8px; }
.auth-sub { color: var(--muted); text-align: center; margin-bottom: 26px; }
.auth-form { display: grid; gap: 16px; }
.form-group { display: grid; gap: 7px; }
.form-label { color: var(--ink); font-size: 13px; font-weight: 800; }
.form-input {
  height: 44px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0 13px;
  outline: none;
  background: #fff;
}
.form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.form-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.form-link,
.auth-link,
.auth-switch a,
.auth-terms a { color: var(--teal); font-weight: 800; }
.auth-switch,
.auth-terms,
.auth-footer-text { color: var(--muted); text-align: center; font-size: 13px; }
.verify-row { display: flex; gap: 10px; }
.verify-row .form-input { flex: 1; }
.input-wrap { position: relative; }
.input-wrap .form-input { padding-right: 70px; }
.input-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}
.auth-error {
  padding: 10px 12px;
  color: var(--danger);
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--radius);
  font-size: 13px;
}

/* Help page */
.help-page { background: var(--bg); }
.help-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}
.help-sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 24px 0;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow: auto;
}
.help-sidebar-title {
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
  padding: 8px 22px;
}
.help-nav-item {
  display: flex;
  gap: 10px;
  padding: 10px 22px;
  color: var(--muted);
  border-left: 3px solid transparent;
  cursor: pointer;
}
.help-nav-item:hover,
.help-nav-item.active {
  color: var(--teal);
  background: #edf7f5;
  border-left-color: var(--teal);
}
.help-nav-num {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: #eef3f6;
  font-size: 11px;
  font-weight: 850;
}
.help-content { padding: 38px; }
.help-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.help-search-input {
  width: 100%;
  border: 0;
  outline: 0;
}
.help-article {
  padding: 34px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}
.help-article-header {
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.help-article-category { color: var(--teal); font-size: 12px; font-weight: 850; }
.help-article-title { font-size: 28px; margin: 6px 0 0; }
.help-section { margin-bottom: 28px; }
.help-section-title {
  font-size: 20px;
  margin-bottom: 10px;
}
.help-section-text { color: var(--muted); }
.help-nav-btns {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.help-nav-btn {
  flex: 1;
  max-width: 48%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
}
.help-nav-btn.next { text-align: right; }
.help-nav-btn .dir { display: block; color: var(--soft); font-size: 12px; }
.help-nav-btn .name { color: var(--ink); font-weight: 800; }

@media (max-width: 1024px) {
  .hero-grid,
  .security-grid,
  .section-head.split,
  .cta-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .process-list,
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .policy-body .container { grid-template-columns: 1fr; }
  .policy-toc { position: static; }
}

@media (max-width: 760px) {
  .shell,
  .container { width: min(100% - 28px, 1180px); }
  .nav-shell,
  .nav .container { height: 64px; }
  .site-nav,
  .nav-menu {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 64px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .nav-cta,
  .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .brand { min-width: 150px; }
  .brand img,
  .nav-logo img { width: 140px; }
  .product-hero { padding: 42px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .process-list,
  .module-grid,
  .control-panel,
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .quote-row { grid-template-columns: 1fr; }
  .quote-row span { border-left: 0; border-top: 1px solid var(--line); }
  .quote-row span:first-child { border-top: 0; }
  .footer-bottom,
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .help-layout { grid-template-columns: 1fr; }
  .help-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .help-content { padding: 22px 14px; }
  .help-article { padding: 22px; }
}
