:root {
  color-scheme: dark;
  --ink: #070516;
  --ink-2: #0f0a2a;
  --violet: #5d2bb9;
  --violet-bright: #9b62ff;
  --cyan: #46d6ff;
  --gold: #e3b84f;
  --gold-soft: #f5d98d;
  --cream: #f5ecc7;
  --muted: #aaa3c9;
  --line: rgba(224, 188, 91, 0.28);
  --panel: rgba(20, 13, 51, 0.72);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 28px; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 14%, rgba(100, 42, 201, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 58%, rgba(45, 154, 255, 0.1), transparent 34rem),
    var(--ink);
  color: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image: linear-gradient(rgba(255,255,255,.017) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.017) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 12;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 48px), var(--max));
  height: 96px;
  transform: translateX(-50%);
  border-bottom: 1px solid rgba(255,255,255,.11);
}

.wordmark { display: inline-flex; align-items: center; gap: 12px; width: max-content; }
.wordmark-mark {
  display: block;
  width: 38px;
  height: 38px;
  overflow: hidden;
  filter: drop-shadow(0 0 14px rgba(227,184,79,.22));
}
.wordmark-mark img { width: 46px; height: auto; max-width: none; transform: translate(-4px, -1px); }
.wordmark > span:last-child { display: flex; flex-direction: column; }
.wordmark b { color: var(--cream); font-size: 19px; letter-spacing: .18em; line-height: 1.1; }
.wordmark small { margin-top: 4px; color: var(--gold); font-family: Georgia, serif; font-size: 8px; letter-spacing: .25em; }

