:root {
  --primary: #c62828;
  --primary-dark: #8e0000;
  --primary-light: #ff5f52;
  --accent: #ff8f00;
  --accent-light: #ffc046;
  --bg: #f5f6fa;
  --bg-alt: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --text: #1a1a2e;
  --text-secondary: #555570;
  --text-muted: #8888a0;
  --border: rgba(0, 0, 0, 0.08);
  --border-glass: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.14);
  --shadow-glow: 0 0 32px rgba(198, 40, 40, 0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f1a;
    --bg-alt: #1a1a2e;
    --bg-card: rgba(30, 30, 50, 0.75);
    --bg-glass: rgba(20, 20, 40, 0.6);
    --text: #e8e8f0;
    --text-secondary: #b0b0c8;
    --text-muted: #707088;
    --border: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 48px rgba(198, 40, 40, 0.3);
    --primary-light: #ff6b6b;
    --accent-light: #ffd54f;
  }
}

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

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

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(198, 40, 40, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(255, 143, 0, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(198, 40, 40, 0.04) 0%, transparent 60%);
}

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

header:hover {
  box-shadow: var(--shadow-md);
}

header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

header nav > a {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
  transition: color var(--transition-fast), transform var(--transition-fast);
  position: relative;
}

header nav > a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width var(--transition);
}

header nav > a:hover {
  color: var(--primary-light);
  transform: translateY(-1px);
}

header nav > a:hover::after {
  width: 100%;
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

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

header nav ul li a {
  display: block;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 100px;
  white-space: nowrap;
  transition: all var(--transition-fast);
  position: relative;
}

header nav ul li a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

/* ===== MAIN ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + 24px) 24px 80px;
}

/* ===== SECTION BASE ===== */
section {
  margin-bottom: 48px;
  padding: 40px 32px;
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
  opacity: 0;
  transition: opacity var(--transition);
}

section:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(198, 40, 40, 0.15);
}

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

/* ===== HERO ===== */
#hero {
  background: linear-gradient(135deg, #c62828 0%, #8e0000 40%, #4a0000 100%);
  border: none;
  color: #fff;
  padding: 64px 40px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  margin-bottom: 56px;
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 143, 0, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroPulse 8s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 95, 82, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroPulse 10s ease-in-out infinite reverse;
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.6; }
  50% { transform: scale(1.15) translate(20px, -20px); opacity: 1; }
}

#hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

#hero p {
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  max-width: 800px;
}

#hero p:last-child {
  margin-bottom: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== HEADINGS ===== */
h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  position: relative;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

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

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

h3 {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  line-height: 1.45;
  transition: border-color var(--transition-fast), padding-left var(--transition-fast);
}

h3:hover {
  border-color: var(--accent);
  padding-left: 18px;
}

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

/* ===== PARAGRAPHS ===== */
p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.85;
  font-size: 0.95rem;
}

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

/* ===== LINKS ===== */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ===== LISTS ===== */
section > ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

section > ul li {
  padding: 14px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

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

section > ul li:hover {
  transform: translateX(4px);
  border-color: rgba(198, 40, 40, 0.25);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

section > ul li:hover::before {
  transform: scaleY(1);
}

section > ul li a {
  color: var(--text-secondary);
  display: block;
  font-weight: 500;
}

section > ul li a:hover {
  color: var(--primary);
}

/* ===== ARTICLES ===== */
article {
  padding: 24px;
  margin-bottom: 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

article:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: var(--shadow-md);
  border-color: rgba(198, 40, 40, 0.2);
}

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

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

article h3:hover {
  padding-left: 0;
  color: var(--primary);
}

article p {
  font-size: 0.88rem;
}

article p:first-of-type {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

article a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 16px;
  border: 1.5px solid var(--primary);
  border-radius: 100px;
  transition: all var(--transition-fast);
  margin-top: 4px;
}

article a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(198, 40, 40, 0.35);
}

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

article a:hover::after {
  transform: translateX(3px);
}

/* ===== BLOCKQUOTE (Reviews) ===== */
blockquote {
  padding: 24px 28px;
  margin-bottom: 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  position: relative;
  transition: all var(--transition);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.12;
  font-family: Georgia, serif;
  pointer-events: none;
}

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

blockquote p {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

blockquote footer {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  font-style: normal;
  letter-spacing: 0.02em;
}

/* ===== DETAILS / FAQ ===== */
details {
  margin-bottom: 10px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

details[open] {
  border-color: rgba(198, 40, 40, 0.25);
  box-shadow: var(--shadow-sm);
}

details:hover {
  border-color: rgba(198, 40, 40, 0.2);
}

details summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-fast);
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

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

details summary::before {
  content: "+";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--transition), background var(--transition);
}

details[open] summary::before {
  content: "−";
  transform: rotate(180deg);
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

details summary:hover {
  background: rgba(198, 40, 40, 0.04);
  color: var(--primary);
}

details[open] summary {
  border-bottom: 1px solid var(--border);
  color: var(--primary);
}

details p {
  padding: 18px 24px 20px 60px;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-secondary);
  animation: fadeSlideIn 0.3s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== HOWTO ORDERED LIST ===== */
ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

ol li {
  counter-increment: step;
  position: relative;
  padding: 16px 20px 16px 64px;
  margin-bottom: 10px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  transition: all var(--transition);
}

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;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.3);
  transition: all var(--transition-fast);
}

