:root {
  /* 深墨底 · 青蓝点缀 · 鸿蒙字体 */
  --bg: #080b10;
  --bg-elevated: #0f141c;
  --card: rgba(10, 14, 20, 0.97);
  --text: #eef2f6;
  --muted: #8a9aab;
  --accent: #4ec4e0;
  --accent-2: #ff8f82;
  --accent-blue: #5a9fd8;
  --accent-jade: #5eb8aa;
  --accent-seal: #ff8f82;
  --accent-gold: #7ec8ff;
  --accent-glow: rgba(78, 196, 224, 0.35);
  --live-glow: rgba(255, 143, 130, 0.32);
  --jade-glow: rgba(94, 184, 170, 0.28);
  --danger: #f07167;
  --ok: #4ec4e0;
  --border: rgba(120, 160, 190, 0.1);
  --nav-h: 64px;
  --radius: 16px;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.55);
  --layout-wide: 1200px;
  --dashboard-gutter: clamp(1.75rem, 4.5vw, 3.75rem);
  --dashboard-max: min(97vw, 1880px);
  --logo-chip-bg: #f0f6fa;
  --logo-chip-bg-end: #e4eef5;
  --logo-chip-border: rgba(90, 159, 216, 0.15);
  --font-body: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-heading: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --field-bg: rgba(6, 10, 16, 0.82);
  --field-bg-hover: rgba(10, 16, 24, 0.92);
  --field-border: rgba(120, 160, 190, 0.24);
  --field-border-hover: rgba(120, 160, 190, 0.38);
  --field-border-focus: rgba(78, 196, 224, 0.62);
  --field-focus-ring: 0 0 0 3px rgba(78, 196, 224, 0.16);
  --field-radius: 10px;
  --field-height: 2.5rem;
  --field-font: 0.875rem;
  --field-pad-x: 0.75rem;
  font-family: var(--font-body);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

h1,
h2,
h3,
.hero h1,
.section-head h2,
.showcase-copy h3,
.cta-box h2 {
  font-family: var(--font-heading);
  font-weight: 600;
}

.site-nav .brand strong,
.site-nav .brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(78, 196, 224, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 42% at 8% 60%, rgba(90, 159, 216, 0.05), transparent 52%),
    radial-gradient(ellipse 70% 45% at 50% 105%, rgba(0, 0, 0, 0.5), transparent 62%);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg width='480' height='480' viewBox='0 0 480 480' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-20 180 Q140 40 320 200 T520 260' stroke='rgba(78,196,224,0.04)' fill='none' stroke-width='36' stroke-linecap='round'/%3E%3Cpath d='M40 380 Q220 220 460 340' stroke='rgba(90,159,216,0.035)' fill='none' stroke-width='24' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 480px 480px;
  background-repeat: repeat;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 20%, transparent 78%);
  z-index: 0;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 11, 16, 0.9);
  backdrop-filter: blur(18px) saturate(1.2);
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.site-nav .brand:hover {
  text-decoration: none;
}

/* 深色工作室 Logo 需浅色底衬 */
.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--logo-chip-bg) 0%, var(--logo-chip-bg-end) 100%);
  border: 1px solid var(--logo-chip-border);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.logo-chip--nav {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  padding: 4px;
}

.logo-chip--footer {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  padding: 3px;
}

.logo-chip--feature {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 0.35rem;
  line-height: 0;
}

.feature-icon.logo-chip img {
  width: 100%;
  height: 100%;
}

.logo-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-logo,
.footer-logo {
  border-radius: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.btn {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent) 55%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 6px 28px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(255, 138, 120, 0.42);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.account-wrap {
  position: relative;
}

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  display: none;
}

.account-menu.is-open {
  display: block;
}

.account-menu button {
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
}

.account-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.landing {
  position: relative;
  z-index: 1;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  backdrop-filter: blur(8px);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--text) 92%, var(--accent));
  margin-bottom: 1.5rem;
}

.hero-badge::before,
.hero-badge::after {
  display: none;
}

.hero-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--live-glow);
  animation: livePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.88);
  }
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.15rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero h1 span {
  font-family: var(--font-heading);
  font-weight: 700;
  background: linear-gradient(128deg, #ffffff 0%, #9dd4f0 42%, #5eb8aa 78%, #ffb4a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.features {
  max-width: var(--layout-wide);
  margin: 0 auto;
  padding: 1.5rem 2.5rem 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.35rem;
}

.feature-card {
  position: relative;
  padding: 1.65rem 1.5rem 1.65rem 1.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='120' viewBox='0 0 200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 90 Q60 30 140 70 T200 50' stroke='rgba(110,172,222,0.07)' fill='none' stroke-width='20' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 200px 120px;
  background-position: right bottom;
  background-repeat: no-repeat;
}

.feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.8;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.dashboard {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--dashboard-max);
  margin: 0 auto;
  padding: 1.5rem var(--dashboard-gutter);
  display: none;
  overflow-x: hidden;
}

.dashboard.is-visible {
  display: block;
}

.showcase-copy h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
}

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

/* —— 统一表单控件（账户中心 / 登录弹窗 / 管理表格） —— */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="datetime-local"],
select,
textarea {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  min-height: var(--field-height);
  padding: 0.55rem var(--field-pad-x);
  font: inherit;
  font-size: var(--field-font);
  line-height: 1.35;
  color: var(--text);
  background-color: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease;
  color-scheme: dark;
}

input::placeholder,
textarea::placeholder {
  color: rgba(138, 154, 171, 0.72);
}

input:hover:not(:disabled):not([type="checkbox"]):not([type="radio"]),
select:hover:not(:disabled),
textarea:hover:not(:disabled) {
  border-color: var(--field-border-hover);
  background-color: var(--field-bg-hover);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--field-border-focus);
  background-color: var(--field-bg-hover);
  box-shadow: var(--field-focus-ring), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

select {
  padding-right: 2.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a9aab' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 12px;
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex-shrink: 0;
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  cursor: pointer;
  vertical-align: middle;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}

