:root {
  --bg: #f7f7f3;
  --ink: #101411;
  --muted: #616760;
  --line: rgba(16, 20, 17, 0.14);
  --accent: #00d084;
  --accent-dark: #008a58;
  --surface: #ffffff;
  --inverse: #101411;
  --inverse-muted: rgba(247, 247, 243, 0.72);
  --max: 1180px;
  --topbar: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 6px;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 16px;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: var(--topbar);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: #ffffff;
  background: linear-gradient(to bottom, rgba(16, 20, 17, 0.78), rgba(16, 20, 17, 0));
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.topbar.is-scrolled {
  color: var(--ink);
  background: rgba(247, 247, 243, 0.93);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
}

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

.brand {
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0;
}

.nav {
  gap: clamp(14px, 2vw, 28px);
  font-size: 14px;
}

.nav a {
  position: relative;
  text-decoration: none;
  opacity: 0.78;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav a.is-active,
.nav a:hover {
  opacity: 1;
}

.nav a.is-active::after,
.nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  justify-self: end;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 720;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(16, 20, 17, 0.98) 0%, rgba(16, 20, 17, 0.82) 34%, rgba(16, 20, 17, 0.26) 72%),
    url("./assets/dashboard-preview.png") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 24svh;
  background: linear-gradient(to bottom, rgba(16, 20, 17, 0), var(--bg));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100% - 36px));
  margin-left: clamp(20px, 6vw, 84px);
  padding-top: var(--topbar);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--inverse-muted);
  font-size: clamp(18px, 2.1vw, 25px);
}

.hero-actions,
.domain-commands {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 780;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

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

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

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: #ffffff;
}

