/* ============================================================
 * Raytrex Design System v2 — Trust & Authority + Swiss Modernism
 * Brand colors preserved: Lime #c0d000 / Navy #0a1421 / Silver
 * ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand (preserved) */
  --rt-lime:        #c0d000;
  --rt-lime-soft:   #a8b82e;
  --rt-lime-muted:  #8da319;
  --rt-lime-dark:   #6e8014;
  --rt-lime-glow:   rgba(192, 208, 0, 0.10);
  --rt-silver:      #c0c0c0;
  --rt-navy:        #0a1421;
  --rt-navy-2:      #0f1e2e;
  --rt-navy-3:      #1e293b;

  /* Slate (text/border scale) */
  --rt-slate-50:    #f8fafc;
  --rt-slate-100:   #f1f5f9;
  --rt-slate-200:   #e2e8f0;
  --rt-slate-300:   #cbd5e1;
  --rt-slate-400:   #94a3b8;
  --rt-slate-500:   #64748b;
  --rt-slate-600:   #475569;
  --rt-slate-700:   #334155;
  --rt-slate-800:   #1e293b;
  --rt-slate-900:   #0f1e2e;

  /* Surface */
  --rt-bg:          #f8fafc;
  --rt-card:        #ffffff;

  /* Semantic */
  --rt-success:     #059669;
  --rt-warning:     #ea580c;
  --rt-danger:      #dc2626;

  /* Typography — CJK-first stack (中文網站的內文最佳做法) */
  --rt-font-ui:     'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', 'Inter', system-ui, sans-serif;
  --rt-font-display:'Inter', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --rt-font-num:    'IBM Plex Mono', 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  /* Spacing scale (8px base) */
  --rt-1: 8px;   --rt-2: 16px; --rt-3: 24px; --rt-4: 32px;
  --rt-5: 48px;  --rt-6: 64px; --rt-7: 96px; --rt-8: 128px;

  /* Shape */
  --rt-r-sm: 4px;
  --rt-r:    6px;
  --rt-r-lg: 8px;

  /* Layout */
  --rt-container:  1200px;
  --rt-container-narrow: 960px;
  --rt-grid-gap:   24px;
  --rt-topbar-h:   40px;
  --rt-header-h:   104px;

  /* Shadow */
  --rt-sh-sm:  0 1px 2px rgba(15, 30, 46, 0.05);
  --rt-sh:     0 4px 12px rgba(15, 30, 46, 0.06);
  --rt-sh-lg:  0 8px 24px rgba(15, 30, 46, 0.10);
  --rt-sh-up:  0 12px 32px rgba(15, 30, 46, 0.12);

  /* Motion */
  --rt-ease:   cubic-bezier(.4, 0, .2, 1);
  --rt-ease-out: cubic-bezier(0, 0, .2, 1);
  --rt-t-fast: 150ms;
  --rt-t:      200ms;
  --rt-t-slow: 300ms;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
body {
  margin: 0;
  font-family: var(--rt-font-ui);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--rt-slate-900);
  background: var(--rt-card);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--rt-slate-900); text-decoration: none; transition: color var(--rt-t-fast) var(--rt-ease); }
a:hover { color: var(--rt-lime-muted); }
button { font-family: inherit; }
::selection { background: var(--rt-lime-glow); color: var(--rt-slate-900); }

/* Focus rings (a11y) */
:focus-visible {
  outline: 2px solid var(--rt-lime-soft);
  outline-offset: 2px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--rt-font-display);
  color: var(--rt-slate-900);
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin: 0 0 var(--rt-2);
  font-feature-settings: "ss01", "cv11";
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 700; line-height: 1.22; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
p  { margin: 0 0 var(--rt-2); }
strong { font-weight: 600; color: var(--rt-slate-900); }
.rt-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.75;
  color: var(--rt-slate-600);
  font-weight: 400;
  margin: 0 0 var(--rt-3);
  letter-spacing: -0.005em;
}
.rt-eyebrow {
  display: inline-block;
  font-family: var(--rt-font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rt-lime-muted);
}
.rt-num {
  font-family: var(--rt-font-num);
  font-variant-numeric: tabular-nums;
}
code, kbd, samp, pre {
  font-family: var(--rt-font-num);
  font-size: 0.92em;
}
code {
  background: var(--rt-slate-100);
  padding: 2px 6px;
  border-radius: var(--rt-r-sm);
  color: var(--rt-slate-800);
}

