:root {
  --brand: #e63946;
  --brand-dark: #c1121f;
  --brand-light: #ff6b78;
  --brand-soft: rgba(230, 57, 70, 0.12);
  --accent: #ffb703;
  --accent-2: #fb8500;
  --bg: #f7f7fb;
  --bg-soft: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-strong: rgba(255, 255, 255, 0.88);
  --text: #1d1d29;
  --text-soft: #4a4a5e;
  --text-muted: #7a7a90;
  --border: rgba(29, 29, 41, 0.1);
  --border-strong: rgba(29, 29, 41, 0.18);
  --shadow-sm: 0 2px 8px rgba(29, 29, 41, 0.06);
  --shadow-md: 0 8px 28px rgba(29, 29, 41, 0.1);
  --shadow-lg: 0 20px 60px rgba(29, 29, 41, 0.16);
  --shadow-brand: 0 12px 32px rgba(230, 57, 70, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --gradient-hero: linear-gradient(135deg, #e63946 0%, #ff6b78 38%, #ffb703 100%);
  --gradient-brand: linear-gradient(135deg, #e63946 0%, #fb8500 100%);
  --gradient-soft: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(255, 183, 3, 0.1) 100%);
  --glass-blur: blur(16px) saturate(160%);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, Helvetica, Arial, sans-serif;
  --transition: 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  --max-width: 1200px;
  --header-h: 72px;
}

html[data-theme="dark"] {
  --bg: #0f1117;
  --bg-soft: #171a23;
  --bg-glass: rgba(23, 26, 35, 0.72);
  --bg-glass-strong: rgba(23, 26, 35, 0.9);
  --text: #eef0f6;
  --text-soft: #c3c7d4;
  --text-muted: #8b90a3;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-brand: 0 12px 32px rgba(230, 57, 70, 0.4);
  --gradient-hero: linear-gradient(135deg, #7a1620 0%, #b3222f 40%, #b85c00 100%);
  --gradient-soft: linear-gradient(135deg, rgba(230, 57, 70, 0.16) 0%, rgba(255, 183, 3, 0.12) 100%);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0f1117;
    --bg-soft: #171a23;
    --bg-glass: rgba(23, 26, 35, 0.72);
    --bg-glass-strong: rgba(23, 26, 35, 0.9);
    --text: #eef0f6;
    --text-soft: #c3c7d4;
    --text-muted: #8b90a3;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-brand: 0 12px 32px rgba(230, 57, 70, 0.4);
    --gradient-hero: linear-gradient(135deg, #7a1620 0%, #b3222f 40%, #b85c00 100%);
    --gradient-soft: linear-gradient(135deg, rgba(230, 57, 70, 0.16) 0%, rgba(255, 183, 3, 0.12) 100%);
  }
}

*,
*::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-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% 4%, rgba(230, 57, 70, 0.08), transparent 42%),
    radial-gradient(circle at 92% 12%, rgba(255, 183, 3, 0.1), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(230, 57, 70, 0.06), transparent 50%);
  background-attachment: fixed;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--brand-dark);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.5em;
}

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

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 0.15em 0.45em;
  border-radius: 6px;
  font-size: 0.9em;
}

::selection {
  background: var(--brand);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--brand);
  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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 16px;
}

/* ===== Header ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  background: var(--bg-glass-strong);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  flex-shrink: 0;
}

.brand a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand svg {
  border-radius: 12px;
  box-shadow: var(--shadow-brand);
  transition: transform var(--transition), box-shadow var(--transition);
}

.brand a:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 16px 40px rgba(230, 57, 70, 0.45);
}

.brand-name {
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

.main-nav {
  flex: 1;
  min-width: 0;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.main-nav a:hover {
  color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-search {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

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

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

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

.site-search input:focus {
  width: 200px;
}

.site-search button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-brand);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.site-search button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}

.site-search button:active {
  transform: translateY(0) scale(0.97);
}

#theme-toggle,
#mobile-menu-btn {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

#theme-toggle:hover,
#mobile-menu-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

#mobile-menu-btn {
  display: none;
}

/* ===== Main & Sections ===== */
main {
  display: block;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.section {
  margin: 56px 0;
  padding: 0;
}

.section > h2 {
  position: relative;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  padding-left: 18px;
  margin-bottom: 1.1em;
}

.section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: var(--gradient-brand);
  box-shadow: 0 0 18px rgba(230, 57, 70, 0.4);
}

