:root {
  color-scheme: dark;
  --ink: #071019;
  --ink-soft: #101b27;
  --paper: #f4f5f0;
  --paper-cool: #dce8e8;
  --paper-warm: #f2dcc8;
  --text: #f5f7f5;
  --muted: #a9b7bd;
  --dark-text: #111a1d;
  --dark-muted: #59666a;
  --amber: #ffc54d;
  --cyan: #49d7e9;
  --red: #ff626d;
  --line: rgba(255, 255, 255, .14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--text); background: var(--ink); letter-spacing: 0; }
body[data-language="en"] [data-lang="zh"],
body[data-language="zh"] [data-lang="en"] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[id] { scroll-margin-top: 86px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--amber);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 10px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 25, .94);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; min-width: 0; }
.brand picture, .brand img { width: 44px; height: 44px; flex: 0 0 auto; }
.brand img { border: 1px solid rgba(73, 215, 233, .28); border-radius: 8px; object-fit: cover; }
.brand > span { display: grid; gap: 4px; }
.brand strong { font-size: 18px; line-height: 1; }
.brand small { color: #81959e; font-size: 8px; font-weight: 800; }
.primary-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); color: #c1ccd0; font-size: 13px; font-weight: 700; }
.primary-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.primary-nav a:hover { color: var(--amber); }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 12px; }
.language-switch { display: grid; grid-template-columns: 1fr 1fr; width: 116px; padding: 3px; border: 1px solid #40505a; border-radius: 6px; }
.language-switch button { min-height: 34px; padding: 0 10px; border: 0; border-radius: 3px; color: #91a3aa; background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.language-switch button[aria-pressed="true"] { color: var(--ink); background: var(--amber); }
.store-status { min-height: 42px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid rgba(255, 197, 77, .5); border-radius: 6px; color: var(--amber); font-size: 12px; font-weight: 800; }

.hero {
  position: relative;
  min-height: calc(100svh - 136px);
  display: grid;
  grid-template-columns: minmax(340px, .76fr) minmax(560px, 1.24fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  overflow: hidden;
  padding: clamp(42px, 6vh, 76px) clamp(24px, 6vw, 96px) 46px;
  background: #071019;
}
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; }
.hero::before { inset: 0 0 0 61%; border-left: 1px solid rgba(73, 215, 233, .14); background: #0d1c28; }
.hero::after { left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255,255,255,.12); }
.hero-copy { position: relative; z-index: 5; max-width: 650px; }
.eyebrow { margin: 0 0 16px; color: var(--amber); font-size: 12px; line-height: 1.4; font-weight: 850; }
.status-dot { width: 7px; height: 7px; display: inline-block; margin-right: 9px; border-radius: 50%; background: #44e3a1; box-shadow: 0 0 0 5px rgba(68, 227, 161, .12); }
.hero h1 { margin: 0; font-size: clamp(38px, 4vw, 68px); line-height: .95; font-weight: 900; }
.hero-claim { margin: 20px 0 0; font-size: clamp(42px, 5.4vw, 84px); line-height: 1.01; font-weight: 880; }
.hero-summary { max-width: 42em; margin: 25px 0 0; color: var(--muted); font-size: clamp(15px, 1.25vw, 19px); line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; margin-top: 30px; }
.store-button { min-height: 58px; display: inline-flex; align-items: center; gap: 11px; padding: 8px 17px; border: 1px solid #42515a; border-radius: 7px; background: #f4f5f0; color: var(--ink); }
.store-button > span:last-child { display: grid; text-align: left; }
.store-button small { font-size: 8px; font-weight: 760; }
.store-button strong { font-size: 18px; line-height: 1.15; }
.apple-mark { width: 21px; height: 21px; display: grid; place-items: center; color: var(--ink); font-size: 18px; }
.hero-actions > a { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; color: #b9c6ca; border-bottom: 1px solid #55636a; font-size: 13px; font-weight: 760; }
.hero-actions > a:hover { color: var(--cyan); border-color: var(--cyan); }

.hero-visual { position: relative; z-index: 3; height: clamp(500px, 66vh, 680px); }
.phone { position: absolute; margin: 0; overflow: hidden; aspect-ratio: 1242 / 2688; border: 1px solid #536774; border-radius: 8px; background: #111b2d; box-shadow: 0 28px 60px rgba(0, 0, 0, .38); }
.phone img, .screen-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone--map { width: 35%; left: 2%; top: 7%; transform: rotate(-4deg); }
.phone--brief { width: 42%; left: 30%; top: 0; z-index: 3; }
.phone--alerts { width: 33%; right: 0; top: 9%; transform: rotate(4deg); }
.target { position: absolute; display: block; width: 150px; height: 150px; border: 1px solid rgba(255, 197, 77, .28); border-radius: 50%; }
.target::before, .target::after { content: ""; position: absolute; background: rgba(255, 197, 77, .28); }
.target::before { width: 1px; top: -22px; bottom: -22px; left: 50%; }
.target::after { height: 1px; left: -22px; right: -22px; top: 50%; }
.target--one { right: 2%; top: 3%; }
.target--two { width: 92px; height: 92px; left: 5%; bottom: 3%; border-color: rgba(73, 215, 233, .24); }
.target--two::before, .target--two::after { background: rgba(73, 215, 233, .24); }

.signal-rail { min-height: 60px; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #26343c; background: #111b23; }
.signal-rail div { min-height: 60px; display: flex; align-items: center; justify-content: center; gap: 10px; border-right: 1px solid #26343c; }
.signal-rail div:last-child { border-right: 0; }
.signal-rail strong { color: var(--cyan); font-size: 17px; }
.signal-rail span { color: #8fa0a7; font-size: 10px; font-weight: 800; }

.intelligence, .evidence, .markets, .workspace, .alerts { position: relative; min-height: 780px; display: grid; align-items: center; overflow: hidden; padding: 84px clamp(28px, 7vw, 112px); }
.intelligence { grid-template-columns: .78fr 1.22fr; gap: clamp(50px, 8vw, 130px); color: var(--dark-text); background: var(--paper); }
.section-heading { position: relative; z-index: 4; max-width: 620px; }
.section-heading h2, .market-copy h2, .closing h2 { margin: 0; font-size: clamp(44px, 5vw, 76px); line-height: 1.02; font-weight: 870; }
.section-heading > p:last-of-type, .market-copy > p { margin: 24px 0 0; color: var(--dark-muted); font-size: 17px; line-height: 1.8; }
.brief-stage { position: relative; min-height: 650px; }
.stage-index { position: absolute; right: 0; top: -20px; color: rgba(7, 16, 25, .06); font-size: 180px; line-height: 1; font-weight: 900; }
.screen-frame { position: relative; margin: 0; overflow: hidden; aspect-ratio: 1242 / 2688; border: 1px solid rgba(20, 34, 42, .22); border-radius: 8px; background: #111b2d; box-shadow: 0 30px 70px rgba(15, 32, 40, .22); }
.screen-frame--brief { position: absolute; width: min(43%, 330px); left: 5%; top: 0; }
.brief-notes { position: absolute; right: 0; top: 95px; width: 48%; border-top: 2px solid var(--amber); }
.brief-notes article { display: grid; grid-template-columns: 38px 1fr; gap: 4px 12px; padding: 19px 0; border-bottom: 1px solid #bdc6c4; }
.brief-notes article > span { grid-row: 1 / 3; color: #8e6a16; font-size: 11px; font-weight: 850; }
.brief-notes strong { font-size: 16px; }
.brief-notes p { margin: 0; color: #657174; font-size: 13px; line-height: 1.55; }

.alerts { grid-template-columns: 1.1fr .9fr; gap: clamp(60px, 9vw, 150px); background: #5b1f2a; }
.alerts::before { content: ""; position: absolute; inset: 0 58% 0 0; background: var(--red); }
.alert-visual { position: relative; z-index: 2; min-height: 650px; }
.alert-code { position: absolute; left: 0; top: 0; color: #5b1f2a; font-size: 13px; font-weight: 900; }
.screen-frame--alerts { position: absolute; width: min(54%, 350px); right: 6%; top: 0; border-color: rgba(255,255,255,.48); box-shadow: 0 34px 80px rgba(44, 8, 17, .32); }
.section-heading--light h2 { color: #fff; }
.section-heading--light > p:last-of-type { color: rgba(255,255,255,.72); }
.alerts .eyebrow { color: #ffbdc3; }
.alerts ul { display: grid; gap: 0; margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.25); }
.alerts li { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.25); color: #f7dfe2; font-size: 14px; font-weight: 700; }
.alerts li::before { content: "+"; display: inline-block; width: 28px; color: var(--amber); }

.evidence { grid-template-columns: .8fr .72fr .12fr; gap: clamp(30px, 6vw, 90px); color: var(--dark-text); background: var(--paper-warm); }
.screen-frame--evidence { width: min(100%, 360px); justify-self: center; }
.evidence-line { align-self: stretch; display: grid; grid-template-rows: repeat(4, 1fr); border-left: 1px solid rgba(95, 56, 42, .28); }
.evidence-line span { position: relative; border-bottom: 1px solid rgba(95, 56, 42, .28); }
.evidence-line span::before { content: ""; position: absolute; left: -4px; bottom: -4px; width: 7px; height: 7px; border-radius: 50%; background: #a0443c; }

.markets { grid-template-columns: .88fr 1.12fr; gap: clamp(60px, 9vw, 150px); color: var(--dark-text); background: var(--paper-cool); }
.markets::after { content: "MARKET / IMPACT"; position: absolute; left: 4vw; bottom: -24px; color: rgba(14, 58, 66, .07); font-size: clamp(70px, 11vw, 170px); line-height: 1; font-weight: 900; white-space: nowrap; }
.market-copy { position: relative; z-index: 2; max-width: 620px; }
.market-copy .eyebrow { color: #087484; }
.market-tape { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.market-tape span { padding: 8px 10px; border: 1px solid #62858b; border-radius: 4px; color: #305b62; font-size: 10px; font-weight: 850; }
.screen-frame--markets { width: min(62%, 390px); justify-self: center; transform: rotate(2deg); }

.workspace { grid-template-columns: 1.08fr .92fr; gap: clamp(60px, 9vw, 150px); background: #13213c; }
.workspace::before { content: ""; position: absolute; inset: 0 62% 0 0; background: #0d707b; }
.screen-frame--workspace { z-index: 2; width: min(55%, 360px); justify-self: center; border-color: rgba(255,255,255,.4); transform: rotate(-2deg); }
.workspace .eyebrow { color: #80efff; }
.language-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.language-list span { padding: 9px 11px; border: 1px solid rgba(128, 239, 255, .4); border-radius: 4px; color: #bfeff4; font-size: 11px; font-weight: 760; }

.closing { min-height: 520px; display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: clamp(30px, 6vw, 90px); padding: 80px clamp(28px, 7vw, 112px); color: var(--dark-text); background: var(--paper); }
.closing > img { width: 180px; height: 180px; border: 1px solid #bfcbc8; border-radius: 8px; object-fit: cover; box-shadow: 0 24px 55px rgba(19, 41, 48, .18); }
.closing h2 { font-size: clamp(36px, 4vw, 64px); }
.closing div > p:last-child { max-width: 50em; margin: 20px 0 0; color: var(--dark-muted); line-height: 1.75; }
.store-button--closing { border-color: #071019; background: #071019; color: #fff; }
.store-button--closing .apple-mark { color: #fff; }

.site-footer { min-height: 140px; display: grid; grid-template-columns: 1fr minmax(280px, .8fr) auto; align-items: center; gap: 36px; padding: 34px clamp(24px, 6vw, 96px); border-top: 1px solid #293740; color: #91a1a8; background: #071019; font-size: 12px; }
.site-footer > div { display: grid; gap: 7px; }
.site-footer strong { color: #fff; font-size: 18px; }
.site-footer p { margin: 0; line-height: 1.6; }
.site-footer nav { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer a:hover { color: var(--amber); }

[data-reveal] { opacity: 1; transform: none; }
.hero [data-reveal] { animation: hero-rise .7s ease both; }
.hero .hero-visual { animation-delay: .12s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1060px) {
  .site-header { grid-template-columns: 1fr auto; }
  .primary-nav { display: none; }
  .hero { grid-template-columns: .82fr 1.18fr; padding-inline: 32px; }
  .hero-claim { font-size: clamp(40px, 6vw, 66px); }
  .intelligence, .alerts, .markets, .workspace { gap: 50px; padding-inline: 48px; }
  .closing { grid-template-columns: 140px 1fr; }
  .closing > img { width: 140px; height: 140px; }
  .store-button--closing { grid-column: 2; justify-self: start; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer nav { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 760px) {
  .site-header { position: relative; min-height: 70px; padding: 9px 16px; gap: 12px; }
  .brand picture, .brand img { width: 40px; height: 40px; }
  .brand small, .store-status { display: none; }
  .header-actions { gap: 0; }
  .language-switch { width: 106px; }
  .hero { min-height: calc(100svh - 130px); grid-template-columns: 1fr; align-items: start; gap: 30px; padding: 44px 20px 28px; }
  .hero::before { inset: 56% 0 0 0; border-top: 1px solid rgba(73,215,233,.14); border-left: 0; }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: 34px; }
  .hero-claim { margin-top: 14px; font-size: clamp(39px, 12vw, 58px); }
  .hero-summary { margin-top: 18px; font-size: 15px; line-height: 1.65; }
  .hero-actions { margin-top: 22px; }
  .hero-actions > a { display: none; }
  .hero-visual { height: min(75vw, 430px); }
  .phone--map { width: 34%; left: 0; }
  .phone--brief { width: 42%; left: 29%; }
  .phone--alerts { width: 33%; }
  .target { display: none; }
  .signal-rail { grid-template-columns: 1fr 1fr; }
  .signal-rail div:nth-child(2) { border-right: 0; }
  .signal-rail div:nth-child(-n+2) { border-bottom: 1px solid #26343c; }

  .intelligence, .evidence, .alerts, .markets, .workspace { min-height: 0; grid-template-columns: 1fr; gap: 45px; padding: 68px 22px; }
  .section-heading h2, .market-copy h2 { font-size: clamp(42px, 12vw, 58px); }
  .section-heading > p:last-of-type, .market-copy > p { font-size: 15px; }
  .brief-stage { min-height: 570px; }
  .screen-frame--brief { width: 52%; left: 0; }
  .brief-notes { width: 44%; top: 45px; }
  .brief-notes article { grid-template-columns: 25px 1fr; gap: 4px 7px; padding: 14px 0; }
  .brief-notes strong { font-size: 13px; }
  .brief-notes p { font-size: 11px; }
  .stage-index { font-size: 100px; }
  .alerts { padding-top: 56px; }
  .alerts::before { inset: 0 0 52% 0; }
  .alert-visual { min-height: 570px; order: 2; }
  .screen-frame--alerts { width: 58%; right: 8%; }
  .alert-code { color: #ffd9dc; }
  .evidence { grid-template-columns: 1fr; }
  .screen-frame--evidence, .screen-frame--markets, .screen-frame--workspace { width: min(68%, 330px); }
  .evidence-line { display: none; }
  .markets::after { display: none; }
  .workspace::before { inset: 52% 0 0 0; }
  .screen-frame--workspace { order: 2; }
  .closing { grid-template-columns: 78px 1fr; gap: 24px; padding: 60px 22px; }
  .closing > img { width: 78px; height: 78px; align-self: start; }
  .closing h2 { font-size: 34px; }
  .store-button--closing { grid-column: 1 / -1; }
  .site-footer { grid-template-columns: 1fr; gap: 18px; padding: 34px 22px; }
  .site-footer nav { grid-column: auto; justify-content: flex-start; flex-wrap: wrap; gap: 10px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero [data-reveal] { animation: none; }
}
