:root {
  --primary: #6d28d9;
  --primary-light: #8b5cf6;
  --primary-dark: #4c1d95;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-border: rgba(255, 255, 255, 0.35);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 40px rgba(109, 40, 217, 0.15);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --max-width: 1200px;
  --header-height: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #a78bfa;
    --primary-light: #c4b5fd;
    --primary-dark: #7c3aed;
    --accent: #22d3ee;
    --accent-light: #67e8f9;
    --bg: #0a0e1a;
    --bg-alt: #0f172a;
    --surface: #1e293b;
    --surface-glass: rgba(30, 41, 59, 0.72);
    --surface-glass-border: rgba(148, 163, 184, 0.15);
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border: #334155;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(167, 139, 250, 0.12);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

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

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

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

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

ul,
ol {
  list-style: none;
}

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

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

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  font-weight: 700;
}

h4 {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 600;
}

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

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

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

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

header nav > a {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

header nav > a:hover {
  opacity: 0.8;
}

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;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

header nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 1px;
  transition: transform var(--transition-fast);
}

header nav ul li a:hover {
  color: var(--primary);
  background: rgba(109, 40, 217, 0.06);
}

header nav ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

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

main > nav[aria-label="面包屑"] {
  padding: 20px 0 8px;
}

main > nav[aria-label="面包屑"] ol {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

main > nav[aria-label="面包屑"] ol li {
  display: flex;
  align-items: center;
  gap: 8px;
}

main > nav[aria-label="面包屑"] ol li + li::before {
  content: "/";
  color: var(--text-muted);
  opacity: 0.5;
}

main > nav[aria-label="面包屑"] ol li a {
  color: var(--text-muted);
  font-weight: 500;
}

main > nav[aria-label="面包屑"] ol li a:hover {
  color: var(--primary);
}

section {
  padding: 48px 0;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

section h2 {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 14px;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

section h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text);
}

section h4 {
  margin-top: 18px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

section > p {
  max-width: 72ch;
}

#hero {
  padding: 56px 0 48px;
  position: relative;
}

#hero h1 {
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease-out both;
}

#hero > p {
  max-width: 72ch;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease-out both;
}

#hero > p:nth-child(2) { animation-delay: 0.1s; }
#hero > p:nth-child(3) { animation-delay: 0.2s; }
#hero > p:nth-child(4) { animation-delay: 0.3s; }

#hero > p:last-child {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

#hero > p:last-child a {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

#hero > p:last-child a:first-child {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.3);
}

#hero > p:last-child a:first-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(109, 40, 217, 0.4);
  color: #fff;
}

#hero > p:last-child a:not(:first-child) {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

#hero > p:last-child a:not(:first-child):hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow);
}

#banner {
  padding: 48px 0;
  position: relative;
}

#banner h2 {
  text-align: center;
  margin-bottom: 32px;
}

#banner h2::after {
  left: 50%;
  transform: translateX(-50%);
}

#banner > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

#banner > ul > li {
  position: relative;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.08), rgba(6, 182, 212, 0.06));
  border: 1px solid var(--surface-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

#banner > ul > li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

#banner > ul > li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(109, 40, 217, 0.25);
}

#banner > ul > li:hover::before {
  transform: scaleX(1);
}

#banner > ul > li h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#banner > ul > li p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

#about,
#products,
#solutions,
#industry,
#cases,
#reviews,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal,
#editorial {
  position: relative;
}

#about {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  margin: 16px 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

#products {
  padding: 48px 0;
}

#products > h3 {
  margin-top: 36px;
}

#products > h3:first-of-type {
  margin-top: 0;
}

#products ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

#products ul li {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

#products ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

#products ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 40, 217, 0.2);
  color: var(--text);
}

#products ul li:hover::before {
  transform: scaleY(1);
}

#solutions {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  margin: 16px 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

#solutions h3 {
  padding: 16px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 1.05rem;
  border-left: 3px solid var(--primary);
  transition: all var(--transition);
}

#solutions h3:hover {
  border-left-color: var(--accent);
  transform: translateX(4px);
}

#solutions h3 + p {
  padding: 0 20px 8px;
}

#industry {
  padding: 48px 0;
}