.section > p {
  font-size: 1.02rem;
  color: var(--text-soft);
  max-width: 76ch;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  margin: 32px 0 8px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.28), transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.18), transparent 42%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 380px;
  height: 380px;
  right: -120px;
  top: -140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(10px);
  animation: float 14s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.08); }
}

.hero-carousel {
  position: relative;
  padding: clamp(28px, 5vw, 60px) clamp(24px, 5vw, 64px) clamp(24px, 4vw, 40px);
}

.slide {
  display: none;
  animation: fadeUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.slide:first-child,
.slide.is-active {
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.25;
  color: #fff;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.22);
}

.slide h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: #fff;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.22);
}

.slide p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  max-width: 78ch;
  margin-bottom: 0;
}

.hero-lead {
  line-height: 1.85;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 22px 16px;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}

.stat:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.stat-num {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  letter-spacing: 0.01em;
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.02em;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  margin: 20px 0 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.breadcrumb li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--text-muted);
  font-weight: 600;
}

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

.breadcrumb [aria-current="page"] {
  color: var(--text-soft);
  font-weight: 700;
}

/* ===== Cards common ===== */
.about-block,
.product-block,
.solution-block,
.case-block,
.article-card,
.howto-block,
#knowledge article,
#privacy,
#disclaimer,
#security,
#contact,
#sitemap,
#links {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.about-block:hover,
.product-block:hover,
.solution-block:hover,
.case-block:hover,
.article-card:hover,
.howto-block:hover,
#knowledge article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-soft);
}

.about-block h3,
.product-block h3,
.solution-block h3,
.case-block h3,
.article-card h3,
.howto-block h3 {
  font-size: 1.22rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-block h3::before,
.product-block h3::before,
.solution-block h3::before,
.case-block h3::before,
.howto-block h3::before {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.about-block h4,
.product-block h4 {
  font-size: 1rem;
  color: var(--brand);
  margin-top: 1.2em;
}

.about-block ul,
.product-block ul,
.solution-block ul,
.howto-block ul,
.howto-block ol {
  padding-left: 1.3em;
}

.about-block li::marker,
.product-block li::marker,
.solution-block li::marker,
.howto-block li::marker {
  color: var(--brand);
}

#about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

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

#products,
#solutions,
#cases,
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

#products > h2,
#products > p,
#solutions > h2,
#solutions > p,
#cases > h2,
#articles > h2,
#articles > p {
  grid-column: 1 / -1;
}

#solutions > h3 {
  grid-column: 1 / -1;
  font-size: 1.3rem;
  margin-top: 8px;
}

#solutions > h3 + ul {
  grid-column: 1 / -1;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 24px 24px 2.4em;
  margin: 0;
}

#cases > h3 {
  grid-column: 1 / -1;
  font-size: 1.3rem;
  margin-top: 8px;
}

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

.news-list li {
  position: relative;
  margin: 0;
  padding: 20px 22px 20px 56px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.news-list li::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 0 5px var(--brand-soft);
}

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

.news-list h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.news-list h3 a {
  color: var(--text);
}

.news-list h3 a:hover {
  color: var(--brand);
}

.news-list p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Articles ===== */
.article-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-card h3 {
  font-size: 1.1rem;
  line-height: 1.45;
}

.article-card .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}

.article-card p {
  font-size: 0.93rem;
  margin: 0;
  color: var(--text-soft);
}

.article-card > a {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-card > a::after {
  content: "→";
  transition: transform var(--transition);
}

.article-card > a:hover::after {
  transform: translateX(4px);
}

/* ===== HowTo ===== */
.howto-block h3 {
  margin-top: 1.4em;
}

.howto-block h3:first-child {
  margin-top: 0;
}

.howto-block ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.howto-block ol li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 12px;
}

