:root {
  --ink: #22304a;
  --muted: #6e6462;
  --paper: #fff8f0;
  --surface: #fffefd;
  --line: #e9ded5;
  --blue: #78c5df;
  --blue-dark: #277c90;
  --yellow: #f3d47f;
  --peach: #f5ad78;
  --coral: #ee9288;
  --coral-dark: #a84435;
  --shadow: 0 28px 80px rgba(81, 58, 46, 0.14);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  transform: translateY(-180%);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  width: min(1180px, calc(100% - 40px));
  height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(80, 59, 47, 0.1);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand img {
  width: 168px;
  height: auto;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a,
.header-link,
.header-source,
.account-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  transition: color 160ms ease;
}

nav a:hover,
.header-link:hover,
.header-source:hover,
.account-nav a:hover,
.footer-links a:hover {
  color: var(--coral-dark);
}

.header-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
}

.header-actions,
.account-auth-links,
.account-logged-in {
  display: flex;
  align-items: center;
}

.header-actions {
  justify-content: flex-end;
  gap: 1rem;
}

.header-source {
  white-space: nowrap;
}

.account-nav {
  min-width: 122px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.account-nav[aria-busy="true"] {
  opacity: 0.58;
}

.account-auth-links {
  gap: 0.8rem;
}

.account-logged-in {
  gap: 0.65rem;
}

.account-logout {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.account-logout:hover,
.account-logout:focus-visible {
  color: var(--coral-dark);
}

.account-logout:disabled {
  cursor: wait;
  opacity: 0.58;
}

.account-register,
.account-center {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink) !important;
  padding: 0.5rem 0.78rem;
}

.account-center {
  max-width: 150px;
}

.account-center span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(88svh - 86px);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 7rem) 0 3.5rem;
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6.5rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1.15rem;
  color: var(--coral-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.eyebrow span {
  width: 9px;
  height: 6px;
  border-radius: 2px;
  background: var(--coral);
  box-shadow: 13px 0 0 var(--yellow), 26px 0 0 var(--blue);
  margin-right: 26px;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 560px;
  margin: 0;
  font-size: 3.1rem;
  line-height: 1.14;
  letter-spacing: 0;
  font-weight: 800;
}

.hero-wordmark {
  width: min(100%, 450px);
  height: auto;
  margin: 0 0 1.45rem;
}

.hero-text {
  max-width: 610px;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-downloads {
  align-items: stretch;
}

.button.hero-download {
  min-width: 202px;
  min-height: 62px;
  flex-direction: column;
  gap: 0.2rem;
  border-radius: 10px;
  padding: 0.78rem 1.05rem;
  box-shadow: 0 12px 30px rgba(50, 43, 42, 0.15);
}

.hero-download span {
  font-size: 0.96rem;
  line-height: 1.25;
}

.hero-download small {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0.72;
}

.button.hero-download-macos {
  background: var(--ink);
  color: white;
}

.hero-download-macos:hover {
  background: #181414;
}

.button.hero-download-windows {
  border-color: #df8177;
  background: var(--coral);
  color: var(--ink);
}

.hero-download-windows:hover {
  border-color: #d77368;
  background: #f19f96;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.82rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
nav a:focus-visible,
.header-link:focus-visible,
.header-source:focus-visible,
.account-nav a:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid rgba(39, 124, 144, 0.35);
  outline-offset: 3px;
}

.button-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 12px 30px rgba(50, 43, 42, 0.17);
}

.button-primary:hover {
  background: #181414;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.button-secondary:hover {
  border-color: #cdbdb2;
  background: white;
}

.platform-note {
  margin: 1.15rem 0 0;
  color: #877c79;
  font-size: 0.76rem;
  line-height: 1.6;
}

.product-stage {
  position: relative;
  min-height: 550px;
  display: grid;
  place-items: center;
}

.app-window {
  position: relative;
  z-index: 2;
  width: min(100%, 540px);
  overflow: hidden;
  border: 1px solid rgba(120, 91, 76, 0.16);
  border-radius: 30px;
  background: rgba(255, 254, 253, 0.94);
  box-shadow: var(--shadow);
  transform: rotate(1.25deg);
}

.window-bar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 1.35rem;
  background: rgba(255, 250, 245, 0.72);
}

