:root {
  color-scheme: light;
  --bg: #f8fbff;
  --ink: #061a3f;
  --muted: #58708d;
  --panel: #ffffff;
  --line: #d7e4ef;
  --blue: #0d4bd6;
  --teal: #13c5b6;
  --mint: #dffbf6;
  --amber: #ffb84d;
  --shadow: 0 24px 70px rgba(6, 26, 63, 0.13);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(22, 135, 255, 0.16), transparent 33rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 45%, #eef8ff 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:has(.decisionIntro:not([hidden])) {
  overflow: hidden;
}

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

.decisionIntro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
}

.decisionIntro[hidden] {
  display: none;
}

.decisionIntroBackdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(19, 197, 182, 0.28), transparent 28rem),
    radial-gradient(circle at 84% 16%, rgba(13, 75, 214, 0.26), transparent 30rem),
    linear-gradient(135deg, rgba(5, 18, 46, 0.92), rgba(5, 35, 60, 0.9));
  backdrop-filter: blur(18px);
}

.decisionIntroBackdrop::before,
.decisionIntroBackdrop::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  pointer-events: none;
}

.decisionIntroBackdrop::before {
  width: 520px;
  height: 520px;
  left: -160px;
  bottom: -180px;
}

.decisionIntroBackdrop::after {
  width: 360px;
  height: 360px;
  right: -90px;
  top: -120px;
}

.decisionIntroPanel {
  position: relative;
  width: min(100%, 820px);
  max-height: calc(100vh - 44px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(235, 249, 255, 0.92)),
    #ffffff;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.32);
  animation: decisionIntroIn 360ms ease both;
}

.decisionIntro.is-closing .decisionIntroPanel {
  animation: decisionIntroOut 220ms ease both;
}

.decisionIntroTop {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.decisionIntroTop img {
  border-radius: 15px;
  box-shadow: 0 14px 32px rgba(6, 26, 63, 0.16);
}

.decisionIntro h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(35px, 5.6vw, 68px);
  line-height: 0.98;
}

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

.decisionChoice {
  display: grid;
  gap: 10px;
  min-height: 148px;
  padding: 22px;
  border: 1px solid rgba(13, 75, 214, 0.16);
  border-radius: 24px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(6, 26, 63, 0.09);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.decisionChoice:hover,
.decisionChoice:focus-visible,
.decisionChoice.is-selected {
  border-color: rgba(19, 197, 182, 0.65);
  background: linear-gradient(145deg, #ffffff, rgba(223, 251, 246, 0.9));
  box-shadow: 0 24px 60px rgba(19, 117, 218, 0.18);
  transform: translateY(-3px);
  outline: none;
}

.decisionChoice:disabled {
  cursor: default;
}

.decisionChoice:disabled:not(.is-selected) {
  opacity: 0.58;
  transform: none;
}

.decisionChoice span {
  font-size: clamp(22px, 3vw, 31px);
  font-weight: 900;
  line-height: 1.05;
}

.decisionChoice small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.decisionResult {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(19, 197, 182, 0.36);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(223, 251, 246, 0.96), rgba(255, 255, 255, 0.9));
}

.decisionResult strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 20px;
}

.decisionResult p {
  margin: 0;
  color: #31506f;
  line-height: 1.55;
}

.decisionPrivacy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

@keyframes decisionIntroIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes decisionIntroOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

main {
  overflow: hidden;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: calc(100% - 40px);
  max-width: 1180px;
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(215, 228, 239, 0.8);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 45px rgba(6, 26, 63, 0.08);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.brand,
.navLinks,
.heroActions,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img,
footer img {
  border-radius: 12px;
}

.navLinks {
  gap: 8px;
  font-size: 14px;
  color: #274160;
}

.navLinks a {
  padding: 10px 12px;
  border-radius: 999px;
}

.navLinks a:hover {
  background: #eef7ff;
}

.navLinks .navCta {
  background: var(--ink);
  color: white;
}

.languageToggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-width: 50px;
  min-height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(6, 26, 63, 0.08);
}

