*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--Color-bg-base);
  color: var(--Color-text-primary);
  font-family: var(--Type-font-sans), "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: var(--Type-size-body);
  line-height: var(--Type-leading-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--Color-brand-primary); color: var(--Color-brand-onPrimary); }

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--Radius-radius-tag);
}

.container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 7vw, 104px); }
.section--tight { padding-block: clamp(32px, 4vw, 64px); }
.stack { display: flex; flex-direction: column; gap: var(--Spacing-space-4); }
.row { display: flex; align-items: center; gap: var(--Spacing-space-3); flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: var(--Spacing-space-4); }

.kicker {
  font-family: var(--Type-font-mono), ui-monospace, Consolas, monospace;
  font-size: var(--Type-size-mono);
  letter-spacing: .08em;
  color: var(--Color-brand-primary);
  text-transform: uppercase;
}
.h1 {
  font-size: clamp(34px, 5.2vw, var(--Type-size-h1));
  line-height: var(--Type-leading-tight);
  font-weight: 800;
  letter-spacing: -.02em;
}
.h2 {
  font-size: clamp(28px, 3.6vw, var(--Type-size-h2));
  line-height: var(--Type-leading-tight);
  font-weight: 700;
  letter-spacing: -.01em;
}
.h3 { font-size: var(--Type-size-h3); font-weight: 700; line-height: 1.35; }
.lede { font-size: clamp(15px, 1.3vw, 18px); color: var(--Color-text-secondary); max-width: 78ch; }
.muted { color: var(--Color-text-muted); }
.secondary { color: var(--Color-text-secondary); }
.mono { font-family: var(--Type-font-mono), ui-monospace, Consolas, monospace; }
.signal { color: var(--Color-brand-primary); }
.divider { height: 1px; background: var(--Color-glass-stroke); border: 0; }
.section-head { display: flex; flex-direction: column; gap: var(--Spacing-space-3); margin-bottom: var(--Spacing-space-8); }

.grid { display: grid; gap: var(--Spacing-space-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.aurora {
  position: absolute;
  width: 820px; height: 820px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(var(--Elevation-blur-aurora));
  background: radial-gradient(circle, color-mix(in srgb, var(--Color-brand-aurora) 16%, transparent) 0%, transparent 68%);
}
.aurora--left { top: -420px; left: -420px; }
.aurora--right { top: 180px; right: -460px;
  background: radial-gradient(circle, color-mix(in srgb, var(--Color-brand-primary) 14%, transparent) 0%, transparent 66%); }
.page { position: relative; isolation: isolate; }
.page > .container { position: relative; z-index: 1; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--Color-glass-fill);
  border-bottom: 1px solid var(--Color-glass-stroke);
  backdrop-filter: blur(var(--Elevation-blur-nav));
  -webkit-backdrop-filter: blur(var(--Elevation-blur-nav));
}
.nav__inner {
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--Spacing-space-6);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand__mark {
  position: relative; width: 28px; height: 28px; flex: none;
  border: 1px solid var(--Color-brand-primary);
  border-radius: 50%;
  transform: rotate(-24deg);
}
.brand__mark::before {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid var(--Color-brand-aurora); border-radius: 50%;
  opacity: .8;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 11px;
  background: var(--Color-brand-primary); border-radius: 50%;
  box-shadow: 0 0 10px var(--Color-brand-primary);
}
.nav__links { display: flex; align-items: center; gap: var(--Spacing-space-6); }
.nav__links a { font-size: 15px; color: var(--Color-text-secondary); transition: color .2s ease; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--Color-text-primary); }
.nav__actions { display: flex; align-items: center; gap: var(--Spacing-space-4); }
.nav__toggle { display: none; }

.theme-toggle {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--Color-glass-stroke);
  background: var(--Color-glass-fill);
  color: var(--Color-text-primary);
  font-size: 18px;
  line-height: 1;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.theme-toggle:hover { color: var(--Color-brand-primary); border-color: var(--Color-brand-primary); transform: rotate(18deg); }