/* ---------- Layout primitives ---------- */
.rt-container {
  max-width: var(--rt-container);
  margin: 0 auto;
  padding: 0 var(--rt-3);
}
.rt-container-narrow {
  max-width: var(--rt-container-narrow);
  margin: 0 auto;
  padding: 0 var(--rt-3);
}
.rt-section {
  padding: var(--rt-7) 0;
}
.rt-section-tight {
  padding: var(--rt-5) 0;
}
.rt-section-alt { background: var(--rt-bg); }
.rt-section-dark { background: var(--rt-navy); color: var(--rt-slate-100); }
.rt-section-dark h1, .rt-section-dark h2, .rt-section-dark h3 { color: #fff; }

.rt-section-head {
  text-align: center;
  margin-bottom: var(--rt-5);
}
.rt-section-head h2 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  margin-top: var(--rt-1);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.rt-section-head .rt-lead {
  max-width: 640px;
  margin: var(--rt-1) auto 0;
}

/* ---------- TOPBAR ---------- */
.rt-topbar {
  background: var(--rt-navy);
  color: var(--rt-slate-300);
  font-size: 0.85rem;
  height: var(--rt-topbar-h);
  display: flex;
  align-items: center;
}
.rt-topbar > div {
  width: 100%;
  max-width: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 var(--rt-3);
}
.rt-lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 3px;
}
.rt-lang {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--rt-slate-400);
  letter-spacing: 0.04em;
  transition: all var(--rt-t-fast) var(--rt-ease);
  text-decoration: none;
}
.rt-lang:hover {
  color: var(--rt-lime);
  background: rgba(192, 208, 0, 0.08);
}
.rt-lang.active {
  background: var(--rt-lime);
  color: var(--rt-navy);
  font-weight: 600;
}
.rt-lang.active:hover {
  background: var(--rt-lime);
  color: var(--rt-navy);
}
.rt-lang-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- HEADER ---------- */
.rt-header {
  background: var(--rt-card);
  border-bottom: 1px solid var(--rt-slate-200);
  height: var(--rt-header-h);
  position: sticky;
  top: 0;
  z-index: 100;
}
.rt-header .rt-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.rt-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rt-logo img {
  height: 72px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}
@media (max-width: 768px) {
  .rt-logo img { height: 44px; }
}
.rt-nav {
  display: flex;
  align-items: center;
  gap: var(--rt-1);
}
.rt-nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--rt-slate-700);
  border-radius: var(--rt-r-sm);
  transition: all var(--rt-t-fast) var(--rt-ease);
}
.rt-nav a::after {
  content: "";
  position: absolute;
  bottom: 4px; left: 16px; right: 16px;
  height: 2px;
  background: var(--rt-lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--rt-t) var(--rt-ease);
}
.rt-nav a:hover { color: var(--rt-slate-900); background: var(--rt-slate-50); }
.rt-nav a:hover::after,
.rt-nav a.active::after { transform: scaleX(1); }
.rt-nav a.active { color: var(--rt-slate-900); font-weight: 600; }
.rt-nav-cta {
  margin-left: var(--rt-1);
}

/* ---------- NAV DROPDOWNS ---------- */
.rt-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.rt-nav-parent {
  display: flex !important;
  align-items: center !important;
  gap: 4px;
}

.rt-nav-chevron {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform var(--rt-t-fast) var(--rt-ease), opacity var(--rt-t-fast) var(--rt-ease);
}

/* Transparent bridge fills the gap between nav item and dropdown,
   keeping .rt-nav-item:hover active as the mouse passes through */
.rt-has-dropdown::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.rt-nav-item:hover .rt-nav-chevron,
.rt-nav-item.is-open .rt-nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.rt-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 184px;
  background: var(--rt-card);
  border: 1px solid var(--rt-slate-200);
  border-radius: var(--rt-r-lg);
  box-shadow: var(--rt-sh-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity var(--rt-t-fast) var(--rt-ease),
    transform var(--rt-t-fast) var(--rt-ease),
    visibility 0ms var(--rt-t-fast);
  z-index: 200;
}

.rt-nav-item:hover .rt-dropdown,
.rt-nav-item.is-open .rt-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity var(--rt-t-fast) var(--rt-ease),
    transform var(--rt-t-fast) var(--rt-ease),
    visibility 0ms;
}

.rt-dropdown a {
  display: block !important;
  padding: 9px 13px !important;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--rt-slate-700);
  border-radius: var(--rt-r-sm);
  white-space: nowrap;
  width: auto !important;
  transition: background var(--rt-t-fast) var(--rt-ease), color var(--rt-t-fast) var(--rt-ease);
}

.rt-dropdown a::after {
  display: none !important;
}

.rt-dropdown a:hover {
  background: var(--rt-slate-50);
  color: var(--rt-slate-900);
}

.rt-dropdown-divider {
  height: 1px;
  background: var(--rt-slate-100);
  margin: 4px 6px;
}

/* ---------- BUTTONS ---------- */
.rt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--rt-r-sm);
  font-family: var(--rt-font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all var(--rt-t) var(--rt-ease);
  text-decoration: none;
  white-space: nowrap;
}
.rt-btn:hover { transform: translateY(-1px); }
.rt-btn:active { transform: translateY(0); }