ol li:hover {
  transform: translateX(6px);
  border-color: rgba(198, 40, 40, 0.25);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

ol li:hover::before {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 16px rgba(255, 143, 0, 0.4);
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light), var(--accent), var(--primary));
  background-size: 200% 100%;
  animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

footer p {
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

footer p:last-child {
  margin-bottom: 0;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

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

footer a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-light);
  transition: width var(--transition-fast);
}

footer a:hover::after {
  width: 100%;
}

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

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

section {
  animation: fadeInUp 0.6s ease both;
}

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

article {
  animation: fadeInUp 0.5s ease both;
}

article:nth-child(2) { animation-delay: 0.08s; }
article:nth-child(3) { animation-delay: 0.16s; }
article:nth-child(4) { animation-delay: 0.24s; }
article:nth-child(5) { animation-delay: 0.32s; }
article:nth-child(6) { animation-delay: 0.4s; }
article:nth-child(7) { animation-delay: 0.48s; }
article:nth-child(8) { animation-delay: 0.56s; }
article:nth-child(9) { animation-delay: 0.64s; }
article:nth-child(10) { animation-delay: 0.72s; }

blockquote {
  animation: fadeInLeft 0.5s ease both;
}

blockquote:nth-child(2) { animation-delay: 0.1s; }
blockquote:nth-child(3) { animation-delay: 0.2s; }
blockquote:nth-child(4) { animation-delay: 0.3s; }
blockquote:nth-child(5) { animation-delay: 0.4s; }

details {
  animation: fadeInUp 0.4s ease both;
}

details:nth-child(2) { animation-delay: 0.04s; }
details:nth-child(3) { animation-delay: 0.08s; }
details:nth-child(4) { animation-delay: 0.12s; }
details:nth-child(5) { animation-delay: 0.16s; }
details:nth-child(6) { animation-delay: 0.2s; }
details:nth-child(7) { animation-delay: 0.24s; }
details:nth-child(8) { animation-delay: 0.28s; }
details:nth-child(9) { animation-delay: 0.32s; }
details:nth-child(10) { animation-delay: 0.36s; }
details:nth-child(11) { animation-delay: 0.4s; }
details:nth-child(12) { animation-delay: 0.44s; }
details:nth-child(13) { animation-delay: 0.48s; }
details:nth-child(14) { animation-delay: 0.52s; }
details:nth-child(15) { animation-delay: 0.56s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  main {
    padding-left: 20px;
    padding-right: 20px;
  }

  section {
    padding: 32px 24px;
  }

  #hero {
    padding: 48px 28px;
  }
}

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

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

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

  header nav ul {
    gap: 2px;
  }

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

  main {
    padding: calc(var(--header-height) + 16px) 12px 60px;
  }

  section {
    padding: 24px 16px;
    margin-bottom: 28px;
    border-radius: var(--radius-md);
  }

  #hero {
    padding: 36px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
  }

  #hero h1 {
    font-size: 1.35rem;
    margin-bottom: 16px;
  }

  #hero p {
    font-size: 0.88rem;
    line-height: 1.75;
  }

  h2 {
    font-size: 1.2rem;
    margin-bottom: 18px;
  }

  h3 {
    font-size: 0.98rem;
    margin: 20px 0 10px;
  }

  p {
    font-size: 0.88rem;
  }

  section > ul {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  section > ul li {
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  article {
    padding: 18px 16px;
    border-radius: var(--radius-sm);
  }

  article h3 {
    font-size: 0.95rem;
  }

  article p {
    font-size: 0.84rem;
  }

  blockquote {
    padding: 18px 20px;
    border-radius: var(--radius-sm);
  }

  blockquote p {
    font-size: 0.88rem;
  }

  details summary {
    padding: 14px 16px;
    font-size: 0.88rem;
    gap: 10px;
  }

  details summary::before {
    width: 20px;
    height: 20px;
    min-width: 20px;
    font-size: 0.85rem;
  }

  details p {
    padding: 14px 16px 16px 46px;
    font-size: 0.84rem;
  }

  ol li {
    padding: 14px 16px 14px 56px;
    font-size: 0.86rem;
  }

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

  footer {
    padding: 32px 16px;
  }

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

@media (max-width: 480px) {
  header nav > a {
    font-size: 0.92rem;
  }

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

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

  #hero p {
    font-size: 0.84rem;
  }

  section {
    padding: 20px 14px;
  }

  h2 {
    font-size: 1.1rem;
  }

  h3 {
    font-size: 0.92rem;
  }
}

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

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

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

  section {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

  #hero {
    background: #f5f5f5;
    color: #000;
  }

  #hero p {
    color: #333;
  }
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(198, 40, 40, 0.2);
  color: var(--primary-dark);
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(198, 40, 40, 0.25);
  border-radius: 100px;
  transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(198, 40, 40, 0.5);
}

/* ===== FOCUS VISIBLE ===== */
a:focus-visible,
summary:focus-visible,
details:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== UTILITY: SMOOTH SECTION ENTRY ===== */
@supports (animation-timeline: view()) {
  section {
    animation: fadeInUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}