#industry h3 {
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.06), rgba(6, 182, 212, 0.04));
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  margin-top: 20px;
  transition: all var(--transition);
}

#industry h3:hover {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.1), rgba(6, 182, 212, 0.08));
  transform: translateX(4px);
}

#cases {
  padding: 48px 0;
}

#cases h3 {
  position: relative;
  padding-left: 28px;
  margin-top: 28px;
}

#cases h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.12);
}

#cases p {
  padding-left: 28px;
  border-left: 1px dashed var(--border);
  margin-left: 5px;
  padding-bottom: 16px;
}

#reviews {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  margin: 16px 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

#reviews h3 {
  margin-top: 0;
}

#reviews p {
  position: relative;
  padding: 20px 24px 20px 52px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  margin-bottom: 14px;
  font-style: italic;
  color: var(--text-secondary);
  transition: all var(--transition);
  border: 1px solid transparent;
}

#reviews p::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 8px;
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, serif;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.5;
}

#reviews p:hover {
  transform: translateX(6px);
  border-color: rgba(109, 40, 217, 0.15);
  box-shadow: var(--shadow-sm);
}

#news {
  padding: 48px 0;
}

#news h3 {
  padding: 18px 22px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: 20px;
  margin-bottom: 0;
  font-size: 1.05rem;
  transition: all var(--transition);
}

#news h3:hover {
  color: var(--primary);
}

#news h3 + p {
  padding: 6px 22px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 0;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

#news h3 + p:hover {
  box-shadow: var(--shadow);
}

#news h3 + p + h3 {
  margin-top: 16px;
}

#articles {
  padding: 48px 0;
}

#articles article {
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 40, 217, 0.18);
}

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

#articles article h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.15rem;
  transition: color var(--transition-fast);
}

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

#articles article p:first-of-type {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

#articles article p:nth-of-type(2) {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

#articles article p:last-child {
  margin-bottom: 0;
}

#articles article p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary);
  transition: all var(--transition-fast);
}

#articles article p:last-child a::after {
  content: "\2192";
  transition: transform var(--transition-fast);
}

#articles article p:last-child a:hover {
  gap: 10px;
  color: var(--accent);
}

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

#faq {
  padding: 48px 0;
}

#faq h3 {
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 1.02rem;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  padding-right: 52px;
}

#faq h3::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--transition);
  line-height: 1;
}

#faq h3:hover {
  border-color: rgba(109, 40, 217, 0.3);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, var(--surface), rgba(109, 40, 217, 0.03));
}

#faq h3 + p {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all var(--transition);
  margin-bottom: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border: 1px solid transparent;
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

#faq h3:hover + p {
  max-height: 300px;
  opacity: 1;
  padding: 16px 22px;
  background: var(--surface);
  border-color: var(--border);
  margin-bottom: 4px;
}

#faq h3:hover::after {
  transform: translateY(-50%) rotate(45deg);
}

#howto {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  margin: 16px 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

#howto h3 {
  margin-top: 28px;
}

#howto h3:first-of-type {
  margin-top: 0;
}

#howto ul {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

#howto ul li {
  position: relative;
  padding: 12px 16px 12px 44px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

#howto ul li::before {
  content: "\2713";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

#howto ul li:hover {
  transform: translateX(4px);
  background: rgba(109, 40, 217, 0.06);
}

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

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 16px 20px 16px 60px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  border: 1px solid transparent;
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.25);
}

#howto ol li:hover {
  transform: translateX(6px);
  border-color: rgba(109, 40, 217, 0.2);
  box-shadow: var(--shadow-sm);
}

#contact {
  padding: 48px 0;
}

#contact h3 {
  margin-top: 28px;
}

#contact h3:first-of-type {
  margin-top: 0;
}

#contact p {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  transition: all var(--transition-fast);
}

#contact p:hover {
  padding-left: 8px;
  border-bottom-color: var(--primary);
}

#contact h3 + p + p + p + p + p + p {
  border-bottom: none;
}

#sitemap {
  padding: 48px 0;
}

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

#sitemap ul li a {
  display: block;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

#sitemap ul li a:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--surface), rgba(109, 40, 217, 0.04));
}

#links {
  padding: 48px 0;
}

#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#links ul li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

