:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #0f172a;
  background: #ffffff;
  font-synthesis: none;
  scroll-behavior: smooth;
  --ink-primary: #0f172a;
  --ink-secondary: #475467;
  --ink-muted: #667085;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --line: #e4e7ec;
  --line-soft: #eef2f6;
  --accent: #0d9488;
  --accent-dark: #0f766e;
  --accent-soft: #f0fdfa;
  --accent-line: #ccfbf1;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
body { margin: 0; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.page-width { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 50; background: var(--ink-primary); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; transition: top .2s var(--ease-out); }
.skip-link:focus { top: 12px; }

/* Header: restrained sticky glass morph */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .24s ease, box-shadow .24s ease;
}
.site-header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  transition: height .24s var(--ease-out), border-color .24s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.site-header.is-scrolled .site-header-inner {
  height: 64px;
  border-bottom-color: transparent;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
}
.site-brand img, .footer-brand img { display: block; object-fit: contain; }
.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
}
.site-header nav a:not(.nav-workspace) {
  padding-block: 4px;
  transition: color .18s ease;
}
.site-header nav a:not(.nav-workspace):hover { color: var(--ink-primary); }
.site-header .nav-workspace {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-primary);
  font-weight: 600;
  transition: background .18s ease, border-color .18s ease, transform .18s var(--ease-out);
}
.site-header .nav-workspace:hover { background: var(--surface-subtle); border-color: #cbd5e1; }
.site-header .nav-workspace:active { transform: scale(0.985); }

.arrow, .arrow-down { display: inline-block; transition: transform .22s var(--ease-out); }
.nav-workspace:hover .arrow,
.button-secondary:hover .arrow,
.text-link:hover .arrow { transform: translate(2px, -2px); }
.button-primary:hover .arrow-down { transform: translateY(2px); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 52px;
  align-items: center;
  padding-block: 76px 88px;
}
.hero-kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.02em;
}
h1 {
  margin-top: 16px;
  font-size: clamp(32px, 3.8vw, 44px);
  line-height: 1.24;
  letter-spacing: -0.035em;
  font-weight: 720;
  color: var(--ink-primary);
}
h1 > span { color: var(--ink-secondary); font-weight: 650; }
.hero-description {
  max-width: 470px;
  margin-top: 20px;
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s var(--ease-out), box-shadow .2s ease;
}
.button-primary {
  background: var(--ink-primary);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14);
}
.button-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
}
.button-primary:active { transform: translateY(0) scale(0.985); }
.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink-primary);
}
.button-secondary:hover {
  background: var(--surface-subtle);
  border-color: #cbd5e1;
}
.button-secondary:active { transform: scale(0.985); }

.hero-facts {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 12px;
  color: var(--ink-muted);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #94a3b8;
}

/* Upright, grounded product window preview */
.hero-visual { min-width: 0; }
.window-frame {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  transition: border-color .24s ease, box-shadow .28s ease;
}
.window-frame:hover {
  border-color: #cbd5e1;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
}
.window-chrome {
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #dde3ea; }
.window-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink-primary);
  min-width: 0;
}
.window-sep { color: #cbd5e1; font-weight: 400; }
.window-team { color: var(--ink-muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-badge {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.window-body { padding: 16px; }
.window-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.toolbar-title { font-size: 13px; font-weight: 650; color: var(--ink-primary); }
.toolbar-title em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--surface-subtle);
  border: 1px solid var(--line-soft);
  border-radius: 99px;
  padding: 1px 7px;
  margin-left: 4px;
}
.toolbar-chip {
  font-size: 11px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 500;
  white-space: nowrap;
}

.env-list {
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  overflow: hidden;
}
.env-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid var(--line-soft);
  transition: background .16s ease;
}
.env-item:first-child { border-top: 0; }
.env-item:hover { background: #f8fafc; }
.env-main { min-width: 0; }
.env-main strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.env-meta {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.env-meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--ink-secondary);
}

.env-totp {
  min-width: 70px;
  text-align: right;
}
.totp-digits {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.totp-bar {
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: #e2e8f0;
  overflow: hidden;
}
.totp-bar > i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left center;
  animation: totpTick 30s linear infinite;
}
.totp-empty { font-size: 11px; color: #94a3b8; }

.env-state {
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.env-state.is-running { color: var(--accent-dark); }
.env-state.is-running i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: statusPulse 2.8s ease-in-out infinite;
}
.env-state.is-synced { color: var(--ink-muted); }

.window-footer {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--surface-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--ink-muted);
}
.footer-sync { color: var(--ink-secondary); font-weight: 550; }

/* Sections */
.section-kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}
.section-heading h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
}
.section-lead {
  max-width: 400px;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* Features */
.feature-section {
  border-top: 1px solid var(--line-soft);
  padding-block: 76px;
  scroll-margin-top: 76px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.feature {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--ink-primary);
  margin-bottom: 16px;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.feature-icon svg { width: 19px; height: 19px; }
.feature:hover .feature-icon {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.feature h3 {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink-primary);
  margin-bottom: 10px;
}
.feature p {
  color: var(--ink-secondary);
  font-size: 13.5px;
  line-height: 1.75;
}

/* Operating scenarios and common questions */
.scenario-section, .faq-section {
  padding-block: 76px;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 76px;
}
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
}
.scenario { border-top: 1px solid var(--line); padding-top: 20px; }
.scenario-label { color: var(--accent-dark); font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.scenario h3 { color: var(--ink-primary); font-size: 17px; font-weight: 650; margin-bottom: 10px; }
.scenario > p:last-child, .faq-list p { color: var(--ink-secondary); font-size: 13.5px; line-height: 1.85; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 20px 4px; color: var(--ink-primary); font-size: 15px; font-weight: 600; cursor: pointer; }
.faq-list summary::marker { color: var(--accent-dark); }
.faq-list p { max-width: 820px; padding: 0 4px 22px; }

/* Downloads */
.download-section {
  background: var(--surface-subtle);
  border-block: 1px solid var(--line-soft);
  padding-block: 76px 64px;
  scroll-margin-top: 76px;
}
.download-notice {
  min-height: 20px;
  color: var(--ink-muted);
  font-size: 13px;
  margin: -14px 0 24px;
}
.download-notice.is-loading { animation: gentlePulse 1.6s ease-in-out infinite; }
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.download-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  transition: border-color .22s ease, box-shadow .24s ease, transform .22s var(--ease-out);
}
.download-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}
.download-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.os-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--surface-subtle);
  border: 1px solid var(--line-soft);
  color: var(--ink-primary);
}
.os-icon svg { width: 20px; height: 20px; }
.architecture-badge {
  color: var(--ink-secondary);
  background: var(--surface-subtle);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.download-card h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
  font-weight: 680;
  color: var(--ink-primary);
}
.os-description {
  font-size: 13px;
  color: var(--ink-secondary);
  margin-top: 6px;
}
.download-meta {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 20px 0 14px;
  min-height: 18px;
}
.download-button { width: 100%; min-height: 42px; }
.unavailable {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}
.download-format {
  color: var(--ink-muted);
  font-size: 12px;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.download-note {
  color: #667085;
  font-size: 11.5px;
  line-height: 1.65;
  margin-top: 6px;
}
.checksum {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  color: var(--ink-muted);
}
.checksum summary { cursor: pointer; font-weight: 500; }
.checksum summary:hover { color: var(--ink-primary); }
.checksum code {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 8px;
  line-height: 1.65;
  font-size: 10.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink-secondary);
}
.checksum[open] code { animation: detailFade .22s var(--ease-out) backwards; }
.download-card.is-ready .download-button[data-download-link] { animation: fadeUp .32s var(--ease-out) backwards; }

