/* CleanMac Update — style.css */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== CSS Variables ===== */
:root {
  --bg-primary: #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-card-hover: #1f1f1f;
  --bg-elevated: #141414;
  --border: #2a2a2a;
  --border-light: #333;
  --green-start: #00c853;
  --green-end: #00e676;
  --green-mid: #00d95f;
  --green-glow: rgba(0, 200, 83, 0.3);
  --green-subtle: rgba(0, 200, 83, 0.08);
  --green-border: rgba(0, 200, 83, 0.2);
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #6a6a6a;
  --text-dark: #1a1a1a;
  --white: #ffffff;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.5);
  --shadow-green: 0 4px 30px rgba(0, 200, 83, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode overrides */
[data-theme="light"] {
  --bg-primary: #f5f5f5;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --bg-elevated: #eeeeee;
  --border: #e0e0e0;
  --border-light: #d0d0d0;
  --green-subtle: rgba(0, 200, 83, 0.06);
  --green-border: rgba(0, 200, 83, 0.25);
  --text-primary: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  margin: 0;
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin-top: 0;
  color: var(--text-primary);
}
a { color: var(--green-start); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-end); }
img { max-width: 100%; height: auto; }
::selection { background: var(--green-start); color: var(--bg-primary); }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-start); }

/* ===== Reading Progress Bar ===== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-start), var(--green-end));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--green-glow);
}

/* ===== Navbar ===== */
.navbar-cm {
  background: rgba(13, 13, 13, 0.85);
  border-bottom: 1px solid var(--border);
  padding: .65rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
}
[data-theme="light"] .navbar-cm {
  background: rgba(245, 245, 245, 0.85);
}
.navbar-cm.scrolled {
  box-shadow: var(--shadow-md);
}
.navbar-cm .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.navbar-cm .navbar-brand:hover { color: var(--green-start); }
.navbar-cm .navbar-brand svg { width: 34px; height: 34px; }
.navbar-cm .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-secondary);
  padding: .5rem .9rem;
  transition: var(--transition);
  font-size: 0.92rem;
  position: relative;
}
.navbar-cm .nav-link:hover,
.navbar-cm .nav-link.active {
  color: var(--green-start);
}
.navbar-cm .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--green-start), var(--green-end));
  border-radius: 2px;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}
.theme-toggle:hover {
  border-color: var(--green-start);
  color: var(--green-start);
  box-shadow: 0 0 15px var(--green-glow);
}

/* ===== Particle Canvas ===== */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ===== Hero Section ===== */
.hero {
  background: radial-gradient(ellipse at 50% 0%, rgba(0,200,83,0.08) 0%, transparent 60%),
              var(--bg-primary);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(0,200,83,0.04) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(0,230,118,0.03) 0%, transparent 50%);
  animation: heroGlow 15s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -1%) rotate(1deg); }
  66% { transform: translate(-1%, 2%) rotate(-1deg); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green-subtle);
  border: 1px solid var(--green-border);
  border-radius: 50px;
  padding: .4rem 1.2rem;
  font-size: .85rem;
  color: var(--green-start);
  font-weight: 500;
  margin-bottom: 1.5rem;
  position: relative;
}
.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green-start);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  position: relative;
  line-height: 1.15;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--green-start), var(--green-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 540px;
  position: relative;
  line-height: 1.8;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
  flex-wrap: wrap;
}
.btn-primary-cm {
  background: linear-gradient(135deg, var(--green-start), var(--green-end));
  color: var(--bg-primary);
  border: none;
  padding: .8rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  font-family: var(--font-body);
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
.btn-primary-cm:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
  color: var(--bg-primary);
}
.btn-outline-cm {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-light);
  padding: .8rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  font-family: var(--font-body);
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
.btn-outline-cm:hover {
  border-color: var(--green-start);
  color: var(--green-start);
  transform: translateY(-2px);
}

/* Hero SVG Illustration */
.hero-illustration {
  position: relative;
}
.hero-illustration svg {
  filter: drop-shadow(0 20px 60px rgba(0,200,83,0.1));
}

/* Floating elements animation */
.float-element {
  animation: floating 6s ease-in-out infinite;
}
.float-element:nth-child(2) { animation-delay: -2s; }
.float-element:nth-child(3) { animation-delay: -4s; }
@keyframes floating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ===== Stats Bar ===== */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  position: relative;
}
.stat-item {
  text-align: center;
  padding: .5rem;
}
.stat-item .stat-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--green-start), var(--green-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.stat-item .stat-label {
  font-size: .85rem;
  color: var(--text-muted);
  display: block;
  margin-top: .2rem;
}

/* ===== Section Common ===== */
.section { padding: 5rem 0; position: relative; }
.section-alt { background: var(--bg-elevated); }
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.section-title .gradient-text {
  background: linear-gradient(135deg, var(--green-start), var(--green-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}
.section-subtitle.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== Guide Cards ===== */
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.guide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-start), var(--green-end));
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left;
}
.guide-card:hover::before { transform: scaleX(1); }
.guide-card:hover {
  border-color: var(--green-border);
  transform: translateY(-6px);
  box-shadow: var(--shadow-green);
}
.guide-card .card-icon {
  width: 52px;
  height: 52px;
  background: var(--green-subtle);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.guide-card:hover .card-icon {
  background: linear-gradient(135deg, var(--green-start), var(--green-end));
  border-color: transparent;
}
.guide-card:hover .card-icon svg { color: var(--bg-primary); }
.guide-card .card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--green-start);
  transition: var(--transition);
}
.guide-card h3 {
  font-size: 1.15rem;
  margin-bottom: .6rem;
}
.guide-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex-grow: 1;
  font-size: .95rem;
}
.guide-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.guide-card .card-link {
  font-weight: 600;
  color: var(--green-start);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .9rem;
}
.guide-card .card-link:hover { gap: .6rem; }

