:root {
  color-scheme: light;
  --page: #f3f6fa;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --ink: #101827;
  --muted: #5f6b7a;
  --soft: #eef3f8;
  --line: rgba(16, 24, 39, 0.12);
  --blue: #1476f2;
  --blue-deep: #0b56c5;
  --cyan: #00a2a8;
  --violet: #5f6bf3;
  --shadow: 0 24px 80px rgba(27, 39, 58, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(20, 118, 242, 0.08), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(0, 162, 168, 0.08), transparent 26%),
    var(--page);
  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;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 max(32px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(16, 24, 39, 0.08);
  background: rgba(247, 250, 253, 0.82);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 8px 18px rgba(16, 24, 39, 0.16);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.nav-links {
  gap: 6px;
}

.header-actions {
  gap: 12px;
  min-width: 0;
}

.nav-links a {
  min-height: 36px;
  padding: 9px 13px;
  border-radius: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 720;
}

.nav-links a:hover {
  background: rgba(20, 118, 242, 0.08);
  color: var(--blue-deep);
}

.language-switch {
  flex: 0 0 auto;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(16, 24, 39, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(27, 39, 58, 0.08);
}

.language-switch button {
  min-width: 44px;
  min-height: 30px;
  padding: 6px 9px;
  border: 0;
  border-radius: 6px;
  color: #475569;
  background: transparent;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.language-switch button:hover {
  color: var(--blue-deep);
}

.language-switch button.is-active {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(20, 118, 242, 0.22);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100svh;
  padding: 118px 20px 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-blur {
  position: absolute;
  z-index: -1;
  top: 104px;
  left: 50%;
  width: min(940px, 92vw);
  height: 500px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(243, 246, 250, 0.52), rgba(243, 246, 250, 0.7)),
    url("assets/app-onboarding.png") center / cover no-repeat;
  filter: blur(22px);
  opacity: 0.48;
  transform: translateX(-50%) scale(1.06);
}

.hero-pill,
.section-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 12px;
  border: 1px solid rgba(20, 118, 242, 0.2);
  border-radius: 8px;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 28px rgba(20, 118, 242, 0.08);
  font-size: 13px;
  font-weight: 820;
  line-height: 1;
}

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

h1 {
  width: min(1030px, 100%);
  margin-top: 22px;
  text-align: center;
  font-size: clamp(52px, 8vw, 98px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy {
  width: min(760px, 100%);
  margin-top: 24px;
  text-align: center;
  color: #516070;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.78;
  font-weight: 540;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  min-height: 58px;
  padding: 11px 15px;
  border: 1px solid rgba(16, 24, 39, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(27, 39, 58, 0.1);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.download-button:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 118, 242, 0.34);
  box-shadow: 0 24px 58px rgba(27, 39, 58, 0.14);
}

.download-button.primary {
  color: #ffffff;
  border-color: rgba(20, 118, 242, 0.2);
  background: linear-gradient(135deg, #1677ff, #4c6fff);
}

.download-icon {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: var(--blue-deep);
  background: #eaf2ff;
  font-size: 12px;
  font-weight: 880;
}

.download-button.primary .download-icon {
  color: #1677ff;
  background: #ffffff;
}

.download-button span:last-child {
  display: grid;
  gap: 2px;
}

.download-button strong {
  font-size: 15px;
  line-height: 1.18;
}

.download-button small {
  color: inherit;
  font-size: 12px;
  font-weight: 640;
  opacity: 0.72;
}

.app-stage {
  position: relative;
  display: grid;
  width: min(1120px, 100%);
  min-height: 470px;
  margin-top: 34px;
}

.app-shot,
.workspace-preview {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 39, 0.12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-shot-left {
  top: 36px;
  left: 0;
  width: 38%;
  height: 270px;
  filter: blur(1.2px);
  opacity: 0.78;
  transform: rotate(-4deg);
}

.app-shot-main {
  left: 50%;
  bottom: -8px;
  width: 64%;
  height: 360px;
  transform: translateX(-50%);
}

.workspace-preview {
  top: 10px;
  right: 0;
  width: 36%;
  min-height: 310px;
  padding: 18px;
  transform: rotate(4deg);
}

.workspace-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-top span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 850;
}

.workspace-top strong {
  font-size: 14px;
}

.workspace-top em {
  margin-left: auto;
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.workspace-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 18px;
}

.workspace-tabs span {
  min-height: 28px;
  padding: 7px 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7f9fc;
  text-align: center;
  color: #667385;
  font-size: 11px;
  font-weight: 760;
}

.workspace-tabs .is-active {
  color: var(--blue-deep);
  border-color: rgba(20, 118, 242, 0.28);
  background: #eaf2ff;
}

.device-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  background: #f2f6fb;
}

.device-board span {
  aspect-ratio: 1.7;
  border: 1px solid rgba(16, 24, 39, 0.08);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: inset 0 -2px 0 rgba(16, 24, 39, 0.06);
}

.device-board .is-lit {
  background: linear-gradient(135deg, rgba(0, 162, 168, 0.28), #ffffff);
}

.device-board .is-selected {
  border-color: rgba(20, 118, 242, 0.5);
  background: #dfeeff;
}

.dock-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.dock-preview div {
  display: grid;
  gap: 4px;
}

.dock-preview small {
  color: var(--blue);
  font-size: 10px;
  font-weight: 820;
}

.dock-preview strong {
  font-size: 13px;
}

.dock-preview button {
  min-height: 32px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 760;
}

.feature-section,
.download-section,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.feature-section {
  padding: 98px 0 86px;
}

.feature-section h2,
.download-section h2 {
  width: min(900px, 100%);
  margin-top: 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 880;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.feature-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 54px rgba(27, 39, 58, 0.08);
}

.feature-card span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 880;
}

.feature-card h3 {
  margin-top: 58px;
  font-size: 25px;
  line-height: 1.18;
  font-weight: 820;
}

.feature-card p,
.download-section p {
  margin-top: 15px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.62fr);
  gap: 46px;
  align-items: start;
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.download-list {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

.download-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 48px rgba(27, 39, 58, 0.07);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.download-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 118, 242, 0.32);
  background: #ffffff;
}

.download-list span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.download-list strong {
  text-align: right;
  font-size: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 36px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

@media (max-width: 960px) {
  .site-header {
    padding: 0 18px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  h1 {
    font-size: clamp(48px, 14vw, 78px);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(360px, 100%);
  }

  .app-stage {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    margin-top: 40px;
  }

  .app-shot,
  .workspace-preview {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    transform: none;
  }

  .app-shot-left {
    display: none;
  }

  .app-shot-main {
    aspect-ratio: 16 / 9;
  }

  .workspace-preview {
    padding: 16px;
  }

  .feature-grid,
  .download-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .download-button {
    width: 100%;
  }

  .feature-section,
  .download-section,
  .site-footer {
    width: calc(100% - 32px);
  }

  .feature-section,
  .download-section {
    padding: 64px 0;
  }

  .feature-card {
    min-height: 220px;
  }

  .download-list a,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-list strong {
    text-align: left;
  }
}
