:root {
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-300: #5eead4;
  --brand-500: #14b8a6;
  --brand-600: #0f766e;
  --brand-700: #115e59;
  --ai-300: #c4b5fd;
  --ai-500: #8b5cf6;
  --ai-600: #7c3aed;
  --bg-white: #ffffff;
  --bg-cream: #fafaf9;
  --bg-gray-50: #f5f7fa;
  --bg-gray-900: #0f172a;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --status-stable: #10b981;
  --status-warn: #f59e0b;
  --status-pending: #ff7043;
  --status-urgent: #ef4444;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Manrope,
    Inter,
    "Noto Sans SC",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-gray-900);
  color: white;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.header-inner,
.section-inner,
.footer-inner,
.footer-bottom {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand img {
  width: 150px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--bg-gray-50);
  color: var(--brand-700);
}

.nav-cta {
  margin-left: 8px;
  background: var(--brand-600) !important;
  color: white !important;
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.2);
}

.nav-group {
  position: relative;
}

.nav-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: 160ms ease;
}

.nav-group:hover .nav-popover,
.nav-group:focus-within .nav-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-popover a {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text-primary);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgba(139, 92, 246, 0.18), transparent 30%),
    radial-gradient(circle at 84% 42%, rgba(20, 184, 166, 0.22), transparent 28%),
    var(--bg-cream);
}

.hero .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: 56px;
  min-height: calc(100vh - 72px);
  padding: 80px 0 56px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--brand-700);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-500), var(--ai-500));
  box-shadow: 0 0 0 7px rgba(20, 184, 166, 0.1);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 840px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero p.lede {
  max-width: 720px;
  margin-bottom: 32px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--brand-600);
  color: white;
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.22);
}

.button.secondary {
  border-color: var(--border);
  background: white;
  color: var(--text-primary);
}

.button.ghost {
  background: transparent;
  color: var(--brand-700);
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
}

.trust-bar span {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.hero-visual {
  position: relative;
}

.visual-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
}

.visual-shell img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.visual-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: min(360px, calc(100% - 40px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
}

.visual-badge strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-700);
  font-size: 18px;
}

.visual-badge p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.section {
  padding: 96px 0;
}

.section.cream {
  background: var(--bg-cream);
}

.section.gray {
  background: var(--bg-gray-50);
}

.section.dark {
  background: var(--bg-gray-900);
  color: white;
}

.section.dark .section-title p,
.section.dark .card p,
.section.dark .muted {
  color: rgba(255, 255, 255, 0.72);
}

.section-title {
  max-width: 860px;
  margin-bottom: 46px;
}

.section-title.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-title p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.75;
}

.section-title.center p {
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
    white;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, 0.32);
  box-shadow: var(--shadow);
}

.card.pad {
  padding: 26px;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: 0;
}

.card p {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.content-grid .card:nth-child(1),
.content-grid .card:nth-child(2) {
  min-height: 210px;
}

.content-grid .card:nth-child(3n + 1) {
  background:
    radial-gradient(circle at 88% 10%, rgba(20, 184, 166, 0.13), transparent 30%),
    white;
}

.content-grid .card:nth-child(3n + 2) {
  background:
    radial-gradient(circle at 88% 10%, rgba(139, 92, 246, 0.1), transparent 30%),
    white;
}

.stat-card {
  padding: 24px;
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-700);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
}

.problem-card {
  min-height: 178px;
}

.problem-card .icon,
.mini-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 900;
}

.dark .card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.ai-card {
  position: relative;
  overflow: hidden;
}

.ai-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.22);
  filter: blur(40px);
}

.quote {
  margin-top: 42px;
  padding: 30px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(139, 92, 246, 0.2));
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.35;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 28px;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-secondary);
  line-height: 1.65;
}

.feature-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, var(--brand-500), var(--brand-700)) padding-box,
    linear-gradient(135deg, var(--brand-500), var(--ai-500)) border-box;
  box-shadow: inset 0 0 0 5px white;
}

.ann-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
  border-radius: 28px;
  background:
    radial-gradient(circle at center, rgba(139, 92, 246, 0.2), transparent 30%),
    linear-gradient(145deg, rgba(20, 184, 166, 0.12), rgba(139, 92, 246, 0.12));
}

.ann-panel img {
  width: 156px;
  filter: drop-shadow(0 24px 38px rgba(15, 23, 42, 0.16));
}

.ann-tag {
  position: absolute;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 750;
}

.ann-tag:nth-child(2) {
  left: 28px;
  top: 38px;
}

