:root {
  --primary: #1A237E;
  --primary-light: #3949AB;
  --primary-dark: #0D1557;
  --accent: #FF6B9D;
  --accent-alt: #7C4DFF;
  --accent-glow: rgba(124, 77, 255, 0.4);
  --gradient-1: linear-gradient(135deg, #1A237E 0%, #7C4DFF 50%, #FF6B9D 100%);
  --gradient-2: linear-gradient(120deg, #0D1557 0%, #3949AB 100%);
  --gradient-3: linear-gradient(45deg, #FF6B9D, #7C4DFF, #1A237E);
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 8px 32px rgba(26, 35, 126, 0.15);
  --bg: #F5F6FA;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --text: #1A1A2E;
  --text-secondary: #4A4A6A;
  --text-muted: #8888A0;
  --border: rgba(26, 35, 126, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(26, 35, 126, 0.08);
  --shadow-md: 0 8px 24px rgba(26, 35, 126, 0.12);
  --shadow-lg: 0 16px 48px rgba(26, 35, 126, 0.16);
  --shadow-glow: 0 0 40px rgba(124, 77, 255, 0.3);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0E1A;
    --bg-card: #141829;
    --bg-elevated: #1C2138;
    --text: #E8EAF6;
    --text-secondary: #A0A8C8;
    --text-muted: #6A7290;
    --border: rgba(124, 77, 255, 0.18);
    --glass-bg: rgba(20, 24, 41, 0.65);
    --glass-border: rgba(124, 77, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --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);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

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

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(124, 77, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255, 107, 157, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

@media (prefers-color-scheme: dark) {
  body::before {
    background:
      radial-gradient(ellipse at 20% 0%, rgba(124, 77, 255, 0.15) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 100%, rgba(255, 107, 157, 0.1) 0%, transparent 50%);
  }
}

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

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

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

@media (prefers-color-scheme: dark) {
  a { color: #9FA8DA; }
  a:hover { color: var(--accent); }
}

ul, ol {
  list-style: none;
}

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

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: background var(--transition), box-shadow var(--transition);
}

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

header nav > a {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: transform var(--transition-bounce), filter var(--transition);
  position: relative;
}

header nav > a:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
  -webkit-text-fill-color: transparent;
}

header nav > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

header nav > a:hover::after {
  transform: scaleX(1);
}

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

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);
  position: relative;
  white-space: nowrap;
}

header nav ul li a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}

header nav ul li a:hover {
  color: #fff;
  transform: translateY(-2px);
}

header nav ul li a:hover::before {
  opacity: 1;
}

/* ===== MAIN ===== */
main {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ===== SECTIONS ===== */
section {
  padding: 80px 0;
  position: relative;
}

section + section {
  border-top: 1px solid var(--border);
}

section h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 32px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  line-height: 1.3;
  position: relative;
  display: inline-block;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-3);
  border-radius: 2px;
  transition: width var(--transition);
}

section:hover h2::after {
  width: 100px;
}

section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  line-height: 1.4;
}

section p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 72ch;
}

section ul,
section ol {
  margin: 16px 0;
  padding-left: 0;
}

section ul li,
section ol li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: var(--text-secondary);
  transition: transform var(--transition), color var(--transition);
}

section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-1);
  transition: transform var(--transition), box-shadow var(--transition);
}

section ul li:hover {
  transform: translateX(6px);
  color: var(--text);
}

section ul li:hover::before {
  transform: translateY(-50%) scale(1.5);
  box-shadow: 0 0 12px var(--accent-glow);
}

section ol {
  counter-reset: ol-counter;
}

section ol li {
  counter-increment: ol-counter;
  padding-left: 40px;
}

section ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

section ol li:hover {
  transform: translateX(6px);
  color: var(--text);
}

section ol li:hover::before {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0 16px var(--accent-glow);
}

/* ===== HERO ===== */
#hero {
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 40%, rgba(124, 77, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(255, 107, 157, 0.1) 0%, transparent 40%);
  animation: heroFloat 12s ease-in-out infinite;
  z-index: -1;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

#hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.8s ease-out both;
}

#hero > p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 48px;
  line-height: 1.9;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

#hero figure {
  margin: 0 auto;
  max-width: 720px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeInUp 0.8s ease-out 0.3s both;
  position: relative;
}

#hero figure::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

#hero figure:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(124, 77, 255, 0.4);
}

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

#hero figcaption {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 16px;
  font-style: italic;
}

/* ===== ABOUT ===== */
#about {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

#about:hover {
  box-shadow: var(--shadow-lg);
}

/* ===== PRODUCTS ===== */
#products {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

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

#products ul li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 20px 20px 36px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

#products ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-1);
  border-radius: 0 4px 4px 0;
  transition: width var(--transition);
}

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

#products ul li:hover::before {
  width: 6px;
}

#products ul li strong {
  color: var(--text);
  font-weight: 700;
}

/* ===== SOLUTIONS ===== */
#solutions {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

#solutions ul li {
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.04), rgba(255, 107, 157, 0.04));
  border-radius: var(--radius-sm);
  padding: 14px 16px 14px 36px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  transition: all var(--transition);
}

#solutions ul li:hover {
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.08), rgba(255, 107, 157, 0.08));
  border-color: var(--border);
  transform: translateX(6px);
}

#solutions ul li strong {
  color: var(--text);
}

/* ===== CASES ===== */
#cases {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

#cases blockquote {
  background: var(--bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  margin: 20px 0;
  position: relative;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

#cases blockquote::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  font-family: Georgia, serif;
}

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

#cases blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text-secondary);
  padding-left: 20px;
}

/* ===== NEWS ===== */
#news {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

#news article {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 20px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

#news article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

#news article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

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

#news article h3 {
  border-left: none;
  padding-left: 0;
  margin-top: 0;
  font-size: 1.15rem;
}

#news article h3 a {
  color: var(--text);
  transition: color var(--transition);
}

#news article h3 a:hover {
  color: var(--accent);
}

#news article p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

#news article p a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  background: var(--gradient-1);
  color: #fff;
  border-radius: 50px;
  transition: all var(--transition);
  margin-top: 8px;
}

#news article p a:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px var(--accent-glow);
  color: #fff;
}

#news article p a::after {
  content: '→';
  transition: transform var(--transition);
}

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

/* ===== ARTICLES ===== */
#articles {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

#articles article {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

#articles article::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-1);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

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

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

#articles article h3 {
  border-left: none;
  padding-left: 0;
  margin-top: 0;
  font-size: 1.1rem;
}

#articles article h3 a {
  color: var(--text);
}

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

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

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

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

/* ===== FAQ ===== */
#faq {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

#faq h3 {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0 0;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.05rem;
  position: relative;
}

#faq h3::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform var(--transition);
}

#faq h3:hover {
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.06), rgba(255, 107, 157, 0.06));
  border-left-color: var(--accent-alt);
  transform: translateX(4px);
}

#faq h3 + p {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 16px 20px;
  margin: 0 0 4px;
  font-size: 0.925rem;
  line-height: 1.8;
  transition: all var(--transition);
}

#faq h3 + p:hover {
  background: var(--bg-elevated);
}

/* ===== HOWTO ===== */
#howto {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

#howto ol li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px 16px 44px;
  margin-bottom: 10px;
  transition: all var(--transition);
}

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

#howto ol li strong {
  color: var(--text);
}

#howto ul li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px 12px 32px;
  margin-bottom: 8px;
  transition: all var(--transition);
}

#howto ul li:hover {
  transform: translateX(4px);
  border-color: var(--border);
}

/* ===== CONTACT ===== */
#contact {
  background: var(--gradient-2);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  margin: 40px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#contact::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: contactGlow 8s ease-in-out infinite;
}

@keyframes contactGlow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(-20px, 20px) scale(1.2); opacity: 0.8; }
}

#contact h2 {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}

#contact h2::after {
  background: var(--accent);
}

#contact h3 {
  color: #fff;
  border-left-color: var(--accent);
}

