:root {
  color-scheme: dark;
  --bg: #081116;
  --surface: #0e1a20;
  --surface-2: #13242b;
  --text: #eef8f2;
  --muted: #a6b8b1;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #42e089;
  --accent-2: #18b6a4;
  --warm: #ffbf59;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

:root.light {
  color-scheme: light;
  --bg: #f6fbf7;
  --surface: #ffffff;
  --surface-2: #edf7f1;
  --text: #102019;
  --muted: #5c6f66;
  --line: rgba(16, 32, 25, 0.12);
  --shadow: 0 24px 80px rgba(18, 60, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 0%, rgba(66, 224, 137, 0.18), transparent 30rem),
    linear-gradient(
      180deg,
      var(--bg),
      color-mix(in srgb, var(--surface-2) 42%, var(--bg)) 48rem,
      var(--bg)
    );
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

button {
  font: inherit;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand,
.nav-actions,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #052016;
  box-shadow: 0 12px 32px rgba(66, 224, 137, 0.28);
}

.nav-actions {
  gap: 12px;
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-links .nav-cta {
  color: #052016;
  background: var(--accent);
  font-weight: 700;
}

.icon-btn,
.menu-btn {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.menu-btn {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.36;
}

.hero-glow-one {
  top: 8rem;
  left: -10rem;
  background: var(--accent);
}

.hero-glow-two {
  right: -8rem;
  bottom: 7rem;
  background: var(--warm);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.76fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 12px;
  border: 1px solid rgba(66, 224, 137, 0.32);
  border-radius: 999px;
  background: rgba(66, 224, 137, 0.09);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 span {
  color: var(--accent);
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.download-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
}

.download-card {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.download-card:hover {
  transform: translateY(-3px);
  border-color: rgba(66, 224, 137, 0.45);
  background: var(--surface);
}

.download-card.primary {
  border-color: rgba(66, 224, 137, 0.5);
}

.os-icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent);
  font-weight: 900;
}

.download-card strong,
.download-card small {
  display: block;
}

.download-card strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.download-card small {
  color: var(--muted);
  font-size: 12px;
}

.hero-product {
  min-width: 0;
}

.window-card,
.device-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), var(--surface)),
    var(--surface);
  box-shadow: var(--shadow);
}

.window-card {
  padding: 18px;
  transform: rotate(1.2deg);
}

.window-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 22px;
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #ff6b6b;
}

.window-bar span:nth-child(2) {
  background: #ffd166;
}

.window-bar span:nth-child(3) {
  background: var(--accent);
}

.task-preview {
  padding: 22px;
  border: 1px solid rgba(66, 224, 137, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 191, 89, 0.16), transparent 9rem),
    linear-gradient(180deg, var(--surface-2), color-mix(in srgb, var(--surface) 88%, black));
}

.task-preview-head,
.task-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.task-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.task-preview-head strong {
  display: block;
  font-size: 22px;
  line-height: 1.35;
}

.live-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(66, 224, 137, 0.34);
  border-radius: 999px;
  background: rgba(66, 224, 137, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.task-summary {
  margin: 16px 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

.task-timeline {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.task-step {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.task-step > span {
  position: relative;
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border: 2px solid var(--muted);
  border-radius: 999px;
}

.task-step.done > span,
.task-step.active > span {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(66, 224, 137, 0.12);
}

.task-step.active {
  border-color: rgba(66, 224, 137, 0.34);
}

.task-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.task-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.task-footer > span {
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
}

.progress {
  flex: 1;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--warm));
}

.hero-stats {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-stats div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
}

.hero-stats strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 30px;
}

.hero-stats span {
  color: var(--muted);
}

.section {
  padding: 92px 0;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-head .eyebrow {
  margin-right: auto;
  margin-left: auto;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-head p,
.section-text {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

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

.feature-card,
.scenario-grid article {
  min-height: 236px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.feature-card:hover,
.scenario-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(66, 224, 137, 0.38);
}

.feature-tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 191, 89, 0.12);
  color: var(--warm);
  font-size: 12px;
  font-weight: 800;
}

.feature-icon,
.scenario-grid article span {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 23px;
}

.feature-card h3,
.scenario-grid h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.35;
}

.feature-card p,
.scenario-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.local-section {
  background: color-mix(in srgb, var(--surface-2) 48%, transparent);
}

.local-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.local-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.local-list div {
  position: relative;
  padding: 18px 18px 18px 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.local-list span {
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--accent);
  font-weight: 900;
}

.local-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.local-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.device-panel {
  min-height: 420px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(66, 224, 137, 0.16), transparent 36%),
    var(--surface);
}

.device-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 96px;
}

.device-top span {
  color: var(--muted);
}

.device-top strong {
  font-size: 28px;
}

.data-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.data-pills span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.shield {
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #052016;
  font-weight: 900;
}

.scenarios-section {
  padding-bottom: 110px;
}

.tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 26px;
  padding: 6px;
  gap: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tab {
  min-height: 40px;
  white-space: nowrap;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.tab.active {
  background: var(--accent);
  color: #052016;
  font-weight: 800;
}

.scenario-grid {
  display: none;
}

.scenario-grid.active {
  display: grid;
}

.scenario-grid article {
  min-height: 210px;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.footer .shell {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer a {
  color: var(--accent);
}

@media (max-width: 920px) {
  .menu-btn {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .hero-inner,
  .local-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 66px;
  }

  .download-panel,
  .hero-stats,
  .feature-grid,
  .scenario-grid {
    grid-template-columns: 1fr 1fr;
  }

  .window-card {
    transform: none;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .nav {
    min-height: 64px;
  }

  .nav-links {
    top: 64px;
    right: 14px;
    left: 14px;
  }

  .hero {
    padding: 44px 0 56px;
  }

  h1 {
    font-size: 46px;
  }

  .hero-lead,
  .section-head p,
  .section-text {
    font-size: 16px;
  }

  .download-panel,
  .hero-stats,
  .feature-grid,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats strong {
    font-size: 25px;
  }

  .section {
    padding: 68px 0;
  }

  .feature-card,
  .scenario-grid article {
    min-height: auto;
  }

  .device-panel {
    min-height: auto;
  }

  .device-top {
    display: block;
    margin-bottom: 56px;
  }

  .device-top strong {
    display: block;
    margin-top: 8px;
    font-size: 24px;
  }

  .footer .shell {
    flex-direction: column;
    justify-content: center;
  }
}
