:root {
  --primary: #1B5E20;
  --primary-light: #2E7D32;
  --primary-dark: #0D3B0F;
  --accent: #4CAF50;
  --accent-light: #81C784;
  --accent-glow: rgba(76, 175, 80, 0.3);
  --bg: #F5F7F5;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --text: #1A1A2E;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(76, 175, 80, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: 18px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  --max-width: 1200px;
  --header-height: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #4CAF50;
    --primary-light: #81C784;
    --primary-dark: #2E7D32;
    --accent: #66BB6A;
    --accent-light: #A5D6A7;
    --accent-glow: rgba(102, 187, 106, 0.25);
    --bg: #0F1A12;
    --bg-card: #16211A;
    --bg-elevated: #1C2B20;
    --text: #E8F0E9;
    --text-secondary: #A8C0AC;
    --text-muted: #6B8A70;
    --border: #2A3D2E;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(102, 187, 106, 0.12);
    --glass-bg: rgba(22, 33, 26, 0.78);
    --glass-border: rgba(76, 175, 80, 0.15);
  }
}

[data-theme="dark"] {
  --primary: #4CAF50;
  --primary-light: #81C784;
  --primary-dark: #2E7D32;
  --accent: #66BB6A;
  --accent-light: #A5D6A7;
  --accent-glow: rgba(102, 187, 106, 0.25);
  --bg: #0F1A12;
  --bg-card: #16211A;
  --bg-elevated: #1C2B20;
  --text: #E8F0E9;
  --text-secondary: #A8C0AC;
  --text-muted: #6B8A70;
  --border: #2A3D2E;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(102, 187, 106, 0.12);
  --glass-bg: rgba(22, 33, 26, 0.78);
  --glass-border: rgba(76, 175, 80, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -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);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

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

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

ul,
ol {
  list-style: none;
}

/* ========== HEADER ========== */
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

header[role="banner"]:hover {
  box-shadow: var(--shadow-md);
}

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

.header-inner > a:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.header-inner > a:first-child:hover {
  transform: scale(1.03);
}

.header-inner > a:first-child svg {
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px var(--accent-glow);
  transition: box-shadow var(--transition-smooth);
}

.header-inner > a:first-child:hover svg {
  box-shadow: 0 4px 20px var(--accent-glow), 0 0 40px rgba(76, 175, 80, 0.15);
}

nav[role="navigation"] {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

nav[role="navigation"] ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

nav[role="navigation"] ul li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition-fast), background var(--transition-fast);
}

nav[role="navigation"] ul li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition-smooth);
}

nav[role="navigation"] ul li a:hover {
  color: var(--primary);
  background: rgba(76, 175, 80, 0.08);
}

nav[role="navigation"] ul li a:hover::after {
  width: 60%;
}

/* ========== MAIN ========== */
main {
  flex: 1;
  width: 100%;
  overflow: hidden;
}

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

main > section:first-child {
  padding-top: 40px;
}

/* ========== SECTION HEADINGS ========== */
section h2 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
  position: relative;
  padding-left: 20px;
  line-height: 1.3;
}

section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px var(--accent-glow);
}

section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 14px;
  letter-spacing: -0.02em;
}

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

section h4 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 22px 0 10px;
}

section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.85;
}

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

/* ========== HOME / HERO ========== */
#home {
  position: relative;
  max-width: 100%;
  padding: 0;
  margin: 0;
  background: linear-gradient(135deg, #0D3B0F 0%, #1B5E20 30%, #2E7D32 55%, #4CAF50 80%, #81C784 100%);
  overflow: hidden;
}

#home::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(255, 255, 255, 0.12), transparent),
    radial-gradient(ellipse 50% 60% at 80% 80%, rgba(129, 199, 132, 0.15), transparent),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}

#home::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
  z-index: 1;
}

#home > * {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

#home h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  padding-top: 100px;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.8s ease-out both;
}

#home p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 800px;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease-out both;
}

#home p:nth-of-type(1) { animation-delay: 0.1s; }
#home p:nth-of-type(2) { animation-delay: 0.2s; }