.rt-btn-primary {
  background: var(--rt-navy);
  color: #fff;
  border-color: var(--rt-navy);
}
.rt-btn-primary:hover { background: var(--rt-navy-3); color: #fff; box-shadow: var(--rt-sh); }

.rt-btn-cta {
  background: var(--rt-lime);
  color: var(--rt-navy);
  border-color: var(--rt-lime);
  font-weight: 700;
}
.rt-btn-cta:hover { background: var(--rt-lime-soft); border-color: var(--rt-lime-soft); color: var(--rt-navy); box-shadow: 0 4px 12px var(--rt-lime-glow); }

.rt-btn-outline {
  background: transparent;
  color: var(--rt-slate-900);
  border-color: var(--rt-slate-300);
}
.rt-btn-outline:hover { border-color: var(--rt-slate-700); background: var(--rt-slate-50); color: var(--rt-slate-900); }

.rt-btn-on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.30);
}
.rt-btn-on-dark:hover { border-color: var(--rt-lime); color: var(--rt-lime); background: rgba(192, 208, 0, 0.08); }

.rt-btn-icon::after {
  content: "→";
  font-weight: 400;
  transition: transform var(--rt-t-fast) var(--rt-ease);
}
.rt-btn-icon:hover::after { transform: translateX(4px); }

/* ---------- HERO ---------- */
.rt-hero {
  position: relative;
  padding: calc(var(--rt-8) + 16px) 0 calc(var(--rt-7) + 24px);
  background:
    radial-gradient(ellipse 60% 40% at 18% 12%, rgba(192, 208, 0, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 88%, rgba(91, 155, 213, 0.10) 0%, transparent 65%),
    linear-gradient(135deg, var(--rt-navy) 0%, #111e30 50%, var(--rt-navy) 100%);
  color: #fff;
  overflow: hidden;
}
.rt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}
.rt-hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 208, 0, 0.4) 50%, transparent);
}
.rt-hero .rt-container {
  position: relative;
  z-index: 1;
  text-align: left;
}
.rt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: var(--rt-5);
  align-items: center;
}
@media (max-width: 900px) {
  .rt-hero-grid { grid-template-columns: 1fr; }
  .rt-hero-grid > .rt-hero-tags { display: none; }
}

/* Hero Tag Panel — service pillars list */
.rt-hero-tags {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}
.rt-hero-tags-item {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.05rem 1.25rem 1.05rem 1.15rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 1rem;
  row-gap: 4px;
  transition: all var(--rt-t) var(--rt-ease);
  text-decoration: none;
  overflow: hidden;
}
.rt-hero-tags-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--rt-lime);
  opacity: 0;
  transition: opacity var(--rt-t) var(--rt-ease);
}
.rt-hero-tags-item:hover {
  background: linear-gradient(135deg, rgba(192,208,0,0.10), rgba(192,208,0,0.02));
  border-color: rgba(192, 208, 0, 0.35);
  transform: translateX(2px);
}
.rt-hero-tags-item:hover::before { opacity: 1; }
.rt-hero-tags-item .rt-htag-icon {
  grid-row: 1 / span 2;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(192, 208, 0, 0.10);
  border: 1px solid rgba(192, 208, 0, 0.28);
  border-radius: 10px;
  flex-shrink: 0;
}
.rt-hero-tags-item .rt-htag-icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--rt-lime); stroke-width: 1.85;
  stroke-linecap: round; stroke-linejoin: round;
}
.rt-hero-tags-item .rt-htag-label {
  font-family: var(--rt-font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1.2;
}
.rt-hero-tags-item small {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--rt-lime);
  letter-spacing: 0.10em;
  font-family: var(--rt-font-num);
}
@media (max-width: 700px) {
  .rt-hero-tags-item .rt-htag-label { font-size: 1.08rem; }
  .rt-hero-tags-item small { font-size: 0.82rem; letter-spacing: 0.08em; }
}
.rt-hero .rt-eyebrow {
  color: var(--rt-lime);
  background: rgba(192, 208, 0, 0.08);
  border: 1px solid rgba(192, 208, 0, 0.30);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: var(--rt-3);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}
.rt-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 var(--rt-3);
}
.rt-hero-sub {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.7;
  color: rgba(232, 236, 241, 0.85);
  max-width: 640px;
  margin: 0 0 var(--rt-5);
  font-weight: 400;
}
.rt-hero-sub strong { color: var(--rt-lime); font-weight: 600; }
.rt-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: var(--rt-4);
}
.rt-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-top: var(--rt-3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(232, 236, 241, 0.55);
}
.rt-hero-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rt-lime);
  box-shadow: 0 0 8px rgba(192, 208, 0, 0.6);
  display: inline-block;
}