input[type="checkbox"] {
  border-radius: 4px;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  border-color: var(--field-border-focus);
  background-color: rgba(78, 196, 224, 0.22);
  box-shadow: inset 0 0 0 1px rgba(78, 196, 224, 0.35);
}

input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234ec4e0' d='M10 3 5 8.5 2 5.6l1.2-1.2L5 6.1l3.8-3.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

input[type="radio"]:checked {
  border-color: var(--field-border-focus);
  background-color: var(--field-bg-hover);
  box-shadow: inset 0 0 0 0.28rem rgba(78, 196, 224, 0.92);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 99999s ease-out 0s;
  box-shadow: 0 0 0 1000px rgba(10, 16, 24, 0.96) inset;
}

.role-grid input[type="radio"] {
  margin-top: 0.1rem;
}

.chk-label input[type="checkbox"] {
  margin-top: 0.2rem;
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: none;
  box-shadow: var(--field-focus-ring);
}

.card .row input:not([type="checkbox"]):not([type="radio"]),
.card .row select,
.card .row textarea {
  max-width: 360px;
}

.auth-modal .row input:not([type="checkbox"]):not([type="radio"]),
.auth-modal .row select,
.auth-modal .row textarea {
  max-width: none;
}

.row {
  margin-bottom: 0.9rem;
}

.msg {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.msg.err {
  color: var(--danger);
}

.msg.ok {
  color: var(--ok);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.45rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  font-weight: 500;
}

.role-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.role-grid label.role-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  line-height: 1.35;
  white-space: nowrap;
}

.role-grid .role-option-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  display: block;
}

.role-grid .role-option-text {
  flex: 1;
  min-width: 0;
}

.role-option--admin .role-option-icon {
  color: #f9a8d4;
}

.role-option--paid .role-option-icon {
  color: #7ec8ff;
}

.role-option--education .role-option-icon {
  color: #5eb8aa;
}

.role-option--demo .role-option-icon {
  color: #a8b8c8;
}

.role-option:has(.role-rb:checked) .role-option-text {
  color: var(--text);
  font-weight: 600;
}

.role-option:has(.role-rb:checked) .role-option-icon {
  filter: brightness(1.15);
}

.hint {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.75rem;
  line-height: 1.45;
}

.me-panel {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.55;
}

.me-panel .line {
  margin: 0.35rem 0;
}

.me-panel .workhorse-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.me-panel .workhorse-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wh-color, #94a3b8);
  border: 1px solid color-mix(in srgb, var(--wh-color, #94a3b8) 55%, transparent);
  background: color-mix(in srgb, var(--wh-color, #94a3b8) 12%, transparent);
}

.me-panel .workhorse-desc {
  font-size: 0.9rem;
}

.me-panel .workhorse-granted-tag {
  color: #f59e0b;
  font-weight: 600;
}

.me-panel .note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.me-panel .userPermSection {
  margin-top: 1rem;
  padding: 12px 14px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.me-panel .userPermHeading {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.me-panel .userPermGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.me-panel .userPermCard {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.45);
  min-height: 52px;
}

.me-panel .userPermCardIcon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.me-panel .userPermSvg {
  display: block;
  width: 22px;
  height: 22px;
}

.me-panel .userPermCard--yes .userPermSvg {
  color: #4ade80;
}

.me-panel .userPermCard--partial .userPermSvg {
  color: #fbbf24;
}

.me-panel .userPermCard--no .userPermSvg {
  color: rgba(248, 113, 113, 0.88);
}

.me-panel .userPermCardLabel {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.me-panel .userPermCardHint {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

.me-panel .userPermLegend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: var(--muted);
}

.me-panel .userPermLegendItem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.me-panel .userPermLegendItem .userPermSvg {
  width: 14px;
  height: 14px;
}

.me-panel .userPermLegendItem--yes .userPermSvg {
  color: #4ade80;
}

.me-panel .userPermLegendItem--partial .userPermSvg {
  color: #fbbf24;
}

.me-panel .userPermLegendItem--no .userPermSvg {
  color: rgba(248, 113, 113, 0.88);
}

td.muted {
  color: var(--muted);
}

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-modal-backdrop.is-open {
  display: flex;
}

.auth-modal {
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 1.25rem;
  position: relative;
}

.auth-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.auth-modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.auth-modal h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.auth-modal-sub {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
  padding: 0.25rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
}

.auth-tabs button {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
}

.auth-tabs button.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.auth-captcha {
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.auth-captcha-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--muted);
}

.auth-captcha-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.auth-captcha-prompt {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-width: 4.5rem;
  text-align: right;
}

.auth-captcha-eq {
  color: var(--muted);
  font-weight: 600;
}

.auth-captcha-input {
  flex: 1;
  min-width: 0;
  max-width: 5.5rem;
  min-height: var(--field-height);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.auth-captcha-refresh {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.auth-captcha-hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.auth-captcha-hint--err {
  color: var(--danger, #f87171);
}

.auth-panel {
  display: none;
}

.auth-panel.is-active {
  display: block;
}

.auth-forgot-wrap {
  margin: 0.35rem 0 0.75rem;
  text-align: right;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-link:hover {
  opacity: 0.85;
}

.hidden {
  display: none !important;
}

#nav-user {
  display: flex;
  align-items: center;
}

#nav-user .nav-user-label {
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#nav-user .nav-user-caret {
  opacity: 0.85;
  font-size: 0.85em;
}

/* —— Extended landing —— */
.hero-split {
  position: relative;
  max-width: var(--layout-wide);
  margin: 0 auto;
  padding: 6rem 2.5rem 5.5rem;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4.5rem;
  align-items: center;
  text-align: left;
}

.hero-split::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(88%, 720px);
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 40%, transparent), transparent);
  opacity: 0.5;
  pointer-events: none;
}

.hero-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(100px, 16vh, 180px);
  pointer-events: none;
  opacity: 0.28;
  background:
    radial-gradient(ellipse 130% 100% at 50% 100%, rgba(78, 196, 224, 0.06), transparent 72%),
    linear-gradient(180deg, transparent 30%, rgba(8, 11, 16, 0.85) 100%);
  mask-image: linear-gradient(180deg, transparent, #000 80%);
}

.hero-copy .hero-lead {
  margin-left: 0;
  margin-right: 0;
}

.hero-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
}

.hero-highlight-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--text) 88%, transparent);
}

