/* Aletheon marketing site
   Palette: brand red (the launch poster), ink (the app's own surface), bone (poster paper).
   Type: Bricolage Grotesque for Latin display, Geist for Latin body, Noto Sans SC / PingFang for Chinese. */

:root {
  --red: #A62B17;
  --red-deep: #7E1F10;
  --red-ink: #C8321F;
  --ink: #0E0D11;
  --ink-2: #16151A;
  --ink-3: #1F1E25;
  --line: rgba(239, 230, 214, 0.12);
  --bone: #EFE6D6;
  --bone-dim: rgba(239, 230, 214, 0.68);
  --ash: #8E8995;
  --green: #3DDC84;

  --font-display: "Bricolage Grotesque", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-zh: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html[data-lang="zh"] body { font-family: var(--font-zh); line-height: 1.75; }
html[data-lang="zh"] .h2, html[data-lang="zh"] .hero-title, html[data-lang="zh"] .closing-title,
html[data-lang="zh"] h3 { font-family: var(--font-zh); letter-spacing: -0.01em; }
html[data-lang="en"] .h2, html[data-lang="en"] .hero-title, html[data-lang="en"] .closing-title,
html[data-lang="en"] h3 { font-family: var(--font-display); letter-spacing: -0.02em; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bone); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: 6px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 200ms var(--ease-out);
}
.nav.on-red { background: color-mix(in srgb, var(--red) 78%, transparent); border-bottom-color: rgba(239,230,214,0.16); }
.nav-inner { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; flex-shrink: 0; }
.brand img { border-radius: 9px; }
.brand-name { display: flex; align-items: baseline; gap: 8px; font-size: 16px; }
.brand-latin { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--bone-dim); letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 26px; margin-left: 20px; font-size: 15px; color: var(--bone-dim); }
.nav-links a:hover { color: var(--bone); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--bone); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; height: 34px; padding: 0 12px; cursor: pointer;
}
.lang-toggle:hover { border-color: rgba(239,230,214,0.4); }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--bone); transition: transform 180ms var(--ease-out); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: var(--bone); color: var(--ink);
  transition: transform 120ms var(--ease-out), background 160ms;
}
.btn:hover { background: #fff; }
.btn:active { transform: scale(0.97); }
.btn-small { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--bone); border: 1px solid rgba(239,230,214,0.45); }
.btn-ghost:hover { background: rgba(239,230,214,0.1); }

.appstore {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border-radius: 12px; padding: 8px 16px 8px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform 120ms var(--ease-out), background 160ms;
}
.appstore:hover { background: #111; }
.appstore:active { transform: scale(0.97); }
.appstore span { display: flex; flex-direction: column; line-height: 1.1; }
.appstore small { font-size: 11px; opacity: 0.85; }
.appstore strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.appstore-lg { padding: 12px 24px 12px 18px; border-radius: 14px; }
.appstore-lg strong { font-size: 24px; }
.appstore-lg small { font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--red); color: var(--bone);
  min-height: 100svh; padding: 112px 0 0; overflow: hidden; isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 38%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.22));
  pointer-events: none;
}
.hero-statue {
  position: absolute; z-index: -1; bottom: -6%; left: 50%; height: 96%; width: auto;
  transform: translateX(-72%);
  opacity: 0.11; filter: brightness(10) ;
  pointer-events: none; user-select: none;
}
.hero-inner {
  width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; min-height: calc(100svh - 112px);
}
.hero-copy { padding-bottom: clamp(56px, 10vh, 120px); }
.hero-title {
  font-size: clamp(44px, 7.6vw, 104px); line-height: 1.02; font-weight: 900;
  text-wrap: balance; margin-bottom: 26px;
}
html[data-lang="en"] .hero-title { font-weight: 800; font-size: clamp(48px, 8vw, 112px); font-variation-settings: "opsz" 96; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; animation: rise 900ms var(--ease-out) both; }
.hero-title .line:nth-child(2) > span { animation-delay: 90ms; }
.hero-sub {
  max-width: 34ch; font-size: clamp(17px, 1.5vw, 21px); color: rgba(239,230,214,0.86);
  animation: fade 900ms var(--ease-out) 240ms both;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; animation: fade 900ms var(--ease-out) 360ms both; }
