/* Formal-page v2. The launch screen remains owned by launch.css. */
:root {
  --ink: #f8f7f3;
  --ink-muted: rgba(248, 247, 243, .80);
  --ink-faint: rgba(248, 247, 243, .66);
  --glass-quiet: rgba(9, 11, 15, .18);
  --glass-base: rgba(9, 11, 15, .38);
  --glass-focus: rgba(9, 11, 15, .52);
  --glass-border: rgba(255, 255, 255, .17);
  --glass-border-strong: rgba(255, 255, 255, .28);
  --glass-highlight: rgba(255, 255, 255, .11);
  --success: #9ee8be;
  --danger: #ff9b9b;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --content-max: 1280px;
  --copy-max: 590px;
  --gutter: clamp(22px, 5vw, 76px);
  --rail-reserve: clamp(76px, 10vw, 150px);
  --page-duration: 620ms;
  --page-ease: cubic-bezier(.22, .78, .2, 1);
  --focus-ring: 0 0 0 2px #080a0d, 0 0 0 4px rgba(255,255,255,.94);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #050608;
}

.site-interface {
  color-scheme: dark;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.site-interface :is(button, input, a) { font-family: inherit; }
.site-interface :is(button, a) { -webkit-tap-highlight-color: transparent; }
.site-interface [hidden] { display: none !important; }

.site-interface :where(button, a, input, [tabindex]):focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

.sr-only, .visually-hidden-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-interface {
  position: fixed;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background: #050608;
}

.launch-active .site-interface :is(.download-preview, .install-orbit, .flow-pulse, .capability-stage, .capability-orbit) {
  animation-play-state: paused !important;
}

.pages-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: #050608;
  overscroll-behavior: none;
}

.pages-wrapper::before, .pages-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.pages-wrapper::before {
  background:
    radial-gradient(circle at 23% 42%, rgba(0,0,0,.32), transparent 48%),
    linear-gradient(90deg, rgba(0,0,0,.24), rgba(0,0,0,.08) 58%, rgba(0,0,0,.20));
}

.pages-wrapper::after {
  opacity: .13;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.52'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.page-main-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pages-track {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.page {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 100%, 0);
  transition: transform var(--page-duration) var(--page-ease), opacity 420ms ease, visibility 0s linear var(--page-duration);
}

.page::before, .page::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.page::before {
  content: attr(data-section-index);
  right: calc(var(--rail-reserve) + var(--gutter) - 10px);
  bottom: clamp(-26px, -2.2vh, -8px);
  color: transparent;
  font-size: clamp(260px, 34vw, 480px);
  font-weight: 780;
  letter-spacing: -.12em;
  line-height: .72;
  opacity: .64;
  -webkit-text-stroke: 1px rgba(255,255,255,.075);
  text-shadow: 0 38px 90px rgba(0,0,0,.18);
}

.page::after {
  inset: max(72px,calc(48px + env(safe-area-inset-top))) calc(var(--rail-reserve) + var(--gutter) - 18px) max(44px,calc(26px + env(safe-area-inset-bottom))) calc(var(--gutter) - 14px);
  opacity: .48;
  background:
    linear-gradient(90deg,rgba(255,255,255,.28),transparent) left top / 46px 1px no-repeat,
    linear-gradient(180deg,rgba(255,255,255,.28),transparent) left top / 1px 46px no-repeat,
    linear-gradient(270deg,rgba(255,255,255,.22),transparent) right top / 46px 1px no-repeat,
    linear-gradient(180deg,rgba(255,255,255,.22),transparent) right top / 1px 46px no-repeat,
    linear-gradient(90deg,rgba(255,255,255,.18),transparent) left bottom / 46px 1px no-repeat,
    linear-gradient(0deg,rgba(255,255,255,.18),transparent) left bottom / 1px 46px no-repeat,
    linear-gradient(270deg,rgba(255,255,255,.16),transparent) right bottom / 46px 1px no-repeat,
    linear-gradient(0deg,rgba(255,255,255,.16),transparent) right bottom / 1px 46px no-repeat;
}

