/* Kretize / CanPeek — Cinematic Editorial */
:root {
  color-scheme: dark;
  --bg: #0b0e11;
  --surface: #11151a;
  --surface-raised: #171c22;
  --text: #eef0ef;
  --text-muted: #a5adb3;
  --text-dim: #747e86;
  --accent: #89dce9;
  --accent-soft: #b8edf3;
  --on-accent: #102a31;
  --line: #2a323a;
  --line-strong: #46525c;
  --font-sans: "Avenir Next", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "New York", Georgia, serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1280px;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { min-height: 100dvh; overflow-x: hidden; background: var(--bg); color: var(--text); font: 16px/1.75 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body, button, a, summary { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a, button, summary { min-height: 44px; }
a, summary { cursor: pointer; }
p { max-width: 70ch; }
h1, h2, h3, h4 { line-height: 1.16; letter-spacing: -0.04em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }
.wrap { width: calc(100% - 40px); max-width: var(--wrap); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 50; padding: 8px 16px; background: var(--accent); color: var(--on-accent); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Navigation */
.site-nav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgb(11 14 17 / 92%); backdrop-filter: blur(18px); }
.nav-inner { min-height: 72px; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 17px; font-weight: 650; letter-spacing: -.025em; }
.brand img { width: 32px; height: 32px; }
.brand-kretize { gap: 0; }
.brand-kretize .kretize-logo-horizontal { width: 132px; height: auto; }
.brand-kretize .kretize-logo-stacked { width: 140px; height: auto; }
.org-link { display: none; color: var(--text-dim); font: 10px/1.4 var(--font-mono); letter-spacing: .16em; }
.org-link img { width: 78px; height: auto; }
.desktop-nav { display: none; align-items: center; gap: 26px; margin-left: auto; }
.desktop-nav a { display: inline-flex; align-items: center; color: var(--text-muted); font-size: 13px; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--text); }
.nav-action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin-left: auto; padding: 8px 0 8px 12px; color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; }
.nav-action span { color: var(--accent); }
.nav-menu { position: relative; flex: none; }
.nav-menu summary { display: inline-flex; align-items: center; padding: 8px 0 8px 10px; color: var(--text-muted); font-size: 13px; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; width: min(280px, calc(100vw - 40px)); padding: 8px 18px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-raised); box-shadow: 0 18px 50px rgb(0 0 0 / 35%); }
.nav-menu-panel a { display: flex; align-items: center; min-height: 46px; border-bottom: 1px solid var(--line); color: var(--text-muted); font-size: 14px; }
.nav-menu-panel a:last-child { border-bottom: 0; color: var(--accent); }
.nav-menu-panel a:hover { color: var(--text); }

