:root {
  color-scheme: dark;
  --bg: #0d1117;
  --bg-soft: #141a22;
  --surface: #1a2029;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f7fa;
  --muted: #aeb8c4;
  --cyan: #55d6c2;
  --coral: #ff8b72;
  --gold: #e9c46a;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: #0d1117;
  background: var(--cyan);
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 72px;
  padding: 12px max(24px, calc((100vw - var(--content)) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(13, 17, 23, 0.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--cyan);
}

.header-download {
  justify-self: end;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-download:hover {
  color: #0d1117;
  border-color: var(--cyan);
  background: var(--cyan);
}

.hero {
  position: relative;
  min-height: min(860px, 88svh);
  padding: 130px max(24px, calc((100vw - var(--content)) / 2)) 92px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("assets/hero.webp") 68% center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 11, 17, 0.98) 0%, rgba(7, 11, 17, 0.84) 32%, rgba(7, 11, 17, 0.18) 67%, rgba(7, 11, 17, 0.12) 100%);
}

.hero-content {
  width: min(590px, 50vw);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(68px, 8vw, 118px);
  line-height: 1;
  font-weight: 760;
}

.hero-copy {
  max-width: 550px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.primary-action,
.secondary-action {
  min-height: 58px;
  padding: 9px 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.primary-action {
  color: #07110f;
  background: var(--cyan);
}

.primary-action span {
  color: rgba(7, 17, 15, 0.68);
  font-size: 12px;
  font-weight: 600;
}

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

.primary-action:hover {
  background: #70e5d2;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(10, 14, 19, 0.42);
}

.secondary-action:hover {
  border-color: rgba(255, 255, 255, 0.66);
}

.download-note {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.hero-next {
  position: absolute;
  left: 50%;
  bottom: 22px;
  padding-bottom: 24px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  transform: translateX(-50%);
}

.hero-next::after {
  content: "↓";
  position: absolute;
  left: 50%;
  bottom: 0;
  color: var(--cyan);
  font-size: 17px;
  transform: translateX(-50%);
}

.experience {
  padding: 112px max(24px, calc((100vw - var(--content)) / 2)) 126px;
  background: #f2f1ed;
  color: #14181d;
  overflow: hidden;
}

.section-intro {
  max-width: 700px;
}

.section-intro h2,
.download-copy h2,
.about-heading h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.18;
}

.section-intro > p:last-child,
.download-copy > p,
.about-copy {
  color: #56616d;
  font-size: 17px;
}

.screen-stage {
  height: 660px;
  margin-top: 72px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.phone-shot {
  position: absolute;
  width: min(290px, 25vw);
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(10, 14, 20, 0.16);
  border-radius: 28px;
  background: #0b0e14;
  box-shadow: 0 26px 55px rgba(22, 28, 34, 0.22);
  overflow: hidden;
}

.phone-shot img {
  width: 100%;
  border-radius: 21px;
}

.phone-shot figcaption {
  position: absolute;
  left: 20px;
  bottom: 19px;
  padding: 6px 10px;
  border-radius: 5px;
  color: #fff;
  background: rgba(9, 12, 17, 0.78);
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.shot-back-left {
  left: 3%;
  top: 64px;
  transform: rotate(-6deg);
}

.shot-front-left {
  left: 25%;
  top: 6px;
  z-index: 2;
  transform: rotate(-2deg);
}

.shot-front-right {
  right: 25%;
  top: 6px;
  z-index: 2;
  transform: rotate(2deg);
}

.shot-back-right {
  right: 3%;
  top: 64px;
  transform: rotate(6deg);
}

.feature-band {
  max-width: var(--content);
  margin: 0 auto;
  padding: 96px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 54px;
}

.feature-item {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.feature-index {
  color: var(--coral);
  font-size: 13px;
  font-weight: 700;
}

.feature-item h3 {
  margin: 26px 0 10px;
  font-size: 23px;
}

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

.download-section {
  padding: 108px max(24px, calc((100vw - var(--content)) / 2));
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 90px;
  color: #14181d;
  background: #dfe8e5;
}

.download-copy > p {
  max-width: 560px;
}

.primary-action.compact {
  margin-top: 18px;
}

.safe-download {
  color: #6d767d !important;
  font-size: 12px !important;
}

.device-notes {
  border-top: 1px solid rgba(20, 24, 29, 0.2);
}

.device-note {
  padding: 26px 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  border-bottom: 1px solid rgba(20, 24, 29, 0.2);
}

.device-note h3,
.device-note p {
  margin: 0;
}

.device-note p {
  color: #56616d;
}

.about-section {
  max-width: var(--content);
  margin: 0 auto;
  padding: 116px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.about-copy p {
  margin: 0 0 22px;
  color: var(--muted);
}

.site-footer {
  max-width: var(--content);
  margin: 0 auto;
  padding: 42px 24px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  color: var(--text);
  font-size: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.filing-info {
  grid-column: 1 / -1;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  border-top: 1px solid var(--line);
  color: #7f8a96;
}

.public-security-filing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.public-security-filing img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.public-security-filing:hover {
  color: var(--cyan);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 86svh;
    align-items: flex-end;
  }

  .hero-content {
    width: min(620px, 100%);
  }

  .hero::before {
    background: linear-gradient(0deg, rgba(7, 11, 17, 0.98) 0%, rgba(7, 11, 17, 0.82) 45%, rgba(7, 11, 17, 0.18) 100%);
  }

  .hero-backdrop {
    background-image: url("assets/hero-mobile.webp");
    background-position: center center;
  }

  .screen-stage {
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .phone-shot {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .feature-band,
  .download-section,
  .about-section {
    grid-template-columns: 1fr;
  }

  .download-section,
  .about-section {
    gap: 54px;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
    padding: 10px 18px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .header-download {
    padding: 8px 12px;
  }

  .hero {
    min-height: 88svh;
    padding: 110px 20px 76px;
  }

  .hero-backdrop {
    background-position: center center;
  }

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

  .hero-copy {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.7;
  }

  .hero-actions {
    margin-top: 28px;
    flex-direction: column;
  }

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

  .hero-next {
    display: none;
  }

  .experience {
    padding: 82px 18px 86px;
  }

  .section-intro h2,
  .download-copy h2,
  .about-heading h2 {
    font-size: 38px;
  }

  .screen-stage {
    margin-top: 46px;
    gap: 12px;
  }

  .phone-shot {
    padding: 4px;
    border-radius: 18px;
  }

  .phone-shot img {
    border-radius: 14px;
  }

  .phone-shot figcaption {
    left: 10px;
    bottom: 10px;
    font-size: 11px;
  }

  .feature-band {
    padding: 74px 18px;
    gap: 42px;
  }

  .download-section,
  .about-section {
    padding: 82px 18px;
  }

  .device-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    padding: 36px 18px 28px;
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.release-notes {
  max-width: 640px;
  margin-top: 24px;
  padding-left: 18px;
  border-left: 3px solid var(--cyan);
}

.release-notes h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.release-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