.footer { border-top: 1px solid var(--Color-glass-stroke); padding-block: var(--Spacing-space-12) var(--Spacing-space-8); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--Spacing-space-8); }
.footer__title { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--Color-text-muted); margin-bottom: var(--Spacing-space-3); }
.footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--Color-text-secondary); }
.footer__links a:hover { color: var(--Color-brand-primary); }
.footer__bottom {
  margin-top: var(--Spacing-space-12); padding-top: var(--Spacing-space-4);
  border-top: 1px solid var(--Color-glass-stroke);
  display: flex; justify-content: space-between; gap: var(--Spacing-space-4); flex-wrap: wrap;
  font-size: 12px; color: var(--Color-text-muted);
}
.footer__rule {
  height: 2px; border-radius: 2px; margin-bottom: var(--Spacing-space-8);
  background: linear-gradient(90deg, transparent, var(--Color-brand-primary) 42%, var(--Color-brand-aurora) 62%, transparent);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 14px 30px;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  font-size: 16px; font-weight: 600; line-height: 1.2;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn--sm { min-height: 40px; padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn__arrow { font-family: var(--Type-font-mono), monospace; }

.btn-primary { background: var(--Color-brand-primary); color: var(--Color-brand-onPrimary); }
.btn-primary:hover { background: var(--Color-brand-primaryHover); box-shadow: var(--btn-glow); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--Color-glass-fill); color: var(--Color-text-primary);
  border-color: var(--Color-glass-stroke);
}
.btn-secondary:hover { border-color: var(--Color-brand-primary); color: var(--Color-brand-primary); }

.btn-outline { background: transparent; color: var(--Color-text-primary); border-color: var(--Color-glass-stroke); }
.btn-outline:hover { border-color: var(--Color-brand-primary); color: var(--Color-brand-primary); }

.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--Color-glass-fill);
  color: var(--Color-text-muted);
  border-color: var(--Color-glass-stroke);
  box-shadow: none; transform: none; cursor: not-allowed; opacity: .9;
}

.glass {
  background: var(--Color-glass-fill);
  border: 1px solid var(--Color-glass-stroke);
  border-radius: var(--Radius-radius-section);
  backdrop-filter: blur(var(--Elevation-blur-glass));
  -webkit-backdrop-filter: blur(var(--Elevation-blur-glass));
  box-shadow: var(--glass-shadow), var(--glass-highlight);
}
.panel { padding: clamp(24px, 3vw, 36px); }
.card { padding: 28px; border-radius: var(--Radius-radius-panel); display: flex; flex-direction: column; gap: 14px; }
.card:hover { border-color: color-mix(in srgb, var(--Color-brand-primary) 45%, var(--Color-glass-stroke)); }
.card__index { font-family: var(--Type-font-mono), monospace; font-size: 11px; color: var(--Color-text-secondary); }
.card__title { font-size: 22px; font-weight: 700; }
.card__body { font-size: 14px; color: var(--Color-text-secondary); line-height: 1.7; }