/* Shared elements */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 12px 22px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--text); background: transparent; font-size: 14px; font-weight: 650; line-height: 1.4; transition: transform 160ms ease-out, opacity 160ms ease-out, border-color 160ms ease-out; }
.button:hover { transform: translateY(-2px); border-color: var(--text-muted); }
.button:active { transform: translateY(0); }
.button-primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.button-primary:hover { border-color: var(--accent-soft); opacity: .9; }
.button.is-disabled { border-color: var(--line); background: var(--surface-raised); color: var(--text-muted); cursor: default; }
.button.is-disabled:hover { transform: none; opacity: 1; }
.quiet-link { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-size: 14px; font-weight: 600; }
.quiet-link span { color: var(--accent); transition: transform 160ms ease-out; }
.quiet-link:hover span { transform: translateX(3px); }
.section-label, .hero-eyebrow, .item-en { color: var(--accent); font: 10px/1.6 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.section-heading { display: grid; gap: 24px; margin-bottom: 48px; }
.section-heading h2 { margin-top: 16px; font-size: clamp(36px, 7vw, 64px); font-weight: 580; }
html[lang="zh-CN"] #views-title { font-size: clamp(20px, 2.8vw, 34px); white-space: nowrap; }
.section-heading > p { color: var(--text-muted); font-size: 16px; }
.section-heading.compact h2 { font-size: clamp(34px, 6vw, 54px); }

/* Kretize: one-page work index */
.portal-hero { display: grid; align-items: center; gap: 44px; min-height: calc(100svh - 112px); padding-block: 72px; }
.portal-copy h1 { margin-top: 22px; font-size: clamp(48px, 12vw, 92px); font-weight: 570; letter-spacing: -.065em; }
.portal-copy > p:not(.hero-eyebrow) { margin-top: 30px; color: var(--text-muted); font-size: 17px; line-height: 1.9; }
.portal-copy .quiet-link { margin-top: 30px; }
.portal-visual { min-width: 0; }
.convergence { display: block; width: 100%; height: auto; overflow: visible; }
.orbit-grid { color: #283039; opacity: .65; }
.trajectory { stroke-width: 2; }
.trajectory path { stroke-dasharray: 8 8; animation: trajectory-flow 12s linear infinite; }
.trajectory-a { stroke: #89dce9; fill: #89dce9; }
.trajectory-b { stroke: #d1b795; fill: #d1b795; }
.trajectory-c { stroke: #8798c7; fill: #8798c7; }
.trajectory-out { stroke: var(--text); stroke-width: 2; }
.convergence-node { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.convergence-node circle:last-child { fill: var(--accent); stroke: none; }
.trajectory-labels { fill: var(--text-dim); font: 10px var(--font-mono); letter-spacing: 2px; }
@keyframes trajectory-flow { to { stroke-dashoffset: -160; } }
.work-section { padding-block: 72px 96px; }
.work-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 22px; }
.work-heading h2 { margin-top: 8px; font-size: clamp(32px, 7vw, 52px); font-weight: 550; }
.work-heading > span { color: var(--text-dim); font: 10px var(--font-mono); letter-spacing: .12em; }
.work-card { display: grid; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); transition: border-color 200ms ease-out, transform 200ms ease-out; }
.work-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.work-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 32px 26px 36px; }
.work-title { display: flex; align-items: center; gap: 20px; }
.work-title img { width: 64px; height: 64px; flex: none; }
.work-title h3 { margin-top: 6px; font-size: clamp(44px, 10vw, 72px); font-weight: 580; }
.work-copy h4 { margin-top: 40px; font-size: 22px; font-weight: 520; letter-spacing: -.025em; }
.work-copy > p { margin-top: 16px; color: var(--text-muted); font-size: 15px; }
.work-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; color: var(--accent); font-size: 14px; font-weight: 600; }
.work-link i { font-style: normal; transition: transform 160ms ease-out; }
.work-card:hover .work-link i { transform: translate(3px, -3px); }
.work-media { min-height: 300px; overflow: hidden; background: #f4f4f4; }
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 400ms ease-out; }
.work-card:hover .work-media img { transform: scale(1.012); }
.portal-note { padding-block: 80px; border-top: 1px solid var(--line); }
.portal-note h2 { margin-top: 22px; max-width: 1040px; font-size: clamp(36px, 8vw, 68px); font-weight: 520; }
.portal-note > p:last-child { margin-top: 32px; color: var(--text-muted); }

/* CanPeek: product-first presentation */
.product-hero { padding-block: 40px 32px; }
.product-hero-copy { display: grid; gap: 28px; }
.product-hero h1 { margin-top: 0; font-size: clamp(46px, 10vw, 82px); font-weight: 590; letter-spacing: -.055em; }
.hero-sub { margin-top: 20px; color: var(--text-muted); font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 30px; }
.product-id { display: flex; align-items: center; gap: 18px; align-self: end; padding-top: 20px; border-top: 1px solid var(--line); }
.product-id > img { width: 144px; height: 144px; flex: none; }
.product-id strong { display: block; font-size: 20px; }
.product-id span, .product-id small { display: block; margin-top: 3px; color: var(--text-muted); font-size: 12px; }
.product-id small { color: var(--text-dim); }
.app-frame { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #151515; box-shadow: 0 24px 80px rgb(0 0 0 / 25%); }
.app-frame > img { width: 100%; height: auto; }
.app-frame figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--bg); color: var(--text-dim); font: 10px/1.6 var(--font-mono); }
.hero-screen { margin-top: 36px; }
.value-strip { border-block: 1px solid var(--line); background: var(--surface); }
.value-strip .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; padding-block: 18px; }
.value-strip span { color: var(--text-muted); font-size: 13px; letter-spacing: .05em; }
.value-strip span::before { content: "/"; margin-right: 9px; color: var(--accent); font-family: var(--font-mono); }
.view-section { padding-block: 88px; }
.view-list { display: grid; margin-bottom: 56px; border-top: 1px solid var(--line-strong); }
.view-item { position: relative; padding-block: 28px; border-bottom: 1px solid var(--line); }
.item-number { position: absolute; top: 28px; right: 0; color: var(--text-dim); font: 11px var(--font-mono); }
.view-item h3 { margin-top: 12px; font-size: 24px; font-weight: 550; }
.view-item > p:last-child { margin-top: 14px; color: var(--text-muted); font-size: 15px; }
.single-screen { max-width: 1160px; margin-inline: auto; }
.principles-section { padding-block: 80px; border-block: 1px solid var(--line); background: var(--surface); }
.principles { display: grid; border-top: 1px solid var(--line-strong); }
.principle { padding-block: 28px; border-bottom: 1px solid var(--line); }
.principle-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--text-dim); font: 11px var(--font-mono); }
.principle h3 { margin-top: 24px; font-size: 30px; font-weight: 550; }
.principle > p:last-child { margin-top: 16px; color: var(--text-muted); font-size: 15px; }
.formats { padding-block: 88px; }
.format-table { border-top: 1px solid var(--line-strong); }
.format-line { display: grid; gap: 12px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.format-line h3 { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.format-line div > span { display: block; margin-top: 5px; color: var(--text-dim); font: 9px var(--font-mono); letter-spacing: .08em; }
.format-line > p { color: var(--text-muted); font-size: 14px; overflow-wrap: anywhere; }
.pro-section { padding-block: 80px; border-block: 1px solid var(--line); background: var(--surface-raised); }
.plans { display: grid; gap: 16px; }
.plan { padding: 28px 24px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg); }
.plan-pro { border-color: #547984; }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.plan-head h3 { font-size: 34px; font-weight: 560; }
.plan-head span { color: var(--accent); font-size: 13px; }
.plan > p { margin-top: 22px; color: var(--text-muted); font-size: 14px; }
.plan ul { display: grid; gap: 10px; margin-top: 24px; list-style: none; }
.plan li { position: relative; padding-left: 18px; color: var(--text); font-size: 14px; }
.plan li::before { content: ""; position: absolute; left: 0; top: .8em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.pro-tools { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.plan > small { display: block; margin-top: 26px; color: var(--text-dim); font-size: 11px; }
.privacy-band { padding-block: 80px; border-bottom: 1px solid var(--line); background: var(--surface); }
.privacy-band .wrap { display: grid; gap: 32px; }
.privacy-band h2 { margin-top: 18px; font-size: clamp(38px, 8vw, 58px); font-weight: 550; }
.privacy-band .wrap > div:last-child > p { color: var(--text-muted); }
.privacy-band .quiet-link { margin-top: 22px; }
.support-section { display: grid; gap: 36px; padding-block: 88px; }
.support-section h2 { margin-top: 18px; font-size: clamp(34px, 7vw, 54px); font-weight: 550; }
.support-section > div:last-child > p { color: var(--text-muted); }
.support-email { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-block: 18px; border-block: 1px solid var(--line-strong); color: var(--accent); font-size: clamp(17px, 5vw, 24px); overflow-wrap: anywhere; }
.support-section .quiet-link { margin-top: 22px; }
.get-section { padding-block: 80px; border-top: 1px solid var(--line); background: var(--surface); text-align: center; }
.get-inner { display: flex; flex-direction: column; align-items: center; }
.get-inner > img { width: 88px; height: 88px; margin-bottom: 26px; }
.get-inner h2 { margin-top: 16px; font-family: var(--font-serif); font-size: clamp(34px, 8vw, 58px); font-weight: 400; letter-spacing: -.025em; }
.get-inner > p:not(.section-label) { margin-top: 18px; color: var(--text-muted); font-size: 13px; }
.get-action { display: flex; flex-direction: column; align-items: center; margin-top: 28px; }
.get-action > span:last-child { margin-top: 12px; color: var(--text-dim); font-size: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #090c0f; }
.footer-main { display: grid; gap: 40px; padding-block: 48px; }
.footer-product { display: inline-flex; align-items: center; gap: 16px; justify-self: start; }
.footer-product img { width: 48px; height: 48px; }
.footer-product strong, .footer-product small { display: block; }
.footer-product strong { font-size: 18px; }
.footer-product small { color: var(--text-dim); font-size: 11px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-links > div { display: flex; flex-direction: column; align-items: flex-start; }
.footer-links > div > span:first-child { margin-bottom: 8px; color: var(--text-dim); font: 9px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.footer-links a { display: inline-flex; align-items: center; min-height: 38px; color: var(--text-muted); font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer-domain { margin-top: 8px; color: var(--text-dim); font: 10px var(--font-mono); overflow-wrap: anywhere; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--text-dim); font: 9px/1.7 var(--font-mono); letter-spacing: .06em; }
.footer-bottom a { display: inline; min-height: 0; }
.footer-bottom a:hover { color: var(--text); }
.portal-footer .footer-main { align-items: center; }
.portal-footer .footer-main > p { color: var(--text-dim); font: 9px var(--font-mono); letter-spacing: .13em; }
.portal-footer .footer-bottom { border-top: 1px solid var(--line); }

/* Support and privacy manuals */
.docs-hero { padding-block: 64px 44px; border-bottom: 1px solid var(--line); }
.docs-hero h1 { margin-top: 18px; max-width: 960px; font-size: clamp(42px, 9vw, 72px); }
.docs-hero h1 em { font-family: var(--font-serif); font-style: normal; font-weight: 400; }
.docs-hero .docs-lead { margin-top: 22px; color: var(--text-muted); font-size: 17px; }
.docs-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-dim); font: 11px var(--font-mono); }
.docs-layout { display: grid; }
.docs-sidebar { display: none; }
.docs-content { min-width: 0; max-width: 820px; }
.docs-section { padding-block: 44px; border-bottom: 1px solid var(--line); scroll-margin-top: 88px; }
.docs-section h2 { margin-bottom: 20px; font-size: clamp(28px, 6vw, 36px); }
.docs-section h3 { margin-top: 28px; margin-bottom: 8px; font-size: 19px; letter-spacing: -.02em; }
.docs-section p, .docs-section li { color: var(--text-muted); line-height: 1.75; }
.docs-section p + p { margin-top: 12px; }
.docs-section strong { color: var(--text); font-weight: 650; }
.docs-section ul, .docs-section ol { margin-top: 12px; padding-left: 24px; }
.docs-section li { margin-block: 8px; padding-left: 4px; }
.docs-section a:not(.button) { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.docs-section .button { margin-top: 20px; }
.doc-note { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text-muted); }
.doc-note strong { color: var(--accent); font: 11px var(--font-mono); letter-spacing: .08em; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 3px; color: var(--text-muted); font: 11px var(--font-mono); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; display: flex; align-items: center; padding: 18px 42px 18px 0; color: var(--text); font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; color: var(--accent); font: 20px var(--font-mono); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > p { padding: 0 32px 22px 0; }
kbd { display: inline-block; padding: 1px 7px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--surface-raised); color: var(--text); font: 12px var(--font-mono); }
.language-section { margin-top: 20px; border-bottom: 0; }
.language-section h2 { font-family: var(--font-serif); font-weight: 400; }
.docs-footer-note { color: var(--text-dim); font-size: 12px; }

@media (min-width: 640px) {
  .wrap { width: calc(100% - 64px); }
  .nav-inner { gap: 18px; }
  .app-frame figcaption { padding: 14px 18px; }
  .work-copy { padding: 42px; }
  .work-title img { width: 76px; height: 76px; }
  .value-strip .wrap { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .section-heading { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: 56px; margin-bottom: 64px; }
  .portal-hero { padding-block: 96px; }
  .work-section { padding-block: 96px 120px; }
  .work-card { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); min-height: 520px; }
  .work-copy { padding: 48px; }
  .work-copy h4 { margin-top: auto; padding-top: 64px; }
  .work-link { margin-top: 28px; }
  .work-media { min-height: 100%; }
  .portal-note { padding-block: 112px; }
  .product-hero { padding-block: 48px 40px; }
  .product-hero-copy { grid-template-columns: minmax(0, 1fr) 280px; align-items: end; gap: 28px; }
  .product-hero-copy > div:first-child { max-width: 830px; }
  .hero-screen { margin-top: 40px; }
  .view-section, .formats { padding-block: 112px; }
  .view-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .view-item { padding: 30px 28px 34px 0; }
  .view-item + .view-item { padding-left: 28px; border-left: 1px solid var(--line); }
  .item-number { top: 30px; right: 24px; }
  .principles-section, .pro-section, .privacy-band { padding-block: 104px; }
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .principle { padding: 30px 30px 34px 0; }
  .principle + .principle { padding-left: 30px; border-left: 1px solid var(--line); }
  .format-line { grid-template-columns: 210px minmax(0, 1fr); gap: 32px; }
  .plan { padding: 34px; }
  .privacy-band .wrap, .support-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .support-section { padding-block: 112px; }
  .get-section { padding-block: 104px; }
  .footer-main { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
  .docs-hero { padding-block: 88px 56px; }
  .docs-section { padding-block: 54px; }
}

@media (min-width: 960px) {
  .desktop-nav { display: flex; }
  .nav-menu { display: none; }
  .brand-kretize .kretize-logo-horizontal { width: 168px; }
  .org-link { display: inline-flex; align-items: center; }
  .nav-action { margin-left: 10px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 5px; }
  .nav-action:hover { border-color: var(--text-muted); }
  .portal-hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 44px; min-height: calc(100svh - 72px); }
  .portal-copy { padding-block: 48px; }
  .portal-copy h1 { font-size: clamp(66px, 6.4vw, 92px); }
  .portal-visual { margin-right: -24px; }
  .docs-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 64px; padding-bottom: 80px; }
  .docs-sidebar { display: block; align-self: start; position: sticky; top: 100px; padding-block: 40px; }
  .docs-sidebar h2 { margin-bottom: 12px; color: var(--text-dim); font: 10px var(--font-mono); letter-spacing: .12em; }
  .docs-sidebar a { display: flex; align-items: center; min-height: 38px; padding: 7px 10px; border-left: 1px solid var(--line); color: var(--text-muted); font-size: 13px; }
  .docs-sidebar a:hover { border-left-color: var(--accent); color: var(--accent); background: var(--surface); }
  .docs-content { padding-top: 10px; }
}

@media (min-width: 1280px) {
  .product-hero h1 { font-size: 82px; }
  .product-id { margin-bottom: 4px; }
}

@media (max-width: 420px) {
  .nav-inner { gap: 8px; }
  .nav-action { font-size: 12px; }
  .nav-menu summary { font-size: 12px; }
  .product-id { align-items: flex-start; }
  .product-id > img { width: 124px; height: 124px; }
  .work-copy { padding-inline: 22px; }
  .work-title { gap: 14px; }
  .work-title img { width: 56px; height: 56px; }
  .pro-tools { grid-template-columns: 1fr; }
}

/* Keep the Chinese product title on one line at tablet and desktop widths. */
@media (min-width: 768px) {
  .product-hero-copy { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .product-hero-copy > div:first-child { max-width: none; }
  .product-id { justify-self: start; width: auto; min-width: 360px; }
  .product-hero h1 { font-size: clamp(54px, 6.4vw, 82px); }
}

/* Language control and localized typography */
.language-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; min-width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--text-muted); font: 12px var(--font-mono); }
.language-toggle:hover { border-color: var(--accent); color: var(--accent); }
.product-id small + small { margin-top: 2px; }
html[lang="en"] .product-hero h1 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -.05em; }
html[lang="en"] .portal-copy h1 { font-size: clamp(43px, 9vw, 76px); }
html[lang="en"] .portal-note h2 { font-size: clamp(34px, 6vw, 60px); }

@media (pointer: coarse) {
  .footer-links a, .docs-sidebar a { min-height: 44px; }
  .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
