:root {
  --white: #ffffff;
  --ink: #0b0c0d;
  --ink-soft: #303238;
  --muted: #686b72;
  --surface: #f5f6f8;
  --surface-strong: #eceef2;
  --line: #e5e7eb;
  --line-strong: #d7d9de;
  --accent: #3567e8;
  --black: #090a0b;
  --shadow-sm: 0 14px 38px rgba(11, 12, 13, 0.07);
  --shadow-lg: 0 28px 80px rgba(11, 12, 13, 0.09);
  --radius: 20px;
  --max: 1320px;
  --header-height: 70px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: var(--white);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(11, 12, 13, 0.035);
}

.nav-shell {
  width: min(var(--max), calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 740;
  letter-spacing: -0.025em;
}

.brand img {
  border: 1px solid var(--line);
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.site-nav > a:not(.nav-download):hover {
  color: var(--ink);
}

.site-nav .nav-source {
  margin-left: 6px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.nav-download {
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
}

.nav-download:hover {
  color: var(--white);
  background: #26282b;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

.hero {
  min-height: 100vh;
  padding: calc(var(--header-height) + 76px) 24px 92px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, 0.76fr) minmax(600px, 1.34fr);
  gap: clamp(54px, 6vw, 100px);
  align-items: center;
}

.eyebrow,
.section-label {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(53, 103, 232, 0.11);
}

.hero h1,
.principles-intro h2,
.section-heading h2,
.workspace-heading h2,
.faq-heading h2,
.closing-copy h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(3.8rem, 5.5vw, 6.3rem);
}

.hero-lead {
  max-width: 580px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.26rem);
  line-height: 1.75;
}

.hero-actions,
.closing-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 56px;
  padding: 16px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 680;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--black);
  box-shadow: 0 12px 26px rgba(11, 12, 13, 0.14);
}

.button-primary:hover {
  background: #26282b;
  box-shadow: 0 16px 34px rgba(11, 12, 13, 0.18);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--white);
}

.button-secondary:hover {
  border-color: #b9bdc5;
  box-shadow: var(--shadow-sm);
}

