/* Writer website. System fonts only, zero external requests (the site is served from mainland China).
   Design read: premium Mac-app landing for Chinese office workers; frosted glass, monochrome ink, no accent colour.
   Dials: variance 8, motion 7, density 3.
   Glass here is a web approximation (backdrop-filter + highlights + a luminous rim), not Apple's Liquid Glass.
   Shapes: pills for buttons, tabs and tags; 28px for panels, tiles and cards; 12px for app windows and icon chips. */

:root {
  color-scheme: light dark;
  --bg: #f2f3f5;
  --ink: #1d1d1f;
  --ink-2: #55575d;
  --ink-3: #6e7076;
  --line: rgba(29, 29, 31, .08);
  --glow:
    radial-gradient(42vmax 32vmax at 12% 8%, rgba(188, 204, 228, .6), transparent 70%),
    radial-gradient(36vmax 28vmax at 88% 18%, rgba(224, 219, 234, .5), transparent 70%),
    radial-gradient(46vmax 34vmax at 74% 88%, rgba(204, 219, 236, .55), transparent 70%),
    radial-gradient(40vmax 30vmax at 18% 82%, rgba(236, 229, 222, .55), transparent 70%);
  --glass-fill: linear-gradient(135deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .36));
  --glass-rim: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .42) 38%, rgba(255, 255, 255, .16) 62%, rgba(255, 255, 255, .7));
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .3), 0 1px 2px rgba(16, 20, 28, .04), 0 30px 60px -32px rgba(16, 20, 28, .32);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --btn: linear-gradient(180deg, #3c3c41, #1d1d1f);
  --btn-hover: linear-gradient(180deg, #48484e, #2a2a2d);
  --btn-ink: #f5f5f7;
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .35), 0 12px 26px -12px rgba(0, 0, 0, .55);
  --obsidian: linear-gradient(160deg, rgba(48, 48, 53, .94), rgba(16, 16, 18, .96));
  --window-shadow: 0 0 0 .5px rgba(29, 29, 31, .2), 0 2px 6px rgba(16, 20, 28, .06), 0 30px 70px -26px rgba(16, 20, 28, .45);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0e;
    --ink: #f5f5f7;
    --ink-2: #a3a4a9;
    --ink-3: #8a8c91;
    --line: rgba(255, 255, 255, .08);
    --glow:
      radial-gradient(42vmax 32vmax at 12% 8%, rgba(72, 88, 116, .4), transparent 70%),
      radial-gradient(36vmax 28vmax at 88% 18%, rgba(70, 66, 86, .32), transparent 70%),
      radial-gradient(46vmax 34vmax at 74% 88%, rgba(58, 72, 96, .38), transparent 70%),
      radial-gradient(40vmax 30vmax at 18% 82%, rgba(80, 76, 72, .26), transparent 70%);
    --glass-fill: linear-gradient(135deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035));
    --glass-rim: linear-gradient(145deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .08) 38%, rgba(255, 255, 255, .03) 62%, rgba(255, 255, 255, .14));
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 30px 60px -32px rgba(0, 0, 0, .8);
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --btn: linear-gradient(180deg, #fdfdfd, #dcdce0);
    --btn-hover: linear-gradient(180deg, #fdfdfd, #ebebee);
    --btn-ink: #1d1d1f;
    --btn-shadow: inset 0 1px 0 #fdfdfd, inset 0 -1px 0 rgba(0, 0, 0, .12), 0 12px 26px -12px rgba(0, 0, 0, .7);
    --obsidian: linear-gradient(160deg, rgba(40, 40, 45, .9), rgba(20, 20, 23, .92));
    --window-shadow: 0 0 0 .5px rgba(255, 255, 255, .14), 0 2px 6px rgba(0, 0, 0, .3), 0 30px 70px -26px rgba(0, 0, 0, .8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { position: relative; margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
/* The silver light every pane of glass frosts. Fixed, so the glass changes tint as it scrolls over it. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--glow); }
/* Fine grain over the whole page: one fixed layer, never on scrolling elements */
body::after { content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; background: var(--grain); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }
.nb { display: inline-block; } /* keeps a Chinese clause on one line when it fits */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1em; height: 1em; flex: none; fill: currentColor; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
section[id] { scroll-margin-top: 64px; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 60; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; }
.skip:focus { top: 12px; }

/* Frosted glass: translucent fill, blur and saturation of what is behind, a luminous rim */
.glass {
  background: var(--glass-fill) padding-box, var(--glass-rim) border-box;
  border: 1px solid transparent;
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  backdrop-filter: blur(30px) saturate(170%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: color-mix(in srgb, var(--bg) 90%, #fff); }
}

/* Header: a thicker glass bar, so the nav stays legible over dark content */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 76%, transparent); box-shadow: 0 1px 0 var(--line), inset 0 -1px 0 rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%); }
.top-in { height: 60px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 22.5%; box-shadow: 0 0 0 .5px var(--line), 0 1px 3px rgba(0, 0, 0, .14); }
.wordmark { width: 60px; height: 24px; background: currentColor; -webkit-mask: url(writer-logo.svg) center / contain no-repeat; mask: url(writer-logo.svg) center / contain no-repeat; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 6px 12px; border-radius: 999px; color: var(--ink-2); font-size: 14.5px; text-decoration: none; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px 0 22px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; box-shadow: var(--btn-shadow); transition: transform .25s var(--ease); }
.btn .ic { width: 18px; height: 18px; margin-top: -2px; }
.btn:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn-small { min-height: 34px; padding: 0 16px; font-size: 14px; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; text-decoration: none; }
.link .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link:hover .ic { transform: translateX(3px); }

/* App windows, framed in a glass bezel */
.window { display: block; border-radius: 12px; overflow: hidden; background: var(--bg); box-shadow: var(--window-shadow); }
.window img { width: 100%; }
.bezel { padding: 16px; border-radius: 28px; }

/* Hero: two-tone headline, then the product arrives: it lies back in space and settles flat as it scrolls in */
.hero { position: relative; isolation: isolate; padding-top: clamp(48px, 7vw, 96px); }
.hero::after { content: ""; position: absolute; inset: 30% 0 -12%; z-index: -1; pointer-events: none; -webkit-mask: linear-gradient(transparent, #000 18%, #000 70%, transparent); mask: linear-gradient(transparent, #000 18%, #000 70%, transparent);
  background:
    radial-gradient(36% 44% at 18% 30%, rgba(150, 174, 214, .85), transparent 70%),
    radial-gradient(32% 42% at 84% 40%, rgba(196, 182, 222, .75), transparent 70%),
    radial-gradient(44% 40% at 50% 78%, rgba(228, 212, 196, .85), transparent 70%),
    radial-gradient(30% 36% at 60% 18%, rgba(255, 255, 255, .9), transparent 70%); }
.hero h1 { margin: 0; font-size: clamp(34px, 8vw, 76px); line-height: 1.08; font-weight: 600; letter-spacing: -.022em; }
.hero h1 .dim { color: var(--ink-3); }
.lead { margin: 24px 0 0; max-width: 34em; color: var(--ink-2); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; }
.cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero-shot { width: min(1180px, 100% - 32px); margin: clamp(48px, 6vw, 72px) auto 0; transform-origin: 50% 100%; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-shot { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
  }
}
@keyframes settle { from { transform: perspective(1800px) rotateX(20deg) scale(.9); opacity: .55; } to { transform: none; opacity: 1; } }

/* Sections */
.section { padding-top: clamp(88px, 11vw, 150px); } /* top only: one gap between sections */
.section h2 { margin: 0; font-size: clamp(28px, 4vw, 52px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; }
.section-lead { margin: 20px 0 0; max-width: 34em; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.65; }
.chip { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); }
.chip .ic { width: 22px; height: 22px; }

/* Formats: a glass dock */
.dock { list-style: none; margin: 56px 0 0; padding: 28px 20px 22px; border-radius: 30px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.dock li { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: 15px; line-height: 1.45; }
.dock img { width: 64px; height: 64px; margin-bottom: 12px; filter: drop-shadow(0 10px 14px rgba(16, 20, 28, .16)); transition: transform .35s var(--ease); }
.dock li:hover img { transform: translateY(-6px) scale(1.06); }
.dock strong { font-weight: 600; }
.dock span { color: var(--ink-3); font-size: 13px; }

/* Editor showcase: one large window at a time, on a glass pane */
.showcase { margin-top: clamp(64px, 8vw, 96px); }
.tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; }
.tabs button { appearance: none; border: 0; padding: 8px 18px; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 15px/1.4 var(--sans); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--btn); color: var(--btn-ink); box-shadow: var(--btn-shadow); }
.panel { position: relative; margin: 20px 0 0; aspect-ratio: 1200 / 700; border-radius: 28px; overflow: hidden; }
.panel:not([hidden]) { animation: panel-in .5s var(--ease); }
.panel figcaption { position: absolute; top: 26px; left: 32px; right: 32px; color: var(--ink-2); font-size: 16px; }
.panel .window { position: absolute; left: 50%; top: 84px; width: min(86%, 1040px); translate: -50% 0; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }

/* Files bento: one obsidian tile, the rest glass */
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 36px; border-radius: 28px; }
.tile h3 { margin: 0; font-size: 20px; font-weight: 600; }
.tile p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.tile .chip { margin-bottom: 12px; }
.tile-lead { position: relative; overflow: hidden; grid-row: span 2; min-height: 500px; padding: 48px; color: #f5f5f7; background: var(--obsidian); border: 1px solid rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 30px 60px -30px rgba(0, 0, 0, .5); }
.tile-lead::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 60% at 0% 0%, rgba(255, 255, 255, .1), transparent 60%); }
.section .tile-lead h2 { position: relative; color: #f5f5f7; font-size: clamp(28px, 3.4vw, 46px); }
.tile-lead p { position: relative; margin-top: 12px; max-width: 19em; color: rgba(245, 245, 247, .72); font-size: 18px; }
.fan { position: absolute; right: 40px; bottom: 36px; display: flex; }
.fan img { width: 104px; height: 104px; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45)); transition: transform .5s var(--ease); }
.fan img:nth-child(1) { transform: rotate(-12deg) translate(26px, 12px); }
.fan img:nth-child(2) { position: relative; z-index: 1; transform: translateY(-10px); }
.fan img:nth-child(3) { transform: rotate(12deg) translate(-26px, 12px); }
.tile-lead:hover .fan img:nth-child(1) { transform: rotate(-18deg) translate(10px, 6px); }
.tile-lead:hover .fan img:nth-child(2) { transform: translateY(-18px); }
.tile-lead:hover .fan img:nth-child(3) { transform: rotate(18deg) translate(-10px, 6px); }
.tile-number { grid-column: span 2; justify-content: flex-end; }
.tile-number .big { margin: 0 0 6px; color: var(--ink); font: 600 clamp(64px, 8vw, 112px)/1 var(--display); letter-spacing: -.03em; }

