:root {
  --background: #16130b;
  --surface: #1f1b13;
  --surface-strong: #2d2a21;
  --surface-soft: rgba(255, 255, 255, 0.045);
  --text: #eae2d4;
  --muted: #d0c6af;
  --faint: rgba(234, 226, 212, 0.68);
  --primary: #ffe088;
  --primary-deep: #e9c349;
  --secondary: #d2bcfb;
  --tertiary: #90cdff;
  --line: rgba(255, 255, 255, 0.1);
  --line-warm: rgba(255, 224, 136, 0.24);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: linear-gradient(180deg, #16130b 0%, #151208 48%, #110e07 100%);
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Inter, system-ui,
    sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.055;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

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

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius);
  color: #1f1700;
  background: var(--primary);
  font-weight: 800;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(22, 19, 11, 0.78);
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-size: 20px;
  font-weight: 900;
}

.icon-frame {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24%;
  box-shadow: 0 0 26px rgba(255, 224, 136, 0.18);
}

.icon-frame img {
  width: 110%;
  height: 110%;
  max-width: none;
  border-radius: 0;
  object-fit: cover;
}

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

.site-header nav a,
.site-footer nav a,
.header-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--faint);
  font-size: 14px;
  font-weight: 800;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.site-header nav a {
  padding: 0 14px;
}

.site-header nav a:hover,
.site-footer nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.header-action {
  padding: 0 18px;
  color: var(--primary);
  border: 1px solid var(--line-warm);
  background: rgba(255, 224, 136, 0.06);
}

.header-action:hover {
  transform: translateY(-1px);
  background: rgba(255, 224, 136, 0.12);
}

.hero {
  position: relative;
  min-height: 94dvh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 132px 24px 96px;
}

.hero-inner,
.feature-grid,
.privacy-section,
.download-section {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 72px;
  align-items: center;
}