.page.is-before { transform: translate3d(0, -100%, 0); }
.page.is-after { transform: translate3d(0, 100%, 0); }
.page.is-active, .page.is-departing { visibility: visible; transition-delay: 0s; }
.page.is-active { z-index: 2; opacity: 1; pointer-events: auto; transform: translate3d(0, 0, 0); }
.page.is-departing { z-index: 1; }
.pages-track.is-transitioning .page:is(.is-active, .is-departing) { will-change: transform, opacity; }

.screen-scroll {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.24) transparent;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.screen-scroll::-webkit-scrollbar, .profile-modal::-webkit-scrollbar { width: 5px; }
.screen-scroll::-webkit-scrollbar-thumb, .profile-modal::-webkit-scrollbar-thumb {
  min-height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,.26);
}

.page-inner, .screen-frame {
  width: min(100%, var(--content-max));
  min-height: 100%;
  margin: 0 auto;
  padding: max(88px, calc(56px + env(safe-area-inset-top))) calc(var(--rail-reserve) + var(--gutter)) max(64px, calc(40px + env(safe-area-inset-bottom))) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.screen-frame--split {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(340px, .84fr);
  align-items: center;
  gap: clamp(42px, 7vw, 104px);
}

.screen-copy { width: min(100%, var(--copy-max)); }

.section-label, .screen-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
}

.section-label::before, .screen-eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.hero, .page-title, .screen-heading { max-width: var(--copy-max); text-align: left; }

.hero h1, .page-title h2, .screen-heading h1, .screen-heading h2, .download-card h2 {
  margin: 0;
  max-width: 12ch;
  color: var(--ink);
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 720;
  letter-spacing: -.055em;
  line-height: .98;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255,255,255,.2), 0 18px 42px rgba(0,0,0,.38);
}

.hero p, .page-title p, .screen-heading > p, .download-card > p {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--ink-muted);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.72;
}

.page.is-active :is(.screen-heading, .hero, .page-title, .download-card) { animation: content-enter 460ms var(--page-ease) both; }
.page.is-active :is(.features-grid, .download-preview, .install-guide, .flow-steps, .faq-list) { animation: content-enter 420ms 80ms var(--page-ease) both; }
.page.is-active :is(.download-meta, .context-strip, .faq-facts) { animation: content-enter 520ms 130ms var(--page-ease) both; }
.page.is-active .capability-stage { animation: capability-stage-enter 620ms 120ms var(--page-ease) both; }
@keyframes content-enter { from { opacity: 0; transform: translate3d(0,24px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes capability-stage-enter { from { opacity: 0; transform: translate3d(0,-43%,0) scale(.96); } to { opacity: 1; transform: translate3d(0,-48%,0) scale(1); } }

/* Core capabilities */
.features-layout { position: relative; justify-content: center; }
.features-layout .screen-copy { position: relative; z-index: 2; max-width: 690px; }

.features-grid {
  width: min(100%, 650px);
  margin-top: clamp(30px, 4vh, 46px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  min-width: 0;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-areas: "icon title" "icon copy";
  column-gap: 13px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(5,7,10,.38));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 12px 32px rgba(0,0,0,.13);
  backdrop-filter: blur(10px) saturate(118%);
  -webkit-backdrop-filter: blur(10px) saturate(118%);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-card:hover { transform: translate3d(0,-2px,0); border-color: var(--glass-border-strong); background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(5,7,10,.44)); }
.feature-icon { grid-area: icon; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; color: rgba(255,255,255,.88); background: rgba(255,255,255,.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.11), 0 8px 18px rgba(0,0,0,.18); }
.feature-icon svg { width: 19px; height: 19px; }
.feature-card h3 { grid-area: title; align-self: end; margin: 0; font-size: 14px; font-weight: 650; line-height: 1.3; }
.feature-card p { grid-area: copy; align-self: start; margin: 3px 0 0; color: var(--ink-faint); font-size: 12px; line-height: 1.45; }

.capability-stage {
  position: absolute;
  top: 50%;
  right: calc(var(--rail-reserve) + clamp(4px,1.5vw,22px));
  z-index: 1;
  width: clamp(300px,28vw,390px);
  aspect-ratio: 1;
  transform: translateY(-48%);
  filter: drop-shadow(0 34px 60px rgba(0,0,0,.18));
}

.capability-stage::before, .capability-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.capability-stage::before {
  inset: 12%;
  background: radial-gradient(circle,rgba(255,255,255,.11),rgba(255,255,255,.025) 36%,transparent 68%);
  filter: blur(12px);
  animation: capability-glow 7s ease-in-out infinite;
}

.capability-stage::after {
  inset: 4%;
  border: 1px solid rgba(255,255,255,.055);
  box-shadow: inset 0 0 80px rgba(255,255,255,.025);
}

.capability-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07),0 20px 54px rgba(0,0,0,.12);
}

.capability-orbit--outer {
  width: 88%;
  height: 88%;
  border-style: dashed;
  animation: capability-spin 44s linear infinite;
}

.capability-orbit--inner {
  width: 61%;
  height: 61%;
  border-color: rgba(255,255,255,.11);
  animation: capability-spin-reverse 34s linear infinite;
}

.capability-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  transform: translate(-50%,-50%);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 34px;
  color: rgba(255,255,255,.9);
  background: linear-gradient(145deg,rgba(255,255,255,.14),rgba(5,7,10,.52));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18),0 28px 68px rgba(0,0,0,.28);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  animation: capability-float 8s ease-in-out infinite;
}