.hero-highlight-pill--accent {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-weight: 600;
}

.hero-copy .hero-cta {
  justify-content: flex-start;
}

.hero-note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-shot-wrap {
  min-width: 0;
}

.hero-shot-frame {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: #000;
}

.hero-shot-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.25) 100%);
}

.hero-tally {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 16px var(--live-glow);
  animation: livePulse 2.2s ease-in-out infinite;
}

.hero-timecode {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--accent) 92%, white);
  text-shadow: 0 0 20px var(--accent-glow);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
}

.hero-shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.shot-caption {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.logo-strip {
  max-width: var(--layout-wide);
  margin: 0 auto 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  background: linear-gradient(90deg, transparent, rgba(66, 212, 200, 0.03), transparent);
}

.logo-strip-label {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.logo-strip-items {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--text) 70%, transparent);
}

.logo-strip-items span {
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.section {
  position: relative;
  z-index: 1;
  max-width: var(--layout-wide);
  margin: 0 auto;
  padding: 5.5rem 2.5rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

#top,
.logo-strip {
  content-visibility: visible;
  contain-intrinsic-size: none;
}

.section-alt {
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(78, 196, 224, 0.04) 0%, transparent 42%),
    var(--bg-elevated);
}

.section-eyebrow {
  display: inline-block;
  position: relative;
  margin: 0 0 0.65rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.9;
}

.section-eyebrow::before {
  content: "—";
  margin-right: 0.4em;
  color: color-mix(in srgb, var(--accent-blue) 60%, transparent);
  font-weight: 400;
}

.section-eyebrow::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  margin: 0.4rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent), transparent);
  opacity: 0.5;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
  position: relative;
}

.section-head::before {
  content: "";
  display: block;
  width: min(280px, 55%);
  height: 1px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-blue) 45%, transparent), transparent);
  opacity: 0.5;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.showcase {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  overflow: hidden;
  touch-action: pan-y;
}

.showcase.is-swipe-active {
  touch-action: none;
}

.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  scroll-behavior: smooth;
}

.showcase-tab {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
}

.showcase-tab.is-active {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.showcase-viewport {
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  outline: none;
  border-radius: 0 0 12px 12px;
}

.showcase.is-swipe-active .showcase-viewport {
  touch-action: none;
}

.showcase-viewport:focus-visible {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 48%, transparent);
}

.showcase-viewport.is-pointer-down {
  cursor: grabbing;
}

.showcase-panel {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.25rem;
  align-items: start;
  will-change: transform;
  backface-visibility: hidden;
}

.showcase-panel.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.showcase-panel.is-slide-out-left {
  animation: showcaseOutLeft 0.22s ease forwards;
}

.showcase-panel.is-slide-out-right {
  animation: showcaseOutRight 0.22s ease forwards;
}

.showcase-panel.is-slide-in-right {
  animation: showcaseInRight 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.showcase-panel.is-slide-in-left {
  animation: showcaseInLeft 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes showcaseOutLeft {
  to {
    opacity: 0;
    transform: translateX(-12%);
  }
}

@keyframes showcaseOutRight {
  to {
    opacity: 0;
    transform: translateX(12%);
  }
}

@keyframes showcaseInRight {
  from {
    opacity: 0;
    transform: translateX(14%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes showcaseInLeft {
  from {
    opacity: 0;
    transform: translateX(-14%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.showcase-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem 0.35rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}

.showcase-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.showcase-arrow:hover {
  background: rgba(94, 184, 168, 0.14);
  border-color: rgba(94, 184, 168, 0.35);
}

.showcase-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
}

.showcase-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.showcase-dot.is-active {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  transform: scale(1.25);
}

.showcase-dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.4);
}

.showcase-swipe-hint {
  margin: 0;
  padding: 0 1rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.showcase-copy {
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.showcase-copy h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.showcase-copy p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.showcase-bullets {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.showcase-bullets li {
  margin-bottom: 0.35rem;
}

.showcase-image-btn {
  border: none;
  padding: 0;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}

.showcase-image-btn img {
  display: block;
  width: 100%;
  height: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.feature-icon {
  margin-bottom: 0.35rem;
  line-height: 0;
}

.feature-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.pricing-billing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.pricing-billing-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.pricing-billing-btn.is-active {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--text);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 38%, transparent);
}

.pricing-badge {
  font-size: 0.68rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.pricing-badge--accent {
  background: rgba(61, 214, 140, 0.18);
  color: var(--ok);
}

.pricing-discount-hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ok);
  margin: 0 0 1.25rem;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.pricing-cards--duo {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-cards--trio {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-edu-banner {
  margin: 0 auto 1.25rem;
  max-width: 1080px;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(147, 197, 253, 0.35);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(94, 184, 168, 0.08));
  box-shadow: 0 0 48px rgba(59, 130, 246, 0.08);
}

.pricing-edu-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.pricing-edu-badge {
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(147, 197, 253, 0.45);
}

.pricing-edu-banner-text {
  flex: 1 1 16rem;
  min-width: 0;
}

.pricing-edu-banner-text h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #e0f2fe;
}

.pricing-edu-banner-text p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.pricing-edu-banner .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.pricing-card--edu {
  border-color: rgba(96, 165, 250, 0.45);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.1), rgba(12, 18, 28, 0.4));
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.1);
}

.pricing-card--edu .pricing-tier {
  color: #93c5fd;
}

.pricing-card--edu .pricing-badge--accent {
  display: inline-block;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.pricing-compare--trio {
  min-width: min(100%, 880px);
}

.pricing-compare-col-edu {
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
  min-width: 8.5rem;
}

.pricing-compare-cell--edu {
  background: rgba(59, 130, 246, 0.06);
}

.pricing-compare thead .pricing-compare-col-edu {
  font-weight: 600;
}

.cmp-edu {
  color: #bfdbfe;
}

.pricing-card--paid {
  border-color: rgba(94, 184, 168, 0.38);
  box-shadow: 0 0 40px rgba(94, 184, 168, 0.06);
}

.pricing-calc-note {
  margin: -0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.pricing-compare--duo {
  min-width:  min(100%, 640px);
}

.pricing-compare-col-paid {
  background: rgba(94, 184, 168, 0.07);
  color: var(--accent);
  min-width: 9.5rem;
}

.pricing-compare-col-free {
  min-width: 7.5rem;
  color: var(--muted);
}

.pricing-compare-feature-col {
  min-width: 11rem;
  text-align: left !important;
}

.pricing-compare-group th {
  padding: 0.65rem 0.75rem 0.4rem;
  text-align: left !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(94, 184, 168, 0.08);
  border-bottom: 1px solid rgba(94, 184, 168, 0.18);
}

.pricing-compare-cell--paid {
  background: rgba(94, 184, 168, 0.05);
}

.pricing-compare tbody th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 1;
  background: rgba(12, 18, 28, 0.96);
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2);
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.35;
  max-width: 14rem;
  text-align: left;
  font-weight: 500;
}

.cmp {
  display: inline-block;
  line-height: 1.35;
}

.cmp-yes {
  color: var(--ok);
  font-weight: 600;
}

.cmp-strong {
  color: #b8f5d4;
  font-weight: 600;
  font-size: 0.84rem;
}

.cmp-limit {
  color: var(--muted);
  font-size: 0.8rem;
}

.cmp-no {
  color: rgba(255, 255, 255, 0.22);
  font-size: 1rem;
}

.pricing-compare thead .pricing-compare-col-paid {
  box-shadow: inset 0 2px 0 var(--ok);
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}

.pricing-card--featured {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent-2) 18%, transparent),
    0 20px 50px rgba(66, 212, 200, 0.1);
}

.pricing-tier {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text);
}

