:root {
  --bg: #f6f7f8;
  --paper: #ffffff;
  --paper-2: #f0f4f2;
  --ink: #141318;
  --muted: #61636c;
  --soft: #8b9099;
  --line: rgba(20, 19, 24, 0.12);
  --line-strong: rgba(20, 19, 24, 0.22);
  --teal: #15a99e;
  --teal-deep: #087d78;
  --orange: #ff7b2e;
  --orange-deep: #d85122;
  --blue: #5067ff;
  --green: #20a66d;
  --shadow: 0 24px 70px rgba(21, 30, 35, 0.14);
  --radius: 8px;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(20, 19, 24, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 19, 24, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  color: var(--ink);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(135deg, rgba(21, 169, 158, 0.16), transparent 34%),
    linear-gradient(315deg, rgba(255, 123, 46, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(246, 247, 248, 0.92));
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 14px clamp(18px, 4vw, 54px);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(20, 19, 24, 0.08);
  background: rgba(246, 247, 248, 0.82);
  box-shadow: 0 12px 36px rgba(20, 19, 24, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(21, 169, 158, 0.24);
}

.site-nav {
  gap: clamp(8px, 2vw, 18px);
  color: rgba(20, 19, 24, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 2px;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(720px, calc(100svh - 78px));
  overflow: hidden;
  isolation: isolate;
}

.ambient-scene,
.scene-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.ambient-scene {
  overflow: hidden;
}

.scene-grid {
  background:
    linear-gradient(120deg, rgba(80, 103, 255, 0.12), transparent 24%),
    linear-gradient(290deg, rgba(255, 123, 46, 0.16), transparent 27%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(20, 19, 24, 0.055) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(20, 19, 24, 0.045) 39px 40px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  mask-image: linear-gradient(180deg, #000 62%, transparent);
  animation: gridDrift 18s linear infinite;
}

.signal {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(21, 169, 158, 0.86), rgba(255, 123, 46, 0.75), transparent);
  opacity: 0.72;
  transform-origin: left center;
  animation: signalSweep 5.8s ease-in-out infinite;
}

.signal-one {
  top: 17%;
  left: 7%;
  width: min(38vw, 520px);
  transform: rotate(11deg);
}

.signal-two {
  right: 5%;
  bottom: 27%;
  width: min(42vw, 610px);
  animation-delay: 1.2s;
  transform: rotate(-8deg);
}

.signal-three {
  right: 18%;
  top: 34%;
  width: min(26vw, 340px);
  animation-delay: 2.4s;
  transform: rotate(26deg);
}

.scene-label {
  position: absolute;
  right: clamp(18px, 6vw, 90px);
  bottom: 32px;
  color: rgba(20, 19, 24, 0.13);
  font-size: clamp(42px, 9vw, 138px);
  font-weight: 900;
  line-height: 0.9;
  pointer-events: none;
}

.hero-inner,
.section-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(360px, 1.07fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
  padding: clamp(42px, 7vw, 86px) 0 clamp(50px, 8vw, 92px);
}

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

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(72px, 12vw, 164px);
  font-weight: 920;
  line-height: 0.78;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.02;
}

h3 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.2;
}

.hero-lead,
.section-heading p,
.download-card p,
.feature-card p,
.faq-list p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.hero-lead {
  max-width: 590px;
  margin-bottom: 28px;
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.button {
  --button-bg: var(--paper);
  --button-fg: var(--ink);
  --button-line: rgba(20, 19, 24, 0.14);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--button-line);
  border-radius: var(--radius);
  background: var(--button-bg);
  color: var(--button-fg);
  box-shadow: 0 14px 34px rgba(20, 19, 24, 0.1);
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
  padding: 0 18px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.button::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.34) 48%, transparent 62% 100%);
  transform: translateX(-110%);
  transition: transform 460ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(20, 19, 24, 0.14);
}

.button:hover::after {
  transform: translateX(110%);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  --button-bg: linear-gradient(135deg, #141318, #263536);
  --button-fg: #ffffff;
  --button-line: rgba(20, 19, 24, 0.4);
}

.button-secondary {
  --button-bg: #ffffff;
  --button-line: rgba(21, 169, 158, 0.36);
}

.button-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: currentColor;
  font-size: 17px;
  line-height: 1;
  transition: transform 160ms ease;
}

.button-secondary .button-icon {
  background: rgba(21, 169, 158, 0.12);
  color: var(--teal-deep);
}

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

.button-full {
  width: 100%;
}

.release-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.release-pills span,
.package-source,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(20, 19, 24, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: rgba(20, 19, 24, 0.72);
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
  backdrop-filter: blur(10px);
}

.release-pills strong {
  color: var(--ink);
}

.product-stage {
  perspective: 1200px;
}

.preview-window {
  overflow: hidden;
  border: 1px solid rgba(20, 19, 24, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  transform:
    rotateX(calc(var(--tilt-y, 0) * -1deg))
    rotateY(calc(var(--tilt-x, 0) * 1deg));
  transition: transform 180ms ease;
  backdrop-filter: blur(22px);
  animation: previewFloat 7s ease-in-out infinite;
}

.preview-titlebar {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid rgba(20, 19, 24, 0.09);
  padding: 0 16px;
}

.window-controls {
  display: flex;
  gap: 7px;
}

.window-controls span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-strong);
}