/* AI */
.ai { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.points { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 26px; }
.points > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.points h3 { margin: 1px 0 4px; font-size: 17px; font-weight: 600; }
.points p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.providers { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.providers li { padding: 3px 11px; border-radius: 999px; color: var(--ink-2); font-size: 13px; line-height: 1.6; background: color-mix(in srgb, var(--ink) 5%, transparent); box-shadow: inset 0 0 0 1px var(--line); }

/* Mac details: a rail of glass cards you swipe through, each with its own picture */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rail-nav { display: flex; gap: 8px; }
.round { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; color: var(--ink); cursor: pointer; transition: transform .25s var(--ease); }
.round .ic { width: 18px; height: 18px; }
.round:active { transform: scale(.94); }
.rail { list-style: none; margin: 48px 0 0; padding: 12px max(24px, (100% - 1200px) / 2) 40px; display: grid; grid-auto-flow: column; grid-auto-columns: min(360px, 82vw); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(24px, (100% - 1200px) / 2); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; display: flex; flex-direction: column; padding: 14px 14px 26px; border-radius: 28px; }
.card h3 { margin: 22px 12px 6px; font-size: 18px; font-weight: 600; }
.card p { margin: 0 12px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.art { position: relative; aspect-ratio: 16 / 10.5; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 4%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art-theme img { position: absolute; inset: 0; object-position: left top; }
.art-theme img + img { clip-path: polygon(62% 0, 100% 0, 100% 100%, 38% 100%); }
.art-keys { grid-auto-flow: column; justify-content: center; gap: 14px; }
.art-keys kbd { display: grid; place-items: center; min-width: 76px; height: 76px; padding: 0 18px; border-radius: 18px; font: 500 34px/1 var(--display); color: var(--ink); background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 40%, #fff), var(--bg)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -3px 0 color-mix(in srgb, var(--ink) 10%, transparent), 0 1px 0 color-mix(in srgb, var(--ink) 14%, transparent), 0 12px 24px -12px rgba(16, 20, 28, .4); }
.art-zoom { grid-template-columns: auto 1fr auto; gap: 14px; padding: 0 28px; color: var(--ink-2); font: 600 18px/1 var(--display); }
.art-zoom span:last-child { color: var(--ink); font-size: 44px; letter-spacing: -.03em; }
.art-zoom i { justify-self: stretch; height: 4px; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 18%, transparent), var(--ink)); }
.art-show { background: #2a2320; }
.art-icon { color: var(--ink); }
.art-icon .ic { width: 64px; height: 64px; opacity: .85; }

@media (prefers-color-scheme: dark) {
  .art-keys kbd { color: var(--ink); background: linear-gradient(180deg, #3a3a3f, #242428); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -3px 0 rgba(0, 0, 0, .4), 0 12px 24px -12px rgba(0, 0, 0, .7); }
}

/* Developers: a dark glass terminal in both themes */
.code { margin-top: 44px; max-width: 900px; border-radius: 16px; color: #e8e8ea; overflow: hidden; background: linear-gradient(160deg, rgba(38, 38, 42, .94), rgba(18, 18, 20, .96)); border: 1px solid rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 60px -30px rgba(0, 0, 0, .55); }
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 20px; border-bottom: 1px solid rgba(255, 255, 255, .07); color: #a1a1a6; font-size: 13px; }
.code-bar span { display: inline-flex; align-items: center; gap: 8px; }
.code-bar .ic { width: 16px; height: 16px; }
.copy { padding: 5px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .09); color: #e8e8ea; font: 13px/1.5 var(--sans); cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, .15); }
.code pre { margin: 0; padding: 22px 24px 26px; overflow-x: auto; font: 14px/1.8 var(--mono); }
.code .c { color: #98989d; }

/* Download: a glass card over its own pool of light */
.cta-wrap { position: relative; isolation: isolate; display: grid; place-items: center; padding: clamp(40px, 6vw, 72px) 16px; }
.cta-wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-mask: radial-gradient(closest-side, #000 60%, transparent); mask: radial-gradient(closest-side, #000 60%, transparent);
  background:
    radial-gradient(30% 60% at 34% 40%, rgba(172, 192, 224, .75), transparent 70%),
    radial-gradient(28% 60% at 66% 62%, rgba(214, 204, 230, .65), transparent 70%),
    radial-gradient(40% 50% at 50% 100%, rgba(234, 224, 212, .7), transparent 70%); }
.cta-card { width: min(560px, 100%); padding: 48px 40px 36px; border-radius: 28px; text-align: center; }
.app-icon { width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 22.5%; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 16px 32px -12px rgba(16, 20, 28, .5); }
.section .cta-card h2 { font-size: clamp(30px, 3.4vw, 44px); }
.cta-card p { margin: 12px 0 0; color: var(--ink-2); }
.cta-card .btn { margin-top: 28px; }
.cta-card .small { margin-top: 12px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.soon { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px !important; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }

@media (prefers-color-scheme: dark) {
  .hero::after { opacity: .45; }
  .cta-wrap::before { opacity: .22; }
}

/* Footer */
.foot { margin-top: clamp(64px, 8vw, 104px); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 28px 0 44px; border-top: 1px solid var(--line); }
.foot .brand img { width: 24px; height: 24px; }
.foot .wordmark { width: 52px; height: 21px; }
.foot p { margin: 0; color: var(--ink-3); font-size: 14px; }
.to-top { margin-left: auto; color: var(--ink-3); font-size: 14px; text-decoration: none; }
.to-top:hover { color: var(--ink); }

/* Document pages (privacy policy, support): prose on the page, glass only where it groups something */
.doc { width: min(760px, 100% - 48px); margin-inline: auto; padding-top: clamp(48px, 7vw, 88px); }
.doc h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.doc h2 { margin: 44px 0 10px; font-size: 21px; font-weight: 600; }
.doc .en-title { margin-top: 0; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.02em; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; line-height: 1.8; }
.doc p { margin: 0 0 10px; }
.doc ul { margin: 0; padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc a:not(.btn) { color: var(--ink); text-underline-offset: 3px; }
.doc code { padding: 1px 6px; border-radius: 6px; font: 13.5px/1.6 var(--mono); overflow-wrap: anywhere; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.doc hr { margin: 72px 0 48px; border: 0; border-top: 1px solid var(--line); }
.doc .meta { margin: 10px 0 0; color: var(--ink-3); font-size: 14px; }
.doc .lede { margin-top: 18px; font-size: 18px; }
.doc .maker { margin-top: 28px; }
.summary { margin: 28px 0 8px !important; padding: 20px 24px; border-radius: 20px; color: var(--ink) !important; font-size: 17px !important; }
.contact { margin-top: 28px; padding: 22px 26px; border-radius: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.contact .meta { margin: 0; }
.contact .mail { margin: 2px 0 0; color: var(--ink); font-size: 20px; font-weight: 600; }
.faq { display: grid; gap: 12px; margin-top: 18px; }
.faq details { border-radius: 20px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--ink-3); font-size: 22px; font-weight: 400; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 24px 16px; }
.foot-links { display: flex; gap: 20px; margin-left: auto; }
.foot-links a { color: var(--ink-3); font-size: 14px; text-decoration: none; }
.foot-links a:hover, .foot-links a[aria-current] { color: var(--ink); }

/* Entrance: only when the page script runs (the class is set in <head>); nothing hides without it */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .ai { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-lead { grid-column: span 2; grid-row: auto; min-height: 400px; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .top-in .btn { margin-left: auto; }
  .dock { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .bezel { padding: 8px; border-radius: 18px; }
  .window { border-radius: 10px; }
  .tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .panel { aspect-ratio: auto; padding: 20px 16px 0; }
  .panel figcaption { position: static; margin: 0 0 16px; }
  .panel .window { position: static; translate: none; width: 100%; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .rail-nav { display: none; }
  .rail { padding-inline: 16px; scroll-padding-inline: 16px; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  body { font-size: 16px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-lead, .tile-number { grid-column: auto; }
  .tile, .tile-lead { padding: 28px; }
  .tile-lead { min-height: 380px; }
  .fan { right: 24px; bottom: 24px; }
  .fan img { width: 76px; height: 76px; }
  .code pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
  .cta-card { padding: 36px 22px 28px; }
  .to-top { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .panel:not([hidden]) { opacity: 1; transform: none; transition: none; animation: none; }
  .btn, .link .ic, .dock img, .fan img, .round { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .glass, .top { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