.languageToggle span {
  display: grid;
  width: 21px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
}

.languageToggle span:first-child {
  background: var(--ink);
  color: #ffffff;
}

body[data-language="zh"] .languageToggle span:first-child {
  background: transparent;
  color: var(--ink);
}

body[data-language="zh"] .languageToggle span:last-child {
  background: var(--ink);
  color: #ffffff;
}

.hero,
.applicationHero,
.installHero,
.policyHero,
.updatesHero,
.policyDocument,
.updatesTimeline,
.screenshots,
.notDo,
.story,
.roadmap,
.patchNotes,
.split,
.statsBand,
.process,
.download,
.privacy {
  width: calc(100% - 40px);
  max-width: 1180px;
  margin: 0 auto;
}

.heroCopy,
.applicationIntro,
.applicationForm,
.installPanel,
.installChecklist,
.policyDocument,
.heroVisual,
.sectionHeader,
.stat,
.feature,
.download,
.privacyPanel {
  min-width: 0;
}

.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 48px;
  padding: 74px 0 46px;
}

.applicationHero {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  align-items: start;
  gap: 46px;
  padding: 74px 0 46px;
}

.policyHero {
  padding: 82px 0 34px;
}

.policyHero h1 {
  max-width: 900px;
}

.policyHero .lede {
  max-width: 760px;
}

.policyDocument {
  display: grid;
  gap: 18px;
  padding: 0 0 54px;
}

.policyDocument section {
  padding: 26px;
  border: 1px solid rgba(215, 228, 239, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 50px rgba(6, 26, 63, 0.07);
}

.policyDocument h2 {
  margin-bottom: 12px;
  font-size: clamp(25px, 3vw, 38px);
}

.policyDocument p,
.policyDocument li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.policyDocument p:last-child,
.policyDocument ul:last-child {
  margin-bottom: 0;
}

.policyDocument a,
.textLink,
footer a,
.formStatus a {
  color: var(--blue);
  font-weight: 800;
}

.textLink {
  display: inline-flex;
  margin-top: 16px;
}

.applicationIntro {
  position: sticky;
  top: 120px;
  padding-top: 28px;
}

.reviewNote {
  display: grid;
  gap: 6px;
  max-width: 520px;
  margin-top: 30px;
  padding: 18px 20px;
  border: 1px solid rgba(19, 197, 182, 0.35);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(223, 251, 246, 0.92), rgba(255, 255, 255, 0.9));
  box-shadow: 0 18px 48px rgba(6, 26, 63, 0.08);
}

