:root {
  --bg: #f5f2ec;
  --bg-soft: #ece7de;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --surface-2: rgba(255, 255, 255, 0.55);
  --text: #1c2430;
  --text-soft: #4a5568;
  --text-muted: #6b7688;
  --border: rgba(28, 36, 48, 0.1);
  --brand: #0d1b2a;
  --brand-2: #16263d;
  --accent: #e0a458;
  --accent-2: #c8863a;
  --accent-soft: rgba(224, 164, 88, 0.16);
  --grad-hero: linear-gradient(135deg, #0d1b2a 0%, #1b2f4a 45%, #2c4a6e 100%);
  --grad-accent: linear-gradient(135deg, #e0a458 0%, #c8863a 100%);
  --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  --shadow-sm: 0 2px 8px rgba(13, 27, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(13, 27, 42, 0.1);
  --shadow-lg: 0 24px 60px rgba(13, 27, 42, 0.18);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --blur: saturate(160%) blur(16px);
  --header-h: 72px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html[data-theme="dark"] {
  --bg: #080f18;
  --bg-soft: #0b1725;
  --surface: rgba(22, 38, 61, 0.6);
  --surface-solid: #14202f;
  --surface-2: rgba(28, 46, 70, 0.45);
  --text: #e8edf4;
  --text-soft: #b7c2d0;
  --text-muted: #8b97a8;
  --border: rgba(232, 237, 244, 0.12);
  --brand: #e8edf4;
  --brand-2: #b7c2d0;
  --accent: #f0b76a;
  --accent-2: #e0a458;
  --accent-soft: rgba(240, 183, 106, 0.14);
  --grad-hero: linear-gradient(135deg, #050b13 0%, #0d1b2a 45%, #16263d 100%);
  --grad-card: linear-gradient(160deg, rgba(28, 46, 70, 0.7), rgba(16, 28, 44, 0.55));
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
}

*,
*::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;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(44, 74, 110, 0.12), transparent 55%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

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

h1, h2, h3, h4 {
  line-height: 1.3;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.3rem); }

p { margin: 0 0 1rem; }

ul, ol { padding-left: 1.4rem; }

strong { color: var(--text); font-weight: 700; }

blockquote {
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-soft);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

blockquote p { margin: 0; }

::selection {
  background: var(--accent);
  color: #0d1b2a;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

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

.brand svg {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(13, 27, 42, 0.28);
  transition: transform 0.5s var(--ease);
}

.brand:hover svg { transform: rotate(-8deg) scale(1.06); }

.brand-name {
  background: linear-gradient(120deg, var(--text), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

#main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

#main-nav a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

#main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

#main-nav a:hover,
#main-nav a:focus-visible {
  color: var(--text);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

#main-nav a:hover::after,
#main-nav a:focus-visible::after { width: 40%; }

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-search {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.25rem 0.2rem 0.9rem;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.site-search input {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  width: 150px;
  padding: 0.35rem 0;
  outline: none;
}

.site-search input::placeholder { color: var(--text-muted); }

.site-search button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0d1b2a;
  background: var(--grad-accent);
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(224, 164, 88, 0.4);
  filter: brightness(1.05);
}

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--accent-soft);
}

#menu-toggle { display: none; }

/* ============ Main layout ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

main > section {
  margin: 2.5rem 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  opacity: 0;
  transform: translateY(28px);
  animation: reveal 0.8s var(--ease) forwards;
}

main > section:nth-child(2) { animation-delay: 0.05s; }
main > section:nth-child(3) { animation-delay: 0.1s; }
main > section:nth-child(4) { animation-delay: 0.15s; }
main > section:nth-child(5) { animation-delay: 0.2s; }
main > section:nth-child(6) { animation-delay: 0.25s; }

main > section h2 {
  position: relative;
  padding-bottom: 0.7rem;
  margin-top: 0;
}

main > section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-accent);
}

main > section h3 {
  margin-top: 1.6rem;
  color: var(--text);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  padding: 0.5rem 0.25rem;
  font-size: 0.86rem;
  opacity: 0;
  animation: reveal 0.6s var(--ease) 0.1s forwards;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: var(--accent);
}

.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--accent); }

/* ============ Hero ============ */
#hero {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  background: var(--grad-hero) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #eef2f7;
  box-shadow: var(--shadow-lg);
}

#hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle at 70% 30%, rgba(224, 164, 88, 0.35), transparent 60%);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -40% -15%;
  width: 55%;
  height: 100%;
  background: radial-gradient(circle at 30% 70%, rgba(44, 74, 110, 0.6), transparent 65%);
  pointer-events: none;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.hero-slider .slide {
  display: none;
  margin: 0;
  animation: fadeSlide 0.8s var(--ease);
}

.hero-slider .slide.active { display: block; }

.hero-slider .slide svg {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 360;
  object-fit: cover;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(13, 27, 42, 0.45);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
  display: grid;
  place-items: center;
  padding: 0 0 0.2rem;
}

.slider-prev { left: 14px; }
.slider-next { right: 14px; }

.slider-prev:hover,
.slider-next:hover {
  background: var(--accent);
  color: #0d1b2a;
  transform: translateY(-50%) scale(1.08);
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.4);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.25s var(--ease), width 0.3s var(--ease);
}

.slider-dots button[aria-selected="true"] {
  background: var(--accent);
  width: 26px;
  border-radius: 999px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.hero-copy h1 {
  color: #fff;
  margin-top: 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  color: rgba(238, 242, 247, 0.88);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  max-width: 78ch;
}

.hero-lead strong {
  color: var(--accent);
  font-weight: 700;
}

.hero-stats {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  color: rgba(238, 242, 247, 0.85);
  font-size: 0.9rem;
}

.hero-stats .stat {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.4rem 0 1rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-primary {
  color: #0d1b2a;
  background: var(--grad-accent);
  box-shadow: 0 10px 26px rgba(224, 164, 88, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #0d1b2a;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(224, 164, 88, 0.5);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: #0d1b2a;
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.hero-meta {
  color: rgba(238, 242, 247, 0.6);
  font-size: 0.82rem;
  margin: 0;
}

/* ============ Concept / About ============ */
#about p,
#concept p,
#products p,
#solutions p,
#scenarios p,
#cases p,
#knowledge p,
#contact p {
  color: var(--text-soft);
}

/* ============ News ============ */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.news-list li {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.news-list li:hover {
  transform: translateX(6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.news-list time {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-right: 0.6rem;
  font-variant-numeric: tabular-nums;
}

/* ============ Articles ============ */
#articles {
  display: grid;
  gap: 1rem;
}

#articles > h2 {
  grid-column: 1 / -1;
}

#articles article {
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

#articles article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

#articles article:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}

#articles article:hover::before { opacity: 1; }

#articles article h3 { margin: 0 0 0.4rem; }

#articles article p { margin: 0 0 0.6rem; color: var(--text-soft); }

#articles article p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
}

#articles article a {
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

#articles article a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

#articles article a:hover::after { transform: translateX(4px); }

/* ============ HowTo ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 0.9rem 1.1rem 0.9rem 3.2rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #0d1b2a;
  font-weight: 800;
  font-size: 0.85rem;
}

#howto ol li:hover {
  transform: translateX(5px);
  border-color: var(--accent);
}

/* ============ FAQ ============ */
#faq details {
  margin: 0.6rem 0;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

#faq details[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}

#faq summary {
  cursor: pointer;
  padding: 0.95rem 2.6rem 0.95rem 1.1rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  transition: color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--accent);
  color: #0d1b2a;
}

#faq summary:hover { color: var(--accent-2); }

#faq details p {
  margin: 0;
  padding: 0 1.1rem 1.1rem;
  color: var(--text-soft);
  animation: reveal 0.4s var(--ease);
}

/* ============ Contact ============ */
#contact address {
  font-style: normal;
  display: grid;
  gap: 0.4rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

#contact address p { margin: 0; }

#contact address a { font-weight: 600; }

/* ============ Sitemap & Links ============ */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

#sitemap li a,
#links li a {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 500;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

#sitemap li a:hover,
#links li a:hover {
  transform: translateY(-3px);
  background: var(--grad-accent);
  color: #0d1b2a;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(224, 164, 88, 0.3);
}

/* ============ Footer ============ */
#site-footer {
  margin-top: 2rem;
  background: var(--grad-hero);
  color: rgba(238, 242, 247, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: "";
  position: absolute;
  inset: -50% -20% auto auto;
  width: 60%;
  height: 160%;
  background: radial-gradient(circle at 70% 30%, rgba(224, 164, 88, 0.14), transparent 60%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem 2rem;
}

.footer-inner section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.footer-inner section:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 164, 88, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.footer-inner h2 {
  font-size: 1rem;
  color: var(--accent);
  margin: 0 0 0.6rem;
  letter-spacing: 0.04em;
}

.footer-inner p {
  margin: 0 0 0.5rem;
  font-size: 0.87rem;
  color: rgba(238, 242, 247, 0.72);
}

.footer-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-inner a {
  color: rgba(238, 242, 247, 0.82);
  font-size: 0.87rem;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer-inner a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  margin: 0.5rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(238, 242, 247, 0.55);
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0d1b2a;
  background: var(--grad-accent);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(224, 164, 88, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease), box-shadow 0.3s var(--ease);
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(224, 164, 88, 0.55);
}

/* ============ Responsive ============ */
@media (min-width: 900px) {
  #articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  #articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .header-inner {
    gap: 0.6rem;
  }

  #main-nav a {
    padding: 0.4rem 0.55rem;
    font-size: 0.86rem;
  }

  .site-search input { width: 120px; }
}

@media (max-width: 860px) {
  #menu-toggle { display: inline-block; }

  #main-nav {
    order: 3;
    flex-basis: 100%;
    display: none;
    justify-content: flex-start;
  }

  #main-nav.is-open {
    display: flex;
    animation: reveal 0.35s var(--ease);
  }

  #main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0.15rem;
    padding: 0.5rem 0;
  }

  #main-nav a {
    display: block;
    width: 100%;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
  }

  #main-nav a::after { display: none; }

  .header-tools {
    margin-left: auto;
  }

  .site-search {
    order: 4;
    flex-basis: 100%;
    margin-top: 0.25rem;
  }

  .site-search input {
    width: 100%;
    flex: 1;
  }

  .hero-slider .slide svg { aspect-ratio: 16 / 9; }

  .slider-prev,
  .slider-next {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .hero-stats { font-size: 0.82rem; }

  .hero-stats .stat { font-size: 1.1rem; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }

  main { padding: 1rem 0.9rem 2rem; }

  main > section {
    border-radius: var(--radius);
    margin: 1.6rem 0;
    padding: 1.1rem 1rem;
  }

  .header-inner { padding: 0.5rem 0.9rem; }

  .brand { font-size: 1rem; }

  .brand svg { width: 34px; height: 34px; }

  .hero-copy { padding: 1.2rem 1rem 1.5rem; }

  .hero-cta { flex-direction: column; align-items: stretch; }

  .btn-primary,
  .btn-secondary { text-align: center; }

  .hero-stats {
    display: flex;
    width: 100%;
    justify-content: space-between;
    border-radius: var(--radius-sm);
  }

  .footer-inner {
    padding: 1.8rem 0.9rem 1.2rem;
    grid-template-columns: 1fr;
  }

  #back-to-top {
    right: 0.8rem;
    bottom: 0.8rem;
    padding: 0.6rem 0.9rem;
    font-size: 0.76rem;
  }

  blockquote { padding: 0.8rem 0.9rem; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  main > section {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: rgba(28, 36, 48, 0.35);
    --text-soft: #2d3748;
  }

  html[data-theme="dark"] {
    --border: rgba(232, 237, 244, 0.4);
    --text-soft: #dbe3ee;
  }
}

@media print {
  #site-header,
  #back-to-top,
  .hero-slider,
  .hero-cta,
  #site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    opacity: 1;
    transform: none;
    break-inside: avoid;
  }
}