.pricing-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  flex: 1;
}

.pricing-price-block {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.1;
  color: var(--text);
}

.pricing-amount--tbd {
  font-size: 1.35rem;
  color: var(--muted);
}

.pricing-period {
  font-size: 0.88rem;
  color: var(--muted);
}

.pricing-features {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.pricing-features li {
  margin-bottom: 0.25rem;
}

.pricing-footnote {
  margin: 0 0 1.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.pricing-compare-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-family: var(--font-heading);
  font-weight: 400;
  text-align: center;
}

.pricing-compare-sub {
  margin: 0 auto 1.1rem;
  max-width: 40rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.pricing-compare-cta {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--accent);
  line-height: 1.5;
}

.pricing-compare-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  padding: 1rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

.pricing-compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pricing-compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.pricing-compare th,
.pricing-compare td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.pricing-compare thead th {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.pricing-compare tbody tr:last-child th,
.pricing-compare tbody tr:last-child td {
  border-bottom: none;
}

#pricing .section-head {
  text-align: center;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.workflow-step {
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}

.workflow-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.workflow-step h3 {
  margin: 0 0 0.5rem;
}

.workflow-step p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.download-card {
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}

.download-card h3 {
  margin: 0 0 0.5rem;
}

.download-card p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.download-card-wide {
  grid-column: 1 / -1;
}

.req-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.support-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}

.support-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.health-pending {
  color: var(--muted);
}

.health-ok {
  color: var(--ok);
}

.health-err {
  color: var(--danger);
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 0.65rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.faq-item p {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.cta-section {
  padding-bottom: 4rem;
}

.cta-box {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(66, 212, 200, 0.1), rgba(255, 138, 120, 0.08));
}

.cta-box h2 {
  margin: 0 0 0.5rem;
}

.cta-box p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.dashboard-toolbar {
  width: 100%;
  max-width: var(--dashboard-max);
  margin: 0 auto;
  padding: 1rem var(--dashboard-gutter) 0;
}

.card-subhead {
  font-size: 0.95rem;
  margin: 1.25rem 0 0.5rem;
}

#admin-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: visible;
}

.admin-panel-inner {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.admin-users-pagination {
  margin-top: 0.65rem;
}

.admin-users-pagination[hidden] {
  display: none !important;
}

.admin-pagination-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  font-size: 0.85rem;
}

.admin-pagination-size {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.admin-pagination-size select {
  min-width: 4.25rem;
  width: auto;
  min-height: 2.15rem;
  padding: 0.35rem 1.85rem 0.35rem 0.55rem;
  font-size: 0.85rem;
}

.admin-pagination-meta {
  flex: 1 1 auto;
  min-width: 8rem;
}

.admin-pagination-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-pagination-nav .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chk-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
}

.table-wrap {
  width: 100%;
  margin-top: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#tbl-users {
  width: 100%;
  min-width: 88rem;
  table-layout: fixed;
}

.admin-wh-cell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.admin-wh-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
  line-height: 1.35;
}

.workhorse-badge--sm {
  font-size: 0.78rem;
  padding: 0.1rem 0.45rem;
}

.admin-wh-score {
  font-size: 0.78rem;
}

.admin-wh-granted {
  font-size: 0.74rem;
}

#tbl-users th {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  font-size: 0.8rem;
  line-height: 1.35;
  padding: 0.55rem 0.6rem;
}

#tbl-users td {
  word-break: normal;
  overflow-wrap: normal;
  vertical-align: top;
  padding: 0.55rem 0.6rem;
  line-height: 1.4;
}

#tbl-users th:nth-child(1),
#tbl-users td:nth-child(1) {
  width: 3%;
  text-align: center;
}

#tbl-users th:nth-child(2),
#tbl-users td:nth-child(2) {
  width: 4%;
}

#tbl-users th:nth-child(3),
#tbl-users td:nth-child(3) {
  width: 8%;
}

#tbl-users th:nth-child(4),
#tbl-users td:nth-child(4) {
  width: 11%;
}

