:root {
  color-scheme: dark;
  --ink: #070706;
  --carbon: #181810;
  --carbon-2: #201810;
  --panel: rgba(24, 24, 16, 0.74);
  --panel-strong: rgba(255, 112, 8, 0.08);
  --text: #fff5ec;
  --muted: rgba(255, 245, 236, 0.7);
  --dim: rgba(255, 245, 236, 0.44);
  --line: rgba(255, 112, 8, 0.18);
  --flame: #f84800;
  --ember: #f87008;
  --ember-soft: #ff9b54;
  --ember-deep: #b83808;
  --moss: #92815b;
  --paper: #fff5ec;
  --radius: 8px;
  --max: 1180px;
  --display: "Geist", "Noto Sans SC", sans-serif;
  --body: "Geist", "Noto Sans SC", sans-serif;
  --font-body: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-heavy: 800;
  --copy: rgba(255, 245, 236, 0.72);
  --copy-soft: rgba(255, 245, 236, 0.58);
  --copy-faint: rgba(255, 245, 236, 0.44);
  --leading-body: 1.76;
  --leading-zh: 1.82;
  --space-card: 24px;
  --space-section: 104px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(7, 7, 6, 0) 0, var(--ink) 860px),
    radial-gradient(circle at 74% 10%, rgba(248, 72, 0, 0.14), transparent 27%),
    radial-gradient(circle at 12% 78%, rgba(248, 112, 8, 0.1), transparent 24%),
    linear-gradient(135deg, #070706 0%, #181810 46%, #0b0b08 100%);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: var(--font-body);
  text-rendering: geometricPrecision;
}

html[lang="zh-CN"] body {
  font-family: "Noto Sans SC", "Geist", sans-serif;
  line-height: 1.8;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 112, 8, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 112, 8, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 78%);
}

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

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

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

.site-shell {
  overflow: clip;
}

.topbar {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 50%;
  width: min(calc(100% - 32px), var(--max));
  height: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 10px 10px 16px;
  border: 1px solid rgba(248, 112, 8, 0.16);
  border-radius: 999px;
  background: rgba(15, 13, 10, 0.62);
  backdrop-filter: blur(24px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.topbar.scrolled {
  background: rgba(15, 13, 10, 0.9);
  border-color: rgba(248, 112, 8, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--font-heavy);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(248, 72, 0, 0.22);
}

.brand span {
  font-size: 18px;
  font-family: var(--display);
}

.nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 36px;
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--font-bold);
}

.nav a,
.install-link,
.secondary-cta,
.primary-cta,
.install-card a,
.language-switch button {
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nav a:hover,
.install-link:hover,
.secondary-cta:hover {
  color: var(--text);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border: 1px solid rgba(248, 112, 8, 0.18);
  border-radius: 999px;
  background: rgba(248, 72, 0, 0.06);
}

.language-switch button {
  border: 0;
  color: var(--muted);
  background: transparent;
  height: 32px;
  min-width: 38px;
  border-radius: 999px;
  font: var(--font-heavy) 12px/1 var(--body);
  cursor: pointer;
}

.language-switch button.active {
  color: #160a02;
  background: var(--ember);
}

.install-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 96px;
  padding: 0 18px;
  border-radius: 999px;
  color: #160a02;
  background: var(--paper);
  font-size: 14px;
  font-weight: var(--font-heavy);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  padding: 148px max(24px, calc((100vw - var(--max)) / 2)) 72px;
  overflow: hidden;
}

.hero-bg {
  display: none;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 100px;
  filter: saturate(0.9) contrast(1.05);
}

.hero-pixel-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: auto;
  opacity: 0.72;
}

.hero-pixel-bg canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 7, 6, 0.82) 0%, rgba(7, 7, 6, 0.38) 36%, rgba(7, 7, 6, 0.08) 58%, rgba(7, 7, 6, 0) 76%),
    linear-gradient(180deg, rgba(7, 7, 6, 0) 0%, rgba(7, 7, 6, 0) 62%, rgba(7, 7, 6, 0.42) 80%, var(--ink) 96%);
}

.hero-scan {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(248, 112, 8, 0.18), transparent);
  transform: translateX(-80%);
  animation: scan 7s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 68%, transparent 96%);
}

@keyframes scan {
  0%, 26% { transform: translateX(-85%); opacity: 0; }
  34% { opacity: 1; }
  62% { transform: translateX(85%); opacity: 0; }
  100% { transform: translateX(85%); opacity: 0; }
}

.hero-copy {
  position: relative;
  width: min(780px, 100%);
  padding-bottom: 98px;
}

.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ember-soft);
  font-size: 14px;
  font-weight: var(--font-heavy);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