.reviewNote strong {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.reviewNote span {
  color: #31506f;
  line-height: 1.55;
}

.applicationCriteria {
  max-width: 520px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(215, 228, 239, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(6, 26, 63, 0.07);
}

.applicationCriteria h2 {
  font-size: 24px;
}

.applicationCriteria ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.applicationCriteria p {
  color: var(--muted);
  line-height: 1.6;
}

.alphaBenefit {
  border-color: rgba(255, 184, 77, 0.4);
  background: linear-gradient(135deg, rgba(255, 248, 231, 0.94), rgba(255, 255, 255, 0.86));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(56px, 8vw, 108px);
  line-height: 0.9;
  letter-spacing: 0;
}

.headlineLine {
  display: inline;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.lede,
.sectionHeader p,
.split > div > p,
.download p,
.privacy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.heroActions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primaryButton,
.secondaryButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primaryButton {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: white;
  box-shadow: 0 16px 32px rgba(19, 117, 218, 0.25);
}

.secondaryButton {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.primaryButton:hover,
.secondaryButton:hover {
  transform: translateY(-2px);
}

.heroVisual {
  position: relative;
  min-height: 560px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(13, 75, 214, 0.1), rgba(19, 197, 182, 0.1)),
    #ffffff;
  box-shadow: var(--shadow);
}

.heroVisual--screenshots {
  display: grid;
  min-height: 620px;
  align-content: center;
  gap: 18px;
  padding: 34px;
  overflow: hidden;
}

.heroScreenshot {
  width: 100%;
  height: auto;
  border: 1px solid rgba(215, 228, 239, 0.92);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(6, 26, 63, 0.14);
}

.heroScreenshot--card {
  transform: translateX(-4px) rotate(-1deg);
}

.heroScreenshot--settings {
  width: 54%;
  justify-self: end;
  margin-top: -66px;
  transform: rotate(2deg);
}

.logoWide {
  position: absolute;
  top: 38px;
  left: 36px;
  width: calc(100% - 72px);
  height: auto;
  border-radius: 18px;
  filter: drop-shadow(0 18px 30px rgba(6, 26, 63, 0.08));
}

.priceCard {
  position: absolute;
  right: 34px;
  bottom: 36px;
  width: min(350px, calc(100% - 68px));
  padding: 22px;
  border: 1px solid rgba(215, 228, 239, 0.85);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(6, 26, 63, 0.14);
  backdrop-filter: blur(16px);
}

.priceLabel,
.driftCard span,
.driftCard small,
.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.priceCard strong {
  display: block;
  margin: 6px 0 16px;
  font-size: 58px;
  line-height: 1;
}

.driftCard {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #071d48, #0f799e);
  color: white;
}

.driftCard span,
.driftCard small {
  color: rgba(255, 255, 255, 0.72);
}

.driftCard b {
  display: block;
  margin: 8px 0 4px;
  font-size: 30px;
}

.statsBand {
  padding: 92px 0 72px;
}

.screenshots,
.notDo,
.roadmap,
.patchNotes {
  padding: 84px 0;
}

.screenshotGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.screenshotFrame {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(215, 228, 239, 0.92);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.screenshotFrame img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

.screenshotFrame.tall {
  max-width: 430px;
  justify-self: end;
}

.screenshotFrame figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.sectionHeader {
  max-width: 760px;
  margin-bottom: 28px;
}

.compact {
  text-align: center;
  margin: 0 auto 28px;
}

.statsGrid,
.featureGrid,
.steps {
  display: grid;
  gap: 16px;
}

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

.stat,
.feature,
.applicationForm,
.privacyPanel {
  border: 1px solid rgba(215, 228, 239, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(6, 26, 63, 0.08);
}

.applicationForm {
  padding: 28px;
}

.formHeader {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.formHeader img {
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(6, 26, 63, 0.12);
}

.formHeader h2 {
  margin-bottom: 4px;
  font-size: 28px;
  line-height: 1.1;
}

.formHeader p {
  margin: 0;
  color: var(--muted);
}

.applicationForm label,
.applicationForm fieldset {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  color: #183352;
  font-size: 14px;
  font-weight: 800;
}

.applicationForm input,
.applicationForm textarea,
.applicationForm select {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid #cadbe9;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.applicationForm textarea {
  resize: vertical;
}

.applicationForm input:focus,
.applicationForm textarea:focus,
.applicationForm select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(19, 197, 182, 0.14);
}

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

.applicationForm fieldset {
  padding: 16px;
  border: 1px solid #d9e7f2;
  border-radius: 18px;
}

.applicationForm legend {
  padding: 0 6px;
  color: #183352;
}

.checkOption {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px !important;
  margin-bottom: 10px !important;
  font-weight: 700 !important;
  color: #31506f !important;
}

.checkOption input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.consent {
  align-items: flex-start;
}

.hiddenField {
  position: absolute;
  left: -9999px;
}

.formButton {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-size: 16px;
}

.formButton:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.formStatus {
  margin: 14px 0 0;
  padding: 13px 14px;
  border-radius: 14px;
  background: #eef7ff;
  color: #31506f;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.formStatus.success {
  background: #e6fbf4;
  color: #096452;
}

.formStatus.error {
  background: #fff0ee;
  color: #9e2c1e;
}

.installHero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 170px);
  padding: 72px 0;
}

.installPanel,
.installChecklist {
  border: 1px solid rgba(215, 228, 239, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.installPanel {
  display: grid;
  align-content: center;
  padding: clamp(30px, 5vw, 58px);
  background:
    radial-gradient(circle at top right, rgba(19, 197, 182, 0.18), transparent 280px),
    linear-gradient(135deg, #ffffff, #f2f8ff);
}

.installPanel > img {
  margin-bottom: 22px;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(6, 26, 63, 0.14);
}

.installActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.installChecklist {
  align-self: center;
  padding: 28px;
}

.installChecklist h2 {
  font-size: 28px;
}

.installChecklist ul {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.installChecklist p {
  margin: 18px 0 0;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 248, 231, 0.96), rgba(223, 251, 246, 0.9));
  color: #31506f;
  font-weight: 750;
  line-height: 1.55;
}

.stat {
  padding: 24px;
}

.stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 0.95;
}

.stat p,
.feature p,
.privacyPanel li {
  color: var(--muted);
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 40px;
  align-items: start;
  padding: 84px 0;
}

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

.feature {
  min-height: 190px;
  padding: 24px;
}

.feature:nth-child(2) {
  background: linear-gradient(150deg, #ffffff, var(--mint));
}

.feature:nth-child(3) {
  background: linear-gradient(150deg, #ffffff, #fff3db);
}

.process {
  padding: 84px 0;
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  min-height: 190px;
  padding: 66px 22px 22px;
  border-radius: 22px;
  background: #071d48;
  color: white;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
  counter-increment: steps;
}

.steps li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  top: 22px;
  left: 22px;
  color: var(--amber);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.steps li:nth-child(even) {
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.notDoGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.notDoGrid article {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(215, 228, 239, 0.92);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(6, 26, 63, 0.08);
}

.notDoGrid strong {
  color: var(--teal);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.notDoGrid span {
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.2;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  width: calc(100% - 40px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story p:last-child {
  color: var(--muted);
  font-size: 22px;
  line-height: 1.65;
}

.download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 42px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(13, 75, 214, 0.12), rgba(19, 197, 182, 0.16)),
    white;
  box-shadow: var(--shadow);
}

.alphaApply {
  align-items: flex-start;
}

.alphaChecklist {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

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

.timeline article {
  position: relative;
  min-height: 260px;
  padding: 22px;
  border: 1px solid rgba(215, 228, 239, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 50px rgba(6, 26, 63, 0.08);
}

.timeline article::before {
  content: "";
  position: absolute;
  top: 28px;
  right: 20px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 0 0 7px rgba(19, 197, 182, 0.12);
}

.timeline span,
.patchPanel h3 span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline h3 {
  margin-top: 22px;
}

.timeline p {
  color: var(--muted);
  line-height: 1.55;
}

.patchTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.patchTab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.patchTab.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(19, 117, 218, 0.2);
}

.patchPanel {
  display: none;
  padding: 28px;
  border: 1px solid rgba(215, 228, 239, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.patchPanel.is-active {
  display: block;
}

.patchPanel h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 30px;
}

.patchPanel li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.patchNotesPreview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.patchNotesPreview .patchTabs,
.patchNotesPreview .patchPanel {
  display: none;
}

.updatesHero {
  padding: 74px 0 34px;
  max-width: 840px;
}

.updatesTimeline {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 18px 0 70px 30px;
  max-width: 1040px;
}

.updatesTimeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 26px;
  bottom: 80px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), rgba(19, 197, 182, 0.2));
}

.updateEntry {
  position: relative;
}

.timelineMarker {
  position: absolute;
  left: -30px;
  top: 24px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  border: 5px solid var(--blue);
  box-shadow: 0 0 0 8px rgba(19, 117, 218, 0.12);
}

.updateEntry details {
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 65px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.updateEntry summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 22px 24px;
}

.updateEntry summary::-webkit-details-marker {
  display: none;
}

.updateEntry summary strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.updateEntry summary small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.summaryHint {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  font-size: 0.82rem;
  font-weight: 850;
}

.updateBody {
  display: grid;
  gap: 10px;
  padding: 0 24px 24px;
}

.updateBody h2 {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--blue);
}

.updateBody p,
.updateBody li {
  color: var(--muted);
}

.updateBody ul {
  margin: 0;
  padding-left: 20px;
}

.policyDocument[data-language-panel] {
  display: none;
}

body[data-language="en"] .policyDocument[data-language-panel="en"],
body[data-language="zh"] .policyDocument[data-language-panel="zh"] {
  display: grid;
}

.download div {
  max-width: 720px;
}

.privacyPanel {
  padding: 26px;
}

.privacyPanel ul {
  margin: 0;
  padding-left: 20px;
}

.privacyPanel li + li {
  margin-top: 12px;
}

footer {
  justify-content: center;
  gap: 10px;
  width: calc(100% - 40px);
  max-width: 1180px;
  margin: 46px auto 0;
  padding: 32px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer span {
  color: var(--ink);
  font-weight: 850;
}

footer p {
  margin: 0 0 0 6px;
}

footer a {
  margin-left: 6px;
}

@media (max-width: 920px) {
  .nav {
    width: calc(100% - 24px);
    max-width: 720px;
  }

  .navLinks a:not(.navCta) {
    display: none;
  }

  .hero,
  .applicationHero,
  .installHero,
  .policyHero,
  .updatesHero,
  .policyDocument,
  .split,
  .download {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .applicationHero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 54px;
  }

  .installHero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 54px;
  }

  .applicationIntro {
    position: static;
    padding-top: 0;
  }

  .heroVisual {
    min-height: 470px;
  }

  .statsGrid,
  .steps,
  .notDoGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .heroVisual--screenshots {
    min-height: auto;
  }

  .screenshotGrid,
  .story,
  .timeline {
    grid-template-columns: 1fr;
  }

  .screenshotFrame.tall {
    max-width: none;
    justify-self: stretch;
  }

  .download {
    display: grid;
  }
}

@media (max-width: 640px) {
  .decisionIntro {
    padding: 12px;
  }

  .decisionIntroPanel {
    max-height: calc(100vh - 24px);
    overflow: auto;
    border-radius: 24px;
  }

  .decisionIntroTop {
    margin-bottom: 20px;
  }

  .decisionIntro h1 {
    font-size: 32px;
    line-height: 1.02;
  }

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

  .decisionChoice {
    min-height: 120px;
    padding: 18px;
  }

  .navLinks {
    gap: 4px;
  }

  .navLinks .navCta {
    display: none;
  }

  .languageToggle {
    min-width: 44px;
  }

  .hero,
  .applicationHero,
  .installHero,
  .policyHero,
  .updatesHero,
  .policyDocument,
  .screenshots,
  .notDo,
  .story,
  .roadmap,
  .patchNotes,
  .split,
  .statsBand,
  .process,
  .download,
  .privacy,
  footer {
    width: min(calc(100% - 24px), 366px);
    max-width: 366px;
    margin-left: 12px;
    margin-right: auto;
  }

  .brand span {
    display: none;
  }

  h1 {
    font-size: 39px;
    line-height: 1;
  }

  .headlineLine {
    display: block;
  }

  h2 {
    font-size: 27px;
    line-height: 1.06;
  }

  .lede,
  .sectionHeader p,
  .split > div > p,
  .download p,
  .privacy p {
    font-size: 16px;
  }

  .heroVisual {
    min-height: 390px;
    border-radius: 24px;
    overflow: hidden;
  }

  .heroVisual--screenshots {
    padding: 18px;
    gap: 12px;
  }

  .heroScreenshot--card {
    transform: none;
  }

  .heroScreenshot--settings {
    width: 88%;
    justify-self: center;
    margin-top: 0;
    transform: none;
  }

  .logoWide {
    top: 24px;
    left: 18px;
    width: calc(100% - 36px);
  }

  .priceCard {
    right: 18px;
    bottom: 18px;
    width: calc(100% - 36px);
  }

  .statsGrid,
  .featureGrid,
  .steps,
  .notDoGrid {
    grid-template-columns: 1fr;
  }

  .split,
  .statsBand,
  .process,
  .screenshots,
  .notDo,
  .story,
  .roadmap,
  .updatesTimeline,
  .patchNotes {
    padding: 58px 0;
  }

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

  .updatesHero {
    padding-top: 54px;
  }

  .updatesTimeline {
    padding-left: 24px;
    width: min(calc(100% - 24px), 342px);
    max-width: 342px;
  }

  .timelineMarker {
    left: -24px;
  }

  .updateEntry summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .notDoGrid article {
    min-height: 150px;
  }

  .story p:last-child {
    font-size: 18px;
  }

  .timeline article {
    min-height: 0;
  }

  .patchPanel {
    padding: 20px;
  }

  .patchPanel h3 {
    font-size: 24px;
  }

  .download {
    padding: 26px;
  }

  .applicationForm {
    padding: 20px;
  }

  .policyHero {
    padding-top: 54px;
  }

  .policyDocument section {
    padding: 20px;
  }

  .policyDocument p,
  .policyDocument li {
    font-size: 15px;
  }

  .formHeader {
    align-items: flex-start;
  }

  .formHeader h2 {
    font-size: 24px;
  }

  .formRow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  footer {
    flex-wrap: wrap;
    text-align: center;
  }
}

/* Connected dashboard upgrade */
.dashboardBody {
  background:
    linear-gradient(180deg, rgba(223, 251, 246, 0.55) 0, transparent 22rem),
    var(--bg);
}

.connectedPreview {
  align-items: center;
}

.connectedPreview .secondaryButton {
  display: inline-flex;
  margin-top: 22px;
}

.connectedMetrics {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.connectedMetrics div {
  display: grid;
  grid-template-columns: minmax(140px, 0.6fr) minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.connectedMetrics strong {
  font-size: 16px;
}

.connectedMetrics span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.dashboardPage {
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.dashboardIntro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  gap: 64px;
  align-items: end;
  padding: 64px 0 42px;
  border-bottom: 1px solid var(--line);
}

.dashboardIntro h1 {
  max-width: 720px;
  margin: 10px 0 18px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.dashboardIntro p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.dashboardTrust {
  display: grid;
  gap: 8px;
  padding: 18px 0 18px 22px;
  border-left: 3px solid var(--teal);
}

.dashboardTrust strong {
  font-size: 16px;
}

.dashboardTrust span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.dashboardAuth {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 72px;
  align-items: start;
  padding: 64px 0;
}

.authExplanation {
  max-width: 650px;
}

.authExplanation img {
  display: block;
  margin-bottom: 28px;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(6, 26, 63, 0.13);
}

.authExplanation h2,
.activityChartPanel h2,
.decisionSummary h2 {
  margin: 0 0 12px;
}

.authExplanation p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.authExplanation ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.authExplanation li {
  padding-left: 22px;
  position: relative;
  color: var(--ink);
  line-height: 1.5;
}

.authExplanation li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.authPanel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.authTabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef5fb;
}

.authTabs button {
  padding: 10px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.authTabs button.is-active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(6, 26, 63, 0.1);
}

.dashboardAuthForm {
  display: grid;
  gap: 16px;
}

.dashboardAuthForm label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.dashboardAuthForm input {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
}

.dashboardAuthForm input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(13, 75, 214, 0.14);
}

.dashboardAuthForm .primaryButton {
  width: 100%;
  margin-top: 4px;
  border: 0;
  cursor: pointer;
}

.authHelpButton {
  display: inline-flex;
  width: max-content;
  margin-top: 12px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.recoveryForm {
  margin-top: 8px;
}

.dangerTextButton {
  color: #b42318;
}

.dashboardStatus {
  min-height: 22px;
  margin: 14px 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.dashboardWorkspace {
  padding-top: 34px;
}

.workspaceHeader {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 24px;
}

.workspaceHeader > div:first-child {
  display: grid;
  gap: 4px;
}

.workspaceHeader span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.workspaceHeader strong {
  overflow-wrap: anywhere;
  font-size: 16px;
}

.workspaceActions {
  display: flex;
  gap: 10px;
}

.workspaceActions button {
  min-height: 42px;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.textButton {
  padding: 10px 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.dashboardSyncNotice {
  margin-bottom: 22px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
}

.dashboardSyncNotice.is-ready {
  border-color: rgba(19, 197, 182, 0.42);
  background: rgba(19, 197, 182, 0.08);
  color: #087b72;
}

.dashboardSyncNotice.is-empty {
  border-color: rgba(255, 184, 77, 0.55);
  background: rgba(255, 184, 77, 0.1);
}

.dashboardMetrics {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  display: grid;
  min-width: 0;
  padding: 28px 22px;
  border-left: 1px solid var(--line);
}

.metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.metric span {
  min-height: 38px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.metric strong {
  margin: 14px 0 8px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

.metricPrimary strong {
  color: var(--blue);
}

.metric small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.dashboardAnalysis {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.7fr);
  gap: 32px;
  padding-top: 34px;
}

.activityChartPanel,
.decisionSummary {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.chartHeading {
  display: flex;
  gap: 24px;
  align-items: start;
  justify-content: space-between;
}

.chartHeading p,
.decisionSummary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.chartHeading > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.activityChart {
  display: grid;
  grid-template-columns: repeat(30, minmax(3px, 1fr));
  gap: 4px;
  min-height: 240px;
  margin-top: 28px;
  padding-top: 16px;
  border-bottom: 1px solid var(--line);
}

.activityChart.is-empty {
  display: grid;
  place-items: center;
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.chartDay {
  display: grid;
  grid-template-rows: 1fr 22px;
  min-width: 0;
}

.chartPlot {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 190px;
}

.reviewedBar {
  width: min(100%, 14px);
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--teal), var(--blue));
  transition: height 260ms ease;
}

.skippedMarker {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  transform: translateX(-50%);
}

.chartDay small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
  white-space: nowrap;
}

.chartLegend {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}

.chartLegend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.chartLegend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.legendReviewed {
  background: var(--blue);
}

.legendSkipped {
  background: var(--amber);
}

.chartLegend b {
  color: var(--muted);
  font-size: 11px;
}

.decisionSummary dl {
  display: grid;
  gap: 0;
  margin: 18px 0 24px;
}

.decisionSummary dl div {
  display: flex;
  gap: 18px;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.decisionSummary dt {
  color: var(--muted);
  font-size: 12px;
}

.decisionSummary dd {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 920px) {
  .dashboardIntro,
  .dashboardAuth,
  .dashboardAnalysis {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .metric,
  .metric:first-child {
    padding: 22px;
    border: 0;
    border-top: 1px solid var(--line);
  }

  .metric:nth-child(even) {
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .dashboardPage {
    width: min(calc(100% - 24px), 366px);
    padding-top: 48px;
  }

  .dashboardIntro {
    padding-top: 44px;
  }

  .dashboardIntro h1 {
    font-size: 42px;
  }

  .connectedMetrics div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .dashboardAuth {
    padding-top: 42px;
  }

  .authPanel,
  .activityChartPanel,
  .decisionSummary {
    padding: 18px;
  }

  .workspaceHeader,
  .chartHeading {
    align-items: stretch;
    flex-direction: column;
  }

  .workspaceActions {
    display: grid;
    grid-template-columns: 1fr auto;
  }

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

  .metric:nth-child(even) {
    border-left: 0;
  }

  .activityChart {
    gap: 2px;
    min-height: 210px;
  }

  .chartPlot {
    min-height: 160px;
  }
}