#tbl-users th:nth-child(5),
#tbl-users td:nth-child(5) {
  width: 10%;
}

#tbl-users th:nth-child(6),
#tbl-users td:nth-child(6) {
  width: 13%;
}

#tbl-users th:nth-child(7),
#tbl-users td:nth-child(7) {
  width: 12%;
  min-width: 9.5rem;
}

#tbl-users th:nth-child(8),
#tbl-users td:nth-child(8) {
  width: 12%;
}

#tbl-users th:nth-child(9),
#tbl-users td:nth-child(9) {
  width: 10%;
}

#tbl-users th:nth-child(10),
#tbl-users td:nth-child(10) {
  width: 4%;
}

#tbl-users th:nth-child(11),
#tbl-users td:nth-child(11) {
  width: 8%;
}

#tbl-users th:nth-child(12),
#tbl-users td:nth-child(12) {
  width: 8%;
}

#tbl-users th:nth-child(13),
#tbl-users td:nth-child(13) {
  width: 8%;
}

#tbl-users th:nth-child(14),
#tbl-users td:nth-child(14) {
  width: 9%;
  min-width: 5.5rem;
}

#tbl-users select.wh-tier {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 2.15rem;
  padding: 0.4rem 1.85rem 0.4rem 0.55rem;
  font-size: 0.82rem;
}

#tbl-users td:nth-child(3),
#tbl-users td:nth-child(4) {
  overflow-wrap: anywhere;
  word-break: break-all;
}

#tbl-users td:nth-child(7) {
  overflow: visible;
}

#tbl-users td:nth-child(8) {
  overflow: visible;
}

#tbl-users input[type="datetime-local"],
#tbl-users input.exp {
  min-width: 11.5rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
}

#tbl-users input[type="text"],
#tbl-users input[type="password"],
#tbl-users input.admin-remark {
  min-height: 2.15rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
}

#tbl-users td:nth-child(10) {
  text-align: center;
  vertical-align: middle;
}

#tbl-users td:nth-child(10) input[type="checkbox"] {
  margin: 0 auto;
}

.login-lock-cell {
  min-width: 0;
  vertical-align: middle;
  font-size: 0.8rem;
}

.login-lock-badge {
  display: inline-block;
  font-size: 0.8rem;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: normal;
}

.login-lock-badge--locked {
  color: #fbbf24;
  font-weight: 600;
}

.login-lock-badge--warn {
  color: rgba(251, 191, 36, 0.9);
}

.user-presence {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.8rem;
  line-height: 1.35;
  min-width: 0;
}

.presence-badge--online {
  color: #4ade80;
  font-weight: 600;
}

.presence-badge--offline {
  color: rgba(148, 163, 184, 0.95);
}

.presence-meta {
  font-size: 0.75rem;
}

.admin-actions-cell {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  vertical-align: middle;
  overflow: visible;
  min-width: 5rem;
}

.admin-actions-cell .btn,
.admin-actions-cell .btn-unlock-login {
  width: auto;
  flex: 0 0 auto;
  max-width: none;
  margin: 0;
  white-space: nowrap;
  word-break: keep-all;
  padding: 0.38rem 0.8rem;
  font-size: 0.8rem;
  line-height: 1.2;
  border-radius: 999px;
}

.admin-actions-cell .btn-unlock-login {
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
  cursor: pointer;
  box-shadow: none;
}

.admin-actions-cell .btn-unlock-login:hover {
  background: rgba(251, 191, 36, 0.22);
}

.admin-actions-cell .btn-save {
  min-width: 3.25rem;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
  margin-top: 0.25rem;
}