html[lang="zh-CN"] .kicker,
html[lang="zh-CN"] .eyebrow {
  letter-spacing: 0.08em;
  line-height: 1.65;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 0 6px rgba(248, 112, 8, 0.14);
}

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

h1 {
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(72px, 8.7vw, 120px);
  line-height: 0.86;
  letter-spacing: 0;
  font-weight: var(--font-heavy);
}

.hero-lede {
  width: min(690px, 100%);
  margin-top: 28px;
  color: rgba(255, 245, 236, 0.78);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.72;
  font-weight: var(--font-medium);
}

html[lang="zh-CN"] .hero-lede {
  width: min(720px, 100%);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.85;
}

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

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  font-weight: var(--font-heavy);
}

.primary-cta {
  gap: 12px;
  padding: 0 22px 0 24px;
  color: #130d07;
  background: linear-gradient(135deg, #ff9b54, var(--ember) 48%, var(--flame));
  box-shadow: 0 20px 50px rgba(248, 72, 0, 0.28);
}

.primary-cta svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.secondary-cta {
  padding: 0 20px;
  color: var(--text);
  border: 1px solid rgba(255, 112, 8, 0.24);
  background: rgba(248, 72, 0, 0.06);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(760px, 100%);
  border: 1px solid rgba(248, 112, 8, 0.22);
  background: rgba(248, 112, 8, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-metrics div {
  padding: 22px;
  background: rgba(24, 24, 16, 0.64);
  backdrop-filter: blur(18px);
}

.hero-metrics strong,
.step-index,
.install-steps li::before {
  color: var(--ember);
  font-family: var(--display);
  font-weight: var(--font-heavy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.hero-metrics strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--copy-soft);
  font-size: 14px;
  line-height: 1.45;
  font-weight: var(--font-semibold);
}

section:not(.hero) {
  padding: 104px max(24px, calc((100vw - var(--max)) / 2));
}

.section-copy {
  width: min(650px, 100%);
}

.section-copy.centered {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

h2 {
  margin-top: 12px;
  font-family: var(--display);
  font-size: clamp(36px, 5.3vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: var(--font-heavy);
  text-wrap: balance;
}

h3 {
  font-size: 20px;
  line-height: 1.32;
  font-weight: var(--font-heavy);
  text-wrap: balance;
}

html[lang="zh-CN"] h2 {
  width: min(640px, 100%);
  font-family: "Noto Sans SC", "Geist", sans-serif;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.22;
  letter-spacing: 0;
  white-space: pre-line;
}

#privacy-title {
  white-space: pre-line;
}

html[lang="zh-CN"] .centered h2 {
  margin-left: auto;
  margin-right: auto;
}

html[lang="zh-CN"] h3 {
  font-family: "Noto Sans SC", "Geist", sans-serif;
  line-height: 1.46;
}

.section-copy p:not(.eyebrow),
.feature-copy p:not(.eyebrow),
.privacy-panel p:not(.eyebrow) {
  margin-top: 20px;
  color: var(--copy);
  font-size: 17px;
  line-height: 1.82;
  font-weight: var(--font-body);
}

html[lang="zh-CN"] .section-copy {
  width: min(600px, 100%);
}

html[lang="zh-CN"] .section-copy.centered {
  width: min(680px, 100%);
}

/* 中文换行微调：demo 正文拓宽到 844px、install 标题拓宽到 749px，避免尴尬折行 */
html[lang="zh-CN"] #demo .section-copy {
  width: min(844px, 100%);
}

html[lang="zh-CN"] #install-title {
  width: min(749px, 100%);
}

html[lang="zh-CN"] #templates .section-copy {
  width: min(741px, 100%);
}

html[lang="zh-CN"] .section-copy p:not(.eyebrow),
html[lang="zh-CN"] .feature-copy p:not(.eyebrow),
html[lang="zh-CN"] .privacy-panel p:not(.eyebrow),
html[lang="zh-CN"] .step-card p,
html[lang="zh-CN"] .template-grid p,
html[lang="zh-CN"] .feature-list p,
html[lang="zh-CN"] .privacy-points span,
html[lang="zh-CN"] .install-steps li {
  font-size: 16px;
  line-height: var(--leading-zh);
  font-weight: var(--font-body);
  overflow-wrap: anywhere;
}

.product-strip {
  background: linear-gradient(180deg, var(--ink) 0%, #11100b 100%);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

figure {
  margin: 0;
  border: 1px solid rgba(248, 112, 8, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.showcase-large {
  grid-column: 1 / -1;
  border: 0;
}

.showcase-large figcaption {
  display: none;
}

figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

figcaption {
  border-top: 1px solid rgba(248, 112, 8, 0.14);
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: var(--font-heavy);
}

.steps,
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 46px;
}

.step-card,
.template-grid article,
.feature-list article,
.privacy-points div,
.install-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 112, 8, 0.04);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.step-card {
  min-height: 208px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.step-index {
  margin-bottom: 28px;
  font-size: 42px;
  line-height: 1;
}

.step-card p,
.template-grid p,
.feature-list p {
  margin-top: 12px;
  color: var(--copy-soft);
  line-height: var(--leading-body);
  font-weight: var(--font-body);
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
  background:
    linear-gradient(90deg, rgba(248, 72, 0, 0.1), transparent 44%),
    #0b0b08;
}

.feature-copy {
  position: sticky;
  top: 118px;
}

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

.feature-list article {
  min-height: 160px;
  padding: 24px;
}

.templates {
  background: var(--ink);
}

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

.template-grid article {
  min-height: 178px;
  padding: 22px;
}

.template-grid span {
  display: inline-block;
  color: var(--text);
  font-weight: var(--font-heavy);
}

.privacy {
  display: grid;
  grid-template-columns: minmax(0, 750px) minmax(280px, 420px);
  gap: 18px;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(248, 112, 8, 0.08), transparent),
    #10100a;
}

.privacy-panel {
  padding: 42px;
  border: 1px solid rgba(248, 112, 8, 0.26);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(248, 72, 0, 0.09), rgba(255, 255, 255, 0.032));
}

.privacy-points {
  display: grid;
  gap: 12px;
}

.privacy-points div {
  padding: 22px;
}

.privacy-points strong,
.privacy-points span {
  display: block;
}

.privacy-points strong {
  font-size: 18px;
}

.privacy-points span {
  margin-top: 8px;
  color: var(--copy-soft);
  line-height: var(--leading-body);
  font-weight: var(--font-body);
}

.install {
  background: linear-gradient(180deg, var(--ink), #120c08);
  padding-bottom: 220px !important;
}

.install-copy {
  width: min(760px, 100%);
}

.install-steps {
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.install-steps li {
  min-height: 112px;
  padding: 22px 24px;
  background: rgba(255, 112, 8, 0.04);
  color: var(--copy-soft);
  line-height: var(--leading-body);
  font-weight: var(--font-body);
  counter-increment: install;
}

.install-steps li::before {
  content: counter(install, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  font-size: 42px;
  line-height: 1;
}

.install-card {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.install-card img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.install-card div {
  flex: 1;
  min-width: 0;
}

.install-card strong,
.install-card span {
  display: block;
}

.install-card strong {
  font-size: 14px;
}

.install-card span {
  margin-top: 3px;
  color: var(--copy-soft);
  font-size: 14px;
  font-weight: var(--font-body);
  overflow-wrap: anywhere;
}

.install-card a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 112px;
  padding: 0 16px;
  border-radius: 999px;
  color: #160a02;
  background: var(--ember);
  font-weight: var(--font-heavy);
  font-size: 14px;
}

@media (hover: hover) and (pointer: fine) {
  .primary-cta:hover,
  .install-card a:hover,
  .install-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 42px rgba(248, 72, 0, 0.24);
  }

  .secondary-cta:hover,
  .language-switch button:not(.active):hover {
    color: var(--text);
    border-color: rgba(248, 112, 8, 0.36);
    background: rgba(248, 72, 0, 0.12);
  }

  .template-grid article:hover,
  .feature-list article:hover,
  .step-card:hover,
  .privacy-points div:hover,
  .install-card:hover {
    border-color: rgba(248, 112, 8, 0.42);
    background: rgba(248, 72, 0, 0.075);
    box-shadow: inset 0 1px 0 rgba(255, 245, 236, 0.05), 0 18px 54px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
  }
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

  .hero {
    min-height: 92vh;
    padding-top: 128px;
  }

  .hero-copy {
    padding-bottom: 44px;
  }

  .hero-metrics,
  .steps,
  .feature-band,
  .template-grid,
  .privacy,
  .install-steps,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .feature-copy {
    position: static;
  }

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

  .showcase-large {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .topbar {
    top: 10px;
    width: calc(100% - 20px);
    height: 58px;
    padding-left: 10px;
  }

  .brand span,
  .install-link {
    display: none;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 44px;
  }

  section:not(.hero) {
    padding: 72px 18px;
  }

  h1 {
    font-size: clamp(72px, 26vw, 128px);
  }

  h2 {
    font-size: 39px;
  }

  .hero-lede {
    font-size: 18px;
  }

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

  .primary-cta,
  .secondary-cta {
    width: 100%;
  }

  .step-card,
  .feature-list article,
  .privacy-panel,
  .template-grid article {
    padding: 20px;
  }

  .privacy-panel {
    padding: 24px;
  }

  .install-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

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