:root {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1px);
  --header-height: 4.75rem;
  --canvas: #f8f7fc;
  --surface: #fff;
  --surface-inset: #f4f1fa;
  --ink: #1d1930;
  --muted: #625a73;
  --line: #e2dceb;
  --accent: #6942c2;
  --accent-hover: #5833ac;
  --on-accent: #fff;
  --accent-soft: #ede5fc;
  --glow: #a48aef35;
  --error: #b21e4e;
  --notice-shadow: #33245426;
  --apple-bg: #eee7fa;
  --apple-fg: #5c438b;
  --android-bg: #e3f2e9;
  --android-fg: #286747;
  --windows-bg: #e3edfc;
  --windows-fg: #265d9c;
  --chat-bg: #e4f2e9;
  --chat-fg: #286747;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #12101e;
  --surface: #1c182c;
  --surface-inset: #231d35;
  --ink: #f5f1fc;
  --muted: #bcb1ce;
  --line: #3b314e;
  --accent: #b89afa;
  --accent-hover: #c8b1ff;
  --on-accent: #251746;
  --accent-soft: #31264b;
  --glow: #7a4deb39;
  --error: #ffa0b8;
  --notice-shadow: #08041068;
  --apple-bg: #32264a;
  --apple-fg: #d0baf3;
  --android-bg: #263b39;
  --android-fg: #a1e0b9;
  --windows-bg: #263650;
  --windows-fg: #a8cbff;
  --chat-bg: #273b39;
  --chat-fg: #a1e0b9;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  display: flex;
  flex-direction: column;
  min-block-size: 100vh;
  min-block-size: 100svh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

:where(a, button, input):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

:is(h1, h2)[tabindex="-1"]:focus { outline: none; }

.shell {
  width: min(100% - clamp(2rem, 7vw, 7rem), 73rem);
  margin-inline: auto;
}

.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: block;
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.header-inner {
  display: grid;
  grid-template: "brand nav appearance" var(--header-height) / auto 1fr auto;
  align-items: center;
  gap: 0 clamp(.75rem, 2vw, 1.75rem);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
}

.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-inline-start: -.25rem;
  font-size: 1.28rem;
  font-weight: 740;
  letter-spacing: -.045em;
  line-height: 1;
}

.brand img { object-fit: contain; }

.site-nav {
  grid-area: nav;
  display: flex;
  justify-content: flex-end;
  gap: clamp(.75rem, 2.2vw, 2.25rem);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 550;
  white-space: nowrap;
}

.site-nav a:hover { color: var(--accent); }

.theme-picker {
  grid-area: appearance;
  display: flex;
  justify-self: end;
  gap: .125rem;
  padding: .2rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--surface);
}

.theme-option {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 2.25rem;
  padding: .25rem .5rem;
  border: 0;
  border-radius: .6rem;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
}

.theme-option .icon { width: 1rem; height: 1rem; }
.theme-option:hover { color: var(--accent); }
.theme-option[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.icon-button {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--surface);
  color: var(--ink);
}

.icon-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.23fr);
  gap: clamp(.5rem, 2vw, 1.75rem);
  align-items: center;
}

.entry {
  display: grid;
  align-items: center;
}

.entry-inner { padding-block: clamp(2rem, 6vh, 5rem); }

.entry-content {
  position: relative;
  z-index: 1;
}

.entry-icon, .platform-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: .85rem;
  background: var(--accent-soft);
  color: var(--accent);
}

.entry-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.6rem;
}

.entry-icon .icon { width: 1.65rem; height: 1.65rem; }

.product-name {
  margin-bottom: .45rem;
  color: var(--accent);
  font-weight: 650;
}

.entry h1, .hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: -.053em;
  font-weight: 760;
  text-wrap: balance;
}

.entry-description, .hero-content > p {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  text-wrap: pretty;
}

#access-form {
  max-width: 26rem;
  margin-top: 2.05rem;
}

#access-form label {
  display: block;
  margin-bottom: .5rem;
  font-size: .9375rem;
  font-weight: 620;
}

.form-controls {
  display: flex;
  align-items: stretch;
  gap: .65rem;
}

.password-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.password-field input {
  width: 100%;
  height: 3.25rem;
  padding: 0 3.05rem 0 .9rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--surface);
  color: var(--ink);
}

.password-field input::placeholder { color: var(--muted); opacity: 1; }
.password-field input[aria-invalid="true"] { border-color: var(--error); }