#home p:last-of-type {
  padding-bottom: 80px;
}

/* ========== CARDS GENERAL ========== */
#brand,
#products,
#solutions,
#applications,
#cases,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#sitemap,
#links,
#eeat,
#updates {
  position: relative;
}

/* ========== BRAND ========== */
#brand {
  background: var(--bg);
}

#brand h3 {
  display: inline-block;
  padding: 4px 16px;
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.08), rgba(76, 175, 80, 0.12));
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

/* ========== PRODUCTS ========== */
#products {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(76, 175, 80, 0.03) 100%);
}

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

#products h4 {
  color: var(--primary);
  font-weight: 700;
}

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

#products ul li {
  position: relative;
  padding: 14px 18px 14px 44px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  overflow: hidden;
}

#products ul li::before {
  content: '◆';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 0.7rem;
  transition: transform var(--transition-bounce), color var(--transition-fast);
}

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

#products ul li:hover::before {
  transform: translateY(-50%) rotate(90deg) scale(1.3);
  color: var(--primary);
}

/* ========== SOLUTIONS ========== */
#solutions {
  background: var(--bg);
}

#solutions h3 {
  position: relative;
  padding-left: 16px;
}

#solutions h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  transition: height var(--transition-smooth), box-shadow var(--transition-smooth);
}

#solutions h3:hover::before {
  box-shadow: 0 0 16px var(--accent-glow);
}

/* ========== APPLICATIONS ========== */
#applications {
  background: linear-gradient(180deg, rgba(76, 175, 80, 0.03) 0%, var(--bg) 100%);
}

#applications h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

#applications h3::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 10px var(--accent-glow);
  flex-shrink: 0;
  transition: transform var(--transition-bounce);
}

#applications h3:hover::before {
  transform: scale(1.5);
}

/* ========== CASES ========== */
#cases {
  background: var(--bg);
}

#cases h3 {
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  margin-bottom: 0;
  font-size: 1.15rem;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

#cases h3 + p {
  padding: 14px 20px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

#cases h3:hover {
  background: rgba(76, 175, 80, 0.04);
  border-color: var(--accent);
}

#cases h3:hover + p {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

#cases blockquote {
  position: relative;
  margin: 20px 0;
  padding: 24px 28px 24px 56px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

#cases blockquote::before {
  content: '\201C';
  position: absolute;
  left: 18px;
  top: 10px;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
  font-family: Georgia, serif;
}

#cases blockquote:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

#cases blockquote p {
  font-size: 0.98rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

#cases blockquote cite {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-muted);
  text-align: right;
}

#cases blockquote cite::before {
  content: '— ';
}

/* ========== NEWS ========== */
#news {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(76, 175, 80, 0.04) 100%);
}

#news article {
  position: relative;
  padding: 22px 24px;
  margin-bottom: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  overflow: hidden;
}

#news article::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-smooth);
  border-radius: 0 2px 2px 0;
}

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

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

#news article h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--text);
  transition: color var(--transition-fast);
}

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

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

#news article p:last-of-type {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ========== ARTICLES ========== */
#articles {
  background: var(--bg);
}

#articles article {
  position: relative;
  padding: 24px;
  margin-bottom: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--accent);
}

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

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

#articles article p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: inline-block;
  padding: 2px 10px;
  background: rgba(76, 175, 80, 0.08);
  border-radius: 20px;
}

#articles article p:last-of-type {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.75;
}

/* ========== KNOWLEDGE ========== */
#knowledge {
  background: linear-gradient(180deg, rgba(76, 175, 80, 0.04) 0%, var(--bg) 100%);
}

#knowledge h3 {
  position: relative;
  padding: 14px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

#knowledge h3:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

#knowledge p {
  padding: 0 4px;
}

/* ========== FAQ ========== */
#faq {
  background: var(--bg);
}

#faq details {
  margin-bottom: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

#faq details[open] {
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border-color: var(--accent);
}

#faq details:hover {
  border-color: var(--accent);
}

#faq summary {
  position: relative;
  padding: 18px 52px 18px 22px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--transition-fast), color var(--transition-fast);
  user-select: none;
}

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

