:root {
  --brand-primary: #8b1e3f;
  --brand-primary-dark: #6d1531;
  --brand-primary-light: #a8294f;
  --brand-accent: #d9a441;
  --brand-accent-light: #e8bf6e;
  --brand-cream: #f4e9dc;
  --brand-cream-dark: #e8d8c4;
  --bg-body: #faf6f1;
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.72);
  --bg-elevated: #ffffff;
  --text-primary: #2b1a1f;
  --text-secondary: #5c4a50;
  --text-muted: #8a7a80;
  --text-inverse: #ffffff;
  --border-color: rgba(139, 30, 63, 0.12);
  --border-strong: rgba(139, 30, 63, 0.22);
  --shadow-sm: 0 2px 8px rgba(43, 26, 31, 0.06);
  --shadow-md: 0 8px 24px rgba(43, 26, 31, 0.09);
  --shadow-lg: 0 16px 48px rgba(43, 26, 31, 0.13);
  --shadow-glow: 0 8px 32px rgba(139, 30, 63, 0.22);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1200px;
  --nav-height: 68px;
  --gradient-brand: linear-gradient(135deg, #8b1e3f 0%, #a8294f 45%, #c44569 100%);
  --gradient-warm: linear-gradient(135deg, #8b1e3f 0%, #b8365c 40%, #d9a441 100%);
  --gradient-soft: linear-gradient(160deg, #faf6f1 0%, #f4e9dc 60%, #f0dfc9 100%);
  --gradient-hero: linear-gradient(135deg, #6d1531 0%, #8b1e3f 35%, #a8294f 65%, #d9a441 130%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-primary: #e85a86;
    --brand-primary-dark: #c44569;
    --brand-primary-light: #f07aa0;
    --brand-accent: #e8bf6e;
    --brand-accent-light: #f0d494;
    --brand-cream: #2a2024;
    --brand-cream-dark: #352a2f;
    --bg-body: #161014;
    --bg-card: #1f171b;
    --bg-card-glass: rgba(31, 23, 27, 0.72);
    --bg-elevated: #261d22;
    --text-primary: #f5eef0;
    --text-secondary: #cfc0c5;
    --text-muted: #9a8a90;
    --text-inverse: #161014;
    --border-color: rgba(232, 90, 134, 0.16);
    --border-strong: rgba(232, 90, 134, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 8px 32px rgba(232, 90, 134, 0.25);
    --gradient-brand: linear-gradient(135deg, #6d1531 0%, #8b1e3f 45%, #a8294f 100%);
    --gradient-warm: linear-gradient(135deg, #4a1024 0%, #8b1e3f 40%, #b8862f 100%);
    --gradient-soft: linear-gradient(160deg, #161014 0%, #1f171b 60%, #261d22 100%);
    --gradient-hero: linear-gradient(135deg, #2a0e1a 0%, #4a1024 35%, #6d1531 65%, #8b6a1f 130%);
  }
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--bg-body);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139, 30, 63, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(217, 164, 65, 0.05), transparent);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-color-scheme: dark) {
  body {
    background-image:
      radial-gradient(ellipse 80% 50% at 50% -10%, rgba(232, 90, 134, 0.08), transparent),
      radial-gradient(ellipse 60% 40% at 90% 20%, rgba(232, 191, 110, 0.04), transparent);
  }
}

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

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

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

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

ul,
ol {
  list-style: none;
}

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

h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  position: relative;
  padding-bottom: 0.6em;
  margin-bottom: 1.2em;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--gradient-warm);
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  margin-bottom: 0.5em;
  color: var(--brand-primary);
}

@media (prefers-color-scheme: dark) {
  h3 {
    color: var(--brand-primary-light);
  }
}

p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  color: var(--text-primary);
  font-weight: 600;
}

blockquote {
  position: relative;
  padding: 1.25em 1.5em 1.25em 3.5em;
  margin: 1.25em 0;
  background: var(--bg-card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-accent);
  box-shadow: var(--shadow-sm);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 1em;
  top: 0.4em;
  font-size: 3rem;
  line-height: 1;
  color: var(--brand-accent);
  font-family: var(--font-serif);
  opacity: 0.6;
}

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

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-card-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), background var(--transition-base);
}

header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  gap: 16px;
}

header nav > a:first-child {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform var(--transition-base), filter var(--transition-base);
}

header nav > a:first-child:hover {
  transform: scale(1.04);
  filter: brightness(1.1);
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

header nav ul li a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

header nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--gradient-warm);
  transform: translateX(-50%);
  transition: width var(--transition-base);
}

header nav ul li a:hover {
  color: var(--brand-primary);
  background: rgba(139, 30, 63, 0.06);
  transform: translateY(-1px);
}