.password-toggle {
  position: absolute;
  inset: .25rem .2rem auto auto;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.password-toggle:hover { border-color: transparent; }

.button {
  display: inline-flex;
  flex: none;
  justify-content: center;
  align-items: center;
  min-height: 3.25rem;
  padding: .6rem 1.18rem;
  border: 1px solid transparent;
  border-radius: .8rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-primary:hover { background: var(--accent-hover); }

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover { border-color: var(--accent); color: var(--accent); }

.field-error {
  min-height: 1.5rem;
  margin-top: .45rem;
  color: var(--error);
  font-size: .875rem;
}

.artwork {
  position: relative;
  isolation: isolate;
  pointer-events: none;
}

.artwork::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 55% 55%, var(--glow), transparent 66%);
}

.artwork img {
  display: block;
  width: 100%;
  height: auto;
}

.hero {
  min-height: 32rem;
  padding-block: 2.1rem;
}

.hero h1 { font-size: clamp(2.65rem, 5.9vw, 5.25rem); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.85rem;
}

.features, .downloads, .desktop-panel { scroll-margin-top: 1.5rem; }

.features, .downloads {
  padding-block: 2.45rem 2.75rem;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1rem;
  margin-bottom: 1.25rem;
}

.section-heading h2, .desktop-intro h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.section-heading p, .platform-card p, .desktop-intro p, .feature-card p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.feature-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: .85rem .75rem;
  padding: clamp(1rem, 2.4vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.feature-symbol {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .75rem;
}

.feature-symbol.violet { color: var(--accent); background: var(--accent-soft); }
.feature-symbol.sea { color: var(--chat-fg); background: var(--chat-bg); }
.feature-symbol.blue { color: var(--windows-fg); background: var(--windows-bg); }

.feature-card h3 {
  font-size: clamp(1.06rem, 1.7vw, 1.3rem);
  line-height: 1.35;
  letter-spacing: -.015em;
}

.feature-card p { grid-column: 1 / -1; }

.workflow-card {
  --flow-surface: #f4effb;
  --flow-step: #fdfaff;
  --flow-icon: #ebe0fa;
  --flow-line: #ddd1ee;
  --flow-connector: #9e83c5;
  --flow-accent: var(--accent);
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  margin-top: .85rem;
  padding: clamp(1.25rem, 4vw, 2.6rem);
  border: 1px solid var(--flow-line);
  border-radius: 1.15rem;
  color: var(--ink);
  background: var(--flow-surface);
}

[data-theme="dark"] .workflow-card {
  --flow-surface: #241a36;
  --flow-step: #302242;
  --flow-icon: #45345a;
  --flow-line: #534065;
  --flow-connector: #a589cd;
  --flow-accent: #dec8ff;
}

.workflow-platforms {
  color: var(--flow-accent);
  font-size: .875rem;
  font-weight: 650;
}

.workflow-card h3 {
  margin-top: .35rem;
  font-size: clamp(1.4rem, 2.7vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -.035em;
}

.workflow-copy { margin-top: .65rem; color: var(--muted); }

.workflow-download {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: .35rem;
  color: var(--flow-accent);
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.workflow-download:hover { color: var(--ink); }
.workflow-download:focus-visible { outline-color: var(--flow-accent); }

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-steps li {
  position: relative;
  display: grid;
  align-content: start;
  gap: .65rem;
  padding: .85rem clamp(.55rem, 1.55vw, 1.1rem);
  border: 1px solid var(--flow-line);
  border-radius: .75rem;
  background: var(--flow-step);
}

.workflow-steps li + li::before {
  position: absolute;
  inset: 50% 100% auto auto;
  width: calc(1rem + 2px);
  border-top: 1px solid var(--flow-connector);
  content: "";
}

.workflow-step-icon {
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: .55rem;
  background: var(--flow-icon);
  color: var(--flow-accent);
}

.workflow-step-icon .icon { width: 1.15rem; height: 1.15rem; }
.workflow-steps strong { display: block; }

.workflow-steps li div span {
  display: block;
  margin-top: .2rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.4;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(.9rem, 2vw, 1.45rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.apple { background: var(--apple-bg); color: var(--apple-fg); }
.android { background: var(--android-bg); color: var(--android-fg); }
.windows { background: var(--windows-bg); color: var(--windows-fg); }
.ios { background: var(--surface-inset); color: var(--muted); }
.chat { background: var(--chat-bg); color: var(--chat-fg); }

.platform-icon .icon { width: 1.5rem; height: 1.5rem; }

.platform-card h3 {
  margin-top: .8rem;
  font-size: 1.2rem;
  line-height: 1.35;
}

.platform-card p { margin-top: .2rem; font-size: .9375rem; }
[data-version] { font-variant-numeric: tabular-nums; }
.platform-card [data-version] { white-space: nowrap; }

.download-link, .coming-soon {
  min-height: 2.75rem;
  padding: .48rem .85rem;
  border-radius: .65rem;
  font-size: .875rem;
}

.download-link {
  background: var(--accent-soft);
  color: var(--accent);
}

.download-link:hover { border-color: var(--accent); }

.platform-card :is(.download-link, .coming-soon) { margin-top: 1.05rem; }

.coming-soon {
  display: inline-flex;
  align-items: center;
  background: var(--surface-inset);
  color: var(--muted);
  white-space: nowrap;
}

.desktop-downloads {
  display: grid;
  gap: .85rem;
  margin-bottom: 3.8rem;
}

.desktop-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding: clamp(1.25rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--surface-inset);
}

.desktop-intro h2 { margin-top: .7rem; }
.desktop-intro p { margin-top: .45rem; }
.desktop-intro a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.desktop-platforms { display: grid; gap: .65rem; }

.desktop-platform {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .58rem .8rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--surface);
}

.desktop-platform > .icon { color: var(--muted); }
.desktop-platform-name { flex: 1; min-width: 0; }
.desktop-platform-name h3 { font-size: 1rem; }
.desktop-platform-name p { color: var(--muted); font-size: .875rem; }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

.lock-button {
  display: inline-flex;
  gap: .35rem;
  align-items: center;
  min-height: 2.75rem;
  padding: .3rem .5rem;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: var(--muted);
}

.lock-button:hover { color: var(--accent); }
.lock-button .icon { width: 1.05rem; height: 1.05rem; }

.download-notice {
  position: fixed;
  z-index: 2;
  inset: auto 1rem calc(1.1rem + env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100% - 2rem);
  margin-inline: auto;
  padding: .75rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--surface);
  box-shadow: 0 .4rem 1.5rem var(--notice-shadow);
  font-size: .9375rem;
  pointer-events: none;
}

.download-notice:empty { opacity: 0; }

.tutorial-back {
  min-height: 2.75rem;
  padding: .35rem .9rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--surface);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 650;
}

.tutorial-back:hover { border-color: var(--accent); color: var(--accent); }

[data-tutorial-open] .brand > :not(.tutorial-back) { display: none; }

.tutorial-view {
  min-width: 0;
  animation: tutorial-enter 180ms ease-out;
}

@keyframes tutorial-enter {
  from { opacity: .72; }
  to { opacity: 1; }
}

@media (max-width: 52rem) {
  .hero { min-height: 25rem; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-card { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 41rem) {
  :root { --header-height: 7rem; }
  .header-inner {
    grid-template: "brand appearance" 4.25rem "nav nav" auto / 1fr auto;
  }
  .site-nav {
    justify-content: space-between;
    gap: .35rem;
    box-shadow: inset 0 1px var(--line);
  }
  .site-nav a { font-size: .875rem; }
  .split { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .entry-inner { padding-block: 2.45rem .65rem; }
  .entry-icon { margin-bottom: .95rem; }
  #access-form { margin-top: 1.5rem; }
  .entry-description, .hero-content > p { margin-top: .8rem; }
  .artwork { width: min(100%, 28rem); margin-inline: auto; }
  .hero { min-height: auto; padding-block: 3.15rem .7rem; }
  .hero-actions { margin-top: 1.35rem; }
  .features, .downloads { padding-block: 1.65rem 2rem; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .workflow-steps { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .workflow-steps li {
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: .6rem .8rem;
  }
  .workflow-steps li + li::before {
    inset: auto auto 100% 1.85rem;
    width: 0;
    height: calc(.65rem + 2px);
    border-top: 0;
    border-left: 1px solid var(--flow-connector);
  }
  .section-heading { display: block; }
  .section-heading p { margin-top: .35rem; }
  .desktop-panel { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .desktop-downloads { margin-bottom: 2.25rem; }
  .footer-inner { min-height: 3.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .tutorial-view { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 52rem) {
  .site-nav .tutorial-nav-link { display: none; }
}