#faq summary::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-smooth), color var(--transition-fast);
  line-height: 1;
}

#faq details[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

#faq summary:hover {
  background: rgba(76, 175, 80, 0.05);
  color: var(--primary);
}

#faq details[open] summary {
  background: rgba(76, 175, 80, 0.06);
  border-bottom: 1px solid var(--border);
  color: var(--primary);
}

#faq details p {
  padding: 18px 22px 22px;
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin: 0;
  animation: fadeIn 0.3s ease-out;
}

/* ========== HOWTO ========== */
#howto {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(76, 175, 80, 0.03) 100%);
}

#howto ol {
  counter-reset: howto-step;
  margin: 16px 0 24px;
}

#howto ol li {
  counter-increment: howto-step;
  position: relative;
  padding: 16px 20px 16px 64px;
  margin-bottom: 10px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.93rem;
  color: var(--text-secondary);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

#howto ol li::before {
  content: counter(howto-step);
  position: absolute;
  left: 18px;
  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: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--accent-glow);
  transition: transform var(--transition-bounce), box-shadow var(--transition-smooth);
}

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

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

#howto ol li strong {
  color: var(--primary);
  font-weight: 700;
}

#howto ul {
  margin: 12px 0 20px;
}

#howto ul li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

#howto ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  transition: background var(--transition-fast), transform var(--transition-bounce);
}

#howto ul li:hover::before {
  background: var(--primary);
  transform: translateY(-50%) scale(1.4);
}

/* ========== CONTACT ========== */
#contact {
  background: var(--bg);
}

#contact ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}

#contact ul li {
  position: relative;
  padding: 16px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

#contact ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* ========== SITEMAP ========== */
#sitemap {
  background: linear-gradient(180deg, rgba(76, 175, 80, 0.03) 0%, var(--bg) 100%);
}

#sitemap ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap ul li a {
  display: inline-block;
  padding: 8px 18px;
  background: var(--bg-card);
  border-radius: 50px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

#sitemap ul li a:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #FFFFFF;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* ========== LINKS ========== */
#links {
  background: var(--bg);
}

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

#links ul li a {
  display: inline-block;
  padding: 10px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  font-size: 0.88rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

#links ul li a:hover {
  color: var(--primary);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* ========== EEAT ========== */
#eeat {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(76, 175, 80, 0.04) 100%);
}

#eeat ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
  margin: 12px 0 20px;
}

#eeat ul li {
  position: relative;
  padding: 12px 16px 12px 40px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all var(--transition-smooth);
}

#eeat ul li::before {
  content: '✓';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

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

/* ========== UPDATES ========== */
#updates {
  background: var(--bg);
}

#updates p {
  display: inline-block;
  margin-right: 20px;
  padding: 6px 14px;
  background: rgba(76, 175, 80, 0.08);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

#updates p:last-of-type {
  display: block;
  margin-top: 12px;
  padding: 16px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
}

/* ========== FOOTER ========== */
footer[role="contentinfo"] {
  position: relative;
  background: linear-gradient(135deg, #0D3B0F 0%, #1B5E20 50%, #2E7D32 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 24px 30px;
  margin-top: 0;
}

footer[role="contentinfo"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(129, 199, 132, 0.12), transparent),
    radial-gradient(ellipse 40% 50% at 90% 10%, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
}

footer[role="contentinfo"] > div {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

footer[role="contentinfo"] > div:first-child {
  margin-bottom: 36px;
}

footer[role="contentinfo"] h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

footer[role="contentinfo"] h2::before {
  display: none;
}

footer[role="contentinfo"] > div:first-child p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

footer[role="contentinfo"] > div:not(:first-child):not(:last-child) {
  display: inline-block;
  vertical-align: top;
  width: calc(25% - 16px);
  margin-right: 20px;
  margin-bottom: 24px;
}

footer[role="contentinfo"] h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

footer[role="contentinfo"] h3::before {
  display: none;
}

footer[role="contentinfo"] ul li {
  margin-bottom: 8px;
}

footer[role="contentinfo"] ul li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-block;
}

footer[role="contentinfo"] ul li a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

footer[role="contentinfo"] > div:not(:first-child):not(:last-child) p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-bottom: 6px;
  line-height: 1.6;
}

