/* ==========================================================================
   OpenYao Robotics — design system
   Dark theme aligned with the OpenYao Bio-OS identity.
   ========================================================================== */

:root {
  --bg: #060a14;
  --bg-2: #0a1020;
  --bg-3: #0e1628;
  --line: rgba(148, 175, 209, 0.18);
  --line-strong: rgba(148, 175, 209, 0.34);
  --text: #e6eef9;
  --muted: #9fb1c9;
  --faint: #6f829c;
  --accent: #22d3ee;
  --accent-2: #10b981;
  --violet: #a78bfa;
  --grad: linear-gradient(135deg, #22d3ee 0%, #10b981 60%, #a78bfa 100%);
  --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.14) 0%, rgba(16, 185, 129, 0.1) 55%, rgba(167, 139, 250, 0.12) 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 48px rgba(2, 6, 18, 0.55);
  --maxw: 1220px;
  --header-h: 64px;
  --fs: 16px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(34, 211, 238, 0.13), transparent 60%),
    radial-gradient(900px 560px at 92% 4%, rgba(167, 139, 250, 0.11), transparent 62%),
    radial-gradient(800px 520px at 50% 108%, rgba(16, 185, 129, 0.09), transparent 60%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(148, 175, 209, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 175, 209, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
}

img, svg { max-width: 100%; display: block; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.35rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.15rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.12rem, 1rem + 0.5vw, 1.4rem); }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--grad);
}

.lede { font-size: clamp(1rem, 0.96rem + 0.28vw, 1.14rem); color: var(--muted); max-width: 74ch; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-sm { padding: clamp(36px, 4vw, 56px) 0; }
.section-head { margin-bottom: 38px; max-width: 760px; }

/* ---------- Header ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(6, 10, 20, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 18px; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.nav__brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; }
.brand-text { font-size: 1.02rem; }
.brand-text__accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); background: rgba(148, 175, 209, 0.1); text-decoration: none; }
.nav__cta {
  color: #041018 !important;
  background: var(--grad);
  font-weight: 600;
  padding: 8px 16px !important;
  border-radius: 9px !important;
}
.nav__cta:hover { filter: brightness(1.08); }
.nav__lang {
  margin-left: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.nav__lang:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.nav__toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }

@media (max-width: 1000px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 24px 20px;
    background: rgba(6, 10, 20, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__links[data-open="true"] { display: flex; }
  .nav__links a { padding: 11px 12px; }
  .nav__lang { margin: 8px 0 0; align-self: flex-start; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, filter 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #041018; box-shadow: 0 10px 30px rgba(34, 211, 238, 0.2); }
.btn--primary:hover { filter: brightness(1.07); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(148, 175, 209, 0.06); }
.btn--ghost:hover { border-color: var(--accent); background: rgba(34, 211, 238, 0.08); }
.btn--sm { padding: 9px 16px; font-size: 0.88rem; border-radius: 9px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 6.5vw, 92px) 0 clamp(40px, 5vw, 68px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; padding: 0; list-style: none; }
.hero__badges li {
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  background: rgba(148, 175, 209, 0.05);
}
.hero__visual { position: relative; }
.hero__frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: var(--shadow);
}
.hero__frame img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.hero__chip {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--grad-soft);
  font-size: 0.84rem;
  color: var(--muted);
}
.hero__chip b { display: block; color: var(--text); font-size: 0.95rem; margin-bottom: 1px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  background: rgba(14, 22, 40, 0.55);
}
.stat__value { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat__label { font-size: 0.84rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Category cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 16px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(14, 22, 40, 0.5);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.card:hover { border-color: rgba(34, 211, 238, 0.5); transform: translateY(-3px); background: rgba(20, 30, 52, 0.7); text-decoration: none; }
.card__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  color: var(--accent);
  margin-bottom: 14px;
}
.card__title { font-size: 1.06rem; font-weight: 700; margin-bottom: 6px; }
.card__body { font-size: 0.9rem; color: var(--muted); margin: 0; }
.card__count { margin-top: 14px; font-size: 0.8rem; color: var(--faint); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(14, 22, 40, 0.5);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover { border-color: rgba(34, 211, 238, 0.5); transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.product-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-3); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.035); }
.product-card__tag {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 10, 20, 0.78);
  border: 1px solid var(--line-strong);
  color: var(--accent);
  backdrop-filter: blur(6px);
}
.product-card__origin {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(6, 10, 20, 0.78);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
}
.product-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card__name { font-size: 1.12rem; font-weight: 700; margin: 0 0 3px; }
.product-card__sub { font-size: 0.87rem; color: var(--muted); margin: 0 0 12px; }
.product-card__excerpt { font-size: 0.89rem; color: var(--muted); margin: 0 0 16px; flex: 1; }
.product-card__meta {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 0.78rem; color: var(--faint);
}
.pill {
  display: inline-block;
  font-size: 0.76rem;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(148, 175, 209, 0.06);
}

/* ---------- Filter bar ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter {
  font-size: 0.87rem;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(148, 175, 209, 0.05);
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}
.filter:hover { color: var(--text); border-color: var(--line-strong); text-decoration: none; }
.filter[aria-pressed="true"], .filter.is-active { background: var(--grad); color: #041018; border-color: transparent; font-weight: 600; }
.filter__n { opacity: 0.65; margin-left: 5px; font-variant-numeric: tabular-nums; }

/* ---------- Product detail ---------- */
.breadcrumb { font-size: 0.83rem; color: var(--faint); padding: 22px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: var(--line-strong); }
.breadcrumb li:last-child::after { content: none; }
.breadcrumb a { color: var(--faint); }
.breadcrumb a:hover { color: var(--accent); }

.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 48px); padding: 26px 0 20px; align-items: start; }
.pdp__media { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); position: sticky; top: calc(var(--header-h) + 20px); }
.pdp__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pdp__credit { font-size: 0.76rem; color: var(--faint); padding: 9px 14px; border-top: 1px solid var(--line); background: rgba(6, 10, 20, 0.5); }
.pdp__tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 0; padding: 0; list-style: none; }
.pdp h1 { font-size: clamp(1.8rem, 1.3rem + 1.7vw, 2.6rem); margin-bottom: 8px; }
.pdp__sub { font-size: 1.05rem; color: var(--muted); margin-bottom: 18px; }
.pdp__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pdp__desc { color: var(--muted); }