.hint-danger {
  display: none;
  color: var(--danger);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.nav-user-label {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-logo {
  object-fit: contain;
}

.footer-legal {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  line-height: 1.85;
  color: var(--muted);
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-beian-icon {
  vertical-align: middle;
  margin: 0 0.15rem 0 0.35rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 300;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
  pointer-events: none;
  max-width: min(90vw, 420px);
  text-align: center;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.account-wrap {
  position: relative;
}

@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 1.25rem 2rem;
    gap: 1.75rem;
  }

  .hero-copy .hero-cta {
    justify-content: center;
  }

  .hero-note {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-shot-wrap {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
  }

  .showcase-panel {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.75rem 1.25rem;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 56px;
  }

  .nav-toggle {
    display: block;
    flex-shrink: 0;
  }

  .site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    height: auto;
    min-height: var(--nav-h);
    padding: 0.55rem 0.85rem;
    gap: 0.45rem 0.5rem;
  }

  .site-nav .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 11rem);
    font-size: 0.95rem;
    gap: 0.5rem;
  }

  .logo-chip--nav {
    width: 32px;
    height: 32px;
    padding: 3px;
  }

  .nav-actions {
    order: 2;
    margin-left: auto;
    gap: 0.4rem;
    flex-shrink: 0;
  }

  .nav-toggle {
    order: 3;
  }

  .nav-links {
    order: 4;
    display: none;
    flex-basis: 100%;
    position: static;
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem 0 0.25rem;
    margin: 0;
    background: transparent;
    border-bottom: none;
    gap: 0.15rem;
  }

  .nav-links.is-open {
    display: flex;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    margin-top: 0.15rem;
  }

  .nav-links a {
    padding: 0.55rem 0.35rem;
    font-size: 0.92rem;
  }

  .lang-switch {
    padding: 0.15rem;
  }

  .lang-btn {
    padding: 0.3rem 0.45rem;
    font-size: 0.72rem;
  }

  #nav-guest .btn-primary,
  #nav-user .btn-ghost {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }

  #nav-user {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
    max-width: 10rem;
  }

  .nav-user-label {
    max-width: 100%;
    font-size: 0.78rem;
    text-align: right;
  }

  .hero-split {
    padding: 1.75rem 1rem 1.5rem;
    gap: 1.35rem;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
  }

  .hero-lead {
    font-size: 0.95rem;
    margin-bottom: 1.35rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-note {
    font-size: 0.75rem;
    line-height: 1.5;
    padding: 0 0.15rem;
  }

  .hero-shot-frame {
    animation: none;
  }

  .logo-strip {
    padding: 1rem 0.75rem;
  }

  .logo-strip-label {
    font-size: 0.82rem;
    padding: 0 0.5rem;
    line-height: 1.45;
  }

  .section {
    padding: 2.25rem 1rem;
  }

  .section-head {
    margin-bottom: 1.35rem;
  }

  .section-head h2 {
    font-size: 1.35rem;
  }

  .showcase-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.65rem;
    gap: 0.4rem;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }

  .showcase-tabs::-webkit-scrollbar {
    display: none;
  }

  .showcase-tab {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }

  .showcase-viewport {
    border-radius: 0;
  }

  .showcase-panel {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1rem;
  }

  .showcase-media {
    order: -1;
  }

  .showcase-pager {
    padding: 0.75rem 0.65rem 0.25rem;
  }

  .showcase-arrow {
    width: 40px;
    height: 40px;
  }

  .showcase-swipe-hint {
    font-size: 0.72rem;
    padding-bottom: 0.85rem;
  }

  .pricing-compare tbody th[scope="row"] {
    position: static;
    left: auto;
    z-index: auto;
    box-shadow: none;
    background: transparent;
    max-width: none;
    white-space: normal;
  }

  .pricing-compare {
    min-width: 300px;
  }

  .pricing-compare th,
  .pricing-compare td {
    padding: 0.48rem 0.4rem;
    font-size: 0.76rem;
  }

  .pricing-compare-feature-col {
    min-width: 7.5rem;
  }

  .cmp-strong {
    font-size: 0.78rem;
  }

  .showcase-copy h3 {
    font-size: 1.05rem;
  }

  .showcase-copy .btn {
    width: 100%;
  }

  .features-grid,
  .pricing-cards,
  .workflow-steps,
  .download-grid,
  .support-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .pricing-billing {
    width: 100%;
    border-radius: 12px;
  }

  .pricing-billing-btn {
    flex: 1 1 auto;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.4rem 0.55rem;
  }

  .pricing-cards--duo,
  .pricing-cards--trio {
    grid-template-columns: 1fr;
  }

  .pricing-edu-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-edu-banner .btn {
    width: 100%;
  }

  .feature-card,
  .pricing-card,
  .workflow-step,
  .download-card,
  .support-card {
    padding: 1.1rem;
  }

  .workflow-num {
    font-size: 1.65rem;
  }

  .cta-box {
    padding: 1.75rem 1rem;
  }

  .cta-box .hero-cta {
    max-width: none;
  }

  .footer-inner {
    padding: 0 0.15rem;
  }

  .footer-links {
    gap: 0.5rem 0.85rem;
  }

  .footer-legal {
    font-size: 0.72rem;
    line-height: 1.75;
    text-align: center;
  }

  .footer-legal a {
    display: inline;
    word-break: break-all;
  }

  .footer-beian-icon {
    display: inline-block;
    vertical-align: -3px;
  }

  .site-footer {
    padding: 1.5rem 1rem 2rem;
  }

  .auth-modal {
    max-height: min(92vh, 640px);
    overflow-y: auto;
    margin: 0.5rem;
  }

  .dashboard,
  .dashboard-toolbar {
    padding-left: var(--dashboard-gutter);
    padding-right: var(--dashboard-gutter);
  }

  .card {
    padding: 1rem;
  }

  #tbl-users {
    font-size: 0.78rem;
  }

  .role-grid label.role-option {
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .site-nav .brand {
    max-width: calc(100% - 9.5rem);
    font-size: 0.88rem;
  }

  #nav-guest .btn-primary {
    padding: 0.42rem 0.6rem;
    font-size: 0.78rem;
  }

  .lang-btn {
    padding: 0.28rem 0.38rem;
  }
}

/* —— Motion & polish (CuePilot / LiveEdit–style landing) —— */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  pointer-events: none;
  box-shadow: 0 0 12px var(--accent-glow);
}

.motion-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.motion-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.28;
  animation: orbFloat 18s ease-in-out infinite;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce), (max-width: 720px) {
  .motion-orb,
  .motion-grain,
  .motion-ink-wash,
  .motion-ink-strokes,
  .motion-ink-paper,
  body::after {
    display: none;
  }
}

.motion-orb--1 {
  width: 50vmin;
  height: 50vmin;
  top: -12%;
  left: 6%;
  background: rgba(78, 196, 224, 0.09);
}

.motion-orb--2 {
  width: 42vmin;
  height: 42vmin;
  top: 30%;
  right: -10%;
  background: rgba(90, 159, 216, 0.07);
  animation-delay: -6s;
}

.motion-orb--3 {
  width: 34vmin;
  height: 34vmin;
  bottom: 4%;
  left: 16%;
  background: rgba(255, 143, 130, 0.05);
  animation-delay: -11s;
}

.motion-grid {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(78, 196, 224, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 196, 224, 0.015) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 20%, #000 12%, transparent 80%);
}

.motion-ink-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.48;
  background:
    radial-gradient(ellipse 60% 45% at 68% 12%, rgba(78, 196, 224, 0.06), transparent 74%),
    radial-gradient(ellipse 52% 42% at 6% 78%, rgba(90, 159, 216, 0.04), transparent 72%),
    radial-gradient(ellipse 44% 36% at 90% 55%, rgba(255, 143, 130, 0.03), transparent 70%);
}

.motion-ink-strokes {
  position: absolute;
  inset: -5%;
  pointer-events: none;
  opacity: 0.38;
  background-image: url("data:image/svg+xml,%3Csvg width='600' height='400' viewBox='0 0 600 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-30 120 Q180 20 380 160 T620 220' stroke='rgba(110,172,222,0.07)' fill='none' stroke-width='32' stroke-linecap='round'/%3E%3Cpath d='M60 320 Q280 180 540 300' stroke='rgba(94,184,212,0.055)' fill='none' stroke-width='22' stroke-linecap='round'/%3E%3Cpath d='M400 40 Q480 140 360 260' stroke='rgba(180,210,235,0.05)' fill='none' stroke-width='14' stroke-linecap='round'/%3E%3Cpath d='M100 200 Q200 280 320 240' stroke='rgba(126,207,196,0.04)' fill='none' stroke-width='18' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 600px 400px;
  background-repeat: repeat;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 15%, transparent 82%);
}

