:root {
  --ink: #1D1D1F;
  --muted: #636368;
  --line: #D2D2D7;
  --soft: #F5F5F7;
  --accent: #0071E3;
  --link: #0066CC;
  --link-dark: #2997FF;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Inter, 'PingFang SC', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: #004C99; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1024px; margin: 0 auto; padding: 0 24px; }
.wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid #E5E5EA; background: #FFFFFF; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; }
.brand { padding: 14px 0; color: var(--ink); font-weight: 600; font-size: 17px; }
.brand:hover { color: var(--ink); }
.crumb { display: flex; align-items: center; gap: 16px; }
.crumb a { padding: 14px 0; font-size: 13px; }
.crumb span { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a { padding: 15px 12px; color: var(--ink); font-size: 13px; }
.site-nav a.pill { margin-left: 8px; padding: 12px 18px; color: #FFFFFF; }

/* Buttons and links */
.pill { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 17px; }
.pill:hover { color: #FFFFFF; background: #0062C4; }
.pill.dark { background: var(--ink); }
.pill.dark:hover { background: #000000; }
.more { display: inline-block; padding: 12px 4px; font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; align-items: center; margin-top: 28px; }

/* Home hero */
.hero { max-width: 900px; margin: 0 auto; padding: 96px 24px 72px; text-align: center; }
.hero h1 { font-size: clamp(40px, 7vw, 80px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; }
.hero p { margin: 20px auto 0; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: var(--muted); max-width: 640px; }

/* Rotating showcase */
.showcase { background: #000000; color: #F5F5F7; border-radius: 28px; overflow: hidden; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; padding: 64px 32px 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.slide h2 { margin-top: 20px; font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.03em; font-weight: 600; line-height: 1.05; }
.slide .promise { margin-top: 12px; font-size: clamp(19px, 2.4vw, 26px); max-width: 620px; line-height: 1.3; }
.slide .meta { margin-top: 10px; font-size: 14px; color: #A1A1A6; }
.slide .more { font-size: 19px; color: var(--link-dark); margin-top: 8px; }
.stage { position: relative; width: 100%; max-width: 920px; aspect-ratio: 16 / 9; margin-top: 28px; background: #1D1D1F; border-radius: 18px; overflow: hidden; font-size: clamp(8px, 1.9vw, 19px); }
.stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showcase-controls { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 20px 16px 28px; }
.round { width: 44px; height: 44px; flex-shrink: 0; border: none; border-radius: 50%; background: rgba(255,255,255,0.14); color: #F5F5F7; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.round:hover { background: rgba(255,255,255,0.24); }
.tabs { display: flex; gap: 2px; padding: 4px; background: rgba(255,255,255,0.1); border-radius: 999px; }
.tabs button { min-height: 44px; padding: 8px 16px; border: none; border-radius: 999px; background: transparent; color: #C7C7CC; font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.tabs button[aria-current="true"] { background: #F5F5F7; color: var(--ink); font-weight: 600; }

/* App icons */
.icon { display: block; width: 72px; height: 72px; }
.icon.lg { width: 96px; height: 96px; }
.icon.sm { width: 56px; height: 56px; }

/* Section headings */
.section { padding-top: 112px; }
.section-title { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.025em; font-weight: 600; line-height: 1.07; }
.section-lead { margin: 14px auto 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.4; max-width: 640px; }

/* Filter */
.filter { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-top: 28px; padding: 4px; background: var(--soft); border-radius: 14px; }
.filter button { min-height: 44px; padding: 10px 18px; border: none; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.filter button[aria-pressed="true"] { background: #FFFFFF; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }

/* App tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 24px; margin-top: 40px; }
.tile { border-radius: 28px; padding: 60px 28px 0; min-height: 600px; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; background: var(--soft); color: var(--ink); }
.tile.dark { background: #000000; color: #F5F5F7; }
.tile h3 { font-size: clamp(32px, 4vw, 40px); letter-spacing: -0.025em; font-weight: 600; line-height: 1.1; }
.tile .tagline { margin-top: 10px; font-size: 19px; line-height: 1.35; max-width: 420px; }
.tile .meta { margin-top: 10px; font-size: 14px; color: var(--muted); }
.tile.dark .meta { color: #A1A1A6; }
.tile .more { font-size: 19px; margin-top: 6px; }
.tile.dark .more { color: var(--link-dark); }
.tile-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; margin-top: 6px; }
.tile-links .more { margin-top: 0; }
.tile-art { margin-top: auto; padding-top: 36px; width: 100%; display: flex; justify-content: center; }
.tile-art > div { position: relative; width: 100%; max-width: 560px; height: 250px; overflow: hidden; border-radius: 14px 14px 0 0; font-size: 12px; }
.tile-art img { width: 100%; display: block; }
.tile-art .scene-feishu { box-shadow: 0 20px 50px rgba(0,0,0,0.12); }

/* Drawn scenes (decorative, sized in em so they scale) */
.scene { position: absolute; inset: 0; overflow: hidden; text-align: left; }
.menubar { height: 1.7em; background: #1D1D1F; display: flex; align-items: center; justify-content: flex-end; gap: 0.7em; padding: 0 0.8em; }
.scene-codex .menubar { background: #2C2C2E; }
.menubar i { width: 1.5em; height: 0.4em; border-radius: 0.25em; background: #636366; }
.menubar i:last-child { width: 2.3em; }
.menubar i.light { width: 0.75em; height: 0.75em; border-radius: 50%; background: #FEBC2E; }
.scene-top { background: #DCDCE1; }
.paper { position: absolute; top: 1.7em; left: 14%; right: 14%; background: #FFFFFF; border-radius: 0 0 1em 1em; box-shadow: 0 1.8em 4em rgba(0,0,0,0.2); padding: 1.2em 1.3em 1.7em; font-family: ui-monospace, 'SF Mono', Menlo, monospace; line-height: 1.8; color: var(--ink); }
.paper div { display: flex; gap: 1em; }
.paper b { color: #AEAEB2; font-weight: 400; }
.paper .caret { width: 1px; height: 1.3em; background: var(--accent); margin-top: 0.25em; }
.scene-codex { background: #1D1D1F; color: #F5F5F7; }
.alert { position: absolute; right: 6%; width: 74%; max-width: 27.5em; border-radius: 1.3em; padding: 1.3em; }
.alert.wait { top: 3.2em; background: rgba(254,188,46,0.14); border: 1px solid rgba(254,188,46,0.5); }
.alert.done { top: 14.3em; background: rgba(37,201,64,0.14); border: 1px solid rgba(37,201,64,0.5); }
.alert strong { display: block; font-size: 1.25em; font-weight: 600; }
.alert small { display: block; font-size: 1em; color: #C7C7CC; margin-top: 0.3em; }
.alert .btns { display: flex; gap: 0.7em; margin-top: 1.2em; }
.alert .btns span { padding: 0.5em 1em; border-radius: 0.7em; background: rgba(255,255,255,0.14); }
.alert .btns span:first-child { background: #F5F5F7; color: var(--ink); }
.scene-feishu { background: #FFFFFF; color: var(--ink); }
.winbar { height: 2.2em; background: #EDEDF0; display: flex; gap: 0.5em; align-items: center; padding: 0 1em; }
.winbar i { width: 0.7em; height: 0.7em; border-radius: 50%; background: #C7C7CC; }
.cols { display: flex; height: calc(100% - 2.2em); }
.cols .side { width: 30%; background: var(--soft); padding: 1em 0.7em; display: flex; flex-direction: column; gap: 0.3em; }
.cols .side span { padding: 0.5em 0.7em; border-radius: 0.5em; }
.cols .side .on { background: #DCDCE1; font-weight: 600; }
.cols .files { flex: 1; min-width: 0; padding: 1em 1.2em; }
.cols .files p { color: var(--muted); padding-bottom: 0.7em; }
.cols .files div { display: flex; justify-content: space-between; gap: 0.7em; padding: 0.75em 0; border-top: 1px solid #E5E5EA; }
.cols .files .up { color: var(--link); }
.cols .files .warn { color: #B25000; font-weight: 600; }
.cols .files .ok { color: var(--muted); }

/* Pair band */
.band { background: var(--soft); margin-top: 112px; }
.band .wrap { padding-top: 104px; padding-bottom: 104px; text-align: center; }
.pair { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 12px; margin-top: 56px; text-align: left; }
.pair .card { flex: 1 1 240px; background: #FFFFFF; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.pair .arrow { display: flex; align-items: center; justify-content: center; flex: 0 0 32px; }
.card .kicker { font-size: 14px; color: var(--muted); }
.card .name { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.card .body { color: var(--muted); line-height: 1.45; font-size: 17px; }

/* Compatibility table */
.table-scroll { overflow-x: auto; margin-top: 48px; }
.compat { width: 100%; min-width: 840px; border-collapse: collapse; font-size: 17px; }
.compat thead th { padding: 14px 12px; font-weight: 400; text-align: left; color: var(--muted); font-size: 14px; }
.compat tbody tr { border-top: 1px solid var(--line); vertical-align: top; }
.compat tbody th { padding: 18px 12px; text-align: left; font-weight: 600; }
.compat td { padding: 18px 12px; font-size: 15px; line-height: 1.4; }
.compat th:first-child, .compat td:first-child { padding-left: 0; }
.compat td a { display: inline-block; padding: 12px 0; margin: -12px 0; white-space: nowrap; }

/* Footer */
.site-footer { background: var(--soft); margin-top: 104px; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer nav a { color: #424245; padding: 14px 0; }

/* App page */
.app-hero { max-width: 900px; margin: 0 auto; padding: 80px 24px 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.app-hero h1 { margin-top: 24px; font-size: clamp(44px, 8vw, 88px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 600; }
.app-hero .promise { margin-top: 14px; font-size: clamp(21px, 2.8vw, 30px); line-height: 1.25; letter-spacing: -0.01em; max-width: 680px; }
.app-hero .meta { margin-top: 12px; font-size: 14px; color: var(--muted); }
.app-stage { background: var(--soft); border-radius: 28px; padding: clamp(20px, 5vw, 64px) clamp(16px, 5vw, 64px) 0; margin-top: 56px; display: flex; justify-content: center; overflow: hidden; }
.app-stage .stage { margin-top: 0; border-radius: 18px 18px 0 0; box-shadow: 0 30px 70px rgba(0,0,0,0.14); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: 56px; }
.feature { background: var(--soft); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 8px; }
.feature h3 { font-size: 24px; letter-spacing: -0.02em; font-weight: 600; line-height: 1.15; }
.feature p { color: var(--muted); line-height: 1.45; font-size: 17px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: 56px; }
.step { background: var(--soft); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.step .text { padding: 36px 32px 32px; display: flex; flex-direction: column; gap: 8px; }
.step .kicker { font-size: 14px; color: var(--muted); }
.step h3 { font-size: 28px; letter-spacing: -0.02em; font-weight: 600; line-height: 1.15; }
.step p { color: var(--muted); line-height: 1.45; font-size: 17px; }
.step img { display: block; width: calc(100% - 64px); margin: auto 32px 0; border-radius: 14px 14px 0 0; box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.notes { margin: 48px auto 0; padding: 0; list-style: none; max-width: 760px; text-align: left; }
.notes li { border-top: 1px solid var(--line); padding: 18px 0; font-size: 17px; line-height: 1.45; color: var(--muted); }
.notes strong { color: var(--ink); font-weight: 600; }
.get { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; margin-top: 48px; }
.get .card { border: 1px solid var(--line); border-radius: 20px; padding: 36px 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.get .card .pill, .get .card .more { margin-top: 12px; }
.get .card .small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.others { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; margin-top: 48px; text-align: left; }
.other { display: flex; gap: 16px; align-items: center; padding: 24px; border-radius: 20px; background: var(--soft); color: var(--ink); }
.other:hover { color: var(--ink); background: #EDEDF0; }
.other span { display: flex; flex-direction: column; gap: 4px; }
.other b { font-size: 21px; font-weight: 600; }
.other small { color: var(--muted); font-size: 15px; line-height: 1.35; }

@media (max-width: 640px) {
  .hero { padding: 56px 20px 40px; }
  .wide, .wrap { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 72px; }
  .band { margin-top: 72px; }
  .band .wrap { padding-top: 72px; padding-bottom: 72px; }
  .slide { padding: 44px 16px 0; }
  .showcase, .tile { border-radius: 24px; }
  .tabs button { width: 44px; padding: 0; font-size: 0; position: relative; }
  .tabs button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #8E8E93; }
  .tabs button[aria-current="true"] { background: transparent; }
  .tabs button[aria-current="true"]::before { background: #F5F5F7; }
  .tile { padding: 44px 20px 0; min-height: 480px; }
  .tile-art > div { height: 210px; font-size: 10px; }
  .pair .arrow { flex-basis: 100%; transform: rotate(90deg); }
  .site-nav a { padding: 13px 8px; }
  .site-footer { margin-top: 72px; }
  .app-hero { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