.card--featured {
  border-color: color-mix(in srgb, var(--Color-brand-primary) 40%, transparent);
  background: color-mix(in srgb, var(--Color-brand-primary) 6%, var(--Color-glass-fill));
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}
.card--featured .badge--accent-soft {
  color: var(--Color-brand-primary);
  background: color-mix(in srgb, var(--Color-brand-primary) 14%, transparent);
  border-color: color-mix(in srgb, var(--Color-brand-primary) 35%, transparent);
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--Radius-radius-pill);
  border: 1px solid transparent;
  font-family: var(--Type-font-mono), ui-monospace, Consolas, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
  white-space: nowrap;
}
.badge--status { background: var(--Color-glass-fill); border-color: var(--Color-glass-stroke); color: var(--Color-brand-primary); }
.badge--neutral { border-color: var(--Color-glass-stroke); color: var(--Color-text-secondary); }
.badge--accent { background: var(--Color-brand-primary); color: var(--Color-brand-onPrimary); }
.badge--accent-soft { border: 1px solid; }
.badge--aurora {
  background: color-mix(in srgb, var(--Color-brand-aurora) 12%, transparent);
  border-color: var(--Color-glass-stroke); color: var(--Color-text-primary);
}
.badge--success { color: var(--Color-semantic-success); background: color-mix(in srgb, var(--Color-semantic-success) 10%, transparent); }
.badge--warning { color: var(--Color-semantic-warning); background: color-mix(in srgb, var(--Color-semantic-warning) 10%, transparent); }
.badge--error   { color: var(--Color-semantic-error);   background: color-mix(in srgb, var(--Color-semantic-error) 10%, transparent); }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px; border-radius: var(--Radius-radius-pill);
  background: var(--Color-glass-fill); border: 1px solid var(--Color-glass-stroke);
  font-family: var(--Type-font-mono), monospace; font-size: 12px;
  color: var(--Color-text-secondary);
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--Color-brand-primary); box-shadow: 0 0 8px var(--Color-brand-primary); }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--Spacing-space-6); }
.metric { display: flex; flex-direction: column; gap: 8px; }
.metric__value {
  font-family: var(--Type-font-mono), ui-monospace, Consolas, monospace;
  font-size: clamp(30px, 3.2vw, 42px); font-weight: 700; line-height: 1.05;
  letter-spacing: -.02em;
}
.metric__label { font-size: 13px; color: var(--Color-text-muted); }
.metric__delta { font-family: var(--Type-font-mono), monospace; font-size: 12px; color: var(--Color-brand-primary); }
.metric-card { padding: 16px; border-radius: var(--Radius-radius-card); }
.metric-card .metric__value { font-size: 26px; }

.console { padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 20px; }
.console__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.console__dots { display: flex; gap: 6px; }
.console__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--Color-glass-stroke); }
.console__dots i:first-child { background: var(--Color-brand-primary); }
.command {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 20px;
  border-radius: 18px;
  background: var(--Color-glass-fill);
  border: 1px solid var(--Color-glass-stroke);
}
.command input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: var(--Color-text-primary); font-size: 15px;
}
.command input::placeholder { color: var(--Color-text-muted); }
.node-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-radius: 16px;
  background: var(--Color-glass-fill); border: 1px solid var(--Color-glass-stroke);
  font-size: 14px;
}
.node-row__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--Color-brand-primary); flex: none; }
.node-row__name { flex: 1; }
.node-row__time { font-family: var(--Type-font-mono), monospace; font-size: 12px; color: var(--Color-text-muted); }

.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline__event {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 4px;
  font-size: 14px;
}
.timeline__time { font-family: var(--Type-font-mono), monospace; font-size: 12px; color: var(--Color-text-muted); min-width: 72px; }
.timeline__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--Color-brand-primary); flex: none; }
.timeline__body { flex: 1; }
.timeline__event[data-emphasis="true"] .timeline__time { color: var(--Color-brand-primary); }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  padding: 20px 24px; border-radius: var(--Radius-radius-card);
  background: var(--Color-glass-fill); border: 1px solid var(--Color-glass-stroke);
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--Color-brand-primary); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; font-size: 14px; color: var(--Color-text-secondary); line-height: 1.75; }

.price-card { display: flex; flex-direction: column; gap: 18px; padding: 32px; }
.price-card--featured { border-color: color-mix(in srgb, var(--Color-brand-primary) 55%, transparent); box-shadow: var(--btn-glow); }
.price-card__price { font-family: var(--Type-font-mono), monospace; font-size: 42px; font-weight: 700; line-height: 1; }
.price-card__price small { font-size: 14px; font-weight: 400; color: var(--Color-text-muted); }
.price-card ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--Color-text-secondary); }
.price-card li { display: flex; gap: 10px; }
.price-card li::before { content: "✓"; color: var(--Color-brand-primary); flex: none; }
.price-card .btn { margin-top: auto; }

