/* Design baseline: design/approved-design.png.
   Brand accent is the app's #FF4F2A. All sections share these tokens. */
:root {
  color-scheme: dark;
  --canvas: #101517;
  --surface: #1a2023;
  --surface-raised: #202629;
  --text: #f4f5f5;
  --muted: #a5aaad;
  --subtle: #7f888d;
  --line: rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .17);
  --accent: #ff4f2a;
  --accent-hover: #c4351a;
  --action-fill: #d83d1d; /* same brand hue, 4.56:1 contrast against white labels */
  --accent-soft: rgba(255, 79, 42, .09);
  --container: 1296px;
  --header-height: 86px;
  --radius: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; background: var(--canvas); color: var(--text); font-size: 16px; line-height: 1.65; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
img { max-width: 100%; height: auto; display: block; }
p, h1, h2, h3, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: rgba(255, 79, 42, .3); color: #fff; }
:focus-visible { outline: 2px solid #ff9b7e; outline-offset: 5px; }
[hidden] { display: none !important; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 1.1em; height: 1.1em; fill: currentColor; flex-shrink: 0; vertical-align: -.125em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.container { width: min(var(--container), calc(100% - 112px)); margin-inline: auto; }
.section { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 200; background: var(--text); color: var(--canvas); padding: 10px 20px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 24px; border-radius: 9px; font-size: 15px; line-height: 1.5; font-weight: 600; border: 1px solid transparent; transition: background-color .18s, border-color .18s, transform .18s, box-shadow .18s; white-space: nowrap; }
.button .icon { width: 17px; height: 17px; }
.button-primary { background: var(--action-fill); color: #fff; box-shadow: 0 6px 28px rgba(255, 79, 42, .1); }
.button-primary:hover { background: var(--accent-hover); box-shadow: 0 8px 30px rgba(255, 79, 42, .19); transform: translateY(-1px); }
.button-secondary { background: rgba(255, 255, 255, .02); border-color: var(--line-strong); }
.button-secondary:hover { border-color: rgba(255, 255, 255, .33); background: rgba(255, 255, 255, .055); transform: translateY(-1px); }
.button-small { min-height: 40px; font-size: 13px; padding: 9px 23px; border-radius: 22px; }
.icon-button { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 8px; background: transparent; border: 1px solid transparent; color: var(--muted); transition: color .18s, background-color .18s, border-color .18s; }
.icon-button:hover { color: var(--text); background: rgba(255, 255, 255, .065); }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: #ff8d73; }
.text-link .icon { width: 13px; height: 13px; transition: transform .18s; }
.text-link:hover { color: #ffa58f; }
.text-link:hover .icon { transform: translateX(3px); }
/* Header */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-height); background: rgba(16, 21, 23, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; font-size: 24px; font-weight: 650; letter-spacing: -.6px; }
.brand-logo { width: 38px; height: 38px; border-radius: 11px; background: #fcf4e8; }
.desktop-nav { display: flex; align-items: center; gap: 35px; margin-left: 32px; }
.desktop-nav a { position: relative; padding: 13px 0; color: var(--muted); font-size: 16px; transition: color .18s; }
.desktop-nav a:hover { color: var(--text); }
.desktop-nav a[aria-current] { color: #ff8468; }
.desktop-nav a[aria-current]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 29px; }
.github-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.github-link .icon { width: 21px; height: 21px; }
.github-link:hover { color: #ff9b7e; }
.menu-button { display: none; }
.mobile-nav { background: #141a1d; padding: 16px 24px 24px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.mobile-nav a { display: block; padding: 15px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; color: #ff8d73; }
/* 01 — Hero */
.hero { min-height: min(820px, calc(100svh - var(--header-height))); display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 1px; height: 1px; top: 25%; right: 7%; box-shadow: 0 0 190px 120px rgba(172, 46, 37, .22); z-index: -1; pointer-events: none; }
.hero::after { content: ''; position: absolute; width: 1px; height: 1px; bottom: 0; left: 0; box-shadow: 0 0 160px 66px rgba(210, 51, 33, .13); z-index: -1; pointer-events: none; }
.hero-inner { padding-block: 58px 84px; }
.hero-grid { display: grid; grid-template-columns: .88fr 1.45fr; align-items: center; gap: 10px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 40px; }
.eyebrow { color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 2px; display: flex; align-items: center; gap: 13px; }
.hero-eyebrow { margin-bottom: 24px; }
.hero-eyebrow::before { content: ''; width: 2px; height: 15px; background: var(--accent); margin-right: 2px; }
.hero-eyebrow span { opacity: .65; }
h1 { font-size: clamp(58px, 6.6vw, 94px); font-weight: 700; line-height: 1.22; letter-spacing: -3px; }
h1 span { color: var(--accent); }
.hero-subtitle { font-size: clamp(26px, 2.95vw, 41px); font-weight: 500; letter-spacing: -1px; margin-top: 10px; color: #d6d8d9; line-height: 1.55; }
.hero-description { color: var(--muted); font-size: 21px; line-height: 1.8; margin-top: 26px; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; }
.hero-actions .button { min-height: 62px; font-size: 16px; }
.hero-actions .button-primary { min-width: 198px; }
.hero-actions .button-secondary { padding-inline: 22px; min-width: 231px; }
.hero-values { margin-top: 41px; display: flex; align-items: center; gap: 16px; color: #abb0b2; font-size: 14px; }
.hero-values > span { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.hero-values .icon { width: 16px; height: 16px; color: #c2c7c9; }
.hero-values > i { width: 1px; height: 11px; background: var(--line-strong); }
.carousel { position: relative; min-width: 0; }
.carousel-stage { position: relative; min-height: 584px; display: grid; align-items: center; touch-action: pan-y; }
.carousel-slide { grid-area: 1 / 1; width: 100%; animation: slide-in .36s ease-out; }
.slide-image-wrap { --stage-height: 510px; height: var(--stage-height); display: flex; justify-content: center; align-items: center; }
.device-composition { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px 24px; }
.laptop-mockup { position: relative; width: 100%; max-width: calc((var(--stage-height) - 58px) * 1.6); padding-bottom: 18px; filter: drop-shadow(0 26px 22px rgba(0,0,0,.38)); }
.laptop-mockup .device-screen { aspect-ratio: 16 / 10; overflow: hidden; padding: 15px 9px 9px; background: #080b0e; border: 2px solid #566068; border-radius: 15px 15px 5px 5px; box-shadow: inset 0 0 0 2px #161d23; }
.laptop-mockup .device-screen::before { content: ''; position: absolute; top: 7px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: #43515b; }
.device-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; user-select: none; }
.laptop-base { position: absolute; bottom: 1px; height: 18px; left: -5%; width: 110%; border-radius: 2px 2px 50% 50% / 2px 2px 90% 90%; background: linear-gradient(#a5adb1 0%, #60686d 30%, #252c31 85%); box-shadow: 0 2px 0 #0a0d10; }
.laptop-base::after { content: ''; position: absolute; top: 0; left: 42%; width: 16%; height: 5px; border-radius: 0 0 8px 8px; background: #3b444b; }
.phone-mockup { position: relative; height: min(440px, 100%); aspect-ratio: 1 / 2.12; padding: 25px 7px 15px; border: 2px solid #667079; border-radius: 32px; background: #090c0f; box-shadow: inset 0 0 0 2px #222a30, 0 24px 32px rgba(0,0,0,.4); }
.phone-mockup::before { content: ''; position: absolute; top: 10px; left: 38%; width: 24%; height: 5px; border-radius: 5px; background: #343e45; }
.phone-mockup::after { content: ''; position: absolute; top: 24%; right: -4px; width: 3px; height: 12%; background: #667079; border-radius: 0 2px 2px 0; }
.phone-mockup .device-screen { width: 100%; height: 100%; border-radius: 13px; overflow: hidden; background: #faf9f7; }
.phone-home { position: absolute; bottom: 6px; left: 35%; width: 30%; height: 3px; background: #a4aaad; border-radius: 3px; }
.carousel-slide.devices .device-composition { padding-right: 42px; }
.companion-phone { position: absolute; height: auto; width: 25%; right: 7px; bottom: 6%; }
.carousel-slide figcaption { text-align: right; padding: 12px 4px 0; min-height: 74px; font-size: 14px; letter-spacing: 1px; color: #c1c4c5; }
.carousel-slide figcaption span { display: block; font-size: 12px; color: var(--subtle); margin-top: 7px; letter-spacing: 2px; }
.carousel-toolbar { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 5px; min-height: 40px; }
.carousel-dots { display: flex; align-items: center; gap: 1px; }
.carousel-dot { width: 25px; height: 40px; padding: 0; background: transparent; display: grid; place-items: center; border-radius: 6px; }
.carousel-dot span { display: block; width: 8px; height: 8px; border-radius: 50%; background: #485055; transition: background-color .2s, transform .2s; }
.carousel-dot:hover span { background: #7d8589; }
.carousel-dot.is-active span { background: var(--accent); transform: scale(1.07); }
.carousel-pause { width: 34px; height: 34px; font-size: 11px; opacity: .65; }
.carousel-pause:hover { opacity: 1; }
.carousel-pause .play-icon { display: none; }
.carousel-pause.is-paused .pause-icon { display: none; }
.carousel-pause.is-paused .play-icon { display: block; }
.carousel-arrow { position: absolute; top: 44%; z-index: 5; background: rgba(16, 21, 23, .84); backdrop-filter: blur(10px); border-color: var(--line-strong); border-radius: 50%; opacity: 0; transition: opacity .2s, background-color .2s; }
.carousel-arrow.previous { left: 2px; }
.carousel-arrow.next { right: -6px; }
.carousel:hover .carousel-arrow, .carousel:focus-within .carousel-arrow { opacity: 1; }
.carousel-arrow .icon { width: 12px; height: 12px; }
@keyframes slide-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
/* Shared section rhythm */
.section-heading { margin-bottom: 39px; }
.section-kicker { color: #ff8066; font-size: 12px; font-weight: 600; letter-spacing: 2.2px; line-height: 1.5; margin-bottom: 18px; }
h2 { font-size: clamp(30px, 3.1vw, 44px); font-weight: 650; line-height: 1.45; letter-spacing: -1.1px; }
.section-heading > p:last-child:not(.section-kicker) { color: var(--muted); font-size: 18px; margin-top: 16px; }
.centered { text-align: center; }
/* 02 — Features */
.features { padding: 93px 0 97px; background: #111719; }
.features .section-heading { margin-bottom: 45px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature-card { display: flex; gap: 24px; align-items: flex-start; padding: 28px 23px; min-height: 206px; background: var(--surface); border: 1px solid rgba(255, 255, 255, .045); border-radius: var(--radius); transition: border-color .22s, background-color .22s, transform .22s; }
.feature-card:hover { background: #1d2326; border-color: rgba(255, 79, 42, .25); transform: translateY(-3px); }
.feature-icon { width: 83px; height: 83px; flex: 0 0 83px; display: grid; place-items: center; border-radius: 22px; color: #ff785d; background: var(--accent-soft); }
.feature-icon .icon { width: 36px; height: 36px; }
.feature-card h3 { font-size: 21px; font-weight: 600; line-height: 1.6; margin-top: 6px; margin-bottom: 14px; }
.feature-card p { color: var(--muted); font-size: 15px; line-height: 1.95; }
/* 03 — Deploy */
.deploy { padding: 89px 0 82px; overflow: hidden; }
.deploy::after { content: ''; position: absolute; width: 1px; height: 1px; top: 35%; right: 2%; box-shadow: 0 0 190px 118px rgba(178, 43, 34, .19); pointer-events: none; z-index: -1; }
.deploy-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 73px; align-items: center; }
.deploy-content { min-width: 0; }
.deploy .section-heading { margin-bottom: 36px; }
.deploy-tabs { display: flex; width: fit-content; max-width: 100%; border-radius: 9px; padding: 3px; background: #1a2023; gap: 3px; margin-bottom: 28px; }
.deploy-tab { min-height: 45px; border-radius: 7px; padding: 10px 19px; background: transparent; color: #abb1b4; font-size: 15px; white-space: nowrap; transition: color .2s, background-color .2s; }
.deploy-tab:hover { color: #fff; background: rgba(255,255,255,.035); }
.deploy-tab.is-active { background: var(--action-fill); color: #fff; }
.deploy-tab span { font-size: 12px; }
.deploy-panel { min-height: 299px; border-radius: var(--radius); }
.install-box { background: #1a2124; border: 1px solid var(--line); border-radius: 11px; padding: 22px 23px 17px; }
.install-box h3 { font-size: 17px; font-weight: 550; line-height: 1.6; }
.install-description { margin-top: 7px; font-size: 12px; color: var(--muted); }
.code-block { display: flex; align-items: stretch; position: relative; border-radius: 7px; background: #101719; margin-top: 17px; padding: 17px 42px 17px 12px; }
.code-lines { display: flex; flex-direction: column; flex-shrink: 0; padding-right: 12px; border-right: 1px solid rgba(255,255,255,.05); color: #67777e; font-family: "SFMono-Regular", Consolas, monospace; font-size: 14px; line-height: 1.95; text-align: right; user-select: none; }
pre { margin: 0; min-width: 0; overflow-x: auto; padding-left: 13px; scrollbar-width: thin; scrollbar-color: #465058 transparent; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 14px; font-weight: 400; line-height: 1.95; color: #d5dfe2; }
.copy-button { position: absolute; top: 8px; right: 5px; width: 31px; height: 31px; color: #b7c3c8; }
.copy-button .icon { width: 13px; height: 13px; }
.copy-success-icon { display: none; }
.copy-button.is-copied .copy-icon { display: none; }
.copy-button.is-copied .copy-success-icon { display: block; color: #b7e0c2; }
.install-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; min-height: 26px; }
.install-bottom .text-link { font-size: 12px; }
.copy-feedback { font-size: 11px; color: #b7e0c2; }
.install-note { color: var(--subtle); font-size: 12px; margin-top: 15px; line-height: 1.9; }
.deploy-documentation { margin-top: 18px; font-size: 14px; }
.install-steps { display: grid; gap: 10px; list-style: none; counter-reset: step; margin-top: 19px; }
.install-steps li { display: flex; align-items: baseline; gap: 11px; counter-increment: step; color: #bbc1c4; font-size: 12px; }
.install-steps li::before { content: counter(step, decimal-leading-zero); font-family: Consolas, monospace; color: #ff8d73; font-size: 10px; letter-spacing: 1px; }
.all-releases { font-size: 12px; color: var(--subtle); margin-top: 8px; }
.all-releases a { display: inline-flex; gap: 7px; align-items: center; }
.all-releases a:hover { color: var(--text); }
.all-releases .icon { width: 10px; height: 10px; }
.deploy-visual { padding: 65px 5px 0 14px; perspective: 1000px; }
.platform-card { position: relative; width: 100%; min-height: 372px; border: 1px solid rgba(255, 92, 57, .25); background: rgba(62, 34, 31, .22); border-radius: 18px; padding: 38px 37px 28px; transform: rotate(-9deg) rotateY(-8deg); box-shadow: 0 35px 80px rgba(0,0,0,.16); }
.platform-card::before { content: ''; position: absolute; inset: -23px 24px 24px -23px; border: 1px solid rgba(255, 92, 57, .14); border-radius: inherit; z-index: -1; background: rgba(255, 79, 42, .018); }
.platform-card > * { transform: rotate(9deg); }
.platform-icon { display: block; color: var(--accent); margin: 3px 0 22px 4px; }
.platform-icon .icon { width: 60px; height: 48px; }
.platform-card h3 { font-size: 27px; line-height: 1.5; margin-left: 5px; }
.platform-card > p { font-size: 12px; color: var(--muted); margin: 9px 0 22px 6px; }
.platform-card ul { list-style: none; margin: 23px 0 27px 7px; display: grid; gap: 13px; }
.platform-card li { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #b4b5b7; }
.platform-card li .icon { width: 13px; height: 13px; color: #ff8166; }
.platform-card-bottom { display: block; color: #7e6861; font-size: 9px; letter-spacing: 3px; margin: 26px 0 0 6px; }
/* 04 — FAQ */
.faq { padding: 91px 0 101px; }
.faq-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.faq-heading .section-heading { margin-bottom: 0; }
.faq-button { font-size: 13px; min-height: 47px; margin-top: 15px; }
.faq-list { display: grid; gap: 13px; }
.faq-item { background: #1a2023; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.faq-item summary { min-height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; padding: 17px 23px; font-size: 17px; font-weight: 500; transition: background-color .18s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(255,255,255,.025); }
.faq-item summary .icon { color: #b9bfc1; width: 11px; height: 11px; transition: transform .2s; }
.faq-item[open] { border-color: rgba(255, 79, 42, .26); }
.faq-item[open] summary { color: #ff927b; }
.faq-item[open] summary .icon { transform: rotate(180deg); color: #ff927b; }
.faq-answer { padding: 0 23px 22px; color: var(--muted); font-size: 14px; line-height: 1.95; max-width: 1050px; }
.faq-answer .text-link { font-size: 12px; margin-top: 12px; }
/* Footer */
.site-footer { padding: 41px 0 39px; }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.footer-brand .brand { font-size: 20px; gap: 9px; }
.footer-brand .brand-logo { width: 29px; height: 29px; border-radius: 8px; }
.footer-brand > p { color: var(--subtle); font-size: 11px; margin-top: 9px; letter-spacing: .3px; }
.footer-nav { display: flex; gap: 25px; color: var(--subtle); font-size: 13px; }
.footer-nav a:hover { color: #f1f1f1; }
.footer-end { display: flex; align-items: center; gap: 8px; }
.footer-end > .icon-button { width: 34px; height: 34px; }
.footer-end > div { margin-left: 14px; color: var(--subtle); font-size: 10px; line-height: 1.9; text-align: right; }
.footer-end > div p:first-child .icon { width: 11px; height: 11px; color: var(--accent); margin-inline: 2px; }
.footer-end > div p:last-child { letter-spacing: 2px; }
.toast { position: fixed; z-index: 150; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 20px; border: 1px solid var(--line-strong); border-radius: 10px; background: #252d31; color: #f5f5f5; font-size: 13px; box-shadow: 0 8px 25px rgba(0,0,0,.2); }
/* Tablet */
@media (min-width: 1700px) { :root { --container: 1280px; } .hero { min-height: 850px; } }
@media (max-width: 1199px) {
  .container { width: calc(100% - 72px); }
  .desktop-nav { margin-left: 0; gap: 24px; }
  .header-actions { gap: 20px; }
  .hero-grid { grid-template-columns: 1fr 1.2fr; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { font-size: 13px; padding: 12px 17px; }
  .hero-actions .button-primary { min-width: 131px; }
  .hero-actions .button-secondary { min-width: 0; }
  .hero-description { font-size: 16px; }
  .hero-values { gap: 11px; font-size: 11px; }
  .hero-values > span { gap: 6px; }
  .carousel-stage { min-height: 416px; }
  .slide-image-wrap { --stage-height: 345px; }
  .carousel-slide figcaption { font-size: 12px; }
  .feature-card { gap: 17px; padding: 25px 20px; }
  .feature-icon { width: 55px; height: 55px; flex-basis: 55px; border-radius: 17px; }
  .feature-icon .icon { width: 26px; height: 26px; }
  .feature-card h3 { font-size: 17px; margin-top: 2px; }
  .feature-card p { font-size: 12px; }
  .feature-card p br { display: none; }
  .deploy-layout { gap: 55px; grid-template-columns: 1.7fr 1fr; }
  .deploy-tab { padding-inline: 13px; font-size: 12px; }
  .platform-card { padding: 28px 24px; }
  .platform-card li { font-size: 11px; }
  .footer-nav { gap: 17px; font-size: 11px; }
  .footer-end > div { margin-left: 4px; }
}
@media (max-width: 900px) {
  :root { --header-height: 74px; }
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; }
  .menu-close-icon { display: none; }
  .menu-button[aria-expanded="true"] .menu-open-icon { display: none; }
  .menu-button[aria-expanded="true"] .menu-close-icon { display: inline-block; }
  .header-actions { gap: 18px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-inner { padding: 70px 0 54px; }
  .hero-copy { padding-bottom: 0; text-align: center; }
  .hero-eyebrow, .hero-actions, .hero-values { justify-content: center; }
  h1 { font-size: 70px; }
  .hero-subtitle { font-size: 31px; }
  .hero-description { max-width: 560px; margin-inline: auto; font-size: 16px; }
  .desktop-break { display: none; }
  .hero-actions { margin-top: 27px; gap: 16px; }
  .hero-actions .button { font-size: 14px; padding-inline: 25px; }
  .hero-values { margin-top: 28px; font-size: 12px; }
  .carousel { width: min(660px, 100%); margin: 38px auto 0; }
  .slide-image-wrap { --stage-height: 360px; }

  .carousel-slide figcaption { text-align: center; min-height: 67px; }
  .carousel-arrow.previous { left: 0; }
  .carousel-arrow.next { right: 0; }
  .features { padding-block: 80px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .feature-card { min-height: 156px; padding: 26px 21px; }
  .feature-card p { font-size: 12px; }
  .deploy { padding-block: 78px; }
  .deploy-layout { grid-template-columns: 1fr; }
  .deploy-visual { display: none; }
  .deploy-content { max-width: 690px; width: 100%; margin-inline: auto; }
  .deploy-tabs { width: 100%; }
  .deploy-tab { flex: 1; font-size: 13px; padding-inline: 14px; }
  .deploy-panel { min-height: 285px; }
  .all-releases { margin-top: 0; }
  .faq { padding-block: 77px; }
  .footer-nav { display: none; }
}
/* Mobile: same hierarchy and tokens, not a second design */
@media (max-width: 560px) {
  :root { --header-height: 68px; }
  .container { width: calc(100% - 40px); }
  .header-inner { gap: 12px; }
  .brand { font-size: 18px; gap: 8px; letter-spacing: -.4px; }
  .brand-logo { width: 32px; height: 32px; border-radius: 9px; }
  .github-link { display: none; }
  .header-actions { gap: 8px; }
  .header-download { font-size: 11px; min-height: 34px; padding: 8px 14px; }
  .menu-button { width: 35px; height: 38px; }
  .mobile-nav { width: calc(100% - 24px); padding: 10px 18px 17px; }
  .hero-inner { padding-top: 50px; padding-bottom: 32px; }
  .hero-eyebrow { font-size: 11px; gap: 10px; letter-spacing: 1.8px; margin-bottom: 18px; }
  .hero-eyebrow::before { height: 11px; }
  h1 { font-size: 56px; line-height: 1.25; letter-spacing: -2px; }
  .hero-subtitle { font-size: 25px; letter-spacing: -.8px; margin-top: 7px; }
  .hero-description { font-size: 13px; line-height: 1.95; max-width: 306px; margin-top: 18px; }
  .hero-actions { margin-top: 24px; gap: 10px; }
  .hero-actions .button { min-height: 47px; font-size: 12px; gap: 9px; padding: 11px 16px; }
  .hero-actions .button-primary { min-width: 120px; }
  .hero-actions .button .icon { width: 14px; height: 14px; }
  .hero-values { font-size: 10px; gap: 12px; margin-top: 24px; }
  .hero-values .icon { width: 13px; height: 13px; }
  .hero-values > span { gap: 6px; }
  .carousel { margin-top: 25px; }
  .carousel-stage { min-height: 287px; }
  .slide-image-wrap { --stage-height: 224px; }
  .carousel-slide figcaption { min-height: 63px; font-size: 10px; letter-spacing: .3px; padding-top: 9px; }
  .carousel-slide figcaption span { font-size: 9px; margin-top: 3px; }
  .device-composition { padding: 8px 14px; }
  .carousel-slide.devices .device-composition { padding-right: 30px; }
  .laptop-mockup { padding-bottom: 10px; }
  .laptop-mockup .device-screen { padding: 9px 4px 4px; border-width: 1px; border-radius: 8px 8px 3px 3px; }
  .laptop-mockup .device-screen::before { top: 4px; width: 3px; height: 3px; }
  .laptop-base { height: 10px; }
  .laptop-base::after { height: 3px; }
  .phone-mockup { padding: 14px 4px 9px; border-width: 1px; border-radius: 19px; }
  .phone-mockup .device-screen { border-radius: 8px; }
  .phone-mockup::before { top: 5px; height: 3px; }
  .phone-home { bottom: 4px; height: 2px; }
  .companion-phone { right: 6px; bottom: 4%; }
  .carousel-toolbar { margin-top: 0; }
  .carousel-arrow { width: 32px; height: 32px; top: 35%; }
  .section-kicker { font-size: 10px; letter-spacing: 2px; margin-bottom: 13px; }
  h2 { font-size: 28px; letter-spacing: -.8px; }
  .section-heading > p:last-child:not(.section-kicker) { font-size: 13px; line-height: 1.85; margin-top: 11px; }
  .features { padding-block: 66px; }
  .features .section-heading { margin-bottom: 30px; }
  .feature-grid { grid-template-columns: 1fr; gap: 13px; }
  .feature-card { min-height: 130px; gap: 21px; padding: 23px 24px; align-items: center; border-radius: 12px; }
  .feature-icon { width: 57px; height: 57px; flex-basis: 57px; border-radius: 17px; }
  .feature-icon .icon { width: 26px; height: 26px; }
  .feature-card h3 { font-size: 16px; margin: 0 0 9px; }
  .feature-card p { font-size: 12px; line-height: 1.85; }
  .feature-card p br { display: inline; }
  .deploy { padding-block: 65px; }
  .deploy .section-heading { margin-bottom: 28px; }
  .deploy-tabs { gap: 0; margin-bottom: 20px; padding: 3px; }
  .deploy-tab { min-height: 43px; padding: 9px 6px; font-size: 11px; }
  .deploy-tab span { font-size: 10px; }
  .deploy-panel { min-height: 324px; }
  .install-box { padding: 18px 15px 14px; }
  .install-box h3 { font-size: 13px; }
  .install-description { font-size: 10px; }
  .code-block { padding: 14px 30px 14px 8px; margin-top: 14px; }
  .code-lines { padding-right: 8px; font-size: 10px; }
  pre { padding-left: 9px; }
  code { font-size: 10px; }
  .copy-button { right: 1px; width: 27px; }
  .install-bottom { align-items: flex-start; }
  .install-bottom .text-link { font-size: 11px; gap: 7px; }
  .copy-feedback { font-size: 9px; }
  .install-note { font-size: 10px; margin-top: 13px; }
  .install-steps { margin-top: 15px; gap: 12px; }
  .install-steps li { font-size: 11px; gap: 8px; }
  .deploy-documentation { font-size: 12px; margin-top: 16px; }
  .all-releases { font-size: 11px; }
  .faq { padding-block: 64px; }
  .faq-heading { flex-direction: column; align-items: flex-start; gap: 21px; margin-bottom: 25px; }
  .faq-button { margin-top: 0; font-size: 11px; min-height: 41px; padding: 10px 16px; }
  .faq-heading .section-heading > p:last-child { max-width: 300px; font-size: 12px; }
  .faq-list { gap: 10px; }
  .faq-item summary { min-height: 58px; padding: 16px 16px; font-size: 12px; gap: 14px; }
  .faq-item summary .icon { width: 9px; height: 9px; }
  .faq-answer { padding: 0 16px 18px; font-size: 12px; }
  .faq-answer .text-link { font-size: 11px; }
  .site-footer { padding-block: 29px; }
  .footer-inner { align-items: flex-start; gap: 14px; }
  .footer-brand .brand { font-size: 15px; }
  .footer-brand .brand-logo { width: 27px; height: 27px; }
  .footer-brand > p { font-size: 9px; }
  .footer-end { flex-wrap: wrap; justify-content: flex-end; gap: 3px; max-width: 160px; }
  .footer-end > .icon-button { height: 27px; width: 29px; }
  .footer-end > div { flex-basis: 100%; margin: 7px 0 0; font-size: 8px; }
  .footer-end > div p:last-child { letter-spacing: 1px; }
}
@media (max-width: 359px) {
  .container { width: calc(100% - 30px); }
  .hero-values { gap: 8px; font-size: 9px; }
  h1 { font-size: 49px; }
  .hero-subtitle { font-size: 22px; }
  .feature-card { padding-inline: 18px; gap: 17px; }
  .deploy-tab { font-size: 10px; padding-inline: 4px; }
  .deploy-tab span { font-size: 9px; }
}
@media (hover: none) { .carousel-arrow { opacity: .85; } .feature-card:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  :root { color-scheme: light; }
  body, .section, .feature-card, .faq-item, .install-box { background: #fff; color: #17191d; }
  .site-header, .hero-actions, .carousel-toolbar, .carousel-arrow, .deploy-visual, .copy-button, .faq-button, .site-footer { display: none; }
  .section { padding-block: 28px; }
  .faq-answer { display: block; }
}

/* Client downloads */
body.downloads-open { overflow: hidden; }
.downloads-dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 30px; border: 1px solid #3b454a; border-radius: 20px; background: var(--canvas); color: var(--text); box-shadow: 0 30px 100px #0009; overflow-y: auto; }
.downloads-dialog::backdrop { background: #05090dcc; backdrop-filter: blur(7px); }
.downloads-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.downloads-heading h2 { font-size: 26px; margin-top: 6px; }
#downloads-description { color: var(--muted); font-size: 13px; margin: 12px 0 24px; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.download-card { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.download-title { display: flex; align-items: center; gap: 10px; }
.download-title > .icon { color: #ff8d73; width: 26px; height: 26px; }
.download-title h3 { font-size: 20px; }
.download-card p { font-size: 13px; color: var(--muted); margin-top: 12px; }
.download-card .download-version { color: #f8b5a4; font-size: 12px; }
.download-card .button { width: 100%; margin: 22px 0 14px; font-size: 13px; }
.download-card .text-link, .downloads-footer .text-link { font-size: 12px; }
.download-access { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.download-access h3 { display: inline; font-size: 13px; margin-left: 6px; }
.download-access .icon { width: 16px; height: 16px; vertical-align: middle; color: var(--muted); }
.download-access p { color: var(--muted); font-size: 12px; margin-top: 8px; }
.downloads-footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.startup-label { margin-top: 22px; }
@media (max-width: 600px) {
  .downloads-dialog { padding: 22px 18px; border-radius: 15px; }
  .downloads-heading h2 { font-size: 22px; }
  .download-grid, .download-access { grid-template-columns: 1fr; }
  .download-card { padding: 18px; }
  .downloads-footer { flex-wrap: wrap; }
}

/* Repository pages */
.content-page { padding-top: 138px; padding-bottom: 90px; min-height: 75vh; }
.content-page > h1 { font-size: clamp(32px,4vw,48px); letter-spacing: -.04em; margin-top: 12px; }
.page-lead { color: var(--muted); margin: 15px 0; line-height: 1.9; }
.sync-stamp { color: var(--subtle); font-size: 12px; margin: 18px 0 32px; }
.version-downloads { grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); }
.asset-name { overflow-wrap: anywhere; }
.release-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; margin:64px 0 24px; }
.release-filters { display:flex; gap:8px; }
.release-filters a { padding:8px 15px; border-radius:7px; color:var(--muted); background:var(--surface); }
.release-filters a[aria-current] { background:var(--action-fill);color:white; }
.release-entry { border-top:1px solid var(--line); padding:30px 0; }
.release-meta { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:24px; }
.release-meta h2 { font-size:26px; }
.release-meta time,.release-meta > a { font-size:12px;color:var(--muted); }
.release-meta > a { margin-left:auto; }
.release-badge { font-size:11px; color:#ffb7a3; background:#47291f; border-radius:5px; padding:4px 8px; }
.release-assets { margin-top:24px; font-size:13px; color:var(--muted); }
.release-assets summary { cursor:pointer; }
.release-assets ul { padding:14px 0 0 20px; overflow-wrap:anywhere; line-height:2; }
.release-assets a { color:#ffab92; }
.pagination { display:flex; justify-content:center; align-items:center; gap:24px; margin-top:32px; }
.pagination span { color:var(--muted);font-size:13px; }
.docs-layout { display:grid; grid-template-columns:220px minmax(0,1fr) 180px; gap:36px; align-items:start; }
.docs-sidebar,.doc-toc { position:sticky;top:110px;max-height:calc(100vh - 130px);overflow:auto; }
.docs-sidebar label { display:block; font-size:13px; color:var(--muted); margin-bottom:10px; }
.docs-sidebar input { width:100%;background:var(--surface);color:var(--text);border:1px solid var(--line);padding:12px;border-radius:8px; font:inherit;font-size:12px; }
.docs-sidebar nav,.doc-toc nav { display:grid; gap:5px; margin-top:20px; }
.docs-sidebar nav a { color:var(--muted);font-size:13px;padding:10px 12px;border-radius:6px; }
.docs-sidebar nav a:hover,.docs-sidebar nav a[aria-current] { color:#ffb49e;background:#302420; }
.docs-article { min-width:0; }
.doc-tools { display:flex;flex-wrap:wrap;gap:20px;font-size:12px;color:#ffab92;margin-bottom:24px; }
.doc-toc h2 { font-size:12px;color:var(--muted);font-weight:500; }
.doc-toc a { font-size:12px;color:var(--subtle);padding:5px 0;line-height:1.6; }
.doc-toc a:hover {color:var(--text);}
.doc-toc .toc-depth-3 { padding-left:10px; }
.doc-index { display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:28px 0; }
.doc-index a { border:1px solid var(--line);border-radius:10px;padding:22px;background:var(--surface); }
.doc-index h3 {font-size:17px;margin-bottom:16px;}
.doc-index span {font-size:12px;color:#ffab92;}
.docs-mobile-nav { display:none; }
#search-results { background:var(--surface);padding:12px;margin-top:8px;border-radius:7px;font-size:13px; }
#search-results a {display:block;padding:10px 0;color:#ffb49e;}
.markdown-body { color:#c8cdd0; line-height:1.9; font-size:15px; overflow-wrap:anywhere; }
.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4 {color:var(--text);margin:30px 0 16px;line-height:1.5;scroll-margin-top:110px;}
.markdown-body > h1:first-child {margin-top:0;font-size:30px;}
.markdown-body h2 {font-size:23px;}.markdown-body h3 {font-size:18px;}
.markdown-body p,.markdown-body ul,.markdown-body ol,.markdown-body table,.markdown-body blockquote {margin:16px 0;}
.markdown-body ul,.markdown-body ol {padding-left:24px;}
.markdown-body li {margin:6px 0;}
.markdown-body a {color:#ffab92;text-decoration:underline;text-underline-offset:3px;}
.markdown-body pre {position:relative; background:#0b1114;border:1px solid var(--line);border-radius:9px;padding:44px 20px 20px;margin:22px 0;}
.markdown-body code {font-size:13px;}
.markdown-body :not(pre) > code {background:#222b2e;padding:2px 5px;border-radius:4px;overflow-wrap:anywhere;}
.markdown-body blockquote {border-left:3px solid #ad5a42;padding:1px 18px;background:#1b2225;}
.markdown-body table {display:block;overflow:auto;border-collapse:collapse;max-width:100%;}
.markdown-body th,.markdown-body td {border:1px solid var(--line);padding:10px 14px;}
.markdown-body img {max-width:100%;height:auto;border-radius:8px;}
.doc-copy {position:absolute;top:8px;right:10px;font-size:12px;color:#ffb49e;background:#243034;border-radius:5px;padding:5px 10px;}
@media(min-width:901px) { .desktop-nav {gap:20px;} .desktop-nav a {font-size:13px;} }
@media(max-width:1100px) { .docs-layout {grid-template-columns:200px minmax(0,1fr);gap:25px;} .doc-toc {display:none;} }
@media(max-width:700px) {
 .content-page {padding-top:110px;padding-bottom:55px;}
 .docs-layout {grid-template-columns:1fr;gap:26px;}.docs-sidebar {position:static;max-height:none;}
 .docs-desktop-nav {display:none;}.docs-mobile-nav {display:block;margin-top:15px;border:1px solid var(--line);padding:12px;border-radius:7px;}
 .docs-mobile-nav summary {cursor:pointer;font-size:14px;}.doc-index {grid-template-columns:1fr;}
 .markdown-body {font-size:14px;}.markdown-body pre {padding:42px 12px 14px;}
 .release-meta {gap:9px;}.release-meta h2 {font-size:23px;}.pagination {gap:12px;}
 .version-downloads {grid-template-columns:1fr;}
}
.version-downloads h3 { font-size:24px;line-height:1.4; }
.release-heading > h2 {font-size:28px;}
.header-inner .desktop-nav a[aria-current="page"] {color:var(--accent);}
.download-card .asset-name {overflow-wrap:anywhere;}
.download-card .button {margin-top:auto;}
.download-card p:last-of-type {margin-bottom:20px;}