.motion-ink-paper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
}

.motion-scanline {
  display: none;
}

.motion-grain {
  position: absolute;
  inset: -50%;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(6) infinite;
}

@keyframes grainShift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-5%, -5%);
  }
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(2%, 4%) scale(1.06);
  }
}

.site-nav {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.site-nav.is-scrolled {
  background: rgba(3, 4, 5, 0.96);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.site-nav.is-hidden {
  transform: translateY(calc(-100% - 4px));
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-links a.is-active {
  color: var(--text);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero-shot-frame {
  transition: transform 0.35s ease-out;
  animation: heroFloat 7s ease-in-out infinite;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* 标签条在父级 data-reveal 上不用 translateY，避免与轨道 translateX 动画冲突 */
.logo-strip[data-reveal] {
  opacity: 0;
  transform: none;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.logo-strip[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.logo-strip-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

@media (min-width: 721px) {
  .logo-strip-marquee {
    max-width: 44rem;
    margin-inline: auto;
  }
}

.logo-strip-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 32s linear infinite;
}

.logo-strip-track:hover {
  animation-play-state: paused;
}

.logo-strip-items {
  display: flex;
  flex-shrink: 0;
  flex-wrap: nowrap;
  gap: 0.75rem 1.25rem;
  padding-right: 1.25rem;
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--marquee-shift, 50%)), 0, 0);
  }
}

.showcase-tab {
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease;
}

.showcase-tab:hover:not(.is-active) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.showcase-tab.is-active {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}

.showcase-media {
  position: relative;
  min-width: 0;
}

.showcase-media-glow {
  position: absolute;
  inset: -12%;
  background: radial-gradient(ellipse at 50% 40%, rgba(66, 212, 200, 0.14), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.showcase-image-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.showcase-image-btn:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.showcase-shot-img {
  transition:
    opacity 0.28s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-media.is-fading .showcase-shot-img,
.showcase-copy.is-fading {
  opacity: 0;
  transform: scale(0.98) translateY(6px);
}

.showcase-media.is-entering .showcase-shot-img,
.showcase-copy.is-entering {
  animation: showcaseIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes showcaseIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.feature-card,
.workflow-step,
.download-card,
.support-card {
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.3s ease;
}

.feature-card:hover,
.workflow-step:hover,
.download-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.workflow-steps {
  position: relative;
}

@media (min-width: 900px) {
  .workflow-steps::before {
    content: "";
    position: absolute;
    top: 2.8rem;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
    opacity: 0.35;
    pointer-events: none;
  }
}

.btn {
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--live-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.cta-box {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(66, 212, 200, 0.1), rgba(255, 138, 120, 0.08), rgba(125, 223, 255, 0.06), transparent 35%);
  animation: ctaSpin 12s linear infinite;
  pointer-events: none;
}

@keyframes ctaSpin {
  to {
    transform: rotate(360deg);
  }
}

#landing.view-exit {
  animation: pageOut 0.38s ease forwards;
}

#dashboard.view-enter {
  opacity: 0;
  transform: translateY(18px);
}

#dashboard.view-enter.view-enter-active {
  animation: pageIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#dashboard.view-exit {
  animation: pageOut 0.32s ease forwards;
}

#landing.view-enter {
  opacity: 0;
  transform: translateY(14px);
}

#landing.view-enter.view-enter-active {
  animation: pageIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pageOut {
  to {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.auth-modal-backdrop.is-open {
  animation: fadeIn 0.28s ease;
}

.auth-modal-backdrop.is-open .auth-modal {
  animation: modalIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lightbox.is-open {
  animation: fadeIn 0.25s ease;
}

.lightbox.is-open img {
  animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[open] summary {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .motion-orb,
  .motion-grid,
  .motion-grain,
  .logo-strip-track,
  .hero-shot-frame,
  .hero-live-dot,
  .hero-tally,
  .cta-box::before {
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .showcase-tabs {
    scroll-behavior: auto;
  }

  .site-nav {
    transition: none;
  }

  .site-nav.is-hidden {
    transform: none;
  }

  #landing.view-exit,
  #dashboard.view-exit,
  #landing.view-enter,
  #dashboard.view-enter {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  body.portal-splash-active .site-nav,
  body.portal-splash-active #landing,
  body.portal-splash-active .site-footer {
    filter: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .portal-splash {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--bg) !important;
  }

  .portal-splash-content::before,
  .portal-splash-bg::after,
  .portal-splash-ink {
    display: none !important;
  }

  .portal-splash--css-motion .portal-splash-logo,
  .portal-splash--css-motion .portal-splash-char,
  .portal-splash--css-motion .portal-splash-orb,
  .portal-splash--css-motion .portal-splash-reveal--line {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }
}

/* —— 门户开屏（与桌面端 appSplash 同序） —— */

body.portal-splash-active {
  overflow: hidden;
  background: var(--bg);
}

body.portal-splash-active .site-nav,
body.portal-splash-active #landing,
body.portal-splash-active .site-footer {
  visibility: visible;
  pointer-events: none;
  user-select: none;
  filter: blur(18px) saturate(0.88);
  opacity: 0.42;
  transform: translateZ(0);
}

body.portal-splash-active .motion-bg,
body.portal-splash-active .scroll-progress {
  visibility: hidden;
  pointer-events: none;
}

.portal-splash {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(8, 11, 16, 0.52);
  backdrop-filter: blur(28px) saturate(1.18);
  -webkit-backdrop-filter: blur(28px) saturate(1.18);
  isolation: isolate;
  contain: strict;
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity var(--portal-splash-fade-ms, 500ms) ease,
    backdrop-filter var(--portal-splash-fade-ms, 500ms) ease;
}

.portal-splash-corner {
  display: none;
}

.portal-splash-ink {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  opacity: 0.72;
  filter: blur(48px);
  background:
    radial-gradient(ellipse 50% 40% at 22% 32%, rgba(78, 196, 224, 0.22), transparent 74%),
    radial-gradient(ellipse 44% 36% at 80% 62%, rgba(90, 159, 216, 0.16), transparent 72%),
    radial-gradient(ellipse 48% 38% at 50% 92%, rgba(94, 184, 170, 0.12), transparent 70%);
}

.portal-splash-brush {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg width='800' height='600' viewBox='0 0 800 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-40 200 Q200 60 420 220 T780 280' stroke='rgba(110,172,222,0.08)' fill='none' stroke-width='40' stroke-linecap='round'/%3E%3Cpath d='M80 420 Q320 260 620 380' stroke='rgba(94,184,212,0.065)' fill='none' stroke-width='28' stroke-linecap='round'/%3E%3Cpath d='M500 80 Q580 180 460 320' stroke='rgba(180,210,235,0.06)' fill='none' stroke-width='20' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 25%, transparent 85%);
}

.portal-splash.is-dismissed {
  opacity: 0;
  pointer-events: none;
}

.portal-splash-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.portal-splash-bg::after {
  content: "";
  position: absolute;
  inset: -25%;
  pointer-events: none;
  opacity: 0.85;
  filter: blur(64px);
  background:
    radial-gradient(circle at 30% 25%, rgba(78, 196, 224, 0.2), transparent 42%),
    radial-gradient(circle at 72% 68%, rgba(90, 159, 216, 0.14), transparent 45%),
    radial-gradient(circle at 48% 88%, rgba(255, 143, 130, 0.1), transparent 40%);
}

.portal-splash-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(1.1rem, 3.2vh, 2.2rem);
  max-width: min(1100px, 94vw);
  padding: 6vh 28px 10vh;
  box-sizing: border-box;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.portal-splash-content::before {
  content: "";
  position: absolute;
  inset: -14% -10%;
  z-index: -1;
  border-radius: 28px;
  background: rgba(10, 16, 24, 0.38);
  border: 1px solid rgba(120, 160, 190, 0.14);
  backdrop-filter: blur(32px) saturate(1.22);
  -webkit-backdrop-filter: blur(32px) saturate(1.22);
  box-shadow:
    0 32px 96px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.portal-splash-reveal {
  display: block;
  max-width: 100%;
  margin: 0;
}

.portal-splash-reveal--mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.55rem, 2vh, 1.1rem);
}

.portal-splash-reveal--line {
  clip-path: inset(0 100% 0 0);
  opacity: 0.82;
  will-change: clip-path, opacity;
}

.portal-splash-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  filter: blur(42px);
  mix-blend-mode: screen;
  transform: scale(0.58) translateZ(0);
  will-change: transform, opacity;
}

.portal-splash-logo {
  display: block;
  width: min(88vw, 520px);
  max-width: 100%;
  height: auto;
  max-height: min(34vh, 240px);
  object-fit: contain;
  opacity: 0;
  transform: scale(0.92);
  filter: drop-shadow(0 18px 50px rgba(0, 0, 0, 0.55));
}

.portal-splash-orb--a {
  width: min(72vw, 520px);
  height: min(72vw, 520px);
  left: -12%;
  top: 8%;
  background: #4a8fb8;
}

.portal-splash-orb--b {
  width: min(58vw, 420px);
  height: min(58vw, 420px);
  right: -14%;
  bottom: 6%;
  background: #5eb8d4;
}

.portal-splash-orb--c {
  width: min(48vw, 360px);
  height: min(48vw, 360px);
  left: 28%;
  bottom: -18%;
  background: #7ecfc4;
}

.portal-splash-mark {
  font-family: var(--font-heading);
  font-size: clamp(2.85rem, 12vw, 5.25rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.05;
  color: rgba(238, 243, 248, 0.98);
  text-shadow:
    0 0 60px rgba(78, 196, 224, 0.28),
    0 8px 36px rgba(0, 0, 0, 0.55);
}

.portal-splash-line {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4.8vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.55;
  color: rgba(238, 243, 248, 0.96);
  margin: 0;
  text-shadow: 0 0 40px rgba(78, 196, 224, 0.15);
}

.portal-splash-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: color-mix(in srgb, var(--accent-blue) 50%, var(--text));
  margin: 0;
}

.portal-splash-char {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity;
}

/* Anime.js 不可用时的开屏 CSS 动画兜底 */
@keyframes portalSplashLogoIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes portalSplashCharIn {
  from {
    opacity: 0;
    transform: translateY(0.32em) rotate(-5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes portalSplashLineIn {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0.82;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes portalSplashSubIn {
  from {
    opacity: 0;
    transform: translateY(0.22em) rotate(2.5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes portalSplashOrbIn {
  from {
    opacity: 0;
    transform: scale(0.58);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.portal-splash--css-motion.is-playing .portal-splash-logo {
  animation: portalSplashLogoIn 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}

.portal-splash--css-motion.is-playing .portal-splash-char--mark {
  animation: portalSplashCharIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--char-i, 0) * 52ms);
}

.portal-splash--css-motion.is-playing .portal-splash-reveal--line {
  animation: portalSplashLineIn 1.68s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both;
}

.portal-splash--css-motion.is-playing .portal-splash-char--sub {
  animation: portalSplashSubIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(1.18s + var(--char-i, 0) * 42ms);
}

.portal-splash--css-motion.is-playing .portal-splash-orb--a {
  animation: portalSplashOrbIn 2s cubic-bezier(0.16, 1, 0.3, 1) 0.04s both;
}

.portal-splash--css-motion.is-playing .portal-splash-orb--b {
  animation: portalSplashOrbIn 2s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

.portal-splash--css-motion.is-playing .portal-splash-orb--c {
  animation: portalSplashOrbIn 2s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}
