/* ===== Fonts (single source of truth for subsetting to woff2 later) ===== */
@font-face {
  font-family: 'Google Sans';
  src: url('assets/fonts/google-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('assets/fonts/google-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('assets/fonts/google-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('assets/fonts/google-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HarmonyOS Sans SC';
  src: url('assets/fonts/harmony-sc.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== Tokens ===== */
:root {
  color-scheme: light;
  --bg: #F4F2EE;
  --surface: #FAF8F5;
  --surface-hover: #FFFFFF;
  --ink: #16181D;
  --muted: #555860;
  --dim: #7F8188;
  --rule: #DDD9D0;
  --rule-strong: #BFB9AC;
  --navy: #12237A;
  --navy-deep: #0E1B61;
  --navy-soft: rgba(18, 35, 122, 0.06);
  --gold: #C9A75E;
  --gold-light: #E6CC8F;
  --focus: #12237A;
  --wa: #25D366;
  --line-green: #06C755;
  --wechat: #07C160;
  --maxw: 840px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: "Google Sans", "HarmonyOS Sans SC", system-ui, sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

::selection {
  background: rgba(18, 35, 122, 0.16);
}

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 242, 238, 0.92);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.wordmark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  padding: 4px 0;
}

.wordmark .dot {
  color: var(--gold);
}

.brand-sep {
  width: 1px;
  height: 14px;
  background: var(--rule-strong);
}

.brand-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--navy);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 22px);
  min-width: 0;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  padding: 6px 0;
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
}

.nav-cross {
  color: var(--dim);
  padding-left: clamp(8px, 1.8vw, 16px);
  border-left: 1px solid var(--rule);
}

.nav-cross:hover,
.nav-cross:focus-visible {
  color: var(--navy);
}

/* ===== Main Container ===== */
.container {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px) clamp(16px, 4vw, 32px) clamp(56px, 8vw, 88px);
}

/* ===== Hero & Business Card ===== */
.hero {
  max-width: 760px;
  margin: 0 auto clamp(52px, 7vw, 76px);
}

.hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.micro-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}

.lang-switch {
  display: inline-flex;
  padding: 2px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.lang-btn {
  min-width: 44px;
  height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: background-color 180ms ease, color 180ms ease;
}

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

.lang-btn[aria-pressed="true"] {
  background: var(--navy);
  color: #FFFFFF;
}

/* 3D Business Card Stage */
.card-stage {
  width: 100%;
  perspective: 1400px;
}

.card-tilt {
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.card-tilt.is-tilting {
  transition: transform 80ms linear;
}

.card-rotator {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 610;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  border-radius: 6px;
}

.card-rotator.is-flipped {
  transform: rotateY(180deg);
}

.card-rotator:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 6px;
}

/* Card Faces — container query unit scaling (100cqw = card width) */
.card-face {
  position: absolute;
  inset: 0;
  container-type: inline-size;
  border-radius: 6px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  color: #FFFFFF;
  background:
    radial-gradient(ellipse 50% 72% at 84% 52%, rgba(10, 77, 162, 0.88) 0%, rgba(10, 77, 162, 0.42) 44%, rgba(18, 35, 122, 0) 78%),
    linear-gradient(115deg, #12237A 0%, #192F8F 54%, #102B84 100%);
  box-shadow:
    0 24px 52px -18px rgba(14, 24, 68, 0.34),
    0 8px 20px -8px rgba(14, 24, 68, 0.18),
    0 1px 3px rgba(14, 24, 68, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  user-select: none;
  -webkit-user-select: none;
}

.card-face--cn {
  transform: rotateY(180deg);
}

/* Subtle satin paper sheen overlay (~6% opacity) */
.card-sheen {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    128deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.025) 34%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0.035) 100%
  );
}

/* Inner Card Content Layer */
.card-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 5.5cqw 5.5cqw 9.5cqw 5.6cqw;
  display: flex;
  flex-direction: column;
}

/* Top Row: CNP Logo + Listed Company Stamp */
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2cqw;
}

.cnp-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75cqw;
  margin-left: 1.6cqw;
  margin-top: 0.25cqw;
}

.cnp-mark {
  width: 3.55cqw;
  height: 3.55cqw;
  flex: none;
  color: #FFFFFF;
}