#links ul li a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transition: transform var(--transition);
}

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

#links ul li a:hover::before {
  transform: scale(1.4);
}

#legal {
  padding: 48px 0;
}

#legal h2 {
  margin-top: 32px;
  font-size: 1.2rem;
}

#legal h2:first-of-type {
  margin-top: 0;
}

#legal h2::after {
  width: 36px;
  height: 3px;
}

#legal p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

#editorial {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin: 16px 0 48px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

#editorial h2 {
  font-size: 1.2rem;
}

#editorial h2::after {
  width: 36px;
  height: 3px;
}

#editorial p {
  font-size: 0.9375rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

#editorial p:last-child {
  border-bottom: none;
}

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  transition: background var(--transition), border-color var(--transition);
}

footer p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

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

footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.25);
}

footer a::before {
  content: "\2191";
  font-size: 0.9rem;
  transition: transform var(--transition-fast);
}

footer a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.35);
  color: #fff !important;
}

footer a:hover::before {
  transform: translateY(-3px);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(109, 40, 217, 0.15); }
  50% { box-shadow: 0 0 40px rgba(109, 40, 217, 0.3); }
}

section {
  animation: fadeInUp 0.7s ease-out both;
}

section:nth-child(2) { animation-delay: 0.05s; }
section:nth-child(3) { animation-delay: 0.1s; }
section:nth-child(4) { animation-delay: 0.15s; }
section:nth-child(5) { animation-delay: 0.2s; }
section:nth-child(6) { animation-delay: 0.25s; }
section:nth-child(7) { animation-delay: 0.3s; }
section:nth-child(8) { animation-delay: 0.35s; }
section:nth-child(9) { animation-delay: 0.4s; }
section:nth-child(10) { animation-delay: 0.45s; }
section:nth-child(11) { animation-delay: 0.5s; }

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

@media (max-width: 1024px) {
  main {
    padding: 0 20px;
  }

  #about,
  #solutions,
  #reviews,
  #howto,
  #editorial {
    padding: 36px 28px;
  }

  header nav {
    padding: 0 20px;
  }
}

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

  body {
    font-size: 15px;
  }

  main {
    padding: 0 16px;
  }

  header nav {
    padding: 0 16px;
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-height);
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 8px;
  }

  header nav > a {
    font-size: 1.2rem;
  }

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

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

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

  section {
    padding: 36px 0;
  }

  #hero {
    padding: 36px 0 32px;
  }

  #hero > p:last-child {
    flex-direction: column;
  }

  #hero > p:last-child a {
    justify-content: center;
    width: 100%;
  }

  #banner > ul {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #banner > ul > li {
    padding: 28px 22px;
  }

  #about,
  #solutions,
  #reviews,
  #howto,
  #editorial {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

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

  #articles article {
    padding: 22px 20px;
  }

  #faq h3 {
    padding: 16px 48px 16px 18px;
    font-size: 0.95rem;
  }

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

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

  #howto ol li {
    padding: 14px 16px 14px 52px;
  }

  #howto ol li::before {
    left: 14px;
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  #sitemap ul {
    grid-template-columns: repeat(2, 1fr);
  }

  #links ul {
    gap: 8px;
  }

  #links ul li a {
    padding: 8px 16px;
    font-size: 0.8125rem;
  }

  footer {
    padding: 32px 16px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.05rem;
  }

  header nav > a {
    font-size: 1.05rem;
  }

  #hero > p:last-child a {
    padding: 11px 20px;
    font-size: 0.875rem;
  }

  #banner > ul > li {
    padding: 24px 18px;
  }

  #about,
  #solutions,
  #reviews,
  #howto,
  #editorial {
    padding: 24px 16px;
  }

  #articles article {
    padding: 20px 16px;
  }

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

  #howto ul li {
    padding: 10px 12px 10px 40px;
  }

  #howto ul li::before {
    left: 12px;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }
}

::selection {
  background: rgba(109, 40, 217, 0.2);
  color: var(--text);
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

@supports (backdrop-filter: blur(1px)) {
  header {
    background: var(--surface-glass);
  }
}

@supports not (backdrop-filter: blur(1px)) {
  header {
    background: var(--surface);
  }
}