/* ---------- TRUST STRIP ---------- */
.rt-trust-strip {
  background:
    linear-gradient(180deg, #0c1a2c 0%, var(--rt-navy-2) 100%);
  color: var(--rt-slate-100);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: var(--rt-5) 0;
  position: relative;
}
.rt-trust-strip::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--rt-lime);
}
.rt-trust-eyebrow {
  display: block;
  text-align: center;
  font-family: var(--rt-font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rt-lime);
  margin-bottom: var(--rt-3);
}
.rt-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  align-items: stretch;
}
.rt-trust-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: var(--rt-2) var(--rt-3);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  transition: background var(--rt-t) var(--rt-ease);
}
.rt-trust-item:first-child { border-left: none; }
.rt-trust-item:hover { background: rgba(255, 255, 255, 0.02); }
.rt-trust-item:hover .rt-trust-icon {
  color: var(--rt-navy);
  background: var(--rt-lime);
  border-color: var(--rt-lime);
  transform: scale(1.05);
}
.rt-trust-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(192, 208, 0, 0.08);
  border: 1px solid rgba(192, 208, 0, 0.22);
  border-radius: var(--rt-r);
  color: var(--rt-lime);
  transition: all var(--rt-t) var(--rt-ease);
}
.rt-trust-icon svg { width: 28px; height: 28px; stroke-width: 2; }
.rt-trust-value {
  font-family: var(--rt-font-display);
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.rt-trust-value .rt-trust-plus {
  color: var(--rt-lime);
  margin-left: 2px;
}
.rt-trust-label {
  font-size: 0.88rem;
  color: var(--rt-slate-300);
  letter-spacing: 0.02em;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .rt-trust-strip { padding: var(--rt-3) 0; }
  .rt-trust-grid { grid-template-columns: 1fr 1fr; }
  .rt-trust-item { padding: var(--rt-2); gap: 12px; }
  .rt-trust-icon { width: 44px; height: 44px; }
  .rt-trust-icon svg { width: 22px; height: 22px; }
  .rt-trust-value { font-size: 1.6rem; }
  .rt-trust-item:nth-child(3) { border-left: none; }
  .rt-trust-item:nth-child(3),
  .rt-trust-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.07); }
}

/* ---------- CARDS ---------- */
.rt-cards {
  display: grid;
  gap: var(--rt-3);
}
.rt-cards-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.rt-cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.rt-cards-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.rt-card {
  position: relative;
  background: var(--rt-card);
  border: 1px solid var(--rt-slate-200);
  border-radius: var(--rt-r);
  padding: var(--rt-3);
  text-decoration: none;
  color: var(--rt-slate-900);
  transition: transform var(--rt-t) var(--rt-ease),
              box-shadow var(--rt-t) var(--rt-ease),
              border-color var(--rt-t) var(--rt-ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rt-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rt-lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--rt-t-slow) var(--rt-ease);
}
a.rt-card:hover {
  border-color: var(--rt-slate-300);
  box-shadow: var(--rt-sh-lg);
  transform: translateY(-3px);
  color: var(--rt-slate-900);
}
a.rt-card:hover::before { transform: scaleX(1); }
a.rt-card:hover .rt-card-img { background: #fff; }
a.rt-card:hover .rt-card-img img { transform: scale(1.04); }
a.rt-card:hover .rt-card-cta { color: var(--rt-lime-dark); gap: 8px; }

.rt-card.rt-card-static::before { transform: scaleX(1); opacity: 0.5; }
.rt-card.rt-card-static:hover .rt-card-icon {
  background: var(--rt-lime);
  border-color: var(--rt-lime);
}
.rt-card.rt-card-static:hover .rt-card-icon svg { stroke: var(--rt-navy); }

.rt-card-img {
  background:
    linear-gradient(180deg, var(--rt-slate-50) 0%, #ffffff 100%);
  border-radius: var(--rt-r-sm);
  margin: calc(-1 * var(--rt-3)) calc(-1 * var(--rt-3)) var(--rt-3);
  margin-top: -1px;
  border-bottom: 1px solid var(--rt-slate-200);
  padding: var(--rt-3);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background var(--rt-t) var(--rt-ease);
}
.rt-card-img::after {
  content: "";
  position: absolute;
  top: 12px; right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rt-lime);
  opacity: 0.5;
}
.rt-card-img img {
  max-height: 150px;
  object-fit: contain;
  margin: 0 auto;
  transition: transform var(--rt-t-slow) var(--rt-ease);
}
.rt-card .rt-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--rt-lime-glow);
  border: 1px solid rgba(192, 208, 0, 0.18);
  border-radius: var(--rt-r-sm);
  margin-bottom: var(--rt-2);
  transition: all var(--rt-t) var(--rt-ease);
}
.rt-card .rt-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--rt-lime-muted);
  stroke-width: 1.75;
  fill: none;
  transition: stroke var(--rt-t) var(--rt-ease);
}
.rt-card h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.rt-card p,
.rt-card-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--rt-slate-600);
  margin: 0;
}
.rt-card-body p { margin: 0 0 6px; }
.rt-card-body p:last-child { margin: 0; }
.rt-card-body strong { color: var(--rt-slate-800); }
.rt-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: var(--rt-2);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rt-lime-muted);
  transition: gap var(--rt-t-fast) var(--rt-ease),
              color var(--rt-t-fast) var(--rt-ease);
}
.rt-card-cta::after {
  content: "→";
  transition: transform var(--rt-t-fast) var(--rt-ease);
}