.capability-core svg { width: 50px; height: 50px; }
.capability-core > span { position: absolute; right: 17px; bottom: 14px; color: var(--ink-faint); font-size: 9px; font-weight: 750; letter-spacing: .16em; }

.capability-node {
  position: absolute;
  z-index: 2;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(8,10,14,.52);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16),0 9px 22px rgba(0,0,0,.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.capability-node::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 12px rgba(255,255,255,.62);
}

.capability-node:nth-of-type(1) { top: 5%; left: calc(50% - 8px); }
.capability-node:nth-of-type(2) { top: 23%; right: 8%; }
.capability-node:nth-of-type(3) { right: 4%; bottom: 28%; }
.capability-node:nth-of-type(4) { bottom: 4%; left: calc(50% - 8px); }
.capability-node:nth-of-type(5) { bottom: 26%; left: 5%; }
.capability-node:nth-of-type(6) { top: 24%; left: 8%; }

.capability-signal {
  position: absolute;
  left: 50%;
  bottom: 12%;
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: var(--ink-faint);
  background: rgba(7,9,12,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 12px 26px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
  white-space: nowrap;
}

.capability-signal i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px rgba(158,232,190,.72); }
@keyframes capability-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes capability-spin-reverse { to { transform: translate(-50%,-50%) rotate(-360deg); } }
@keyframes capability-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes capability-glow { 0%,100% { opacity: .55; transform: scale(.98); } 50% { opacity: 1; transform: scale(1.025); } }

/* Download */
.download-page { display: grid; grid-template-columns: minmax(0,.92fr) minmax(340px,.8fr); align-items: center; gap: clamp(44px,8vw,112px); }
.download-card { width: min(100%,570px); text-align: left; }
.download-icon { width: 48px; height: 48px; margin-bottom: 25px; display: grid; place-items: center; border: 1px solid var(--glass-border); border-radius: 15px; background: var(--glass-base); box-shadow: inset 0 1px 0 var(--glass-highlight), 0 16px 34px rgba(0,0,0,.24); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.download-card .version { margin-top: 20px; color: var(--ink-faint); font-size: 13px; letter-spacing: .04em; }

.btn-download, .auth-btn, .profile-save-btn {
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 14px;
  color: #111317;
  background: linear-gradient(180deg, #fff, #e9e7e1);
  box-shadow: inset 0 1px 0 #fff, 0 14px 30px rgba(0,0,0,.26), 0 2px 0 rgba(255,255,255,.12);
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, filter 170ms ease;
}

.btn-download { width: fit-content; margin-top: 30px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 700; text-decoration: none; }
.btn-download:hover, .auth-btn:hover, .profile-save-btn:hover { transform: translate3d(0,-2px,0); filter: brightness(1.04); box-shadow: inset 0 1px 0 #fff, 0 18px 38px rgba(0,0,0,.32); }
.btn-download:active, .auth-btn:active, .profile-save-btn:active { transform: translate3d(0,1px,0); }
.download-meta { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 7px; }
.download-meta span { min-height: 28px; padding: 0 10px; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: var(--ink-faint); background: rgba(7,9,12,.24); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); font-size: 10px; letter-spacing: .025em; }
.file-info { max-width: 400px; margin-top: 14px !important; color: var(--ink-faint) !important; font-size: 12.5px !important; }

.download-preview {
  position: relative;
  width: min(100%,470px);
  aspect-ratio: .92;
  margin-left: auto;
  padding: 18px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(7,9,13,.23));
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 32px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(24px) saturate(124%);
  -webkit-backdrop-filter: blur(24px) saturate(124%);
  animation: preview-float 10s ease-in-out infinite;
}

.preview-browser { position: relative; height: 100%; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 20px; background: rgba(4,5,8,.58); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.preview-toolbar { height: 46px; padding: 0 15px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid rgba(255,255,255,.1); }
.preview-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); }
.preview-address { height: 22px; margin-left: 10px; flex: 1; border-radius: 7px; background: rgba(255,255,255,.07); }
.preview-body { height: calc(100% - 46px); padding: 18px; display: grid; grid-template-columns: 1fr .72fr; gap: 13px; }
.preview-page-lines, .preview-assistant { border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.045); }
.preview-page-lines { padding: 18px 14px; }
.preview-line { height: 7px; margin-bottom: 11px; border-radius: 999px; background: rgba(255,255,255,.15); }
.preview-line:nth-child(2n) { width: 72%; }
.preview-line:nth-child(3n) { width: 88%; }
.preview-assistant { padding: 15px; display: flex; flex-direction: column; }
.preview-assistant-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(255,255,255,.08); }
.preview-chip { width: 88%; min-height: 48px; margin-top: 14px; padding: 10px; border-radius: 11px; background: rgba(255,255,255,.08); }
.preview-status { margin-top: auto; padding-top: 14px; color: var(--success); font-size: 11px; }
@keyframes preview-float { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-4px,0); } }

