:root {
  color-scheme: light dark;
  --app-bg: #f8f7f3;
  --paper: #ffffff;
  --panel: #ffffff;
  --surface: #f2f0ea;
  --ink: #1e2225;
  --graphite: #6b6963;
  --muted: #a6a19a;
  --border: #e3ded5;
  --selected: rgba(30, 34, 37, 0.08);
  --accent: #1e2225;
  --accent-text: #ffffff;
  --polaroid: #ffffff;
  --shadow: 0 28px 70px rgba(30, 34, 37, 0.12), 0 2px 12px rgba(30, 34, 37, 0.05);
  --soft-shadow: 0 16px 42px rgba(30, 34, 37, 0.08);
  --max-width: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--app-bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
}

.site-header,
.hero,
.section,
.philosophy,
.site-footer {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 10px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.app-logo {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(30, 34, 37, 0.1);
}

.wordmark {
  display: inline-grid;
  gap: 1px;
}

.wordmark-title {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.05;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.site-nav {
  display: none;
  gap: 4px;
  color: var(--graphite);
  font-size: 12px;
  font-weight: 800;
}

.site-nav a {
  border-radius: 999px;
  padding: 8px 10px;
}

.site-nav a:hover {
  background: var(--surface);
  color: var(--ink);
}

.language-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 18px rgba(30, 34, 37, 0.06);
}

.lang-option {
  min-width: 42px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  background: transparent;
  color: var(--graphite);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.lang-option.is-active {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 6px 14px rgba(30, 34, 37, 0.12);
}

.lang-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero {
  position: relative;
  display: grid;
  gap: 26px;
  overflow: visible;
  padding: 54px 0 46px;
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -2;
  border-radius: 999px;
  pointer-events: none;
  content: "";
}

.hero::before {
  top: 4%;
  right: 0;
  width: min(56vw, 760px);
  height: min(56vw, 760px);
  background: radial-gradient(circle, rgba(30, 34, 37, 0.09), rgba(30, 34, 37, 0) 66%);
}

.hero::after {
  bottom: 6%;
  left: 0;
  width: min(42vw, 560px);
  height: min(42vw, 560px);
  background: radial-gradient(circle, rgba(200, 185, 133, 0.18), rgba(200, 185, 133, 0) 68%);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-atmosphere span {
  position: absolute;
  color: var(--ink);
  font-size: clamp(34px, 8vw, 118px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0.035;
  transform: rotate(-8deg);
  animation: fragmentFloat 16s ease-in-out infinite;
}

.hero-atmosphere span:nth-child(1) {
  top: 12%;
  left: 40%;
}

.hero-atmosphere span:nth-child(2) {
  right: 4%;
  bottom: 10%;
  animation-delay: -4s;
}

.hero-atmosphere span:nth-child(3) {
  bottom: 18%;
  left: 2%;
  animation-delay: -8s;
}

.hero-atmosphere span:nth-child(4) {
  top: 46%;
  right: 30%;
  animation-delay: -12s;
}

.hero-copy {
  align-self: center;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 560px);
  max-width: 100%;
  justify-self: center;
  place-items: center;
}

.hero-visual::before {
  position: absolute;
  right: 8%;
  bottom: 9%;
  z-index: -1;
  width: min(78%, 420px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(30, 34, 37, 0.16), rgba(30, 34, 37, 0) 66%);
  filter: blur(4px);
  pointer-events: none;
  content: "";
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--graphite);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(54px, 16vw, 82px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.96;
}

h2 {
  margin-bottom: 12px;
  font-size: 31px;
  font-weight: 920;
  letter-spacing: 0;
  line-height: 1.06;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.18;
}

.subtitle {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.16;
}

.cn-line {
  margin-bottom: 16px;
  color: var(--graphite);
  font-size: 15px;
  font-weight: 760;
}

.description {
  max-width: 520px;
  margin-bottom: 24px;
  color: var(--graphite);
  font-size: 17px;
  font-weight: 620;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px 14px;
}

.primary-cta,
.platform-note {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.1;
}

.primary-cta {
  width: 100%;
  padding: 0 18px;
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 12px 22px rgba(30, 34, 37, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(30, 34, 37, 0.2);
}

.platform-note {
  width: 100%;
  min-height: auto;
  color: var(--graphite);
  justify-content: center;
}

.phone-shell {
  --phone-base-rx: 0deg;
  --phone-base-ry: 0deg;
  --phone-base-rz: -1deg;
  position: relative;
  display: block;
  justify-self: center;
  width: clamp(280px, 72vw, 500px);
  max-width: min(100%, calc(100vw - 48px));
  height: auto;
  aspect-ratio: 9 / 19.5;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 58px;
  padding: 8px;
  background:
    linear-gradient(145deg, #25282b 0%, #111315 42%, #070809 100%);
  box-shadow:
    0 34px 80px rgba(30, 34, 37, 0.24),
    0 12px 30px rgba(30, 34, 37, 0.16),
    -14px 18px 46px rgba(200, 185, 133, 0.09),
    inset 1px 1px 0 rgba(255, 255, 255, 0.14),
    inset -1px -1px 0 rgba(0, 0, 0, 0.42);
  transform:
    rotateX(calc(var(--phone-base-rx) + var(--phone-rx, 0deg)))
    rotateY(calc(var(--phone-base-ry) + var(--phone-ry, 0deg)))
    rotateZ(calc(var(--phone-base-rz) + var(--phone-rz, 0deg)))
    translate3d(var(--phone-tx, 0px), var(--phone-ty, 0px), 0);
  transition: transform 220ms ease, box-shadow 220ms ease;
  transform-origin: center center;
  will-change: transform;
}

.phone-shell::before,
.phone-shell::after {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  background: #17191b;
  content: "";
}

.phone-shell::before {
  top: 118px;
  left: -5px;
  width: 3px;
  height: 74px;
  box-shadow: 0 92px 0 #17191b;
}

.phone-shell::after {
  top: 168px;
  right: -5px;
  width: 3px;
  height: 108px;
}

.dynamic-island {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 3;
  width: clamp(96px, 27%, 112px);
  height: 30px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050607;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.app-screen {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 49px;
  background: var(--app-bg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 2px rgba(0, 0, 0, 0.16);
}

.screenshot-screen {
  background: #f8f7f3;
}

.phone-screenshot,
.screenshot-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-device .screenshot-image {
  position: relative;
  z-index: 1;
  border-radius: 36px;
  background: #f8f7f3;
}

.section {
  padding: 48px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 22px;
}

.section-head p {
  color: var(--graphite);
  font-size: 15px;
  font-weight: 650;
}

.product-grid,
.feature-grid {
  display: grid;
  gap: 14px;
}

.module-card,
.feature-card,
.philosophy {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
}

.module-card {
  display: grid;
  gap: 20px;
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px;
  padding: 18px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.module-card:hover,
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 34, 37, 0.18);
  box-shadow: 0 24px 58px rgba(30, 34, 37, 0.13);
}

.module-copy {
  max-width: 420px;
}

.module-label {
  display: inline-flex;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--surface);
  color: var(--graphite);
  font-size: 11px;
  font-weight: 900;
}

.module-card p,
.feature-card p,
.philosophy p {
  margin-bottom: 0;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 630;
}

.simple-page {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 110px;
}

.simple-page h1 {
  margin-bottom: 22px;
}

.simple-page p {
  max-width: 560px;
  color: var(--graphite);
  font-size: 17px;
  font-weight: 650;
}

.text-link {
  display: inline-flex;
  margin-top: 20px;
  border-radius: 999px;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 850;
}

.screenshot-frame {
  position: relative;
  display: grid;
  align-self: end;
  width: min(100%, 330px);
  margin: 0 auto;
  place-items: center;
  overflow: visible;
}

.preview-device {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 42px;
  padding: 5px;
  background:
    linear-gradient(145deg, #272a2d 0%, #111315 46%, #070809 100%);
  box-shadow:
    0 22px 54px rgba(30, 34, 37, 0.16),
    0 7px 18px rgba(30, 34, 37, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotateZ(-0.35deg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.preview-device::before,
.preview-device::after {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  background: #111315;
  content: "";
}

.preview-device::before {
  top: 74px;
  left: -4px;
  width: 2px;
  height: 48px;
  box-shadow: 0 58px 0 #111315;
}

.preview-device::after {
  top: 104px;
  right: -4px;
  width: 2px;
  height: 62px;
}

.screenshot-module:hover .preview-device {
  transform: translateY(-4px) rotateZ(-0.2deg);
  box-shadow:
    0 30px 68px rgba(30, 34, 37, 0.2),
    0 10px 22px rgba(30, 34, 37, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.mini-dynamic-island {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 2;
  width: clamp(66px, 27%, 84px);
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050607;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

.feature-card {
  min-height: 220px;
  border-radius: 24px;
  padding: 20px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.feature-card span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--graphite);
  font-size: 11px;
  font-weight: 900;
}

.philosophy {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 24px;
}

.philosophy::after {
  position: absolute;
  right: -10%;
  bottom: -38%;
  width: min(54vw, 680px);
  height: min(54vw, 680px);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(30, 34, 37, 0.08), transparent 62%);
  pointer-events: none;
  content: "";
}

.philosophy h2 {
  max-width: 820px;
  white-space: pre-line;
}

.philosophy p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 14px;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--border) 64%, transparent);
  padding: 30px 0 42px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.65;
  text-align: center;
}

.footer-language {
  display: grid;
  justify-items: center;
  gap: 4px;
  max-width: 720px;
}

.footer-language-zh {
  display: none;
}

html[lang^="zh"] .footer-language-en {
  display: none;
}

html[lang^="zh"] .footer-language-zh {
  display: grid;
}

.footer-language p,
.footer-language address {
  margin: 0;
}

.footer-language address {
  font-style: normal;
}

.site-footer a {
  color: var(--graphite);
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer a:hover {
  color: var(--ink);
}

.reveal {
  --reveal-delay: 0ms;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 720ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay),
    transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay);
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-enabled .hero-visual.is-visible {
  animation: visualFloat 7.8s ease-in-out 1000ms infinite;
}

@keyframes fragmentFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
  50% {
    transform: translate3d(16px, -18px, 0) rotate(-5deg);
  }
}

@keyframes visualFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (min-width: 720px) {
  .site-header,
  .hero,
  .section,
  .philosophy,
  .site-footer {
    width: min(var(--max-width), calc(100% - 96px));
  }

  .site-nav {
    display: flex;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, min(38vw, 560px));
    gap: clamp(44px, 6vw, 104px);
    align-items: center;
    min-height: 820px;
    padding: 80px 0 72px;
  }

  .hero-visual {
    width: min(100%, 560px);
    justify-self: end;
    place-items: center;
  }

  h1 {
    font-size: clamp(92px, 9vw, 138px);
  }

  h2 {
    font-size: clamp(43px, 4.4vw, 68px);
  }

  .subtitle {
    font-size: 30px;
  }

  .description {
    max-width: 640px;
    font-size: 19px;
  }

  .phone-shell {
    --phone-base-rx: 0.35deg;
    --phone-base-ry: -0.9deg;
    --phone-base-rz: -2.2deg;
    justify-self: center;
    width: clamp(340px, 32vw, 500px);
    max-width: min(100%, calc(100vw - 96px));
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
  }

  .primary-cta {
    width: auto;
  }

  .platform-note {
    width: auto;
    justify-content: flex-start;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .module-card {
    min-height: 700px;
    padding: 24px;
  }

  .screenshot-frame {
    width: min(100%, 340px);
  }

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

  .philosophy {
    padding: 36px;
  }
}

@media (max-width: 430px) {
  .site-header {
    align-items: flex-start;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 30px;
  }

  .phone-shell {
    --phone-base-rx: 0deg;
    --phone-base-ry: 0deg;
    --phone-base-rz: -1deg;
    width: min(78vw, 330px);
    max-width: calc(100vw - 48px);
  }

  .module-card {
    padding: 16px;
  }

  .screenshot-frame {
    width: min(100%, 296px);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --app-bg: #161618;
    --paper: #161618;
    --panel: #27272a;
    --surface: #27272a;
    --ink: #f4f4f5;
    --graphite: #a1a1aa;
    --muted: #71717a;
    --border: rgba(113, 113, 122, 0.28);
    --selected: rgba(200, 185, 133, 0.14);
    --accent: #c8b985;
    --accent-text: #161618;
    --polaroid: #f7f2e7;
    --shadow: 0 20px 54px rgba(0, 0, 0, 0.36), 0 2px 12px rgba(0, 0, 0, 0.28);
    --soft-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  }

  .hero::before {
    background: radial-gradient(circle, rgba(200, 185, 133, 0.18), rgba(200, 185, 133, 0) 66%);
  }

  .hero::after {
    background: radial-gradient(circle, rgba(244, 244, 245, 0.08), rgba(244, 244, 245, 0) 68%);
  }

  .phone-shell {
    border-color: #08080a;
    background:
      linear-gradient(145deg, #17171a 0%, #08080a 48%, #020203 100%);
    box-shadow:
      0 34px 82px rgba(0, 0, 0, 0.4),
      0 12px 30px rgba(0, 0, 0, 0.28),
      -14px 18px 46px rgba(200, 185, 133, 0.08),
      inset 1px 1px 0 rgba(255, 255, 255, 0.08),
      inset -1px -1px 0 rgba(0, 0, 0, 0.56);
  }

  .phone-shell::before,
  .phone-shell::after,
  .dynamic-island {
    background: #08080a;
  }

  .module-card,
  .feature-card,
  .philosophy {
    background: rgba(39, 39, 42, 0.74);
  }

  .language-toggle {
    background: rgba(39, 39, 42, 0.68);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  }

  .lang-option.is-active {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
  }

  .screenshot-frame {
    border-color: rgba(113, 113, 122, 0.22);
    background: #161618;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
  }

  .preview-device {
    border-color: #08080a;
    background:
      linear-gradient(145deg, #17171a 0%, #08080a 48%, #020203 100%);
    box-shadow:
      0 22px 54px rgba(0, 0, 0, 0.28),
      0 7px 18px rgba(0, 0, 0, 0.2),
      inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  .preview-device::before,
  .preview-device::after,
  .mini-dynamic-island {
    background: #08080a;
  }

  .primary-cta {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js-enabled .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