/* ---------- TIMELINE ---------- */
.rt-timeline {
  list-style: none;
  padding: 0;
  margin: var(--rt-4) 0;
  position: relative;
}
.rt-timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--rt-slate-200);
}
.rt-timeline-item {
  position: relative;
  padding: 0 0 var(--rt-4) var(--rt-4);
}
.rt-timeline-item::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 20px; height: 20px;
  background: var(--rt-card);
  border: 3px solid var(--rt-navy);
  border-radius: 50%;
}
.rt-timeline-item:first-child::before {
  border-color: var(--rt-lime);
  background: var(--rt-lime);
}
.rt-timeline-year {
  display: inline-block;
  font-family: var(--rt-font-num);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rt-slate-700);
  background: var(--rt-slate-100);
  padding: 4px 10px;
  border-radius: var(--rt-r-sm);
  margin-bottom: var(--rt-1);
}
.rt-timeline-item:first-child .rt-timeline-year {
  color: var(--rt-lime-dark);
  background: var(--rt-lime-glow);
}
.rt-timeline-item h3 { margin: 6px 0 4px; font-size: 1.05rem; }
.rt-timeline-item p { color: var(--rt-slate-600); margin: 0; font-size: 0.95rem; }

/* ---------- TABLE ---------- */
.rt-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--rt-card);
  border: 1px solid var(--rt-slate-200);
  border-radius: var(--rt-r);
  overflow: hidden;
}
.rt-table th, .rt-table td {
  padding: 12px 16px;
  text-align: left;
}
.rt-table th {
  background: var(--rt-slate-50);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rt-slate-700);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rt-slate-200);
}
.rt-table td {
  border-bottom: 1px solid var(--rt-slate-200);
  font-size: 0.95rem;
}
.rt-table tr:last-child td { border-bottom: none; }
.rt-table tr:hover { background: var(--rt-slate-50); }
.rt-table .rt-num { color: var(--rt-slate-700); font-weight: 500; }

/* ---------- CTA BAND ---------- */
.rt-cta-band {
  position: relative;
  background:
    linear-gradient(135deg, var(--rt-navy) 0%, var(--rt-navy-2) 100%);
  color: #fff;
  padding: var(--rt-6) 0;
  overflow: hidden;
}
.rt-cta-band::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rt-lime);
}
.rt-cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 var(--rt-2);
  color: #fff;
}
.rt-cta-band p { color: rgba(232, 236, 241, 0.85); margin: 0 0 var(--rt-3); }
.rt-cta-band .rt-container { text-align: center; max-width: 720px; }
.rt-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- BREADCRUMB ---------- */
.rt-breadcrumb {
  font-size: 0.85rem;
  color: var(--rt-slate-500);
  padding: var(--rt-2) 0;
  border-bottom: 1px solid var(--rt-slate-200);
  background: var(--rt-bg);
}
.rt-breadcrumb a { color: var(--rt-slate-500); }
.rt-breadcrumb a:hover { color: var(--rt-lime-muted); }
.rt-breadcrumb .sep { margin: 0 8px; color: var(--rt-slate-300); }
.rt-breadcrumb .current { color: var(--rt-slate-700); font-weight: 500; }

/* ---------- PAGE HEADER ---------- */
.rt-page-header {
  padding: var(--rt-6) 0 var(--rt-4);
  border-bottom: 1px solid var(--rt-slate-200);
  background: var(--rt-bg);
}
.rt-page-header h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: var(--rt-1) 0 var(--rt-3);
  font-family: var(--rt-font-display);
}
.rt-page-header .rt-lead {
  margin-bottom: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}
.rt-page-header .rt-eyebrow { font-size: 0.78rem; }

/* ---------- SECTION INTRO ---------- */
.rt-section-intro {
  max-width: 760px;
  margin: 0 auto var(--rt-4);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--rt-slate-600);
  text-align: left;
}
.rt-section-intro p { margin: 0 0 var(--rt-1); }
.rt-section-intro p:last-child { margin: 0; }

/* ---------- KEYSIGHT PRODUCT BLOCK ---------- */
.rt-product {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--rt-3);
  align-items: start;
  padding: var(--rt-3);
  background: var(--rt-card);
  border: 1px solid var(--rt-slate-200);
  border-radius: var(--rt-r);
  margin: var(--rt-2) 0;
  transition: border-color var(--rt-t) var(--rt-ease),
              box-shadow var(--rt-t) var(--rt-ease);
}
.rt-product:hover {
  border-color: var(--rt-slate-300);
  box-shadow: var(--rt-sh);
}
.rt-product-img {
  background: linear-gradient(180deg, var(--rt-slate-50) 0%, #fff 100%);
  border-radius: var(--rt-r-sm);
  padding: var(--rt-2);
  border: 1px solid var(--rt-slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}
.rt-product-img img {
  max-height: 180px;
  width: 100%;
  object-fit: contain;
  margin: 0;
}
.rt-product-img.placeholder {
  color: var(--rt-slate-400);
  font-family: var(--rt-font-num);
  font-size: 0.85rem;
}
.rt-product h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 600;
}
.rt-product .rt-product-model {
  display: inline-block;
  font-family: 'IBM Plex Mono', 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rt-navy);
  margin-bottom: 10px;
  letter-spacing: 0;
  line-height: 1.3;
  background: var(--rt-lime);
  padding: 2px 8px;
}
.rt-product p { margin: 0 0 var(--rt-2); color: var(--rt-slate-600); font-size: 0.95rem; line-height: 1.65; }
.rt-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--rt-2);
}
.rt-product-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--rt-slate-100);
  color: var(--rt-slate-700);
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: var(--rt-r-sm);
  letter-spacing: 0.02em;
}
.rt-product-tag.featured {
  background: var(--rt-lime-glow);
  color: var(--rt-lime-dark);
  border: 1px solid rgba(192, 208, 0, 0.3);
}
[data-page="products-semiconductor"] .rt-product-tag,
[data-page="products-en-semiconductor"] .rt-product-tag,
.rt-product-tag.is-lime {
  background: var(--rt-lime-glow);
  color: var(--rt-lime-dark);
  border: 1px solid rgba(192, 208, 0, 0.3);
}
.rt-keysight-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--rt-card);
  color: var(--rt-slate-700);
  border: 1px solid var(--rt-slate-300);
  border-radius: var(--rt-r-sm);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--rt-t-fast) var(--rt-ease);
}
.rt-keysight-link::after {
  content: "↗";
  font-size: 0.9em;
}
.rt-keysight-link:hover {
  border-color: var(--rt-lime-soft);
  color: var(--rt-lime-dark);
  background: var(--rt-slate-50);
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .rt-product { grid-template-columns: 1fr; }
  .rt-product-img { min-height: 200px; }
}