.download-requirement {
  margin-top: 22px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.7;
}

/* Onboarding steps */
.start-section { padding-block: 76px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  white-space: nowrap;
  transition: color .18s ease;
}
.text-link:hover { color: var(--ink-primary); }
.start-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 0;
}
.start-steps li {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.step-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
}
.start-steps h3 {
  font-size: 15px;
  font-weight: 650;
  margin-top: 12px;
  color: var(--ink-primary);
}
.start-steps p {
  color: var(--ink-secondary);
  font-size: 13.5px;
  line-height: 1.75;
  margin-top: 8px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 26px 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-muted);
  font-size: 12px;
}
.footer-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink-primary);
  font-size: 14px;
  font-weight: 650;
}
.footer-brand small {
  color: var(--ink-muted);
  margin-left: 6px;
  font-size: 12px;
  font-weight: 400;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { transition: color .18s ease; }
.footer-links a:hover { color: var(--ink-primary); }

/* Restrained, purposeful motion only */
@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.42); }
  65% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}
@keyframes totpTick {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
@keyframes gentlePulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes detailFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-kicker { animation: fadeUp .42s var(--ease-out) backwards; }
.hero-copy h1 { animation: fadeUp .46s var(--ease-out) .05s backwards; }
.hero-description { animation: fadeUp .46s var(--ease-out) .10s backwards; }
.hero-actions { animation: fadeUp .46s var(--ease-out) .15s backwards; }
.hero-facts { animation: fadeUp .46s var(--ease-out) .20s backwards; }
.window-frame { animation: fadeUp .54s var(--ease-out) .12s backwards; }

html.motion-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
  will-change: opacity, transform;
}
html.motion-ready [data-reveal][data-reveal-delay="1"] { transition-delay: 70ms; }
html.motion-ready [data-reveal][data-reveal-delay="2"] { transition-delay: 140ms; }
html.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 38px; padding-block: 52px 64px; }
  .hero-description { max-width: 560px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-lead { max-width: 580px; }
  .feature-grid { gap: 22px; }
}

@media (max-width: 720px) {
  .page-width { width: calc(100% - 40px); }
  .site-header-inner { height: 68px; }
  .site-header nav { gap: 16px; }
  .site-header nav > a:first-child { display: none; }
  .site-header nav > a[href="#scenarios"] { display: none; }
  .feature-grid, .scenario-grid, .download-grid, .start-steps { grid-template-columns: 1fr; gap: 20px; }
  .feature-section, .scenario-section, .download-section, .start-section, .faq-section { padding-block: 52px; }
  .footer-brand small { display: none; }
}

@media (max-width: 480px) {
  .page-width { width: calc(100% - 32px); }
  .site-header nav > a:not(.nav-workspace) { display: none; }
  .env-item { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .env-totp { display: none; }
  .window-footer { flex-direction: column; align-items: flex-start; gap: 4px; }
  .download-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.motion-ready [data-reveal] { opacity: 1; transform: none; }
  .button-primary:hover, .download-card:hover { transform: none; }
}