/* ===== Benefit Cards ===== */
.benefit-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  height: 100%;
}
.benefit-card:hover {
  border-color: var(--green-border);
  transform: translateY(-4px);
}
.benefit-icon {
  width: 64px;
  height: 64px;
  background: var(--green-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: var(--transition);
}
.benefit-card:hover .benefit-icon {
  box-shadow: 0 0 30px var(--green-glow);
}
.benefit-icon svg {
  width: 28px;
  height: 28px;
  color: var(--green-start);
}
.benefit-card h4 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}
.benefit-card p {
  color: var(--text-secondary);
  font-size: .92rem;
  margin-bottom: 0;
}

/* ===== Newsletter Section ===== */
.newsletter-section {
  background: linear-gradient(135deg, rgba(0,200,83,0.06) 0%, rgba(0,230,118,0.03) 100%);
  border-top: 1px solid var(--green-border);
  border-bottom: 1px solid var(--green-border);
}
.newsletter-form {
  display: flex;
  gap: .75rem;
  max-width: 500px;
}
.newsletter-form input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8rem 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  transition: var(--transition);
}
.newsletter-form input:focus {
  border-color: var(--green-start);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.newsletter-form input::placeholder { color: var(--text-muted); }

/* ===== Footer ===== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
}
.footer h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
  color: var(--text-secondary);
  font-size: .9rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--green-start); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  color: var(--text-muted);
  font-size: .85rem;
  margin: 0;
}
.footer-social {
  display: flex;
  gap: .75rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-social a:hover {
  border-color: var(--green-start);
  color: var(--green-start);
  transform: translateY(-2px);
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1.2rem 2rem;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 30px rgba(0,0,0,.3);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p {
  color: var(--text-secondary);
  font-size: .88rem;
  margin: 0;
}
.cookie-banner a { color: var(--green-start); }
.cookie-btn-group { display: flex; gap: .75rem; flex-shrink: 0; }

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--green-start), var(--green-end));
  color: var(--bg-primary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-green);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 200, 83, 0.3);
}

/* ===== Scroll Animations ===== */
.fade-in {
  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);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.12s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.19s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.26s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.33s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.40s; }

/* ===== Animated Storage Bar ===== */
.storage-bar-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.storage-bar {
  height: 12px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.storage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-start), var(--green-end));
  border-radius: 6px;
  width: 0;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.storage-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.storage-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: .5rem;
  font-size: .82rem;
  color: var(--text-muted);
}

/* ===== Guide Page Styles ===== */
.guide-hero {
  background: radial-gradient(ellipse at 50% 0%, rgba(0,200,83,0.06) 0%, transparent 60%),
              var(--bg-primary);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.guide-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: .88rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.guide-meta span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.guide-content {
  padding: 3rem 0;
}
.guide-content h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.guide-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: .75rem;
}
.guide-content p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}
.guide-content ul, .guide-content ol {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.guide-content li { margin-bottom: .4rem; line-height: 1.7; }

/* Table of Contents */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}
.toc h5 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-list li {
  margin-bottom: .25rem;
}
.toc-list a {
  color: var(--text-secondary);
  font-size: .88rem;
  padding: .35rem .75rem;
  display: block;
  border-radius: var(--radius-xs);
  border-left: 2px solid transparent;
  transition: var(--transition);
}
.toc-list a:hover,
.toc-list a.active {
  color: var(--green-start);
  background: var(--green-subtle);
  border-left-color: var(--green-start);
}

/* Pro Tip Callout */
.pro-tip {
  background: var(--green-subtle);
  border: 1px solid var(--green-border);
  border-left: 4px solid var(--green-start);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.pro-tip .tip-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  color: var(--green-start);
  margin-bottom: .5rem;
}
.pro-tip p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: .95rem;
}

/* Warning Callout */
.warning-tip {
  background: rgba(255, 183, 77, 0.08);
  border: 1px solid rgba(255, 183, 77, 0.2);
  border-left: 4px solid #ffb74d;
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.warning-tip .tip-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  color: #ffb74d;
  margin-bottom: .5rem;
}
.warning-tip p { color: var(--text-secondary); margin-bottom: 0; font-size: .95rem; }