/* ---------- PRODUCT SPECS (within .rt-product) ---------- */
.rt-product-specs {
  list-style: none;
  margin: var(--rt-2) 0;
  padding: 12px 14px;
  background: var(--rt-slate-50);
  border: 1px solid var(--rt-slate-200);
  border-radius: var(--rt-r-sm);
}
.rt-product-specs li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--rt-2);
  padding: 7px 0;
  font-size: 0.88rem;
  color: var(--rt-slate-700);
  line-height: 1.55;
  border-bottom: 1px dashed var(--rt-slate-200);
}
.rt-product-specs li:last-child { border-bottom: none; }
.rt-product-specs li > span:first-child {
  color: var(--rt-slate-500);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.rt-spec-pending {
  color: var(--rt-slate-400);
  font-style: italic;
  font-size: 0.85rem;
}

/* ---------- PRODUCT FOOTER ACTIONS ---------- */
.rt-product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rt-2);
  margin-top: var(--rt-2);
}
.rt-product-stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--rt-lime-glow);
  color: var(--rt-lime-dark);
  border: 1px solid rgba(192, 208, 0, 0.3);
  border-radius: var(--rt-r-sm);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.rt-product-stats::before {
  content: "✓";
  font-weight: 700;
}

/* ---------- PRODUCT APPLICATIONS (typical use cases) ---------- */
.rt-product-applications {
  list-style: none;
  margin: var(--rt-2) 0;
  padding: 14px 16px;
  background: var(--rt-slate-50);
  border: 1px solid var(--rt-slate-200);
  border-radius: var(--rt-r-sm);
}
.rt-product-applications::before {
  content: "典型應用";
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rt-slate-500);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.rt-product-applications li {
  position: relative;
  padding: 4px 0 4px 16px;
  font-size: 0.9rem;
  color: var(--rt-slate-700);
  line-height: 1.55;
}
.rt-product-applications li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--rt-lime);
  border-radius: 50%;
}

/* ---------- PRODUCT CUSTOMER (主要客群 footer pill) ---------- */
.rt-product-customer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--rt-slate-100);
  color: var(--rt-slate-700);
  border-radius: var(--rt-r-sm);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.rt-product-customer::before {
  content: "主要客群";
  color: var(--rt-slate-500);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

/* ---------- IMAGE PLACEHOLDER (products awaiting real image) ---------- */
.rt-product-img-pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 180px;
  padding: 32px 16px;
  background: var(--rt-slate-100);
  border: 1px dashed var(--rt-slate-300);
  border-radius: var(--rt-r-sm);
  text-align: center;
}
.rt-product-img-pending strong {
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rt-slate-700);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.rt-product-img-pending small {
  font-size: 0.76rem;
  color: var(--rt-slate-500);
  font-style: italic;
}

/* ---------- CASE STUDIES ---------- */
.rt-cases {
  display: grid;
  gap: var(--rt-3);
  margin: var(--rt-2) 0 var(--rt-3);
}
.rt-case {
  background: var(--rt-card);
  border: 1px solid var(--rt-slate-200);
  border-left: 3px solid var(--rt-lime);
  border-radius: var(--rt-r);
  padding: var(--rt-3);
  transition: border-color var(--rt-t) var(--rt-ease),
              box-shadow var(--rt-t) var(--rt-ease);
}
.rt-case:hover {
  border-color: var(--rt-slate-300);
  border-left-color: var(--rt-lime);
  box-shadow: var(--rt-sh);
}
.rt-case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rt-2);
  margin-bottom: 10px;
}
.rt-case-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--rt-navy);
  color: var(--rt-lime);
  font-family: var(--rt-font-num);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--rt-r-sm);
  text-transform: uppercase;
}
.rt-case h4 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--rt-slate-900);
  line-height: 1.4;
}
.rt-case-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: var(--rt-2);
  padding: 9px 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--rt-slate-700);
  border-top: 1px dashed var(--rt-slate-200);
}
.rt-case-row:first-of-type { border-top: none; }
.rt-case-label {
  color: var(--rt-slate-500);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding-top: 3px;
  text-transform: uppercase;
}
.rt-case-row.outcome .rt-case-label { color: var(--rt-lime-dark); }
.rt-case-row.outcome > div:last-child {
  color: var(--rt-slate-900);
  font-weight: 500;
}
.rt-case-products {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: var(--rt-2);
  border-top: 1px solid var(--rt-slate-200);
}
.rt-case-products-label {
  color: var(--rt-slate-500);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 4px;
  align-self: center;
}

