:root {
  --brand: #6b4cff;
  --brand-deep: #4d2fd9;
  --brand-soft: #efeaff;
  --accent: #ff5c8a;
  --accent-soft: #ffe6ee;
  --ink: #17122b;
  --ink-soft: #4a4463;
  --ink-muted: #6f6989;
  --line: #e6e1f5;
  --bg: #ffffff;
  --bg-alt: #f8f6ff;
  --card: #ffffff;
  --shadow-sm: 0 2px 8px rgba(29, 18, 74, 0.06);
  --shadow-md: 0 12px 32px rgba(29, 18, 74, 0.09);
  --shadow-lg: 0 24px 60px rgba(29, 18, 74, 0.14);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1200px;
  --header-h: 72px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
  --brand: #9b8bff;
  --brand-deep: #7f6bff;
  --brand-soft: #201b3a;
  --accent: #ff7aa2;
  --accent-soft: #2c1c2a;
  --ink: #f2efff;
  --ink-soft: #cbc5e6;
  --ink-muted: #a49ec0;
  --line: #2c2748;
  --bg: #0f0d1c;
  --bg-alt: #141124;
  --card: #191531;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); }
h3 { font-size: clamp(1.05rem, 1.5vw, 1.22rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child, ul:last-child { margin-bottom: 0; }

a {
  color: var(--brand-deep);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover { color: var(--accent); }

img {
  max-width: 100%;
  border: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 10px 0;
}

.skip-link:focus-visible {
  left: 0;
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(23, 18, 43, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  flex: 0 0 auto;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(107, 76, 255, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong { font-size: 1.08rem; letter-spacing: 0.04em; }
.brand-text small { font-size: 0.72rem; color: var(--ink-muted); letter-spacing: 0.02em; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav ul a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.94rem;
  color: var(--ink-soft);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.primary-nav ul a:hover,
.primary-nav ul a.is-active {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  transform: rotate(-12deg);
  border-color: var(--brand);
  color: var(--brand-deep);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: 0 12px 26px rgba(107, 76, 255, 0.32);
}

.btn-primary:hover { color: #fff; box-shadow: 0 16px 34px rgba(107, 76, 255, 0.4); }

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover { color: var(--brand-deep); border-color: var(--brand); }

.btn-link {
  padding-inline: 6px;
  background: none;
  color: var(--brand-deep);
}

.btn-link:hover { color: var(--accent); box-shadow: none; }

.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

.btn-light { background: #fff; color: var(--brand-deep); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18); }
.btn-light:hover { color: var(--brand-deep); }

.btn-outline-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px);
  background:
    radial-gradient(900px 460px at 12% -10%, rgba(107, 76, 255, 0.16), transparent 60%),
    radial-gradient(760px 420px at 92% 6%, rgba(255, 92, 138, 0.14), transparent 62%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.hero-glow {
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 60%;
  background: radial-gradient(closest-side, rgba(107, 76, 255, 0.1), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin-bottom: 18px;
  background: linear-gradient(120deg, var(--ink) 28%, var(--brand-deep) 62%, var(--accent) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 26px 0 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 20px 22px;
  background: var(--card);
  background: color-mix(in srgb, var(--card) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 10px;
  border-right: 1px dashed var(--line);
}

.hero-stats li:last-child { border-right: 0; padding-right: 0; }

.stat-value {
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: -0.01em;
}

.hero-stats span { font-size: 0.78rem; color: var(--ink-muted); }

.hero-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  rotate: -1.2deg;
  transition: rotate 0.4s ease;
}

.hero-figure:hover { rotate: 0deg; }

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: var(--brand-soft);
}

.hero-figure figcaption {
  padding: 12px 18px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  letter-spacing: 0.02em;
}

.section {
  padding: clamp(56px, 7vw, 96px) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-lead {
  font-size: 1rem;
  color: var(--ink-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 34%, var(--line));
}

.feature-card-wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
}

.feature-media {
  position: relative;
  overflow: hidden;
  background: var(--brand-soft);
}

.feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 800 / 600;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-media img { transform: scale(1.04); }

.feature-body { padding: 22px 24px 26px; }

.feature-card-wide .feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 40px);
}

.feature-body h3 { margin-bottom: 10px; }
.feature-body p { font-size: 0.94rem; color: var(--ink-muted); }

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chip-list li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 600;
}

.reading-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.reading-item {
  position: relative;
  padding: 26px 24px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.reading-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.reading-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.reading-item:hover::before { opacity: 1; }

.reading-index {
  display: block;
  margin-bottom: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  color: color-mix(in srgb, var(--brand) 34%, transparent);
  letter-spacing: -0.02em;
}

.reading-item h3 { margin-bottom: 8px; font-size: 1.04rem; }
.reading-item p { font-size: 0.9rem; color: var(--ink-muted); }

.reading-item:nth-child(7) { grid-column: span 2; }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.tag-cloud a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tag-cloud a:hover {
  transform: translateY(-2px);
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}

.mechanism-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.mechanism {
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  background: var(--brand-soft);
  background: color-mix(in srgb, var(--brand-soft) 55%, var(--bg));
}

.mechanism h3 {
  font-size: 1rem;
  color: var(--brand-deep);
  margin-bottom: 8px;
}

.mechanism p { font-size: 0.9rem; color: var(--ink-muted); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.work-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.work-media {
  position: relative;
  overflow: hidden;
  background: var(--brand-soft);
}

.work-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-media img { transform: scale(1.05); }

.work-body { padding: 20px 22px 24px; }
.work-body h3 { margin-bottom: 8px; }

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.work-meta span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand-deep);
  color: color-mix(in srgb, var(--accent) 78%, var(--ink));
  font-size: 0.74rem;
  font-weight: 600;
}

.work-body p { font-size: 0.9rem; color: var(--ink-muted); }

.sub-heading {
  margin: clamp(36px, 5vw, 56px) 0 18px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.shelf-grid li {
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.shelf-grid li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.shelf-grid img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step-list li {
  position: relative;
  padding: 28px 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.step-list li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.step-no {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand), var(--accent));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(107, 76, 255, 0.3);
}

.step-body h3 { font-size: 1rem; margin-bottom: 8px; }
.step-body p { font-size: 0.9rem; color: var(--ink-muted); }

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item[open] {
  border-color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer { padding: 0 22px 20px; }
.faq-answer p { font-size: 0.94rem; color: var(--ink-muted); }

.news-list {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--line);
  margin-left: 6px;
}

.news-list li {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0 20px 28px;
}

.news-list li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 30px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--brand);
  transition: background 0.25s ease;
}

.news-list li:hover::before { background: var(--brand); }

.news-list time {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.news-body h3 { font-size: 1rem; margin-bottom: 6px; }
.news-body p { font-size: 0.9rem; color: var(--ink-muted); }

.about {
  background: var(--bg);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.about-copy h2 { max-width: 22ch; }
.about-copy p { font-size: 0.98rem; color: var(--ink-muted); }

.about-facts dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.about-facts dl > div {
  padding: 18px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
}

.about-facts dt {
  margin-bottom: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-deep);
}

.about-facts dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.cta-band {
  padding: clamp(40px, 6vw, 72px) 0;
  background:
    radial-gradient(700px 320px at 10% 10%, rgba(255, 92, 138, 0.45), transparent 60%),
    linear-gradient(120deg, var(--brand), #8a3ffb 52%, var(--accent));
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-inner h2 { color: #fff; margin-bottom: 8px; }
.cta-inner p { color: rgba(255, 255, 255, 0.86); margin: 0; max-width: 46ch; }

.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer {
  padding: clamp(40px, 6vw, 64px) 0 24px;
  background: #0d0a19;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: #fff; }
.site-footer .brand-text small { color: rgba(255, 255, 255, 0.55); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
  max-width: 40ch;
}

.footer-col h3 {
  font-size: 0.94rem;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.footer-col ul { display: grid; gap: 10px; }
.footer-col li { font-size: 0.88rem; color: rgba(255, 255, 255, 0.62); }

.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.back-top:hover { transform: translateY(-3px); }
.back-top[hidden] { display: none; }

.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.85, 0.3, 1);
}

.js-anim [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js-anim [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .reading-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reading-item:nth-child(7) { grid-column: span 2; }
  .mechanism-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card-wide { grid-column: span 2; grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 20px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
  }

  .primary-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .primary-nav ul { flex-direction: column; align-items: stretch; }
  .primary-nav ul a { padding: 12px 14px; font-size: 1rem; }
  .nav-actions { justify-content: space-between; padding-top: 8px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { rotate: none; margin-top: 8px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .hero-stats li:nth-child(2) { border-right: 0; padding-right: 0; }
  .hero-stats li:nth-child(-n+2) { border-bottom: 1px dashed var(--line); padding-bottom: 12px; }

  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { width: min(100% - 28px, var(--container)); }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card-wide { grid-column: span 1; }
  .reading-grid { grid-template-columns: 1fr; }
  .reading-item:nth-child(7) { grid-column: span 1; }
  .mechanism-grid { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .hero-actions .btn { flex: 1 1 auto; }
  .hero-actions .btn-link { flex-basis: 100%; text-align: center; }

  .news-list li { grid-template-columns: 1fr; gap: 6px; padding-left: 22px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; }

  .cta-inner { flex-direction: column; align-items: flex-start; }
  .back-top { right: 14px; bottom: 14px; }
}