.release-line {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.release-live {
  align-items: center;
  gap: 7px;
}

.release-live:not([hidden]) {
  display: inline-flex;
}

.release-live strong {
  color: var(--accent);
}

.screenshot-frame {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 380ms ease;
}

.screenshot-frame img {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 2559 / 1599;
  object-fit: contain;
}

.screenshot-frame-hero {
  box-shadow: var(--shadow-lg);
  transform-origin: center;
}

.principles,
.features,
.getting-started,
.faq {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.principles {
  padding: 150px 0 130px;
}

.principles-intro {
  max-width: 900px;
}

.principles-intro h2,
.section-heading h2,
.workspace-heading h2,
.faq-heading h2,
.closing-copy h2 {
  font-size: clamp(2.9rem, 5.2vw, 5.5rem);
}

.principles-intro > p:not(.section-label) {
  max-width: 670px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.principle-list {
  margin-top: 92px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.principle-list article {
  min-height: 235px;
  padding: 28px 34px 0 0;
  border-right: 1px solid var(--line);
}

.principle-list article + article {
  padding-left: 34px;
}

.principle-list article:last-child {
  border-right: 0;
}

.principle-number,
.story-number,
.workspace-card figcaption > span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.principle-top,
.step-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.line-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.line-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.principle-icon {
  border-color: #dce5fb;
  background: #f8faff;
  color: var(--accent);
}

.principle-list h3 {
  margin: 34px 0 10px;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.principle-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.features {
  padding: 135px 0 80px;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 950px;
  margin-bottom: 82px;
}

.section-heading.compact {
  max-width: 760px;
  margin-bottom: 66px;
}

.section-heading.compact > p:not(.section-label) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.story {
  padding: 110px 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(560px, 1.32fr);
  gap: clamp(60px, 7vw, 110px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.story-reverse {
  grid-template-columns: minmax(560px, 1.32fr) minmax(280px, 0.68fr);
}

.story-reverse .story-copy {
  order: 2;
}

.story-copy h3 {
  margin: 20px 0 22px;
  font-size: clamp(2.3rem, 3.7vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.story-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.story-copy ul {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.story-copy li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

.story-copy li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.story-visual {
  width: 100%;
}

.workspace {
  padding: 145px 24px;
  background: var(--surface);
}

.workspace-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.workspace-heading {
  margin-bottom: 86px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 100px;
  align-items: end;
}

.workspace-heading > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 17px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.workspace-card {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

.workspace-card-wide {
  grid-column: 1 / -1;
}

.workspace-card figcaption {
  min-height: 112px;
  padding: 12px 10px 22px;
  display: grid;
  grid-template-columns: 42px auto 1fr;
  gap: 14px;
  align-items: start;
}

.workspace-card figcaption strong {
  font-size: 15px;
}

.workspace-card figcaption p {
  max-width: 460px;
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.workspace-card .screenshot-frame {
  border-radius: 14px;
  box-shadow: none;
}

.getting-started {
  padding: 145px 0 125px;
}

.step-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step-list li {
  min-height: 230px;
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}

.step-list li:last-child {
  border-right: 0;
}

.step-number {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font: 700 12px ui-monospace, SFMono-Regular, Consolas, monospace;
}

.step-icon {
  background: var(--surface);
}

.step-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.step-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.install-note {
  max-width: 780px;
  margin: 28px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

code {
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--ink-soft);
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.faq {
  padding: 120px 0 145px;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 110px;
  border-top: 1px solid var(--line);
}

.faq-heading {
  position: sticky;
  top: 130px;
  align-self: start;
}

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

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 25px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 650;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  color: var(--muted);
  font-size: 21px;
  font-weight: 400;
  transition: transform 180ms ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 650px;
  margin: -6px 52px 26px 0;
  color: var(--muted);
}

.closing {
  padding: 140px 24px;
  color: var(--white);
  background: var(--black);
}

.closing-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 120px;
  align-items: center;
}

.closing .section-label {
  color: #9ca3af;
}

.closing-copy > p:not(.section-label):not(.closing-meta) {
  max-width: 590px;
  margin: 28px 0 0;
  color: #aeb2ba;
  font-size: 18px;
}

.button-light {
  color: var(--black);
  background: var(--white);
}

.button-light:hover {
  background: #e9ebef;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.closing-link {
  padding: 12px 2px;
  border-bottom: 1px solid #60636a;
  color: #d2d5da;
  font-size: 14px;
  font-weight: 620;
}

.closing-meta {
  margin: 18px 0 0;
  color: #777b84;
  font-size: 12px;
}

.privacy-list {
  border-top: 1px solid #303238;
}

.privacy-list > div {
  padding: 23px 0;
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 14px;
  border-bottom: 1px solid #303238;
}

.privacy-list span {
  color: #7594ec;
  font: 700 11px ui-monospace, SFMono-Regular, Consolas, monospace;
}

.privacy-list strong {
  display: block;
  margin-bottom: 3px;
}

.privacy-list p {
  margin: 0;
  color: #888c95;
  font-size: 13px;
}

.site-footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.footer-brand p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

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

.copyright {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #8a8d94;
  font-size: 12px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1), transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.screenshot-frame[data-reveal] {
  transform: translateY(10px) scale(0.992);
}

[data-reveal][data-reveal-delay="1"] {
  transition-delay: 80ms;
}

[data-reveal][data-reveal-delay="2"] {
  transition-delay: 160ms;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (hover: hover) and (pointer: fine) {
  .principle-list article:hover .line-icon,
  .step-list li:hover .line-icon {
    transform: translateY(-2px);
    border-color: #bdc9e8;
  }

  .story-visual:hover,
  .workspace-card .screenshot-frame:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
}

@media (max-width: 1120px) {
  .hero-grid,
  .story,
  .story-reverse,
  .closing-inner {
    grid-template-columns: 1fr;
  }

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

  .hero-copy {
    max-width: 760px;
  }

  .hero h1 {
    font-size: clamp(4rem, 9vw, 6.2rem);
  }

  .story,
  .story-reverse {
    gap: 55px;
  }

  .story-reverse .story-copy {
    order: 0;
  }

  .workspace-heading {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .workspace-heading > p {
    max-width: 700px;
  }

  .closing-inner {
    gap: 70px;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(3.25px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-3.25px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    padding: 28px 24px 40px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav > a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 19px;
  }

  .site-nav .nav-source {
    margin-left: 0;
    padding-left: 4px;
    border-left: 0;
  }

  .site-nav .nav-download {
    margin-top: auto;
    padding: 17px 22px;
    border: 0;
    border-radius: 999px;
    text-align: center;
  }

  .principle-list,
  .workspace-grid,
  .step-list,
  .faq {
    grid-template-columns: 1fr;
  }

  .principle-list article,
  .principle-list article + article {
    min-height: auto;
    padding: 28px 0 34px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle-list h3 {
    margin-top: 24px;
  }

  .workspace-card-wide {
    grid-column: auto;
  }

  .step-list li {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step-list li:last-child {
    border-bottom: 0;
  }

  .faq {
    gap: 55px;
  }

  .faq-heading {
    position: static;
  }
}

@media (max-width: 680px) {
  .nav-shell {
    width: calc(100% - 30px);
  }

  .hero {
    padding: 122px 16px 72px;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(3.45rem, 15vw, 4.8rem);
  }

  .hero-actions,
  .closing-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .release-line {
    text-align: center;
  }

  .principles,
  .features,
  .getting-started,
  .faq,
  .site-footer {
    width: calc(100% - 32px);
  }

  .principles {
    padding: 100px 0 84px;
  }

  .principles-intro h2,
  .section-heading h2,
  .workspace-heading h2,
  .faq-heading h2,
  .closing-copy h2 {
    font-size: clamp(2.65rem, 12vw, 3.8rem);
  }

  .principles-intro > p:not(.section-label),
  .section-heading.compact > p:not(.section-label),
  .workspace-heading > p,
  .closing-copy > p:not(.section-label):not(.closing-meta) {
    font-size: 16px;
  }

  .principle-list {
    margin-top: 60px;
  }

  .features {
    padding: 92px 0 40px;
  }

  .section-heading {
    margin-bottom: 58px;
  }

  .story {
    padding: 75px 0;
    gap: 40px;
  }

  .story-copy h3 {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
  }

  .screenshot-frame {
    border-radius: 14px;
  }

  .workspace {
    padding: 96px 16px;
  }

  .workspace-heading {
    margin-bottom: 50px;
  }

  .workspace-card {
    padding: 10px;
    border-radius: 18px;
  }

  .workspace-card figcaption {
    min-height: auto;
    padding: 10px 6px 18px;
    grid-template-columns: 34px 1fr;
  }

  .workspace-card figcaption p {
    grid-column: 2;
    margin: 5px 0 0;
    text-align: left;
  }

  .getting-started {
    padding: 96px 0;
  }

  .step-list li {
    min-height: 175px;
    padding: 26px 12px;
  }

  .faq {
    padding: 88px 0 104px;
  }

  .faq-list summary {
    font-size: 16px;
  }

  .faq-list details p {
    margin-right: 20px;
  }

  .closing {
    padding: 96px 16px;
  }

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

  .site-footer nav {
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .copyright {
    grid-column: auto;
  }
}

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

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

  [data-reveal],
  .screenshot-frame[data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .closing-actions {
    display: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero,
  .principles,
  .features,
  .workspace,
  .getting-started,
  .faq,
  .closing {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}