.howto-block ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: var(--gradient-brand);
  border-radius: 50%;
  box-shadow: var(--shadow-brand);
}

/* ===== FAQ ===== */
.faq-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.faq-list dt {
  margin: 0;
}

.faq-list dt button {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 52px 18px 20px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
}

.faq-list dt button::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform var(--transition);
}

.faq-list dt button:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  color: var(--brand);
}

.faq-list dt button[aria-expanded="true"] {
  background: var(--gradient-soft);
  border-color: var(--brand);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.faq-list dt button[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list dd {
  margin: 0;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 0.94rem;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-list dd.is-open {
  max-height: 600px;
  opacity: 1;
  padding: 16px 20px 20px;
}

/* ===== Knowledge ===== */
#knowledge article h3 {
  font-size: 1.1rem;
  margin-top: 1.2em;
  color: var(--brand);
}

#knowledge article h3:first-child {
  margin-top: 0;
}

/* ===== Contact ===== */
.contact-info {
  font-style: normal;
  display: grid;
  gap: 10px;
}

.contact-info p {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition);
}

.contact-info p:hover {
  transform: translateX(4px);
  border-color: var(--brand);
}

.contact-info strong {
  color: var(--brand);
  margin-right: 4px;
}

/* ===== Sitemap & Links ===== */
.sitemap-list,
.friend-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sitemap-list li,
.friend-links li {
  margin: 0;
}

.sitemap-list a,
.friend-links a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.sitemap-list a:hover,
.friend-links a:hover {
  color: #fff;
  background: var(--gradient-brand);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}

/* ===== Blockquote ===== */
blockquote {
  position: relative;
  margin: 0 0 18px;
  padding: 20px 24px 20px 60px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 4px;
  font-size: 3rem;
  line-height: 1;
  font-weight: 900;
  color: var(--brand);
  opacity: 0.35;
}

blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text-soft);
}

#cases blockquote {
  grid-column: 1 / -1;
}

/* ===== Footer ===== */
#site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-brand p {
  margin: 0 0 6px;
  font-size: 0.94rem;
  color: var(--text-soft);
}

.footer-brand strong {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: flex-end;
}

.footer-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--brand);
}

.copyright {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===== Back to top ===== */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-brand);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  box-shadow: var(--shadow-brand);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), box-shadow var(--transition);
}

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

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(230, 57, 70, 0.5);
}

#back-to-top:active {
  transform: translateY(0) scale(0.97);
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .main-nav a {
    padding: 8px 9px;
    font-size: 0.84rem;
  }
  .site-search input {
    width: 110px;
  }
  .site-search input:focus {
    width: 140px;
  }
}

@media (max-width: 920px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 16px;
  }

  #mobile-menu-btn {
    display: inline-block;
  }

  .main-nav {
    order: 3;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
  }

  .main-nav.is-open {
    max-height: 520px;
    opacity: 1;
    margin-bottom: 12px;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }

  .main-nav a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
  }

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

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  main {
    padding: 0 16px 48px;
  }

  .section {
    margin: 40px 0;
  }

  .hero {
    margin-top: 20px;
    border-radius: var(--radius-lg);
  }

  .hero-carousel {
    padding: 28px 20px 24px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 16px 10px;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  .site-search {
    display: none;
  }

  .header-tools {
    gap: 8px;
  }

  #theme-toggle,
  #mobile-menu-btn {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

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

  #about,
  #products,
  #solutions,
  #cases,
  #articles {
    grid-template-columns: 1fr;
  }

  .news-list li {
    padding: 16px 16px 16px 48px;
  }

  .news-list li::before {
    left: 18px;
    top: 22px;
    width: 12px;
    height: 12px;
  }

  blockquote {
    padding: 16px 18px 16px 48px;
  }

  blockquote::before {
    left: 12px;
    font-size: 2.4rem;
  }

  #back-to-top {
    right: 16px;
    bottom: 16px;
    padding: 10px 16px;
    font-size: 0.76rem;
  }
}

@media (max-width: 400px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .contact-info p {
    font-size: 0.88rem;
    word-break: break-word;
  }
}

/* ===== Motion & print ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

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

  .section {
    margin: 24px 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}