.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0; }
.keyfact { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: rgba(14, 22, 40, 0.5); }
.keyfact__k { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.keyfact__v { font-size: 0.94rem; font-weight: 600; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-table caption { text-align: left; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding-bottom: 12px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 34%; font-weight: 600; color: var(--muted); }
.spec-table td { color: var(--text); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(14, 22, 40, 0.45);
}
.panel--accent { background: var(--grad-soft); border-color: rgba(34, 211, 238, 0.28); }
.panel h3 { margin-bottom: 12px; }
.panel p:last-child { margin-bottom: 0; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 26px; margin-bottom: 11px; color: var(--muted); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg);
}

@media (max-width: 940px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp__media { position: static; }
}

/* ---------- Two column / generic blocks ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.split-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.stack-sm > * + * { margin-top: 12px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding-top: 18px; border-top: 2px solid var(--line); }
.step__n {
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.05em;
}
.step h3 { font-size: 1.02rem; margin: 6px 0 6px; }
.step p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- Market tabs ---------- */
.market-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.market-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(14, 22, 40, 0.45); overflow: hidden; }
.faq-item > summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 46px 16px 18px;
  font-weight: 600;
  position: relative;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "";
  position: absolute;
  right: 20px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item__body { padding: 0 18px 18px; color: var(--muted); font-size: 0.94rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.field .req { color: var(--violet); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 10, 20, 0.7);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field__err { font-size: 0.8rem; color: #fb7185; min-height: 1em; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  border: 1px solid var(--line);
}
.form-status[data-state="ok"] { border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.1); color: #6ee7b7; }
.form-status[data-state="err"] { border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.1); color: #fca5a5; }
.form-status[hidden] { display: none; }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 46px);
  background: var(--grad-soft);
  text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 62ch; margin: 0 auto 24px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { flex: none; margin-top: 3px; color: var(--accent); }
.contact-list b { display: block; font-size: 0.82rem; color: var(--faint); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.contact-list span { font-size: 0.98rem; word-break: break-word; }

/* ---------- Related ---------- */
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* ---------- Breadcrumbs / misc ---------- */
.note {
  font-size: 0.85rem;
  color: var(--faint);
  border-left: 2px solid var(--line-strong);
  padding-left: 14px;
}
.prose { color: var(--muted); }
.prose h2 { color: var(--text); margin-top: 2em; }
.prose h3 { color: var(--text); margin-top: 1.6em; }
.prose ul, .prose ol { color: var(--muted); padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 60px) 0 30px; margin-top: 40px; background: rgba(6, 10, 20, 0.5); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 30px; }
.footer__about { max-width: 340px; }
.footer__about p { font-size: 0.88rem; color: var(--muted); margin-top: 14px; }
.footer h2.footer-title { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; font-weight: 600; line-height: 1.3; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { color: var(--muted); font-size: 0.9rem; }
.footer a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--faint);
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 42px; height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 10, 20, 0.9);
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 90;
  backdrop-filter: blur(8px);
}
.to-top[data-show="true"] { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); }

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #041018;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- Print ---------- */
@media print {
  body::before, body::after { display: none; }
  .nav, .footer, .to-top, .btn-row { display: none !important; }
  body { background: #fff; color: #000; }
  .lede, .pdp__desc, .card__body { color: #333; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-muted { color: var(--muted); }
.text-faint { color: var(--faint); }
.nowrap { white-space: nowrap; }
.hide-sm { }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
[hidden] { display: none !important; }