.window-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.window-brand img {
  width: 28px;
  height: 28px;
}

.window-brand strong {
  font-size: 0.9rem;
}

.window-dots {
  display: flex;
  gap: 0.38rem;
}

.window-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.window-dots i:nth-child(1) { background: var(--coral); }
.window-dots i:nth-child(2) { background: var(--yellow); }
.window-dots i:nth-child(3) { background: var(--blue); }

.workflow-intro {
  padding: 1.6rem 1.5rem 0.75rem;
}

.workflow-intro span,
.workflow-intro strong {
  display: block;
}

.workflow-intro span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.workflow-intro strong {
  margin-top: 0.35rem;
  font-size: 1.45rem;
  letter-spacing: 0;
}

.workflow-list {
  margin: 0;
  padding: 0 1.5rem;
  list-style: none;
}

.workflow-list li {
  min-height: 83px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--line);
}

.step-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3ebe4;
  color: #81736e;
  font-size: 0.72rem;
  font-weight: 800;
}

.workflow-list small,
.workflow-list strong {
  display: block;
}

.workflow-list small {
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.workflow-list strong {
  font-size: 0.86rem;
  line-height: 1.35;
}

.step-state {
  border-radius: 999px;
  background: #f3eee9;
  color: #786b66;
  padding: 0.42rem 0.62rem;
  font-size: 0.66rem;
  font-weight: 800;
}

.step-state.detected {
  background: rgba(121, 199, 217, 0.18);
  color: var(--blue-dark);
}

.step-state.protected {
  background: rgba(243, 204, 113, 0.24);
  color: #806017;
}

.window-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 1rem 1.5rem 1.4rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.mock-button {
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 0.62rem 1.15rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.intro-band,
.section,
.final-cta,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.intro-band {
  min-height: 330px;
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 3rem;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 5.5rem 0;
}

.intro-band h2,
.section-heading h2,
.principles h2,
.download h2,
.final-cta h2 {
  margin: 0;
  font-size: 3.85rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.intro-band div {
  max-width: 790px;
}

.intro-band p:last-child,
.principles-copy > p:last-child,
.download-copy > p {
  max-width: 720px;
  margin: 1.45rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.section {
  padding: clamp(5rem, 9vw, 9rem) 0;
}

.section-heading {
  max-width: 850px;
}

.section-heading.compact {
  max-width: 700px;
}

.feature-list {
  margin-top: clamp(3rem, 6vw, 6.5rem);
  border-top: 1px solid var(--line);
}

.feature-list article {
  display: grid;
  grid-template-columns: 0.25fr 0.65fr 1.1fr;
  gap: 2rem;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 2.25rem 0;
}

.feature-index {
  margin: 0;
  color: var(--coral-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.feature-list h3 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: 0;
}

.feature-list article > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.principles {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(4rem, 9vw, 9rem);
  align-items: start;
  border-top: 1px solid var(--line);
}

.principles-copy {
  position: sticky;
  top: 2rem;
}

.principle-list {
  margin: 0;
}

.principle-list div {
  border-top: 1px solid var(--line);
  padding: 1.7rem 0 2rem;
}

.principle-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.principle-list dt {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0;
}

.principle-list dd {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.download {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(3rem, 9vw, 8rem);
  align-items: center;
  border-radius: 38px;
  background: #f8e4d8;
  padding-left: clamp(1.5rem, 6vw, 6rem);
  padding-right: clamp(1.5rem, 6vw, 6rem);
}

.download-copy > p {
  max-width: 620px;
}

.download-options {
  margin-top: 2rem;
  border-top: 1px solid rgba(120, 80, 60, 0.18);
}

.download-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  border-bottom: 1px solid rgba(120, 80, 60, 0.18);
  padding: 1.2rem 0;
}

.download-option-copy {
  min-width: 0;
}

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

.download-platform {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--coral-dark);
  font-size: 0.68rem;
  font-weight: 800;
}

.download-option-copy strong {
  font-size: 1rem;
  line-height: 1.45;
}

.download-option-copy small {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.download-option-copy small a,
.download-meta a {
  color: var(--coral-dark);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(168, 68, 53, 0.3);
  text-underline-offset: 0.18em;
}

.button-download {
  min-width: 154px;
  min-height: 44px;
  border-color: var(--ink);
  background: var(--ink);
  color: white;
  box-shadow: 0 8px 22px rgba(50, 43, 42, 0.16);
}

.button-download:hover {
  border-color: #181414;
  background: #181414;
}

.download-copy > .download-meta {
  margin-top: 1rem;
  color: #877c79;
  font-size: 0.72rem;
  line-height: 1.7;
}

.install-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  border-top: 1px solid rgba(120, 80, 60, 0.18);
  padding: 1.5rem 0;
}

.install-steps li:last-child {
  border-bottom: 1px solid rgba(120, 80, 60, 0.18);
}

.install-steps li > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--coral-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.install-steps strong {
  font-size: 1rem;
}

.install-steps p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.roadmap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 9vw, 9rem);
  align-items: start;
}

.roadmap-line {
  border-top: 1px solid var(--line);
}

.roadmap-line p {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 1rem;
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 1.35rem 0;
  line-height: 1.65;
}

.roadmap-line span {
  color: var(--coral-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 1px solid var(--line);
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.final-cta img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.final-cta .hero-actions {
  justify-content: center;
}

footer {
  display: grid;
  grid-template-columns: 1fr 1.35fr auto;
  gap: 2rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-brand img {
  width: 34px;
  height: 34px;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.footer-brand span {
  margin-top: 0.16rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.1rem;
}

.footer-links a {
  font-size: 0.76rem;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.not-found-title {
  font-size: 7rem;
}

.not-found-copy {
  margin-top: 1.5rem;
}

@media (max-width: 920px) {
  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .product-stage {
    min-height: 460px;
  }

  .workflow-list li {
    grid-template-columns: auto 1fr;
  }

  .step-state {
    display: none;
  }

  .principles,
  .download,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .principles-copy {
    position: static;
  }

  .download {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .site-header,
  .hero,
  .intro-band,
  .section,
  .final-cta,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    height: 72px;
  }

  .brand img {
    width: 142px;
  }

  .header-source {
    display: none;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .account-nav {
    min-width: 108px;
  }

  .account-auth-links {
    gap: 0.55rem;
  }

  .account-logged-in {
    gap: 0.45rem;
  }

  .account-register,
  .account-center {
    padding-inline: 0.68rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 3rem 0 2.5rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  .hero-wordmark {
    width: min(82vw, 300px);
    margin-bottom: 1.25rem;
  }

  .hero-text {
    line-height: 1.75;
  }

  .platform-note {
    max-width: 340px;
  }

  .hero-downloads {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .button.hero-download {
    min-width: 0;
    width: 100%;
  }

  .product-stage {
    min-height: 342px;
  }

  .app-window {
    border-radius: 22px;
    transform: none;
  }

  .window-bar {
    min-height: 54px;
  }

  .workflow-intro {
    padding-top: 1.1rem;
  }

  .workflow-intro strong {
    font-size: 1.15rem;
  }

  .workflow-list li {
    min-height: 64px;
  }

  .workflow-list li:nth-child(2),
  .workflow-list li:nth-child(3) {
    display: none;
  }

  .window-action {
    padding-bottom: 1rem;
  }

  .intro-band {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 4.2rem 0;
  }

  .intro-band h2,
  .section-heading h2,
  .principles h2,
  .download h2,
  .final-cta h2 {
    font-size: 2.9rem;
  }

  .feature-list article {
    grid-template-columns: 3rem 1fr;
    gap: 0.6rem 0.9rem;
  }

  .feature-list article > p:last-child {
    grid-column: 2;
  }

  .download {
    width: 100%;
    border-radius: 0;
  }

  .download-option {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .button-download {
    width: 100%;
  }

  .roadmap-line p {
    grid-template-columns: 4.5rem 1fr;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-column: auto;
  }

  .copyright {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