/* Terminal Code Blocks */
.terminal-block {
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 1.2rem 0;
  overflow: hidden;
}
.terminal-header {
  background: #161616;
  padding: .5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.terminal-dots {
  display: flex;
  gap: 6px;
}
.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }
.terminal-title {
  font-size: .78rem;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: .25rem .6rem;
  border-radius: var(--radius-xs);
  font-size: .75rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.copy-btn:hover {
  border-color: var(--green-start);
  color: var(--green-start);
}
.copy-btn.copied {
  border-color: var(--green-start);
  color: var(--green-start);
}
.terminal-body {
  padding: 1rem 1.25rem;
  overflow-x: auto;
}
.terminal-body code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: .88rem;
  color: var(--green-end);
  line-height: 1.7;
}
.terminal-body .prompt { color: var(--green-start); }
.terminal-body .comment { color: var(--text-muted); }

/* Related Articles */
.related-articles {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 3rem;
}
.related-articles h4 {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

/* ===== About Page ===== */
.about-hero {
  background: radial-gradient(ellipse at 50% 0%, rgba(0,200,83,0.08) 0%, transparent 60%),
              var(--bg-primary);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}
.team-card:hover { border-color: var(--green-border); }
.team-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--green-start), var(--green-end));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--bg-primary);
}

/* ===== Contact Page ===== */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.form-control-cm {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: .95rem;
  width: 100%;
  outline: none;
  transition: var(--transition);
}
.form-control-cm:focus {
  border-color: var(--green-start);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.form-control-cm::placeholder { color: var(--text-muted); }
textarea.form-control-cm { min-height: 140px; resize: vertical; }
.form-label-cm {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: .4rem;
  display: block;
}
.form-success {
  background: var(--green-subtle);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  display: none;
}
.form-success.show { display: block; }
.form-success svg { color: var(--green-start); margin-bottom: .5rem; }

/* FAQ Accordion */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--green-border); }
.faq-question {
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: var(--text-primary);
  font-size: .95rem;
}
.faq-question svg {
  transition: transform 0.3s ease;
  color: var(--text-muted);
  flex-shrink: 0;
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.1rem;
}

/* ===== Legal Pages ===== */
.legal-content {
  padding: 3rem 0;
}
.legal-content h1 {
  font-size: 2.2rem;
  margin-bottom: .5rem;
}
.legal-content .legal-date {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 2rem;
}
.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: .75rem;
}
.legal-content p, .legal-content li {
  color: var(--text-secondary);
  line-height: 1.8;
}
.legal-content ul, .legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.legal-content th, .legal-content td {
  border: 1px solid var(--border);
  padding: .75rem 1rem;
  text-align: left;
  font-size: .9rem;
}
.legal-content th {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text-primary);
}
.legal-content td {
  color: var(--text-secondary);
}

/* ===== Comparison Table ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.comparison-table th,
.comparison-table td {
  border: 1px solid var(--border);
  padding: .8rem 1rem;
  text-align: left;
  font-size: .9rem;
}
.comparison-table th {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text-primary);
}
.comparison-table td { color: var(--text-secondary); }
.comparison-table tr:hover td {
  background: var(--green-subtle);
}
.check-yes { color: var(--green-start); font-weight: 600; }
.check-no { color: var(--text-muted); }

/* ===== Glow decorations ===== */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}
.glow-orb-green {
  background: var(--green-start);
}
.glow-orb-teal {
  background: #00e676;
}

/* ===== Animated gradient border ===== */
.gradient-border {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius);
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--green-start), var(--green-end), var(--green-start));
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== Sweep animation for logo ===== */
@keyframes sweep {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
  50% { transform: rotate(5deg); }
  75% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}
.logo-sweep:hover svg {
  animation: sweep 0.6s ease-in-out;
}

/* ===== Disk spin animation ===== */
@keyframes diskSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.disk-spin {
  animation: diskSpin 20s linear infinite;
}

/* ===== Clean sparkle ===== */
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--green-end);
  border-radius: 50%;
  animation: sparkle 3s ease-in-out infinite;
}

/* ===== Typing cursor ===== */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.typing-cursor::after {
  content: '|';
  color: var(--green-start);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 991px) {
  .hero h1 { font-size: 2.5rem; }
  .hero { padding: 4rem 0 3rem; min-height: auto; }
  .section { padding: 3.5rem 0; }
  .toc { position: static; margin-bottom: 2rem; }
  .newsletter-form { flex-direction: column; }
}
@media (max-width: 767px) {
  .hero h1 { font-size: 2rem; }
  .hero p.lead { font-size: 1.05rem; }
  .section-title { font-size: 1.7rem; }
  .stat-item .stat-num { font-size: 1.3rem; }
  .guide-card { padding: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cookie-banner { flex-direction: column; text-align: center; }
  .hero-illustration { margin-top: 2rem; }
}
@media (max-width: 575px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn-primary-cm, .hero-cta .btn-outline-cm { width: 100%; justify-content: center; }
}