.window-controls span:nth-child(1) {
  background: var(--orange);
}

.window-controls span:nth-child(2) {
  background: #efc34a;
}

.window-controls span:nth-child(3) {
  background: var(--green);
}

.preview-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
}

.status-chip {
  min-height: 26px;
  color: var(--green);
  padding: 0 9px;
}

.preview-body {
  display: grid;
  grid-template-columns: 70px 1fr;
  min-height: 410px;
}

.preview-rail {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
  border-right: 1px solid rgba(20, 19, 24, 0.08);
  background: rgba(20, 19, 24, 0.035);
  padding-top: 24px;
}

.preview-rail span {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: rgba(20, 19, 24, 0.1);
}

.preview-rail .rail-active {
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.preview-panel {
  padding: clamp(18px, 4vw, 34px);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.panel-head span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.panel-head strong {
  color: var(--teal-deep);
  font-size: 14px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.metric-row div {
  min-height: 78px;
  border: 1px solid rgba(20, 19, 24, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  padding: 14px;
}

.metric-row small,
.package-meta dt {
  display: block;
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.metric-row strong,
.package-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.flow-lines {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.flow-lines span {
  display: block;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 19, 24, 0.09);
}

.flow-lines span::after {
  display: block;
  width: 45%;
  height: 100%;
  content: "";
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  animation: progressPulse 4.6s ease-in-out infinite;
}

.flow-lines span:nth-child(2)::after {
  width: 62%;
  animation-delay: 420ms;
}

.flow-lines span:nth-child(3)::after {
  width: 36%;
  animation-delay: 860ms;
}

.flow-lines span:nth-child(4)::after {
  width: 78%;
  animation-delay: 1280ms;
}

.terminal-preview {
  display: grid;
  gap: 10px;
  border-radius: var(--radius);
  background: #15171b;
  padding: 18px;
}

.terminal-preview span {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(21, 169, 158, 0.95), rgba(255, 255, 255, 0.28), transparent);
}

.terminal-preview span:nth-child(2) {
  width: 74%;
}

.terminal-preview span:nth-child(3) {
  width: 48%;
}

.section {
  padding: clamp(70px, 10vw, 122px) 0;
}

.download-band {
  border-top: 1px solid rgba(20, 19, 24, 0.08);
  background: rgba(255, 255, 255, 0.55);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.download-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.download-grid-single {
  grid-template-columns: minmax(280px, 520px);
  justify-content: center;
}

.download-card,
.feature-card,
.release-table,
.faq-list details {
  border: 1px solid rgba(20, 19, 24, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(20, 19, 24, 0.08);
}

.download-card,
.feature-card {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 4vw, 30px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.download-card::before,
.feature-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--teal), var(--orange), var(--blue));
  opacity: 0;
  transition: opacity 180ms ease;
}

.download-card:hover,
.feature-card:hover {
  border-color: rgba(21, 169, 158, 0.32);
  box-shadow: 0 24px 70px rgba(20, 19, 24, 0.12);
  transform: translateY(-3px);
}

.download-card:hover::before,
.feature-card:hover::before {
  opacity: 1;
}

.download-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.package-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: #15171b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.package-badge-alt {
  background: linear-gradient(135deg, var(--teal), var(--green));
}

.package-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 20px;
}

.package-meta div {
  border: 1px solid rgba(20, 19, 24, 0.08);
  border-radius: var(--radius);
  background: rgba(246, 247, 248, 0.86);
  padding: 12px;
}

.release-section {
  background:
    linear-gradient(90deg, rgba(21, 169, 158, 0.1), transparent 34%),
    linear-gradient(270deg, rgba(255, 123, 46, 0.1), transparent 36%),
    #f9faf8;
}

.release-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1.2fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: start;
}

.release-table {
  display: grid;
  overflow: hidden;
}

.release-table > div {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid rgba(20, 19, 24, 0.08);
  padding: 16px 18px;
}

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

.release-table span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.release-table strong,
.release-table code {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.release-table code {
  font-family: "Cascadia Code", Consolas, monospace;
}

.copy-button {
  min-width: 54px;
  min-height: 34px;
  border: 1px solid rgba(20, 19, 24, 0.12);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.copy-button:hover {
  background: #15171b;
  color: #ffffff;
  transform: translateY(-1px);
}

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

.feature-mark {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 20px;
  color: var(--orange-deep);
  font-size: 13px;
  font-weight: 900;
}

.faq-section {
  background: rgba(255, 255, 255, 0.5);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(420px, 1fr);
  gap: clamp(24px, 5vw, 64px);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.faq-list p {
  margin: 14px 0 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(20, 19, 24, 0.08);
  padding: 26px clamp(18px, 4vw, 54px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.site-footer a {
  color: var(--teal-deep);
}

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

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

.reveal-delay-1 {
  transition-delay: 110ms;
}

.reveal-delay-2 {
  transition-delay: 210ms;
}

@keyframes gridDrift {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 0 0, 0 0, 40px 40px, 40px 40px;
  }
}

@keyframes signalSweep {
  0%,
  100% {
    opacity: 0.2;
    clip-path: inset(0 100% 0 0);
  }
  48%,
  62% {
    opacity: 0.82;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes previewFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

@keyframes progressPulse {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(42%);
  }
}

@media (max-width: 920px) {
  .site-header {
    min-height: 62px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner,
  .release-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 36px;
    padding-top: 42px;
  }

  .product-stage {
    max-width: 680px;
  }

  .release-layout,
  .faq-layout {
    gap: 20px;
  }

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

@media (max-width: 720px) {
  .site-nav {
    gap: 10px;
    font-size: 13px;
  }

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

  .hero-actions,
  .button {
    width: 100%;
  }

  .preview-body {
    grid-template-columns: 48px 1fr;
    min-height: 340px;
  }

  .preview-titlebar {
    grid-template-columns: 58px 1fr auto;
    padding: 0 12px;
  }

  .window-controls span {
    width: 9px;
    height: 9px;
  }

  .preview-rail span {
    width: 26px;
    height: 26px;
  }

  .metric-row,
  .package-meta {
    grid-template-columns: 1fr;
  }

  .release-table > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .copy-button {
    justify-self: start;
  }
}

@media (max-width: 460px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  h1 {
    font-size: clamp(62px, 22vw, 92px);
  }

  .preview-title {
    justify-content: start;
  }

  .status-chip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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