footer[role="contentinfo"] > div:last-child {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

footer[role="contentinfo"] > div:last-child p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

/* ========== LEGAL SECTIONS ========== */
#privacy,
#disclaimer,
#copyright {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
  background: var(--bg);
}

#privacy h2,
#disclaimer h2,
#copyright h2 {
  font-size: 1.3rem;
}

#privacy p,
#disclaimer p,
#copyright p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ========== 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 pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px var(--accent-glow);
  }
  50% {
    box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(76, 175, 80, 0.1);
  }
}

/* Scroll reveal via animation-timeline where supported */
@supports (animation-timeline: view()) {
  main > section:not(#home) {
    animation: fadeInUp 0.7s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

/* Fallback: use IntersectionObserver-based class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

  .header-inner {
    padding: 0 16px;
  }

  nav[role="navigation"] ul li a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  main > section {
    padding: 48px 20px;
  }

  section h2 {
    font-size: 1.6rem;
  }

  footer[role="contentinfo"] > div:not(:first-child):not(:last-child) {
    width: calc(50% - 16px);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 58px;
    --radius-lg: 16px;
    --radius-xl: 22px;
  }

  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 14px;
    gap: 12px;
  }

  .header-inner > a:first-child {
    font-size: 1.05rem;
  }

  .header-inner > a:first-child svg {
    width: 32px;
    height: 32px;
  }

  nav[role="navigation"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav[role="navigation"]::-webkit-scrollbar {
    display: none;
  }

  nav[role="navigation"] ul {
    flex-wrap: nowrap;
    gap: 2px;
    padding: 4px 0;
  }

  nav[role="navigation"] ul li a {
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  #home h1 {
    padding-top: 70px;
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  #home p {
    font-size: 0.95rem;
  }

  #home p:last-of-type {
    padding-bottom: 60px;
  }

  main > section {
    padding: 40px 16px;
  }

  section h2 {
    font-size: 1.4rem;
    padding-left: 16px;
    margin-bottom: 20px;
  }

  section h2::before {
    width: 4px;
  }

  section h3 {
    font-size: 1.15rem;
    margin: 24px 0 10px;
  }

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

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

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

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

  #cases blockquote::before {
    left: 14px;
    font-size: 2.6rem;
  }

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

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

  footer[role="contentinfo"] {
    padding: 40px 16px 24px;
  }

  footer[role="contentinfo"] > div:not(:first-child):not(:last-child) {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 28px;
  }

  #privacy,
  #disclaimer,
  #copyright {
    padding: 30px 16px;
  }

  #updates p {
    display: block;
    margin-bottom: 8px;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  #home h1 {
    padding-top: 60px;
    font-size: 1.45rem;
  }

  main > section {
    padding: 32px 14px;
  }

  section h2 {
    font-size: 1.25rem;
  }

  #news article {
    padding: 18px 16px;
  }

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

  #faq summary {
    padding: 14px 44px 14px 16px;
    font-size: 0.92rem;
  }

  #faq details p {
    padding: 14px 16px 18px;
    font-size: 0.88rem;
  }

  #sitemap ul {
    gap: 8px;
  }

  #sitemap ul li a {
    padding: 6px 14px;
    font-size: 0.82rem;
  }

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

/* ========== PRINT ========== */
@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  nav[role="navigation"] {
    display: none;
  }

  body {
    background: #FFFFFF;
    color: #000000;
    font-size: 12pt;
  }

  main > section {
    padding: 20px 0;
    page-break-inside: avoid;
  }

  #home {
    background: none;
    color: #000000;
  }

  #home h1,
  #home p {
    color: #000000;
    text-shadow: none;
  }

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

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

/* ========== HIGH CONTRAST ========== */
@media (prefers-contrast: high) {
  :root {
    --border: #000000;
    --text-secondary: #1A1A1A;
    --text-muted: #333333;
  }

  a {
    text-decoration: underline;
  }

  #faq details {
    border-width: 2px;
  }
}