#contact p {
  color: rgba(255, 255, 255, 0.85);
}

#contact ul li {
  color: rgba(255, 255, 255, 0.85);
}

#contact ul li::before {
  background: var(--accent);
}

#contact ul li:hover {
  color: #fff;
}

#contact ul li strong {
  color: #fff;
}

#contact a {
  color: var(--accent);
}

#contact a:hover {
  color: #fff;
}

/* ===== SITEMAP ===== */
#sitemap {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

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

#sitemap ul li {
  padding: 0;
}

#sitemap ul li::before {
  display: none;
}

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

#sitemap ul li a:hover {
  background: var(--gradient-1);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* ===== LINKS ===== */
#links {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

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

#links ul li {
  padding: 0;
}

#links ul li::before {
  display: none;
}

#links ul li a {
  display: inline-block;
  padding: 10px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

#links ul li a:hover {
  background: var(--gradient-1);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* ===== PRIVACY / DISCLAIMER / SECURITY ===== */
#privacy,
#disclaimer,
#security {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin: 40px 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

#privacy:hover,
#disclaimer:hover,
#security:hover {
  box-shadow: var(--shadow-md);
}

/* ===== FOOTER ===== */
footer {
  background: var(--gradient-2);
  color: #fff;
  padding: 64px 24px 40px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-3);
}

footer > section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 32px;
  border-top: none;
}

footer > section + section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
}

footer h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  background: none;
  -webkit-text-fill-color: #fff;
}

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

footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 72ch;
}

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

footer a:hover {
  color: #fff;
}

/* ===== SCROLL ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

section {
  animation: fadeInUp 0.7s ease-out both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

@supports not (animation-timeline: view()) {
  section {
    animation: none;
    opacity: 1;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  header nav {
    padding: 0 16px;
    height: 64px;
  }

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

  main {
    padding: 0 16px 60px;
  }

  section {
    padding: 60px 0;
  }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links {
    padding: 48px 32px;
  }

  #privacy,
  #disclaimer,
  #security {
    padding: 40px 32px;
  }
}

@media (max-width: 768px) {
  header nav {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 8px;
  }

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

  header nav ul {
    gap: 2px;
    justify-content: center;
  }

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

  html {
    scroll-padding-top: 120px;
  }

  #hero {
    padding-top: 160px;
  }

  #hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  #hero > p {
    font-size: 0.95rem;
  }

  section h2 {
    font-size: 1.4rem;
  }

  section h3 {
    font-size: 1.05rem;
  }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links {
    padding: 32px 20px;
    border-radius: var(--radius-md);
    margin: 24px 0;
  }

  #privacy,
  #disclaimer,
  #security {
    padding: 32px 20px;
    border-radius: var(--radius-md);
    margin: 24px 0;
  }

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

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

  #links ul {
    justify-content: center;
  }

  #contact {
    padding: 40px 20px;
  }

  footer {
    padding: 48px 16px 32px;
  }

  footer h2 {
    font-size: 1rem;
  }

  footer p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  header nav ul li a {
    padding: 5px 6px;
    font-size: 0.7rem;
  }

  #hero {
    padding-top: 150px;
  }

  #hero h1 {
    font-size: 1.5rem;
  }

  section h2 {
    font-size: 1.25rem;
  }

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

  #cases blockquote {
    padding: 18px 20px;
  }

  #cases blockquote p {
    padding-left: 12px;
    font-size: 0.9rem;
  }
}

/* ===== ACCESSIBILITY ===== */
@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;
  }
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-light), var(--accent-alt));
  border-radius: 5px;
  border: 2px solid var(--bg);
}

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

@media (prefers-color-scheme: dark) {
  ::-webkit-scrollbar-track {
    background: var(--bg);
  }
  ::-webkit-scrollbar-thumb {
    border-color: var(--bg);
  }
}

/* ===== PRINT ===== */
@media print {
  header,
  footer,
  #contact,
  #sitemap,
  #links {
    display: none;
  }

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

  section {
    page-break-inside: avoid;
  }
}