.site-nav { display: flex; gap: 38px; }
.site-nav a { position: relative; color: #c5bfdb; font-size: 14px; }
.site-nav a::after { position: absolute; left: 50%; bottom: -13px; width: 0; height: 1px; content: ""; background: var(--gold); transition: .25s ease; }
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { left: 0; width: 100%; }
.header-cta { justify-self: end; padding: 11px 22px; border: 1px solid var(--line); color: var(--cream); font-size: 13px; letter-spacing: .12em; background: rgba(20,11,43,.6); }
.nav-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  min-height: max(700px, 100svh);
  padding: clamp(125px, 15vh, 162px) max(24px, calc((100vw - var(--max))/2)) clamp(72px, 9vh, 92px);
  align-items: center;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(7,5,22,.98) 0%, rgba(8,5,25,.88) 43%, rgba(9,5,27,.42) 72%, rgba(7,5,22,.9) 100%), url("assets/hero-bg.webp");
  background-position: center, 74% 38%;
  background-size: cover;
}
.hero::after { position: absolute; inset: auto 0 0; height: 260px; content: ""; background: linear-gradient(transparent, var(--ink)); }
.hero-light { position: absolute; border-radius: 50%; filter: blur(4px); pointer-events: none; }
.hero-light-one { right: 5%; top: 18%; width: 420px; height: 420px; border: 1px solid rgba(227,184,79,.18); box-shadow: inset 0 0 90px rgba(120,50,240,.18), 0 0 100px rgba(81,42,182,.18); }
.hero-light-two { right: 19%; top: 37%; width: 260px; height: 260px; background: rgba(95,37,184,.2); filter: blur(80px); }
.hero-copy { position: relative; z-index: 3; max-width: 570px; }
.eyebrow { margin: 0 0 22px; color: var(--gold-soft); font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 34px; height: 1px; margin: 0 10px 4px 0; background: linear-gradient(90deg, var(--gold), transparent); }
.hero h1, .section h2, .modal h2 { margin: 0; font-family: "Songti SC", "STSong", Georgia, serif; font-weight: 700; }
.hero h1 { font-size: clamp(60px, 6.4vw, 94px); line-height: 1.03; letter-spacing: .04em; text-shadow: 0 12px 50px rgba(0,0,0,.4); }
.hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px var(--gold-soft); filter: drop-shadow(0 0 22px rgba(229,177,62,.2)); }
.hero-intro { max-width: 510px; margin: 30px 0 0; color: #bbb4d1; font-size: 17px; line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 1px solid transparent; cursor: pointer; font-size: 14px; font-weight: 700; letter-spacing: .08em; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #1a1024; background: linear-gradient(135deg, #f7dda0, #c9942e 78%); box-shadow: 0 12px 30px rgba(202,144,40,.2); }
.button-primary:hover { box-shadow: 0 15px 36px rgba(202,144,40,.35); }
.button-icon { width: 18px; height: 18px; margin-left: 12px; }
.button-ghost { border-color: rgba(255,255,255,.2); color: #eee9ff; background: rgba(15,9,37,.46); backdrop-filter: blur(9px); }
.button-ghost:hover { border-color: var(--gold); }
.hero-visual { position: relative; z-index: 3; width: 100%; height: min(610px, calc(100svh - 138px)); min-height: 520px; }
.phone { position: absolute; aspect-ratio: 375 / 812; height: auto; padding: 9px; overflow: hidden; border: 1px solid rgba(245,217,141,.48); border-radius: 34px; background: #090716; box-shadow: 0 38px 80px rgba(0,0,0,.48), 0 0 46px rgba(103,47,213,.22); }
.phone img { width: 100%; height: auto; aspect-ratio: 375 / 812; object-fit: contain; border-radius: 26px; }
.phone-speaker { position: absolute; top: 17px; left: 50%; z-index: 2; width: 72px; height: 17px; transform: translateX(-50%); border-radius: 20px; background: #05040d; }
.phone-front { right: 11%; bottom: 0; width: clamp(225px, 20vw, 250px); transform: rotate(2.5deg); }
.phone-back { right: 40%; bottom: 28px; width: clamp(200px, 18vw, 225px); transform: rotate(-8deg); opacity: .85; filter: saturate(.9); }
.orbit { position: absolute; right: 0; bottom: 2%; width: 540px; height: 220px; transform: rotate(-7deg); border: 1px solid rgba(229,179,59,.18); border-radius: 50%; }
.orbit-two { right: 5%; bottom: 8%; width: 420px; height: 160px; border-color: rgba(81,195,255,.17); }
.section { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.experience { padding: 120px 0; }
.section-heading { display: grid; grid-template-columns: .9fr 1.1fr; align-items: end; gap: 80px; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -52px; }
.section h2 { font-size: clamp(42px, 5vw, 66px); line-height: 1.18; letter-spacing: .035em; }
.section-heading > p:last-child { margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.feature-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; margin-top: 68px; }
.feature-card { position: relative; min-height: 330px; padding: 36px 30px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); background: linear-gradient(155deg, rgba(32,20,70,.8), rgba(11,8,28,.86)); transition: transform .35s ease, border-color .35s ease; }
.feature-card:hover { transform: translateY(-6px); border-color: var(--line); }
.feature-card::after { position: absolute; right: -65px; bottom: -65px; width: 170px; height: 170px; content: ""; border: 1px solid rgba(226,178,72,.12); border-radius: 50%; box-shadow: 0 0 60px rgba(102,45,197,.11); }
.feature-primary { background: linear-gradient(145deg, rgba(91,42,174,.66), rgba(17,10,43,.9)); }
.feature-number { color: rgba(245,217,141,.5); font-family: Georgia, serif; font-size: 11px; letter-spacing: .22em; }
.feature-icon { display: grid; width: 60px; height: 60px; margin: 46px 0 22px; place-items: center; border: 1px solid var(--line); border-radius: 16px; color: var(--gold-soft); background: rgba(235,189,77,.07); }
.feature-icon svg { width: 29px; height: 29px; }
.feature-card h3 { margin: 0 0 12px; color: var(--cream); font-family: "Songti SC", serif; font-size: 23px; }
.feature-card p { margin: 0; color: #948dad; font-size: 13px; line-height: 1.85; }
.feature-tag { position: absolute; top: 33px; right: 28px; color: #716b88; font-size: 9px; letter-spacing: .15em; }

.screens { width: 100%; padding: 120px max(24px, calc((100vw - var(--max))/2)); overflow: hidden; background: linear-gradient(180deg, rgba(18,11,45,.3), rgba(27,14,62,.54), rgba(11,7,28,.3)); }
.screens-heading { display: flex; align-items: end; justify-content: space-between; width: 100%; margin: 0 auto 55px; }
.screens-heading > p { max-width: 320px; margin: 0 0 7px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.screen-rail { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 20px; width: min(1180px, 100%); margin: 0 auto; }
.screen-card { position: relative; margin: 0; padding: 10px 10px 0; border: 1px solid rgba(255,255,255,.08); background: rgba(9,6,24,.8); transition: transform .35s ease, border-color .35s ease; }
.screen-card:hover { transform: translateY(-8px); border-color: var(--line); }
.screen-card img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; object-position: top; filter: saturate(.96); }
.screen-card figcaption { display: grid; grid-template-columns: 25px 1fr; padding: 18px 8px 20px; }
.screen-card figcaption span { grid-row: 1 / 3; color: var(--gold); font-family: Georgia, serif; font-size: 11px; }
.screen-card figcaption b { color: var(--cream); font-size: 14px; letter-spacing: .09em; }
.screen-card figcaption small { margin-top: 7px; color: #77708e; font-size: 10px; }
.screen-card-featured { transform: translateY(-18px); }
.screen-card-featured:hover { transform: translateY(-26px); }

.download-section { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 80px; align-items: center; min-height: 560px; margin-top: 120px; margin-bottom: 100px; padding: 70px 80px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(120deg, rgba(40,20,83,.88), rgba(12,8,32,.94)); box-shadow: 0 35px 100px rgba(0,0,0,.3); }
.download-section::before { position: absolute; inset: 0; content: ""; opacity: .08; background: url("assets/hero-bg.webp") center 44% / cover; }
.download-glow { position: absolute; top: -50%; left: 8%; width: 480px; height: 480px; border-radius: 50%; background: rgba(113,46,217,.25); filter: blur(70px); }
.download-copy, .qr-card { position: relative; z-index: 2; }
.download-copy { max-width: 650px; }
.download-lead { max-width: 560px; margin: 24px 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.address-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 18px; border: 1px solid rgba(255,255,255,.1); background: rgba(6,4,19,.45); }
.address-box div { min-width: 0; }
.address-box small { display: block; color: #7d7698; font-size: 9px; letter-spacing: .16em; }
.address-box strong { display: block; margin-top: 6px; overflow: hidden; color: var(--cream); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.copy-button { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--line); color: var(--gold-soft); cursor: pointer; background: transparent; font-size: 11px; }
.download-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.platform-button { display: flex; align-items: center; gap: 13px; min-height: 66px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.11); color: inherit; cursor: pointer; font: inherit; text-align: left; background: rgba(17,10,42,.85); transition: transform .25s ease, border-color .25s ease; }
.platform-button:hover { transform: translateY(-2px); border-color: var(--gold); }
.platform-button > span:last-child { display: flex; flex-direction: column; }
.platform-button small { color: #77708f; font-size: 9px; letter-spacing: .08em; }
.platform-button b { margin-top: 4px; color: #ebe5fa; font-size: 12px; font-weight: 600; }
.platform-icon { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #150d29; background: linear-gradient(135deg, #f6d989, #b9862f); }
.platform-icon svg { width: 21px; height: 21px; }
.safe-note { color: #6e6784; font-size: 9px; letter-spacing: .08em; line-height: 1.7; }
.qr-card { display: flex; flex-direction: column; align-items: center; padding: 20px; border: 1px solid rgba(255,255,255,.1); background: rgba(8,5,24,.58); }
.qr-frame { width: 145px; aspect-ratio: 1; padding: 10px; background: #fff; }
.qr-frame img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.qr-card b { margin-top: 16px; color: var(--cream); font-size: 13px; }
.qr-card span { margin-top: 7px; color: #77708e; font-size: 9px; line-height: 1.6; text-align: center; }

.site-footer { display: flex; align-items: center; justify-content: space-between; width: min(calc(100% - 48px), var(--max)); min-height: 110px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.08); color: #6f6986; font-size: 11px; }
.site-footer > p:first-child { letter-spacing: .12em; }
.site-footer > p:last-child { justify-self: end; }
.mobile-download-bar { display: none; }

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: .25s ease; }
.modal[aria-hidden="false"] { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,2,11,.79); backdrop-filter: blur(12px); }
.modal-panel { position: relative; z-index: 1; width: min(440px, 100%); max-height: calc(100dvh - 32px); padding: 44px 38px 36px; overflow-y: auto; border: 1px solid var(--line); background: linear-gradient(150deg, #211247, #0c081e 72%); box-shadow: 0 35px 100px rgba(0,0,0,.6); text-align: center; }
.modal-close { position: absolute; top: 12px; right: 14px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; color: #8e86a9; cursor: pointer; background: transparent; }
.modal-close svg { width: 21px; height: 21px; }
.modal-suit { display: block; width: 58px; height: 58px; margin: 0 auto 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: rgba(235,189,77,.05); }
.modal-suit img { width: 70px; height: auto; max-width: none; transform: translate(-6px, -2px); }
.modal .eyebrow { margin-bottom: 10px; font-size: 9px; }
.modal h2 { color: var(--cream); font-size: 30px; }
.modal-panel > p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.8; }
.modal-address { margin: 22px 0 16px; padding: 12px; border: 1px solid rgba(255,255,255,.1); color: var(--gold-soft); font-family: ui-monospace, monospace; font-size: 12px; background: rgba(0,0,0,.2); }
.modal-go { width: 100%; }
.modal-copy { width: 100%; margin-top: 11px; padding: 11px; border: 0; color: #88819d; cursor: pointer; background: transparent; font-size: 11px; }
.toast { position: fixed; right: 28px; bottom: 28px; z-index: 60; padding: 12px 17px; border: 1px solid var(--line); color: var(--cream); background: #17102e; box-shadow: 0 14px 40px rgba(0,0,0,.35); font-size: 12px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

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

@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { position: absolute; top: 82px; right: 0; display: none; flex-direction: column; width: 220px; padding: 24px; border: 1px solid var(--line); background: rgba(10,7,28,.96); }
  .site-nav.open { display: flex; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 44px; border: 0; background: transparent; }
  .nav-toggle span { display: block; width: 25px; height: 1px; background: var(--cream); }
  .hero { grid-template-columns: .86fr 1.14fr; min-height: 820px; padding-top: 140px; }
  .hero h1 { font-size: 58px; }
  .phone-front { right: 0; width: 225px; }
  .phone-back { right: 34%; width: 200px; }
  .section-heading { gap: 35px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:last-child { grid-column: 1 / -1; min-height: 260px; }
  .screen-rail { grid-template-columns: repeat(4, 270px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 2px 26px; scrollbar-width: none; }
  .screen-rail::-webkit-scrollbar { display: none; }
  .screen-card { scroll-snap-align: center; }
  .download-section { grid-template-columns: 1fr; max-width: 760px; }
  .qr-card { display: none; }
}

@media (max-width: 820px) {
  .site-header { width: calc(100% - 32px); height: 78px; }
  .wordmark b { font-size: 16px; }
  .hero { display: block; min-height: auto; padding: 128px 20px 88px; background-image: linear-gradient(180deg, rgba(7,5,22,.78), rgba(7,5,22,.9) 52%, #070516 96%), url("assets/hero-bg.webp"); background-position: center top; }
  .hero-copy { text-align: center; }
  .hero .eyebrow { justify-content: center; }
  .hero h1 { font-size: clamp(50px, 16vw, 67px); }
  .hero-intro { margin: 24px auto 0; font-size: 14px; line-height: 1.85; }
  .hero-actions { justify-content: center; }
  .button { min-height: 50px; padding: 0 20px; }
  .hero-visual { height: 470px; margin-top: 48px; }
  .phone-front { right: 50%; width: 219px; transform: translateX(50%) rotate(1.5deg); }
  .phone-back { display: none; }
  .orbit { right: 50%; bottom: 0; width: 390px; height: 130px; transform: translateX(50%) rotate(-8deg); }
  .orbit-two { right: 50%; width: 300px; height: 90px; }
  .section { width: calc(100% - 32px); }
  .experience { padding: 88px 0 80px; }
  .section-heading { display: block; }
  .section-heading .eyebrow { margin-bottom: 18px; }
  .section h2 { font-size: 40px; }
  .section-heading > p:last-child { margin-top: 24px; }
  .feature-grid { grid-template-columns: 1fr; margin-top: 42px; }
  .feature-card, .feature-card:last-child { grid-column: auto; min-height: 270px; }
  .feature-icon { margin-top: 32px; }
  .screens { width: 100%; padding: 82px 16px; }
  .screens-heading { display: block; margin-bottom: 32px; }
  .screens-heading > p { margin-top: 22px; }
  .screen-rail { grid-template-columns: repeat(4, min(74vw, 280px)); gap: 13px; }
  .screen-card-featured { transform: none; }
  .screen-card-featured:hover { transform: translateY(-8px); }
  .download-section { display: block; width: calc(100% - 28px); min-height: 0; margin-top: 75px; margin-bottom: 90px; padding: 42px 24px; }
  .download-copy { text-align: center; }
  .download-lead { font-size: 13px; }
  .address-box { text-align: left; }
  .address-box strong { max-width: 190px; font-size: 10px; }
  .download-actions { grid-template-columns: 1fr; }
  .safe-note { margin-top: 18px; }
  .site-footer { display: flex; flex-direction: column; gap: 17px; justify-content: center; width: calc(100% - 32px); min-height: 210px; padding-bottom: 70px; text-align: center; }
  .site-footer > p { margin: 0; }
  .site-footer > p:last-child { justify-self: auto; }
  .mobile-download-bar { position: fixed; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); left: 10px; z-index: 18; display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 9px 10px 9px 16px; border: 1px solid var(--line); background: rgba(12,8,31,.93); backdrop-filter: blur(15px); box-shadow: 0 15px 35px rgba(0,0,0,.45); }
  .mobile-download-bar div { display: flex; flex-direction: column; }
  .mobile-download-bar small { color: #77708d; font-size: 8px; }
  .mobile-download-bar b { margin-top: 3px; color: var(--cream); font-size: 13px; }
  .mobile-download-bar a { padding: 10px 14px; color: #1a1024; background: linear-gradient(135deg, #f7dda0, #c9942e); font-size: 11px; font-weight: 700; }
  .modal-panel { padding: 40px 24px 28px; }
  .toast { right: 14px; bottom: 86px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