.hero-caption {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: 30px;
  z-index: 1;
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.section {
  padding: clamp(74px, 10vw, 132px) clamp(20px, 5vw, 64px);
}

.intro,
.surface,
.install,
.changelog,
.domain,
.final-cta {
  max-width: var(--max);
  margin: 0 auto;
}

.intro-grid,
.install-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(36px, 8vw, 92px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.1;
}

p {
  color: var(--muted);
}

.intro-copy p {
  margin: 0 0 20px;
  font-size: 18px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(54px, 8vw, 92px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle {
  min-height: 220px;
  padding: 28px clamp(18px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

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

.principle span,
.module-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 26px;
  background: rgba(0, 208, 132, 0.13);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 820;
}

.principle strong {
  display: block;
  font-size: 26px;
  line-height: 1.05;
}

.principle p {
  margin: 16px 0 0;
}

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

.surface > h2,
.changelog > h2 {
  max-width: 820px;
}

.changelog-lede {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: 19px;
}

.release-ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(34px, 5vw, 54px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.release-ledger div {
  min-width: 0;
  padding: 22px clamp(14px, 2vw, 24px);
  border-right: 1px solid var(--line);
}

.release-ledger div:last-child {
  border-right: 0;
}

.release-ledger strong {
  display: block;
  color: var(--accent-dark);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.95;
}

.release-ledger span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.auto-release-panel {
  margin-top: clamp(34px, 5vw, 54px);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(0, 138, 88, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.auto-release-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.auto-release-head h3 {
  margin-top: 0;
}

.auto-release-head p {
  max-width: 760px;
  margin: 10px 0 0;
  font-size: 16px;
}

.auto-release-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 208, 132, 0.12);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.auto-kicker {
  color: var(--accent-dark);
  font-size: 12px !important;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auto-release-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auto-release-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 28px);
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.auto-release-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.auto-release-item > span {
  width: fit-content;
  height: fit-content;
  padding: 5px 8px;
  border: 1px solid rgba(0, 138, 88, 0.24);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 820;
}

.auto-release-item strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
}

.auto-release-item p {
  margin: 8px 0 0;
  font-size: 16px;
}

.auto-release-item small {
  display: block;
  margin-top: 10px;
  color: rgba(97, 103, 96, 0.82);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.module-list {
  margin-top: clamp(52px, 8vw, 88px);
  border-top: 1px solid var(--line);
}

.module-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 30px;
  padding: clamp(28px, 5vw, 52px) 0;
  border-bottom: 1px solid var(--line);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.module-row:hover {
  transform: translateX(6px);
  border-color: rgba(0, 208, 132, 0.62);
}

.module-row p {
  max-width: 800px;
  margin: 14px 0 0;
  font-size: 18px;
}

.install {
  max-width: none;
  background: var(--inverse);
  color: #ffffff;
}

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

.install p {
  color: var(--inverse-muted);
  font-size: 18px;
}

.command-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.command {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  min-width: 0;
  padding-top: 16px;
}

.command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 760;
}

.command button {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 6px 10px;
}

.install-prompt {
  padding: 22px;
  border: 1px solid rgba(0, 208, 132, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.install-prompt .command-head {
  margin-bottom: 12px;
}

.prompt-note {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.install-prompt pre {
  max-height: 440px;
}

.manual-install {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.manual-title {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

pre {
  margin: 0;
  min-width: 0;
  overflow-x: auto;
  border-radius: 8px;
  background: #050705;
  color: #dffbea;
  padding: 18px;
  line-height: 1.55;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: clamp(42px, 7vw, 72px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  padding: clamp(32px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}

.release-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.release-meta time {
  color: var(--accent-dark);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 860;
  line-height: 0.9;
}

.release-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(0, 138, 88, 0.28);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-body {
  min-width: 0;
}

.release-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(280px, 1fr);
  gap: clamp(18px, 4vw, 46px);
  align-items: start;
}

.release-heading p {
  margin: 4px 0 0;
  font-size: 19px;
}

.release-points {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.release-points li {
  display: grid;
  grid-template-columns: minmax(160px, 0.38fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 34px);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.release-points strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.release-points span {
  min-width: 0;
  color: var(--muted);
  font-size: 16px;
}

.release-evidence {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 22px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 208, 132, 0.1);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 720;
}

.release-body code {
  border-radius: 5px;
  background: rgba(16, 20, 17, 0.06);
  color: var(--ink);
  padding: 0.1em 0.34em;
  overflow-wrap: anywhere;
}

.domain-panel {
  padding: clamp(34px, 7vw, 76px);
  background: var(--surface);
  border: 1px solid var(--line);
}

.domain-panel h2 span {
  color: var(--accent-dark);
}

.domain-panel p {
  max-width: 820px;
  font-size: 18px;
}

.domain-commands pre {
  flex: 1 1 320px;
}

.domain-panel .button-secondary {
  border-color: var(--line);
  color: var(--ink);
}

.final-cta {
  text-align: center;
  border-top: 1px solid var(--line);
}

.final-cta h2 {
  max-width: 900px;
  margin: 0 auto 32px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

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

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: var(--topbar);
    padding-top: 12px;
    padding-bottom: 12px;
    background: rgba(16, 20, 17, 0.82);
    backdrop-filter: blur(14px);
    color: #ffffff;
  }

  .nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: 100svh;
    align-items: flex-start;
    background:
      linear-gradient(180deg, rgba(16, 20, 17, 0.18) 0%, rgba(16, 20, 17, 0.86) 39%, rgba(16, 20, 17, 0.98) 70%),
      url("./assets/dashboard-preview.png") center top / auto 43% no-repeat,
      var(--inverse);
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 auto;
    padding-top: clamp(250px, 44svh, 360px);
    padding-bottom: 120px;
  }

  .hero-caption {
    left: 18px;
    right: 18px;
    bottom: 20px;
    max-width: none;
  }

  .intro-grid,
  .install-layout,
  .timeline-item,
  .release-heading,
  .release-points li {
    grid-template-columns: 1fr;
  }

  .release-ledger {
    grid-template-columns: repeat(2, 1fr);
  }

  .release-ledger div:nth-child(2n) {
    border-right: 0;
  }

  .release-ledger div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .auto-release-head,
  .auto-release-item {
    grid-template-columns: 1fr;
  }

  .release-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

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

  .principle {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .brand span:last-child {
    display: none;
  }

  .hero h1 {
    font-size: clamp(48px, 18vw, 74px);
  }

  .module-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .release-ledger {
    grid-template-columns: 1fr;
  }

  .release-ledger div,
  .release-ledger div:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .release-ledger div:last-child {
    border-bottom: 0;
  }

  .footer {
    flex-direction: column;
  }
}
