:root {
  --bg: #f3eee6;
  --bg-soft: #ebe4d9;
  --surface: rgba(255, 255, 255, 0.38);
  --line: rgba(23, 20, 17, 0.12);
  --text: #161311;
  --muted: rgba(22, 19, 17, 0.68);
  --accent: #d95e34;
  --accent-soft: rgba(217, 94, 52, 0.12);
  --shadow: 0 24px 80px rgba(31, 24, 18, 0.12);
  --radius: 28px;
  --content: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(217, 94, 52, 0.16), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(79, 74, 68, 0.12), transparent 28%),
    linear-gradient(180deg, #f6f1e9 0%, #f3eee6 48%, #eee6da 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 19, 17, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 19, 17, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 85%);
  pointer-events: none;
  z-index: -1;
}

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

button {
  font: inherit;
}

img {
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  width: var(--content);
  margin: 0 auto;
  margin-top: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 10px;
  z-index: 20;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 24px;
  background: rgba(248, 242, 235, 0.54);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 10px 30px rgba(31, 24, 18, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong,
.site-nav a,
.hero h1,
.section-heading h2,
.feature-body h3,
.stack-point h3,
.download-section h2 {
  font-family: "Sora", sans-serif;
}

.brand-copy strong {
  font-size: 0.95rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.74rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.site-header-end {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.site-nav a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 180ms ease;
}

.nav-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: pointer;
  border: 1px solid rgba(22, 19, 17, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 8px 22px rgba(31, 24, 18, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: var(--muted);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-icon:hover,
.nav-icon:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(217, 94, 52, 0.26);
  background: rgba(255, 255, 255, 0.44);
  color: var(--text);
}

.hero,
.intro,
.feature-rail,
.stack-section,
.download-section,
.site-footer {
  width: var(--content);
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(300px, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding: 12px 0 42px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-kicker svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  max-width: 8ch;
}

.hero-lead,
.hero-text,
.intro-layout p,
.feature-body p,
.stack-point p,
.download-copy,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-lead {
  font-size: 1.08rem;
  margin: 26px 0 0;
  max-width: 30rem;
}

.hero-text {
  margin: 18px 0 0;
  max-width: 32rem;
}

.hero-lead span,
.hero-text span,
.stack-point strong {
  color: var(--text);
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: 0 0 auto;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--text);
  color: #f7f3ec;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #25211d;
}

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

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(22, 19, 17, 0.25);
  background: rgba(255, 255, 255, 0.48);
}

.button:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible,
.nav-icon:focus-visible,
.notice-dialog-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.is-hidden {
  display: none !important;
}

.hero-art {
  position: relative;
  min-height: clamp(420px, 68vw, 760px);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-x {
  font-family: "Sora", sans-serif;
  font-size: clamp(12rem, 34vw, 30rem);
  line-height: 0.85;
  letter-spacing: -0.12em;
  color: rgba(22, 19, 17, 0.9);
  text-shadow: 0 18px 50px rgba(22, 19, 17, 0.12);
  transform: translate3d(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px), 0);
  transition: transform 260ms ease-out;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(22, 19, 17, 0.1);
  border-radius: 999px;
}

.orbit-a {
  width: min(84%, 540px);
  height: min(84%, 540px);
}

.orbit-b {
  width: min(64%, 410px);
  height: min(64%, 410px);
  transform: rotate(22deg);
}

.orbit-c {
  width: min(92%, 590px);
  height: min(46%, 290px);
  transform: rotate(-18deg);
}

.hero-ribbons {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 14px;
}

.ribbon {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(22, 19, 17, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 0.84rem;
}

.intro,
.feature-rail,
.stack-section,
.download-section {
  padding: clamp(72px, 10vw, 128px) 0;
  border-top: 1px solid rgba(22, 19, 17, 0.08);
}

.section-heading {
  display: grid;
  gap: 14px;
}

.section-heading h2,
.download-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

.intro-layout {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.intro-layout p,
.download-copy {
  font-size: 1.02rem;
  margin: 0;
}

.feature-list {
  margin-top: 36px;
}

.feature-row,
.stack-point {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(22, 19, 17, 0.1);
}

.stack-point {
  grid-template-columns: 60px minmax(0, 1fr);
}

.stack-point .inline-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin-bottom: 0;
  align-self: start;
}

.stack-point h3,
.stack-point p {
  grid-column: 2;
  min-width: 0;
}

.feature-row:last-child,
.stack-point:last-child {
  border-bottom: 1px solid rgba(22, 19, 17, 0.1);
}

.feature-index {
  font-family: "Sora", sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.14em;
}

.feature-body h3,
.stack-point h3 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  letter-spacing: -0.04em;
}

.inline-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.inline-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.feature-body p,
.stack-point p {
  margin: 0;
  max-width: 42rem;
}

.stack-section {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(30px, 8vw, 90px);
  align-items: start;
}

.stack-aside {
  position: sticky;
  top: 108px;
}

.stack-aside h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.download-section {
  text-align: center;
}

.download-section h2 {
  max-width: 12ch;
  margin: 0 auto;
}

.download-copy {
  max-width: 42rem;
  margin: 20px auto 0;
}

.download-actions {
  justify-content: center;
}

.notice-dialog {
  width: min(680px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.notice-dialog::backdrop {
  background:
    linear-gradient(180deg, rgba(18, 15, 13, 0.36), rgba(18, 15, 13, 0.48)),
    radial-gradient(circle at top, rgba(217, 94, 52, 0.12), transparent 42%);
  backdrop-filter: blur(10px);
}

.notice-dialog-panel {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(248, 242, 235, 0.96), rgba(240, 233, 225, 0.92)),
    radial-gradient(circle at top left, rgba(217, 94, 52, 0.1), transparent 34%);
  box-shadow:
    0 28px 90px rgba(22, 19, 17, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.notice-dialog-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.notice-dialog-top h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

.notice-dialog-close {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: pointer;
  border: 1px solid rgba(22, 19, 17, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--muted);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.notice-dialog-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.notice-dialog-close:hover,
.notice-dialog-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(217, 94, 52, 0.24);
  background: rgba(255, 255, 255, 0.48);
  color: var(--text);
}

.notice-dialog-meta,
.notice-dialog-summary,
.notice-dialog-content {
  color: var(--muted);
}

.notice-dialog-meta {
  margin-top: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.notice-dialog-summary {
  max-width: 44rem;
  margin: 18px 0 0;
  font-size: 1rem;
  line-height: 1.75;
}

.notice-dialog-content {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(22, 19, 17, 0.08);
  font-size: 0.98rem;
  line-height: 1.9;
  white-space: pre-wrap;
}

.notice-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.site-footer {
  padding: 26px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(22, 19, 17, 0.08);
}

.site-footer-end,
.site-footer-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer-end {
  justify-content: flex-end;
}

.site-footer-nav a {
  color: var(--muted);
  transition: color 180ms ease;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
  color: var(--text);
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .site-header-end {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 22px;
  }

  .hero-art {
    order: -1;
    min-height: 420px;
  }

  .stack-section,
  .intro-layout {
    grid-template-columns: 1fr;
  }

  .stack-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  :root {
    --content: min(1180px, calc(100vw - 28px));
  }

  .site-header-end {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 10px 16px;
    width: 100%;
  }

  .hero h1 {
    max-width: 7ch;
  }

  .feature-row,
  .stack-point {
    grid-template-columns: 1fr;
  }

  .stack-point .inline-icon,
  .stack-point h3,
  .stack-point p {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-ribbons {
    position: relative;
    margin-top: -10px;
  }

  .ribbon {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 24px;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer-end {
    align-items: flex-start;
    flex-direction: column;
  }

  .notice-dialog-top {
    flex-direction: column;
  }
}

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

  .reveal,
  .reveal.is-visible,
  .hero-x,
  .button,
  .site-nav a,
  .nav-icon,
  .notice-dialog-close {
    transition: none;
  }

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