@media (max-width: 600px) {
  .rt-product-specs li { grid-template-columns: 1fr; gap: 2px; }
  .rt-case-row { grid-template-columns: 1fr; gap: 2px; }
  .rt-case-label { padding-top: 0; }
}

/* ---------- DIAGRAM / SCREENSHOT FIGURE ---------- */
.rt-figure {
  margin: var(--rt-3) 0;
  padding: var(--rt-2);
  background: var(--rt-card);
  border: 1px solid var(--rt-slate-200);
  border-radius: var(--rt-r);
  text-align: center;
  transition: border-color var(--rt-t) var(--rt-ease);
}
.rt-figure:hover { border-color: var(--rt-slate-300); }
.rt-figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--rt-r-sm);
  margin: 0 auto;
}
.rt-figure figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--rt-slate-500);
  font-style: italic;
}
.rt-figure-eyebrow {
  display: block;
  font-family: var(--rt-font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rt-lime-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.rt-figure-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: var(--rt-2);
  margin: var(--rt-3) 0;
}
.rt-figure-row .rt-figure { margin: 0; }

/* ---------- NOTE / CALLOUT ---------- */
.rt-note {
  font-size: 0.92rem;
  color: var(--rt-slate-600);
  margin: var(--rt-2) 0;
  padding: var(--rt-2);
  background: var(--rt-slate-50);
  border-left: 3px solid var(--rt-lime);
  border-radius: 0 var(--rt-r-sm) var(--rt-r-sm) 0;
}

/* ---------- FOOTER ---------- */
.rt-footer {
  background: var(--rt-navy);
  color: var(--rt-slate-400);
  padding: var(--rt-6) 0 var(--rt-3);
  font-size: 0.92rem;
}
.rt-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 var(--rt-2);
  letter-spacing: 0.02em;
}
.rt-footer a { color: var(--rt-slate-300); }
.rt-footer a:hover { color: var(--rt-lime); }
.rt-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: var(--rt-4);
  margin-bottom: var(--rt-5);
}
.rt-footer-grid ul { list-style: none; padding: 0; margin: 0; }
.rt-footer-grid li { margin-bottom: 8px; }
.rt-footer-brand img { height: 32px; margin-bottom: var(--rt-2); filter: brightness(0) invert(1) opacity(0.85); }
.rt-footer-brand p { color: var(--rt-slate-400); font-size: 0.88rem; line-height: 1.65; }
.rt-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--rt-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--rt-slate-500);
}
@media (max-width: 768px) {
  .rt-footer-grid { grid-template-columns: 1fr 1fr; }
  .rt-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ---------- LOGO WALL ---------- */
.rt-logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--rt-2);
  align-items: stretch;
}
@media (max-width: 900px) {
  .rt-logo-wall { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .rt-logo-wall { grid-template-columns: repeat(2, 1fr); }
}
.rt-logo-wall .rt-logo-cell {
  min-height: 76px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--rt-card);
  border: 1px solid var(--rt-slate-200);
  border-radius: var(--rt-r-sm);
  color: var(--rt-slate-700);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.35;
  transition: all var(--rt-t) var(--rt-ease);
}
.rt-logo-wall .rt-logo-cell small {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--rt-slate-500);
  letter-spacing: 0;
}
.rt-logo-wall .rt-logo-cell:hover {
  border-color: var(--rt-lime-soft);
  color: var(--rt-slate-900);
  box-shadow: 0 4px 12px var(--rt-lime-glow);
  transform: translateY(-2px);
}
.rt-logo-wall .rt-logo-cell:hover small { color: var(--rt-slate-700); }

/* ---------- MOBILE NAV ---------- */
.rt-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--rt-slate-300);
  width: 40px; height: 40px;
  border-radius: var(--rt-r-sm);
  cursor: pointer;
  padding: 8px;
}
.rt-burger svg { width: 22px; height: 22px; stroke: var(--rt-slate-700); }
.rt-mobile-lang-switch { display: none; }