.hero-cta .btn-ghost { height: 52px; padding: 0 22px; font-size: 16px; }

.hero-visual { position: relative; align-self: end; display: flex; justify-content: center; }
.phone-hero { width: min(100%, 420px); animation: rise 1100ms var(--ease-out) 200ms both; }
.phone-hero img { filter: drop-shadow(0 40px 60px rgba(0,0,0,0.45)); }
.stamp {
  position: absolute; right: -4%; top: 10%;
  padding: 12px 18px 14px; border: 4px solid var(--bone); border-radius: 10px;
  color: var(--bone); text-align: center; line-height: 1.1;
  transform: rotate(-9deg);
  box-shadow: inset 0 0 0 2px var(--red), 0 0 0 2px var(--bone);
  mix-blend-mode: screen;
  animation: stamp 520ms cubic-bezier(0.2, 1.4, 0.4, 1) 1150ms both;
}
.stamp-top { display: block; font-size: 11px; letter-spacing: 0.08em; opacity: 0.8; }
.stamp-main { display: block; font-size: clamp(22px, 2.4vw, 34px); font-weight: 900; margin: 2px 0; }
html[data-lang="en"] .stamp-main { font-family: var(--font-display); font-weight: 800; }
.stamp-sub { display: block; font-size: 12px; opacity: 0.85; }

@keyframes rise { from { opacity: 0; transform: translateY(42px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-9deg) scale(1.7); } 70% { opacity: 1; } to { opacity: 1; transform: rotate(-9deg) scale(1); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.h2 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.1; font-weight: 800; text-wrap: balance; max-width: 22ch; }
.lede { margin-top: 18px; max-width: 54ch; color: var(--bone-dim); font-size: clamp(17px, 1.3vw, 19px); }

/* Pipeline */
.stages { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.stages li { padding: 26px 22px 30px 0; border-right: 1px solid var(--line); margin-right: 22px; }
.stages li:last-child { border-right: 0; margin-right: 0; }
.stage-n { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--red-ink); display: inline-block; margin-bottom: 14px; }
.stages h3 { font-size: 21px; margin-bottom: 8px; }
.stages p { font-size: 15px; color: var(--bone-dim); line-height: 1.7; }
.phone-row { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 28px; align-items: end; }
.phone-row .phone { margin: 0; }
.phone-row figcaption { margin-top: 14px; font-size: 14px; color: var(--ash); }
.phone img { filter: drop-shadow(0 30px 50px rgba(0,0,0,0.5)); }

/* Jury */
.jury { background: var(--ink-2); }
.jury-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.jury-notes { margin-top: 28px; display: grid; gap: 12px; color: var(--bone-dim); font-size: 15.5px; }
.jury-notes li { padding-left: 18px; position: relative; }
.jury-notes li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--red-ink); }
.roster { border-top: 1px solid var(--line); }
.tier { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.tier-name span { display: block; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.tier-name em { font-style: normal; font-size: 13px; color: var(--ash); }
.jurors { display: flex; flex-wrap: wrap; gap: 10px; }
.juror {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--ink-3);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
}
.juror i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.juror small { font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--ash); }