header nav ul li a:hover::after {
  width: 55%;
}

@media (prefers-color-scheme: dark) {
  header nav ul li a:hover {
    color: var(--brand-primary-light);
    background: rgba(232, 90, 134, 0.1);
  }
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 64px;
}

main > section {
  margin-bottom: 56px;
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-slow), transform var(--transition-slow), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

main > section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-warm);
  opacity: 0;
  transition: opacity var(--transition-base);
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

main > section:hover::before {
  opacity: 1;
}

#hero {
  margin-top: 32px;
  padding: 0;
  background: var(--gradient-hero);
  border: none;
  color: var(--text-inverse);
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glow);
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.14), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(217, 164, 65, 0.22), transparent 50%);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  animation: floatOrb 14s ease-in-out infinite;
  pointer-events: none;
}

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

#hero > * {
  position: relative;
  z-index: 1;
}

#hero h1 {
  color: #ffffff;
  padding: 48px 48px 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#hero > p {
  color: rgba(255, 255, 255, 0.88);
  padding: 0 48px;
  margin-top: 1em;
  font-size: 1.02rem;
  animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

#hero > p:last-of-type {
  padding-bottom: 8px;
}

#hero figure {
  margin: 28px 48px 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.4);
}

#hero figure svg {
  width: 100%;
  height: auto;
  display: block;
}

#hero figcaption {
  padding: 14px 20px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  letter-spacing: 0.02em;
}

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

#about h3,
#products h3,
#solutions h3,
#cases h3,
#news h3,
#howto h3 {
  margin-top: 1.6em;
  padding-left: 16px;
  position: relative;
}

#about h3:first-of-type,
#products h3:first-of-type,
#solutions h3:first-of-type,
#cases h3:first-of-type,
#news h3:first-of-type,
#howto h3:first-of-type {
  margin-top: 0.4em;
}

#about h3::before,
#products h3::before,
#solutions h3::before,
#cases h3::before,
#news h3::before,
#howto h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 5px;
  height: 0.9em;
  border-radius: var(--radius-pill);
  background: var(--gradient-warm);
}

#products ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 1.25em 0;
}

#products ul li {
  padding: 16px 20px 16px 48px;
  background: var(--gradient-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

#products ul li::before {
  content: "\2713";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-warm);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(139, 30, 63, 0.3);
}

#products ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

#solutions h3 {
  cursor: default;
}

#cases blockquote {
  margin: 1em 0;
}

#cases blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--brand-primary);
}

#news h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

#news h3 + p {
  padding: 16px 20px;
  background: var(--gradient-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

#news h3 + p:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

#articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
}

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

#articles article {
  padding: 28px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
}

#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

#articles article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

#articles article:hover::before {
  transform: scaleX(1);
}

#articles article h3 {
  margin-bottom: 0.5em;
  transition: color var(--transition-fast);
}

#articles article:hover h3 {
  color: var(--brand-primary-light);
}

#articles article > p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.75em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#articles article > p:first-of-type::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
}

#articles article > p:last-of-type {
  flex: 1;
  font-size: 0.94rem;
  line-height: 1.7;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.25em;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--gradient-warm);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  align-self: flex-start;
  box-shadow: 0 4px 14px rgba(139, 30, 63, 0.25);
  transition: transform var(--transition-base), box-shadow var(--transition-base), filter var(--transition-base);
  position: relative;
  overflow: hidden;
}

#articles article a::after {
  content: "\2192";
  transition: transform var(--transition-base);
}

#articles article a:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 30, 63, 0.4);
  filter: brightness(1.08);
}

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

#faq h3 {
  margin-top: 1.5em;
  padding: 18px 24px 18px 56px;
  background: var(--gradient-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
  font-size: 1.05rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

#faq h3:first-of-type {
  margin-top: 0.4em;
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-warm);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(139, 30, 63, 0.3);
}

#faq h3:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

#faq h3 + p {
  padding: 16px 24px 16px 56px;
  margin-top: -1px;
  background: var(--bg-card);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border: 1px solid var(--border-color);
  border-top: none;
  font-size: 0.95rem;
  position: relative;
}

#faq h3 + p::before {
  content: "A";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #2b1a1f;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(217, 164, 65, 0.35);
}

#howto ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 1.25em 0;
}

#howto ul li {
  padding: 14px 18px 14px 44px;
  background: var(--gradient-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
  font-size: 0.94rem;
  color: var(--text-secondary);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

#howto ul li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-warm);
  box-shadow: 0 0 0 4px rgba(139, 30, 63, 0.12);
}