.section-kicker {
  margin: 0 0 24px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero h1,
.section-heading h2,
.download-panel h2 {
  margin: 0;
  color: var(--text);
  font-family:
    Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: 92px;
  line-height: 1.04;
}

.hero h1 span {
  display: block;
  color: var(--primary);
  font-style: italic;
  font-weight: 500;
}

.hero-lead {
  width: min(620px, 100%);
  margin: 36px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
}

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

.primary-action,
.secondary-action,
.download-actions a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 26px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.primary-action {
  color: #2b2100;
  border: 1px solid rgba(255, 224, 136, 0.58);
  background: var(--primary);
  box-shadow: 0 0 28px rgba(255, 224, 136, 0.18);
}

.secondary-action {
  color: var(--secondary);
  border: 1px solid rgba(210, 188, 251, 0.34);
  background: rgba(210, 188, 251, 0.045);
}

.primary-action:hover,
.secondary-action:hover,
.download-actions a:hover {
  transform: translateY(-2px);
}

.hero-card {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.card-rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.34;
}

.card-rings span {
  position: absolute;
  border-radius: 999px;
  border: 1px solid var(--line-warm);
}

.card-rings span:first-child {
  width: 310px;
  height: 310px;
}

.card-rings span:last-child {
  width: 390px;
  height: 390px;
  border-color: rgba(210, 188, 251, 0.24);
}

.membership-card {
  position: relative;
  z-index: 1;
  width: min(380px, 100%);
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(210, 188, 251, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(35, 31, 23, 0.72);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.membership-card::before {
  content: "";
  position: absolute;
  inset: -50% -35% auto auto;
  width: 70%;
  height: 70%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.card-topline,
.card-bottomline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.script-logo {
  color: var(--primary);
  font-family:
    Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: 30px;
  font-style: italic;
  font-weight: 700;
}

.pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(210, 188, 251, 0.22);
  border-radius: 999px;
  color: var(--secondary);
  background: rgba(210, 188, 251, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.jar-mark {
  position: relative;
  z-index: 1;
  width: 172px;
  height: 172px;
  display: grid;
  place-items: center;
  align-self: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 224, 136, 0.2);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 30px rgba(255, 224, 136, 0.04);
}

.hero-icon-frame {
  width: 132px;
  height: 132px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

.card-bottomline {
  align-items: flex-end;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.card-bottomline span {
  display: block;
  margin-bottom: 6px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 900;
}

.card-bottomline strong {
  color: var(--text);
  font-size: 17px;
}

.fingerprint {
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 999px;
  border: 2px solid var(--primary);
  background:
    radial-gradient(circle, transparent 28%, var(--primary) 29%, transparent 32%),
    radial-gradient(circle, transparent 48%, rgba(255, 224, 136, 0.7) 49%, transparent 52%);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  transform: translateX(-50%);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--faint);
  font-size: 13px;
  font-weight: 800;
}

.feature-grid,
.privacy-section,
.download-section {
  padding: 96px 0;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 34px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.download-panel h2 {
  font-size: 56px;
  line-height: 1.14;
}

.section-heading p:not(.section-kicker),
.download-panel p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.privacy-grid article,
.download-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(31, 27, 19, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  grid-column: span 4;
  padding: 30px;
}

.feature-large {
  grid-column: span 8;
}

.feature-wide {
  grid-column: span 12;
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  align-items: center;
  gap: 44px;
}

.feature-card h3,
.privacy-grid h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.2;
}

.feature-card p,
.privacy-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.card-label {
  margin-bottom: 14px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 900;
}

.orb-line {
  position: absolute;
  top: 44px;
  right: 44px;
  width: 188px;
  height: 188px;
  border: 1px solid rgba(255, 224, 136, 0.18);
  border-radius: 999px;
}

.orb-line::after {
  content: "";
  position: absolute;
  inset: 32px;
  border: 1px solid rgba(255, 224, 136, 0.1);
  border-radius: inherit;
}

.icon-badge,
.privacy-icon {
  width: 48px;
  height: 48px;
  display: inline-block;
  margin-bottom: 28px;
  border-radius: 999px;
  border: 1px solid rgba(210, 188, 251, 0.26);
  background:
    radial-gradient(circle at 50% 50%, rgba(210, 188, 251, 0.38) 0 2px, transparent 3px),
    repeating-radial-gradient(circle, transparent 0 5px, rgba(210, 188, 251, 0.22) 6px 7px);
}

.message-stack {
  display: grid;
  gap: 12px;
}

.message-stack div {
  padding: 18px;
  border: 1px solid rgba(255, 224, 136, 0.16);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 800;
}

.message-stack div:nth-child(2) {
  border-color: rgba(210, 188, 251, 0.18);
}

.message-stack div:nth-child(3) {
  border-color: rgba(144, 205, 255, 0.18);
}

.privacy-section {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.privacy-grid article {
  min-height: 260px;
  padding: 30px;
}

.privacy-icon.hidden-eye {
  border-color: rgba(255, 224, 136, 0.25);
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), var(--primary) 50%, transparent calc(50% + 1px)),
    radial-gradient(ellipse at center, transparent 0 28%, rgba(255, 224, 136, 0.32) 30% 34%, transparent 36%);
}

.privacy-icon.shield {
  border-radius: var(--radius);
  border-color: rgba(210, 188, 251, 0.34);
}

.privacy-icon.trace {
  border-color: rgba(144, 205, 255, 0.34);
  background:
    radial-gradient(circle, transparent 34%, rgba(144, 205, 255, 0.42) 35% 38%, transparent 39%),
    radial-gradient(circle, transparent 56%, rgba(144, 205, 255, 0.26) 57% 60%, transparent 61%);
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 48px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-color: rgba(255, 224, 136, 0.18);
}

.download-actions {
  display: grid;
  gap: 14px;
}

.download-actions a {
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  color: var(--text);
  border: 1px solid rgba(255, 224, 136, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.download-actions span {
  color: var(--primary);
  font-weight: 900;
}

.download-actions strong {
  color: var(--muted);
  font-size: 15px;
}

.site-footer {
  padding: 40px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: rgba(17, 14, 7, 0.74);
}

.footer-inner {
  width: min(var(--container), 100%);
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 8px;
}

.footer-icon-frame {
  width: 36px;
  height: 36px;
}

.site-footer p {
  margin: 0;
  color: var(--faint);
}

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

.site-footer nav a {
  padding: 0 8px;
}

@media (max-width: 980px) {
  .header-action {
    display: none;
  }

  .hero-inner,
  .download-panel,
  .feature-wide {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-inner {
    gap: 52px;
  }

  .hero h1 {
    font-size: 72px;
  }

  .section-heading h2,
  .download-panel h2 {
    font-size: 44px;
  }

  .hero-lead {
    margin-inline: auto;
  }

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

  .hero-card {
    min-height: 430px;
  }

  .feature-large,
  .feature-card {
    grid-column: span 12;
  }

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

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

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 66px;
    padding: 10px 16px;
  }

  .brand span {
    display: none;
  }

  .site-header nav {
    gap: 0;
  }

  .site-header nav a {
    padding: 0 9px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding: 108px 18px 44px;
  }

  .hero-inner,
  .feature-grid,
  .privacy-section,
  .download-section {
    width: min(100% - 32px, var(--container));
  }

  .hero-inner {
    gap: 24px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    width: 100%;
    margin-top: 44px;
  }

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

  .hero-card {
    min-height: 228px;
  }

  .membership-card {
    width: min(300px, 100%);
    min-height: 208px;
    aspect-ratio: auto;
    padding: 14px;
  }

  .card-rings span:first-child {
    width: 218px;
    height: 218px;
  }

  .card-rings span:last-child {
    width: 286px;
    height: 286px;
  }

  .jar-mark {
    width: 92px;
    height: 92px;
  }

  .hero-icon-frame {
    width: 72px;
    height: 72px;
  }

  .script-logo {
    font-size: 24px;
  }

  .feature-grid,
  .privacy-section,
  .download-section {
    padding: 72px 0;
  }

  .feature-card,
  .privacy-grid article {
    min-height: auto;
    padding: 24px;
  }

  .feature-wide {
    gap: 26px;
  }

  .download-panel {
    padding: 24px;
  }

  .section-heading h2,
  .download-panel h2 {
    font-size: 36px;
  }
}

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