/* Verdict card */
.verdict-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.tablet { margin: 0; }
.tablet img { filter: drop-shadow(0 40px 70px rgba(0,0,0,0.55)); }
.anatomy { margin: 36px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.anatomy div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.anatomy dt { font-weight: 700; }
.anatomy dd { margin: 0; color: var(--bone-dim); font-size: 15.5px; }

/* Features bento */
.bento { margin-top: 44px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cell { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.cell h3 { font-size: 22px; margin-bottom: 10px; }
.cell p { color: var(--bone-dim); font-size: 15.5px; }
.cell-media { grid-column: span 3; display: flex; flex-direction: column; gap: 26px; padding-bottom: 0; overflow: hidden; }
.cell-media .cell-text { order: 1; }
.cell-media .phone-sm { order: 2; margin: 0 auto -38%; width: min(62%, 300px); }
.cell-media .phone-sm img { filter: drop-shadow(0 20px 36px rgba(0,0,0,0.5)); }
.cell-text-only { grid-column: span 2; }
.cell-lang { grid-column: span 2; }
.langs { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.langs li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--bone-dim); }
.rounds { margin-top: 22px; display: flex; gap: 6px; }
.rounds li { flex: 1; height: 34px; border-radius: 8px; background: var(--ink-3); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--ash); }
.rounds li.final { background: var(--red); border-color: var(--red); color: var(--bone); }

/* Devices */
.devices { background: var(--ink-2); }
.device-row { margin-top: 56px; display: grid; grid-template-columns: 0.75fr 1fr 1.1fr; gap: 32px; align-items: end; }
.device-row figure { margin: 0; }
.device-row img { filter: drop-shadow(0 30px 50px rgba(0,0,0,0.5)); }
.device-row figcaption { margin-top: 14px; font-size: 14px; color: var(--ash); }

/* Plans */
.plan-table { margin-top: 44px; border-top: 1px solid var(--line); font-size: 15px; }
.plan-head, .plan-row { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.plan-head span { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.plan-row [role="rowheader"] { font-weight: 600; }
.plan-row span:not([role]) { color: var(--bone-dim); }
.plan-row .yes { color: var(--green); }

/* Closing */
.closing { background: var(--red); color: var(--bone); padding: clamp(96px, 14vw, 180px) 0; }
.closing-inner { display: grid; justify-items: center; text-align: center; gap: 30px; }
.closing-title { font-size: clamp(40px, 7vw, 96px); line-height: 1.05; font-weight: 900; text-wrap: balance; }
.closing-note { color: rgba(239,230,214,0.8); font-size: 15px; }

/* Footer */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ash); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--bone); font-weight: 600; }
.footer-brand img { border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a:hover { color: var(--bone); }
.footer-copy { margin-left: auto; }

/* Reveal (one entrance per media group) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 0.8fr; }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .stages li:nth-child(2) { border-right: 0; }
  .jury-grid { grid-template-columns: 1fr; gap: 40px; }
  .verdict-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell-media, .cell-text-only, .cell-lang { grid-column: span 1; }
  .device-row { grid-template-columns: 1fr 1fr; }
  .device-row .tablet-sm { grid-column: span 2; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 16px;
    background: var(--ink); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: flex; }
  .btn-small { display: none; }
  .hero { padding-top: 96px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; gap: 24px; }
  .hero-copy { padding-bottom: 0; }
  .hero-visual { margin-top: 16px; }
  .phone-hero { width: min(78%, 320px); }
  .stamp { right: 2%; top: 6%; border-width: 3px; }
  .hero-statue { height: 70%; transform: translateX(-40%); }
  .stages { grid-template-columns: 1fr; }
  .stages li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .phone-row { grid-template-columns: 1fr; }
  .phone-row .phone { width: min(78%, 320px); margin-inline: auto; }
  .tier { grid-template-columns: 1fr; gap: 10px; }
  .anatomy div { grid-template-columns: 1fr; gap: 4px; }
  .bento { grid-template-columns: 1fr; }
  .cell-media .phone-sm { width: 64%; margin-bottom: -40%; }
  .device-row { grid-template-columns: 1fr; }
  .device-row .tablet-sm { grid-column: auto; }
  .plan-table { font-size: 13px; overflow-x: auto; }
  .plan-head, .plan-row { grid-template-columns: 1.1fr repeat(4, 1fr); gap: 8px; min-width: 560px; }
  .footer-copy { margin-left: 0; }
}

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