#howto ul li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#howto ol {
  counter-reset: howto-step;
  display: grid;
  gap: 12px;
  margin: 1.25em 0;
}

#howto ol li {
  counter-increment: howto-step;
  padding: 18px 22px 18px 68px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

#howto ol li::before {
  content: counter(howto-step);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-warm);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(139, 30, 63, 0.3);
}

#howto ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

#contact p {
  padding: 12px 20px;
  margin-bottom: 8px;
  background: var(--gradient-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

#contact p::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
  align-self: center;
  flex-shrink: 0;
}

#contact p:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}

#contact p:last-child {
  background: var(--gradient-warm);
  color: rgba(255, 255, 255, 0.95);
  border: none;
  font-weight: 600;
  box-shadow: var(--shadow-glow);
}

#contact p:last-child::before {
  background: #ffffff;
}

#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

#sitemap ul li a,
#links ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--gradient-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: transform var(--transition-base), box-shadow var(--transition-base), color var(--transition-fast), border-color var(--transition-base);
}

#sitemap ul li a::before,
#links ul li a::before {
  content: "\2192";
  color: var(--brand-accent);
  font-weight: 700;
  transition: transform var(--transition-base);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--brand-primary);
  border-color: var(--border-strong);
}

#sitemap ul li a:hover::before,
#links ul li a:hover::before {
  transform: translateX(3px);
}

footer {
  background: var(--gradient-brand);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 24px 32px;
  margin-top: 32px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.15), transparent 70%);
  pointer-events: none;
}

footer > section {
  max-width: var(--max-width);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  position: relative;
  z-index: 1;
}

footer h2 {
  font-size: 1.05rem;
  color: #ffffff;
  padding-bottom: 0.5em;
  margin-bottom: 0.8em;
}

footer h2::after {
  background: var(--brand-accent);
  width: 40px;
  height: 3px;
}

footer p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.7;
}

footer > p {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 1;
}

footer > p a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

footer > p a::before {
  content: "\2191";
  font-size: 1rem;
}

footer > p a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1024px) {
  main > section {
    padding: 32px 28px;
  }

  #hero h1 {
    padding: 40px 36px 0;
  }

  #hero > p {
    padding: 0 36px;
  }

  #hero figure {
    margin: 24px 36px 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  body {
    font-size: 15px;
  }

  header nav {
    padding: 0 16px;
    gap: 10px;
  }

  header nav > a:first-child {
    font-size: 1.1rem;
  }

  header nav ul {
    gap: 2px;
  }

  header nav ul li a {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  main {
    padding: 0 16px 48px;
  }

  main > section {
    padding: 24px 20px;
    margin-bottom: 36px;
    border-radius: var(--radius-md);
  }

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

  #hero h1 {
    padding: 32px 24px 0;
  }

  #hero > p {
    padding: 0 24px;
    font-size: 0.95rem;
  }

  #hero figure {
    margin: 20px 24px 32px;
    border-radius: var(--radius-md);
  }

  #articles {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #articles article {
    padding: 22px;
  }

  #products ul {
    grid-template-columns: 1fr;
  }

  #howto ul {
    grid-template-columns: 1fr;
  }

  #howto ol li {
    padding: 16px 18px 16px 60px;
  }

  #faq h3 {
    padding: 16px 18px 16px 52px;
    font-size: 1rem;
  }

  #faq h3 + p {
    padding: 14px 18px 14px 52px;
  }

  footer {
    padding: 40px 16px 24px;
  }

  footer > section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  header nav {
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  header nav ul {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  header nav ul::-webkit-scrollbar {
    display: none;
  }

  header nav ul li a {
    white-space: nowrap;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  #hero h1 {
    padding: 28px 18px 0;
  }

  #hero > p {
    padding: 0 18px;
    font-size: 0.92rem;
  }

  #hero figure {
    margin: 16px 18px 28px;
  }

  blockquote {
    padding: 1em 1em 1em 3em;
  }

  #articles article a {
    width: 100%;
    justify-content: center;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }
}

@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;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main > section {
      animation: revealOnScroll linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 28%;
    }

    #articles article {
      animation: revealOnScroll linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 32%;
    }

    #news h3 + p,
    #products ul li,
    #howto ol li,
    #faq h3 {
      animation: revealOnScroll linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

@keyframes revealOnScroll {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

::selection {
  background: rgba(139, 30, 63, 0.22);
  color: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
  ::selection {
    background: rgba(232, 90, 134, 0.3);
  }
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-accent));
  border-radius: var(--radius-pill);
  border: 3px solid var(--bg-body);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brand-primary-light), var(--brand-accent-light));
}

@media print {
  header,
  footer,
  #hero figure {
    display: none;
  }

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

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