.cnp-abbr {
  font-size: 3.95cqw;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.cnp-cn {
  font-size: 3.3cqw;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-left: 0.45cqw;
  -webkit-text-stroke: 0.05cqw #FFFFFF;
}

.card-stock {
  text-align: right;
  line-height: 1.25;
}

.card-stock--en {
  margin-top: 0.1cqw;
}

.card-stock-title {
  font-size: 1.62cqw;
  font-weight: 600;
  letter-spacing: 0.075em;
  padding-bottom: 0.45cqw;
  border-bottom: 0.13cqw solid rgba(255, 255, 255, 0.85);
}

.card-stock-code {
  font-size: 1.56cqw;
  font-weight: 600;
  letter-spacing: 0.085em;
  margin-top: 0.46cqw;
  font-variant-numeric: tabular-nums;
}

.card-stock--cn {
  margin-top: 0;
}

.card-stock-cn-line1 {
  font-size: 2.02cqw;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.card-stock-cn-line2 {
  font-size: 1.72cqw;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 0.35cqw;
  font-variant-numeric: tabular-nums;
}

/* Middle Identity Row */
.card-mid {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
}

.card-mid--en {
  margin-top: 8.6cqw;
  margin-left: 0.4cqw;
}

.card-mid--cn {
  margin-top: 8.2cqw;
  margin-left: 1.1cqw;
}

.card-name-en {
  font-size: 3.5cqw;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.1;
  white-space: nowrap;
}

.card-name-cn {
  font-size: 4.55cqw;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.1;
  white-space: nowrap;
  -webkit-text-stroke: 0.05cqw #FFFFFF;
}

.card-divider {
  width: 0.22cqw;
  height: 7.9cqw;
  flex: none;
  background: rgba(255, 255, 255, 0.92);
}

.card-divider--cn {
  height: 7.4cqw;
}

.card-role-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.card-role-en {
  font-size: 2.38cqw;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.card-mobile-en {
  display: flex;
  align-items: center;
  gap: 0.9cqw;
  margin-top: 1.1cqw;
}

.card-ico-phone-outline {
  width: 2.15cqw;
  height: 3.35cqw;
  flex: none;
}

.card-ico-wa-outline {
  width: 3.35cqw;
  height: 3.35cqw;
  flex: none;
}

.card-phone-num {
  font-size: 2.75cqw;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1;
  margin-left: 0.2cqw;
  font-variant-numeric: tabular-nums;
}

.card-role-cn {
  font-size: 2.6cqw;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.card-mobile-cn {
  font-size: 2.38cqw;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-top: 0.85cqw;
  font-variant-numeric: tabular-nums;
}

/* Lower-left Company & Contact Lines */
.card-low--en {
  margin-top: auto;
  margin-bottom: 1.7cqw;
}

.card-low--cn {
  margin-top: auto;
  margin-bottom: 0.9cqw;
}

.card-company-en {
  font-size: 2.14cqw;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.38;
  text-transform: uppercase;
}

.card-company-cn {
  font-size: 2.82cqw;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.36;
  -webkit-text-stroke: 0.03cqw #FFFFFF;
}

.card-meta {
  display: grid;
  font-size: 1.54cqw;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.card-meta--en {
  margin-top: 1.3cqw;
  gap: 0.92cqw;
}

.card-meta--cn {
  margin-top: 1.15cqw;
  gap: 0.72cqw;
}

.card-line {
  display: flex;
  align-items: center;
  gap: 0.85cqw;
  min-width: 0;
}

.card-line-split {
  display: grid;
  grid-template-columns: 44.5cqw 1fr;
  align-items: center;
  gap: 1.5cqw;
}

.card-ico {
  width: 1.65cqw;
  height: 1.65cqw;
  flex: none;
  opacity: 0.95;
}

/* Bottom Gold Ribbon & Crown SVG */
.card-ribbon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 21%;
  z-index: 1;
  pointer-events: none;
  display: block;
}

/* Caption & Identity Line Under Card */
.card-caption {
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.identity-strip {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.identity-strip h1 {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.identity-strip .name-en {
  margin-left: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.identity-role {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.identity-en {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--dim);
}

/* ===== Sections ===== */
.section {
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 68px);
}

.section:last-child {
  margin-bottom: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 20px;
}

.section-title-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-index {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.section-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.section-en {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.section-sub {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--ink);
  background: var(--surface-hover);
}

.btn-en {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

.btn-accent {
  border-color: rgba(18, 35, 122, 0.28);
  color: var(--navy);
  background: var(--surface-hover);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  border-color: var(--navy);
  background: var(--navy-soft);
}

.btn-primary {
  border-color: var(--navy);
  background: var(--navy);
  color: #FFFFFF;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  border-color: var(--navy-deep);
  background: var(--navy-deep);
  color: #FFFFFF;
}

/* ===== Contact Ledger ===== */
.contact-list {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  padding: 18px 20px;
  border-top: 1px solid var(--rule);
  transition: background-color 160ms ease;
}

.contact-row:first-child {
  border-top: 0;
}

.contact-row:hover {
  background: var(--surface-hover);
}

.contact-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.contact-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  border: 1px solid var(--rule);
  background: var(--surface-hover);
  display: grid;
  place-items: center;
}

.contact-icon--email {
  color: var(--navy);
}

.contact-icon--whatsapp {
  color: var(--wa);
}

.contact-icon--line {
  color: var(--line-green);
}

.contact-icon--wechat {
  color: var(--wechat);
}

.contact-info {
  min-width: 0;
}

.contact-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.contact-label span {
  margin-left: 4px;
}

.contact-handle {
  margin-top: 2px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.handle-prefix {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-right: 2px;
}

.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex: none;
}

/* ===== Documents & Catalogs ===== */
.docs-empty {
  padding: clamp(28px, 4.5vw, 44px) clamp(20px, 4vw, 36px);
  border: 1px dashed var(--rule-strong);
  border-radius: 3px;
  background: var(--surface);
  text-align: center;
}

.docs-empty-en {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.docs-empty-title {
  margin: 10px 0 0;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}

.docs-empty-note {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  text-wrap: balance;
}

.docs-empty-note a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(18, 35, 122, 0.35);
  transition: text-decoration-color 160ms ease;
}

.docs-empty-note a:hover,
.docs-empty-note a:focus-visible {
  text-decoration-color: var(--navy);
}

.docs-list {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  padding: 18px 20px;
  border-top: 1px solid var(--rule);
  transition: background-color 160ms ease;
}

.doc-row:first-child {
  border-top: 0;
}

.doc-row:hover {
  background: var(--surface-hover);
}

.doc-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.doc-badge {
  flex: none;
  margin-top: 2px;
  padding: 3px 7px;
  border: 1px solid rgba(18, 35, 122, 0.25);
  border-radius: 2px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-info {
  min-width: 0;
}

.doc-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.doc-title-en {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--dim);
}

.doc-desc {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.doc-meta {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--rule);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 32px) 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  color: var(--dim);
}

.copyright {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a {
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

/* ===== QR Dialog Modal ===== */
.qr-dialog {
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--surface-hover);
  color: var(--ink);
  width: min(368px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  overflow: auto;
  box-shadow: 0 24px 64px -16px rgba(14, 15, 17, 0.35);
}

.qr-dialog::backdrop {
  background: rgba(14, 15, 17, 0.56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.qr-sheet {
  padding: 20px 22px 22px;
}

.qr-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.qr-sheet-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.qr-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--surface);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: border-color 160ms ease, color 160ms ease;
}

.qr-close:hover,
.qr-close:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
}

.qr-frame {
  padding: 14px;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.qr-handle {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.qr-sheet-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  transform: translate(-50%, 14px);
  padding: 10px 18px;
  border-radius: 3px;
  background: var(--ink);
  color: #F4F2EE;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 28px -8px rgba(14, 15, 17, 0.35);
  opacity: 0;
  pointer-events: none;
  max-width: calc(100vw - 32px);
  text-align: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ===== Responsive ===== */
@media (max-width: 680px) {
  .topbar-inner {
    height: 52px;
  }

  .brand-sep,
  .brand-tag {
    display: none;
  }

  .nav {
    gap: 12px;
  }

  .nav-link {
    font-size: 13px;
  }

  .contact-row,
  .doc-row {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 14px;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .section-head {
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  .nav {
    gap: 10px;
  }

  .nav-cross {
    padding-left: 10px;
  }

  .btn {
    padding: 0 10px;
    font-size: 12.5px;
  }

  .docs-empty-title {
    font-size: 14.5px;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