.ann-tag:nth-child(3) {
  right: 28px;
  top: 132px;
}

.ann-tag:nth-child(4) {
  left: 72px;
  bottom: 56px;
}

.dashboard-mock {
  overflow: hidden;
  border-radius: 26px;
  background: #0f172a;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  color: white;
  font-weight: 800;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  padding: 0 14px 14px;
}

.dashboard-side,
.dashboard-main {
  border-radius: 18px;
  background: white;
}

.dashboard-side {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
}

.dashboard-side span {
  padding: 10px;
  border-radius: 10px;
  background: var(--bg-gray-50);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-main {
  padding: 16px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.metric {
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-gray-50);
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.risk-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.risk-row {
  display: grid;
  grid-template-columns: 70px 1fr 64px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-gray-50);
  color: var(--text-secondary);
  font-size: 14px;
}

.risk-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.risk-dot.green {
  background: var(--status-stable);
}

.risk-dot.orange {
  background: var(--status-pending);
}

.risk-dot.red {
  background: var(--status-urgent);
}

.architecture {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.arch-center {
  grid-column: span 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--brand-50), #f5f3ff);
}

.arch-center img {
  width: 110px;
}

.arch-node {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
}

.scenario-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 22px;
  align-items: center;
  min-height: 260px;
}

.download-card h3 {
  font-size: 24px;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.download-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 800;
}

.qr-box {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.16) 10px, transparent 10px) 0 0 / 30px 30px,
    linear-gradient(rgba(15, 118, 110, 0.16) 10px, transparent 10px) 0 0 / 30px 30px,
    white;
  color: var(--brand-700);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-note {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.08);
  color: #92400e;
  line-height: 1.7;
}

.scenario-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
}

.guard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.guard-card {
  padding: 26px;
  border-radius: 18px;
  background: white;
}

.guard-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-700);
  font-size: 22px;
}

.compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.compare .card {
  padding: 28px;
}

.compare ul,
.table-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.compare li,
.table-list li {
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--bg-gray-50);
  color: var(--text-secondary);
  line-height: 1.55;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.timeline .card {
  position: relative;
  padding: 22px;
}

.timeline strong {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-700);
  font-size: 26px;
}

.page-hero {
  padding: 92px 0 64px;
  background:
    radial-gradient(circle at 76% 12%, rgba(20, 184, 166, 0.16), transparent 28%),
    var(--bg-cream);
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.16;
  letter-spacing: 0;
  text-wrap: balance;
}

.page-hero p {
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.75;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  gap: 28px;
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 750;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: white;
  color: var(--text-primary);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.toast {
  display: none;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 800;
}

.toast.is-visible {
  display: block;
}

.site-footer {
  padding-top: 64px;
  border-top: 1px solid var(--border);
  background: white;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.6fr);
  gap: 64px;
}

.footer-brand img {
  width: 156px;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 360px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.footer-grid h3 {
  margin-bottom: 14px;
  font-size: 15px;
}

.footer-grid a {
  display: block;
  margin: 10px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--brand-700);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  margin-top: 42px;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero .section-inner,
  .split,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .grid.cols-4,
  .grid.cols-3,
  .architecture,
  .timeline,
  .content-grid,
  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arch-center {
    grid-column: span 2;
  }

  .hero .section-inner {
    min-height: auto;
  }
}

@media (max-width: 840px) {
  .menu-button {
    display: inline-block;
  }

  .nav {
    position: fixed;
    inset: 72px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    justify-content: space-between;
  }

  .nav-group {
    width: 100%;
  }

  .nav-popover {
    position: static;
    display: grid;
    min-width: 0;
    margin: 4px 0 10px 14px;
    padding: 0;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-popover a {
    min-height: 34px;
    font-size: 13px;
  }

  .nav-cta {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .section-inner,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 28px, 1280px);
  }

  .section {
    padding: 72px 0;
  }

  .hero .section-inner {
    gap: 32px;
    padding-top: 58px;
  }

  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-2,
  .architecture,
  .timeline,
  .content-grid,
  .download-grid,
  .compare,
  .guard-grid,
  .footer-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .download-card {
    grid-template-columns: 1fr;
  }

  .qr-box {
    width: 100%;
    max-width: 190px;
    height: 190px;
  }

  .arch-center {
    grid-column: span 1;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dashboard-body {
    grid-template-columns: 1fr;
  }

  .actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .footer-bottom {
    justify-content: flex-start;
  }
}