.scenario-card { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.scenario-card__metric { font-family: var(--Type-font-mono), monospace; font-size: 34px; font-weight: 700; color: var(--Color-brand-primary); }
.scenario-card a { font-size: 13px; color: var(--Color-brand-primary); }
.case-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.case-card__quote { font-size: 15px; line-height: 1.75; }
.case-card__meta { font-size: 12px; color: var(--Color-text-muted); }

.trust-row { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; font-size: 13px; color: var(--Color-text-muted); }
.trust-row b { color: var(--Color-text-secondary); font-weight: 600; letter-spacing: .04em; }

.cta {
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--Color-brand-primary) 18%, transparent), transparent 70%),
    var(--Color-glass-fill);
  border: 1px solid var(--Color-glass-stroke);
  border-radius: var(--Radius-radius-section);
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  background: var(--Color-glass-fill);
  border-top: 1px solid var(--Color-glass-stroke);
  backdrop-filter: blur(var(--Elevation-blur-nav));
  -webkit-backdrop-filter: blur(var(--Elevation-blur-nav));
}

@media (min-width: 640px) and (max-width: 1199px) {
  :root { --gutter: 40px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .swatch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .nav__links, .nav__actions .nav__login { display: none !important; }
  .nav__inner { position: relative; gap: 0; }
  .nav__actions {
    position: absolute; right: var(--gutter); top: 9px;
    display: flex; align-items: center; gap: 8px; margin-left: auto; z-index: 2;
  }
  .nav__toggle {
    display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    width: 38px; height: 38px; flex: none;
    border-radius: 12px; border: 1px solid var(--Color-glass-stroke);
    background: var(--Color-glass-fill); color: var(--Color-text-primary);
  }
  .nav__toggle span { display: block; width: 16px; height: 1.5px; border-radius: 2px; background: currentColor; }
  .nav__links.is-open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 20px;
    background: var(--Color-bg-surface);
    border-bottom: 1px solid var(--Color-glass-stroke);
  }
  .nav__links.is-open a { padding: 12px 0; border-bottom: 1px solid var(--Color-glass-stroke); }
  .nav__inner { height: 56px; }
  .brand { font-size: 15px; }
  .brand__mark { width: 24px; height: 24px; }
  .grid-2, .grid-3, .grid-4, .state-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .price-card, .scenario-card, .case-card { padding: 22px; }
  .h1 { font-size: var(--Type-size-h1Mobile); }
  .h2 { font-size: var(--Type-size-h2Mobile); }
  .type-row { flex-direction: column; gap: 8px; }
  .type-row__meta { width: auto; }
  .timeline__time { min-width: 62px; font-size: 10px; }
  .timeline__event { font-size: 12.5px; gap: 10px; }
  .sticky-cta { display: block; }
  body { padding-bottom: 72px; }
  .cta { padding: 40px 24px; }
  .btn { width: 100%; }
  .nav__actions .btn, .command .btn, .pill, .badge { width: auto; }
  .theme-toggle { width: 38px; height: 38px; flex: none; }
  .command { flex-wrap: nowrap; }
  .command input { flex: 1; padding-block: 0; font-size: 13px; }
  .command .btn { flex: none; }
  .aurora { width: 480px; height: 480px; }
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.bento-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bento-grid > :nth-child(4) { grid-column: span 2; }
.solutions-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.solutions-grid > :first-child { grid-row: span 2; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1.16fr 1fr; gap: 16px; align-items: stretch; }
.cases-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }

@media (max-width: 1199px) {
  .hero-grid, .work-grid, .solutions-grid, .two-col { grid-template-columns: 1fr; }
  .solutions-grid > :first-child { grid-row: auto; }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-grid > :nth-child(4) { grid-column: span 2; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid > :last-child { grid-column: span 2; }
}
@media (max-width: 767px) {
  .bento-grid, .pricing-grid, .cases-grid { grid-template-columns: 1fr; }
  .bento-grid > :nth-child(4), .pricing-grid > :last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