@media (max-width: 768px) {
  .rt-topbar { display: none; }
  .rt-header { height: 60px; }
  .rt-logo img { height: 30px; }
  .rt-nav-cta { display: none; }
  .rt-burger { display: flex; align-items: center; justify-content: center; }
  .rt-nav {
    display: none;
    position: fixed;
    top: var(--rt-header-h, 60px); left: 0; right: 0;
    max-height: calc(100dvh - var(--rt-header-h, 60px));
    flex-direction: column;
    background: var(--rt-card);
    border-bottom: 1px solid var(--rt-slate-200);
    padding: var(--rt-2) 0;
    gap: 0;
    box-shadow: var(--rt-sh-lg);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 120;
  }
  .rt-nav.is-open { display: flex; }
  .rt-nav a { padding: 14px var(--rt-3); width: 100%; border-radius: 0; text-align: left; }
  .rt-nav a::after { display: none; }
  .rt-nav .rt-mobile-lang-switch {
    display: inline-flex;
    align-self: flex-start;
    margin: 8px var(--rt-3) 12px;
  }
  .rt-nav .rt-mobile-lang-switch .rt-lang {
    width: auto;
    padding: 4px 12px;
    border-radius: 999px;
    text-align: center;
  }
  /* Mobile dropdown — expand inline */
  .rt-nav-item { flex-direction: column; align-items: stretch; width: 100%; }
  .rt-nav-chevron { display: none; }
  .rt-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--rt-slate-100);
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin: 0 0 6px calc(var(--rt-3) + 4px);
    display: block;
  }
  .rt-dropdown a { padding: 10px var(--rt-2) !important; font-size: 0.875rem; color: var(--rt-slate-600); }
  .rt-dropdown a:hover { background: var(--rt-slate-50); color: var(--rt-slate-900); }
  .rt-dropdown-divider { display: none; }
  .rt-section { padding: var(--rt-5) 0; }
  .rt-hero { padding: var(--rt-6) 0; }
  .rt-trust-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Markdown body utility ---------- */
.rt-prose { max-width: none; line-height: 1.75; }
.rt-prose h2 {
  font-size: 1.5rem;
  margin: var(--rt-4) 0 var(--rt-2);
  padding-bottom: var(--rt-1);
  border-bottom: 1px solid var(--rt-slate-200);
}
.rt-prose h3 { margin: var(--rt-3) 0 var(--rt-1); font-size: 1.15rem; }
.rt-prose ul, .rt-prose ol { padding-left: var(--rt-3); }
.rt-prose li { margin: 6px 0; }
.rt-prose blockquote {
  margin: var(--rt-2) 0;
  padding: 12px var(--rt-2);
  border-left: 3px solid var(--rt-lime);
  background: var(--rt-slate-50);
  color: var(--rt-slate-700);
  font-style: normal;
}
.rt-prose blockquote p { margin: 0; }
.rt-prose img { border-radius: var(--rt-r-sm); margin: var(--rt-2) 0; }

/* ---------- SCROLL FADE-IN ---------- */
.rt-fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--rt-ease-out),
              transform 600ms var(--rt-ease-out);
}
.rt-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.rt-fade-in[data-delay="1"].is-visible { transition-delay: 80ms; }
.rt-fade-in[data-delay="2"].is-visible { transition-delay: 160ms; }
.rt-fade-in[data-delay="3"].is-visible { transition-delay: 240ms; }
.rt-fade-in[data-delay="4"].is-visible { transition-delay: 320ms; }
.rt-fade-in[data-delay="5"].is-visible { transition-delay: 400ms; }

/* Reduced motion — disable animations completely */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rt-fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- PRINT STYLES ---------- */
@media print {
  .rt-topbar,
  .rt-burger,
  .rt-nav-cta,
  .rt-hero-cta,
  .rt-cta-band,
  .rt-card-cta { display: none !important; }

  .rt-header { position: static; border-bottom: 2px solid var(--rt-navy); }
  .rt-hero {
    background: none !important;
    color: var(--rt-slate-900) !important;
    padding: var(--rt-3) 0 !important;
    border-bottom: 2px solid var(--rt-navy);
  }
  .rt-hero h1, .rt-hero-sub { color: var(--rt-slate-900) !important; }
  .rt-hero .rt-eyebrow { color: var(--rt-navy) !important; background: none !important; border: 1px solid var(--rt-slate-300) !important; }

  .rt-trust-strip { background: var(--rt-slate-100) !important; color: var(--rt-slate-900) !important; }
  .rt-trust-value { color: var(--rt-navy) !important; }
  .rt-trust-label { color: var(--rt-slate-700) !important; }
  .rt-trust-icon { background: #fff !important; color: var(--rt-navy) !important; }

  .rt-section, .rt-section-alt { background: #fff !important; padding: var(--rt-3) 0 !important; }
  .rt-card { box-shadow: none !important; border: 1px solid var(--rt-slate-300) !important; break-inside: avoid; }
  a.rt-card { color: var(--rt-slate-900) !important; }

  .rt-footer { background: #fff !important; color: var(--rt-slate-900) !important; border-top: 2px solid var(--rt-navy); }
  .rt-footer h4, .rt-footer a { color: var(--rt-slate-900) !important; }
  .rt-footer-brand img { filter: none !important; }

  /* Show URLs after links for print */
  a[href^="http"]::after,
  a[href^="mailto"]::after,
  a[href^="tel"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: var(--rt-slate-500);
  }

  /* Avoid breaking inside cards/sections */
  .rt-card, .rt-trust-item, .rt-section-head { break-inside: avoid; }

  @page {
    size: A4;
    margin: 1.5cm;
  }
}