/* Install */
.install-screen .page-title, .flow-screen .page-title { margin-bottom: clamp(32px,5vh,58px); }
.install-screen .page-title h2, .flow-screen .page-title h2, .faq-screen .page-title h2 { font-size: clamp(38px,4.5vw,64px); }
.install-guide { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.install-guide::before { content: ""; position: absolute; top: 31px; left: 13%; right: 13%; height: 1px; background: linear-gradient(90deg,transparent,rgba(255,255,255,.34),transparent); }
.install-step { position: relative; min-height: 230px; padding: 24px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-md); background: linear-gradient(145deg,rgba(255,255,255,.10),rgba(4,6,9,.38)); box-shadow: inset 0 1px 0 rgba(255,255,255,.11),0 20px 48px rgba(0,0,0,.20); backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%); }
.install-step-num { position: relative; z-index: 1; width: 38px; height: 38px; margin-bottom: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(8,10,14,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.16),0 10px 20px rgba(0,0,0,.24); font-size: 12px; font-weight: 720; }
.install-step-content h3, .install-step-content h4 { margin: 0 0 12px; font-size: 18px; line-height: 1.25; }
.install-step-content p { margin: 0; color: var(--ink-muted); font-size: 13.5px; line-height: 1.65; }
.install-step-content ul { margin: 14px 0 0; padding: 0; list-style: none; }
.install-step-content li { position: relative; margin-top: 8px; padding-left: 15px; color: var(--ink-faint); font-size: 12.5px; }
.install-step-content li::before { content: ""; position: absolute; top: .68em; left: 0; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.62); }
.install-step-content code { padding: 2px 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; color: var(--ink); background: rgba(0,0,0,.22); font-family: "SFMono-Regular",Consolas,monospace; font-size: .92em; }
.install-orbit { position: absolute; top: 27px; left: 13%; z-index: 2; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px rgba(255,255,255,.88); animation: install-travel 11s ease-in-out infinite alternate; }
@keyframes install-travel { from { transform: translateX(0); } to { transform: translateX(calc(74vw - 200px)); } }

.context-strip {
  min-height: 66px;
  margin-top: clamp(16px,2.3vh,24px);
  padding: 12px 15px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: linear-gradient(145deg,rgba(255,255,255,.075),rgba(5,7,10,.31));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.075),0 16px 36px rgba(0,0,0,.13);
  backdrop-filter: blur(14px) saturate(116%);
  -webkit-backdrop-filter: blur(14px) saturate(116%);
}

.context-strip-label {
  min-width: 112px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.context-strip-label > span { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px rgba(158,232,190,.55); }
.context-strip-items { min-width: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.context-strip-items > span { min-height: 38px; padding: 0 11px; display: flex; align-items: center; gap: 8px; border-left: 1px solid rgba(255,255,255,.11); color: var(--ink-muted); font-size: 11.5px; line-height: 1.35; }
.context-strip-items > span::before { content: "✓"; flex: 0 0 auto; color: rgba(255,255,255,.72); font-size: 10px; }

/* Flow */
.flow-steps { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.flow-steps::before { content: ""; position: absolute; top: 43px; left: 9%; right: 9%; z-index: 0; height: 1px; background: rgba(255,255,255,.23); }
.flow-step { position: relative; z-index: 1; min-height: 230px; padding: 82px 20px 20px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-md); background: linear-gradient(145deg,rgba(255,255,255,.075),rgba(5,7,10,.28)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 18px 42px rgba(0,0,0,.15); backdrop-filter: blur(14px) saturate(116%); -webkit-backdrop-filter: blur(14px) saturate(116%); }
.flow-step-number { position: absolute; top: 18px; left: 18px; z-index: 2; width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid var(--glass-border); border-radius: 16px; background: var(--glass-base); box-shadow: inset 0 1px 0 var(--glass-highlight),0 14px 30px rgba(0,0,0,.19); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 12px; font-weight: 720; }
.flow-step h3, .flow-step h4 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.02em; }
.flow-step p { margin: 0; color: var(--ink-muted); font-size: 13.5px; line-height: 1.65; }
.flow-example { margin-top: 18px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; color: var(--ink-faint); background: rgba(255,255,255,.045); font-size: 12px; }
.flow-pulse { position: absolute; top: 39px; left: 8%; z-index: 3; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 20px rgba(255,255,255,.82); animation: flow-travel 10s var(--page-ease) infinite; }
@keyframes flow-travel { 0%,8% { left: 8%; opacity: .45; } 45%,55% { left: 50%; opacity: 1; } 92%,100% { left: 91%; opacity: .45; } }

/* FAQ */
.faq-screen { display: grid; grid-template-columns: minmax(260px,.62fr) minmax(420px,1fr); align-items: center; gap: clamp(42px,8vw,118px); }
.faq-summary { width: 100%; align-self: center; }
.faq-facts { width: min(100%,340px); margin-top: 32px; display: grid; gap: 8px; }
.faq-facts span { min-height: 40px; padding: 0 13px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; color: var(--ink-muted); background: rgba(7,9,12,.24); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 11.5px; }
.faq-facts span::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.46); border-radius: 50%; background: rgba(255,255,255,.12); box-shadow: 0 0 10px rgba(255,255,255,.24); }
.faq-list { width: 100%; display: grid; gap: 8px; }
.faq-item { overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: var(--glass-base); box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 14px 38px rgba(0,0,0,.14); backdrop-filter: blur(16px) saturate(118%); -webkit-backdrop-filter: blur(16px) saturate(118%); }
.faq-question { width: 100%; min-height: 54px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 0; color: var(--ink); background: transparent; cursor: pointer; text-align: left; font-size: 13.5px; font-weight: 650; }
.faq-question svg { width: 16px; height: 16px; flex: 0 0 auto; transition: transform 240ms ease; }
.faq-question[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-panel { padding: 0 18px 18px; }
.faq-panel p { margin: 0; color: var(--ink-muted); font-size: 13px; line-height: 1.7; }
.page-footer { margin-top: 28px; color: var(--ink-faint); font-size: 11px; }

/* Account */
.account-corner { position: fixed; top: max(18px,calc(12px + env(safe-area-inset-top))); right: max(22px,calc(14px + env(safe-area-inset-right))); z-index: 120; }
.nav-actions { position: relative; }
.nav-user-btn { min-width: 48px; min-height: 46px; padding: 6px 16px 6px 7px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--glass-border); border-radius: 15px; color: var(--ink); background: linear-gradient(145deg,rgba(255,255,255,.12),rgba(8,10,14,.32)); box-shadow: inset 0 1px 0 var(--glass-highlight),0 16px 38px rgba(0,0,0,.22); backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); cursor: pointer; transition: transform 180ms ease,border-color 180ms ease,background 180ms ease; }
.nav-user-btn:hover { transform: translate3d(0,-2px,0); border-color: var(--glass-border-strong); background: linear-gradient(145deg,rgba(255,255,255,.15),rgba(8,10,14,.36)); }
.nav-user-btn:active { transform: translate3d(0,1px,0); }
.nav-avatar { width: 32px; height: 32px; display: none; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 700; }
.nav-user-btn.logged-in .nav-avatar { display: grid; }
.nav-user-btn.logged-in .nav-user-icon { display: none; }
.nav-user-icon { width: 18px; height: 18px; }
.nav-user-text { max-width: 150px; overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown { position: absolute; top: calc(100% + 10px); right: 0; width: 174px; padding: 7px; border: 1px solid var(--glass-border); border-radius: 16px; background: rgba(10,12,16,.62); box-shadow: inset 0 1px 0 var(--glass-highlight),0 24px 60px rgba(0,0,0,.34); backdrop-filter: blur(24px) saturate(135%); -webkit-backdrop-filter: blur(24px) saturate(135%); }
.user-dropdown-item { width: 100%; min-height: 42px; padding: 0 11px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; color: var(--ink-muted); background: transparent; cursor: pointer; font-size: 12.5px; text-align: left; }
.user-dropdown-item:hover { color: var(--ink); background: rgba(255,255,255,.08); }
.user-dropdown-item.danger:hover { color: #ffd1d1; background: rgba(255,95,95,.11); }
.user-dropdown-divider { height: 1px; margin: 5px 8px; background: rgba(255,255,255,.1); }

/* Page rail */
.page-rail { position: fixed; top: 50%; right: max(20px,calc(12px + env(safe-area-inset-right))); z-index: 110; width: 122px; height: clamp(270px,34vh,356px); padding: 13px 10px; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: linear-gradient(155deg,rgba(255,255,255,.09),rgba(7,9,12,.24)); box-shadow: inset 0 1px 0 var(--glass-highlight),0 28px 64px rgba(0,0,0,.2); backdrop-filter: blur(16px) saturate(126%); -webkit-backdrop-filter: blur(16px) saturate(126%); }
.nav-tabs { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.nav-tabs::before { content: ""; position: absolute; top: 10%; bottom: 10%; left: 13px; width: 1px; background: linear-gradient(transparent,rgba(255,255,255,.23),transparent); }
.nav-tab { position: relative; width: 100%; min-height: 42px; padding: 0 5px 0 31px; display: flex; align-items: center; border: 0; border-radius: 13px; color: var(--ink-faint); background: transparent; cursor: pointer; font-size: 11px; line-height: 1.25; text-align: left; transition: color 180ms ease,background 180ms ease; }
.nav-tab::before { content: ""; position: absolute; left: 9px; width: 9px; height: 9px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(9,11,15,.9); transition: transform 220ms ease,background 220ms ease,box-shadow 220ms ease; }
.nav-tab:hover, .nav-tab.active { color: var(--ink); background: rgba(255,255,255,.07); }
.nav-tab.active::before { transform: scale(1.1); border-color: #fff; background: #fff; box-shadow: 0 0 16px rgba(255,255,255,.74); }

/* Auth and profile */
.auth-overlay { position: fixed; inset: 0; z-index: 300; padding: 24px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.32); backdrop-filter: blur(10px) saturate(105%); -webkit-backdrop-filter: blur(10px) saturate(105%); }
.auth-modal { position: relative; width: min(100%,430px); max-height: min(780px,calc(100dvh - 48px)); padding: 34px; overflow: auto; border: 1px solid rgba(255,255,255,.2); border-radius: 24px; background: linear-gradient(145deg,rgba(255,255,255,.13),rgba(8,10,14,.54)); box-shadow: inset 0 1px 0 rgba(255,255,255,.17),0 36px 100px rgba(0,0,0,.48); backdrop-filter: blur(28px) saturate(138%); -webkit-backdrop-filter: blur(28px) saturate(138%); }
.auth-modal::before { content: ""; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg,rgba(255,255,255,.08),transparent 38%); }
.auth-modal > * { position: relative; }
.auth-modal h2 { margin: 0; font-size: 28px; line-height: 1.1; letter-spacing: -.035em; text-shadow: 0 12px 28px rgba(0,0,0,.35); }
.auth-subtitle { margin: 10px 0 26px; color: var(--ink-muted); font-size: 13px; }
.auth-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; color: var(--ink-muted); background: rgba(255,255,255,.06); cursor: pointer; font-size: 22px; line-height: 1; }
.auth-close:hover { color: var(--ink); background: rgba(255,255,255,.1); }
.form-group { margin-top: 16px; }
.form-group label, .profile-label, .profile-heading { display: block; margin-bottom: 8px; color: var(--ink-muted); font-size: 11.5px; font-weight: 650; letter-spacing: .04em; }
.form-group input, .profile-input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; color: var(--ink); background: rgba(4,6,9,.32); box-shadow: inset 0 1px 5px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.05); font: inherit; }
.form-group input::placeholder, .profile-input::placeholder { color: rgba(248,247,243,.32); }
.form-group input:focus, .profile-input:focus { border-color: rgba(255,255,255,.4); background: rgba(4,6,9,.42); }
.form-group input[aria-invalid="true"] { border-color: rgba(255,155,155,.72); }
.form-error { min-height: 18px; margin-top: 10px; color: var(--danger); font-size: 12px; }
.auth-btn { width: 100%; margin-top: 8px; padding: 0 18px; font-weight: 720; }
.auth-btn:disabled { opacity: .55; cursor: wait; }
.auth-switch { margin-top: 18px; text-align: center; }
.auth-switch button { min-height: 42px; padding: 0 10px; border: 0; color: var(--ink-muted); background: transparent; cursor: pointer; font-size: 12.5px; }
.auth-switch button:hover { color: var(--ink); }
.auth-logout-hint { margin-top: 8px; color: var(--ink-faint); font-size: 11px; text-align: center; }
.profile-modal { width: min(100%,560px); max-height: min(820px,calc(100dvh - 48px)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.profile-section { margin-top: 24px; }
.profile-avatar-wrap { display: flex; align-items: center; gap: 16px; }
.profile-avatar { width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 22px; background: rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.14),0 16px 34px rgba(0,0,0,.24); font-size: 25px; font-weight: 720; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-upload { min-height: 42px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; color: var(--ink-muted); background: rgba(255,255,255,.06); cursor: pointer; font-size: 12px; }
.profile-avatar-upload:hover { color: var(--ink); }
.profile-edit-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
.profile-save-btn { min-width: 76px; padding: 0 15px; font-size: 12px; font-weight: 720; }
.profile-info-card { overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(5,7,10,.24); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.profile-info-row { min-height: 46px; padding: 11px 13px; display: grid; grid-template-columns: minmax(110px,.45fr) minmax(0,1fr); align-items: center; gap: 14px; }
.profile-info-row + .profile-info-row { border-top: 1px solid rgba(255,255,255,.1); }
.profile-info-key { color: var(--ink-faint); font-size: 11.5px; }
.profile-info-val { overflow-wrap: anywhere; font-size: 12px; text-align: right; }
.profile-hint { min-height: 18px; margin-top: 8px; color: var(--success); font-size: 12px; }

@media (max-width: 1179px) {
  :root { --gutter: clamp(24px,4vw,48px); --rail-reserve: 94px; }
  .page-rail { width: 70px; }
  .nav-tab { padding-left: 31px; color: transparent; font-size: 0; }
  .nav-tab.active::after { content: attr(aria-label); position: absolute; right: calc(100% + 12px); width: max-content; max-width: 100px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; color: var(--ink); background: rgba(8,10,14,.62); box-shadow: 0 12px 28px rgba(0,0,0,.24); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 10px; white-space: nowrap; }
  .screen-frame--split, .download-page { grid-template-columns: minmax(0,.92fr) minmax(300px,.8fr); gap: 36px; }
  .capability-stage { right: calc(var(--rail-reserve) + 4px); width: clamp(240px,25vw,300px); }
  .download-preview { max-width: 390px; }
  .install-step { min-height: 250px; padding: 21px; }
}

@media (max-width: 960px) {
  .capability-stage { display: none; }
  .faq-screen { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 30px; }
  .faq-screen .page-title { margin-bottom: 0; }
  .faq-facts { width: 100%; max-width: 680px; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .faq-list { max-width: 680px; }
}

@media (max-width: 767px) {
  :root { --gutter: max(20px,env(safe-area-inset-left)); --rail-reserve: 58px; --page-duration: 520ms; }
  .page::before, .page::after { display: none; }
  .pages-wrapper::before { background: linear-gradient(90deg,rgba(0,0,0,.24),rgba(0,0,0,.05) 68%,rgba(0,0,0,.12)); }
  .account-corner { top: max(12px,env(safe-area-inset-top)); right: max(12px,env(safe-area-inset-right)); }
  .nav-user-btn { min-height: 44px; padding-right: 12px; }
  .nav-user-text { max-width: 82px; }
  .page-rail { right: max(7px,env(safe-area-inset-right)); width: 44px; height: 34dvh; min-height: 250px; padding: 7px 5px; border-radius: 18px; }
  .nav-tabs::before { left: 16px; }
  .nav-tab { min-height: 44px; padding: 0; }
  .nav-tab::before { left: 12px; }
  .nav-tab.active::after { right: calc(100% + 7px); max-width: 84px; padding: 6px 8px; font-size: 9px; }
  .page-inner, .screen-frame { min-height: 100%; padding: max(84px,calc(58px + env(safe-area-inset-top))) calc(var(--rail-reserve) + 10px) max(42px,calc(24px + env(safe-area-inset-bottom))) max(20px,env(safe-area-inset-left)); justify-content: flex-start; }
  .hero h1, .page-title h2, .screen-heading h1, .screen-heading h2, .download-card h2 { max-width: 10ch; font-size: clamp(38px,12vw,54px); }
  .hero p, .page-title p, .screen-heading > p, .download-card > p { margin-top: 18px; font-size: 14px; }
  .features-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 26px; }
  .feature-card { padding: 13px; }
  .screen-frame--split, .download-page, .faq-screen { display: flex; flex-direction: column; align-items: stretch; gap: 34px; }
  .download-preview { width: 100%; max-width: 420px; min-height: 350px; margin: 0; animation-duration: 12s; }
  .install-screen .page-title, .flow-screen .page-title { margin-bottom: 30px; }
  .install-guide, .flow-steps { grid-template-columns: 1fr; gap: 12px; }
  .install-guide::before, .install-orbit, .flow-steps::before, .flow-pulse { display: none; }
  .install-step { min-height: auto; padding: 18px; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 15px; }
  .install-step-num { margin: 0; }
  .flow-step { min-height: 82px; padding: 15px 15px 15px 66px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(8,10,14,.18); }
  .flow-step-number { top: 15px; left: 14px; width: 38px; height: 38px; border-radius: 12px; }
  .flow-step h3, .flow-step h4 { font-size: 16px; }
  .context-strip { grid-template-columns: 1fr; gap: 8px; padding: 13px; }
  .context-strip-label { min-width: 0; }
  .context-strip-items { grid-template-columns: 1fr; gap: 0; }
  .context-strip-items > span { min-height: 40px; padding: 0 4px; border-left: 0; border-top: 1px solid rgba(255,255,255,.09); }
  .context-strip-items > span:first-child { border-top: 0; }
  .faq-facts { grid-template-columns: 1fr; margin-top: 24px; }
  .faq-list { padding-bottom: 24px; }
  .auth-overlay { align-items: flex-end; padding: 12px; }
  .auth-modal, .profile-modal { width: 100%; max-width: none; max-height: calc(100dvh - 24px); padding: 28px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px; }
  .auth-modal h2 { font-size: 25px; }
  .profile-info-row { grid-template-columns: minmax(96px,.45fr) minmax(0,1fr); }
}

@media (pointer: coarse) {
  .nav-user-btn, .nav-tab, .user-dropdown-item, .auth-close, .auth-switch button, .profile-avatar-upload, .profile-save-btn { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --page-duration: 100ms; }
  .site-interface, .site-interface *, .site-interface *::before, .site-interface *::after { scroll-behavior: auto !important; }
  .page, .page.is-active :is(.screen-heading,.hero,.page-title,.download-card), .page.is-active :is(.features-grid,.download-preview,.install-guide,.flow-steps,.faq-list,.capability-stage,.download-meta,.context-strip,.faq-facts) { animation: none !important; transition-duration: 100ms !important; }
  .download-preview, .install-orbit, .flow-pulse, .capability-stage::before, .capability-orbit, .capability-core { animation: none !important; }
}
