/* ============================================================
   macosclean-apple.com — Style System
   Amber/Gold + Deep Navy + Cream
   Fonts: Outfit (headings) + Source Sans 3 (body)
   ============================================================ */

/* --- Font Faces --- */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/sourcesans3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/sourcesans3-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF;
}

/* --- CSS Variables --- */
:root {
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-dark: #d97706;
  --amber-glow: rgba(245, 158, 11, 0.15);
  --navy: #0f172a;
  --navy-light: #1e293b;
  --navy-mid: #334155;
  --cream: #fef3c7;
  --cream-light: #fffbeb;
  --cream-dark: #fde68a;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --success: #10b981;
  --danger: #ef4444;
  --info: #3b82f6;

  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --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 8px 32px rgba(0,0,0,0.12);
  --shadow-amber: 0 4px 24px rgba(245, 158, 11, 0.2);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Light Mode (default) --- */
[data-theme="light"] {
  --bg-primary: var(--cream-light);
  --bg-secondary: var(--white);
  --bg-tertiary: var(--gray-100);
  --bg-card: var(--white);
  --bg-nav: rgba(255, 255, 255, 0.85);
  --text-primary: var(--navy);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-400);
  --border: var(--gray-200);
  --border-light: var(--gray-100);
  --code-bg: var(--navy);
  --code-text: var(--cream);
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --bg-primary: var(--navy);
  --bg-secondary: var(--navy-light);
  --bg-tertiary: #162032;
  --bg-card: var(--navy-light);
  --bg-nav: rgba(15, 23, 42, 0.9);
  --text-primary: var(--cream-light);
  --text-secondary: var(--gray-400);
  --text-muted: var(--gray-500);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.04);
  --code-bg: #0c1322;
  --code-text: var(--cream);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  margin: 0;
  padding: 0;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.5em;
}

h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.015em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
  color: var(--amber);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--amber-light); }

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

::selection {
  background: var(--amber);
  color: var(--navy);
}

/* --- Reading Progress Bar --- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--amber-light));
  z-index: 10000;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* --- Navbar --- */
.navbar-mac {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  transition: all var(--transition);
}

.navbar-mac.scrolled {
  padding: 0.4rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-mac .nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity var(--transition);
}
.navbar-mac .nav-brand:hover { opacity: 0.8; color: var(--text-primary); }
.navbar-mac .nav-brand svg { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--amber);
  background: var(--amber-glow);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.1rem;
}
.theme-toggle:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-glow);
}

/* --- Hero --- */
.hero-section {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--amber-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--amber-glow);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.7s ease;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s ease;
}

.hero-mac-svg {
  width: 340px;
  max-width: 90%;
  margin: 0 auto;
  animation: floatUp 3s ease-in-out infinite;
}

/* --- Sections --- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-secondary); }
.section-dark { background: var(--bg-tertiary); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* --- Guide Cards --- */
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-amber);
  border-color: rgba(245, 158, 11, 0.3);
}

.guide-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amber-glow);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  color: var(--amber);
  font-size: 1.5rem;
  transition: all var(--transition);
}

.guide-card:hover .guide-card-icon {
  background: var(--amber);
  color: var(--navy);
  transform: scale(1.08);
}

.guide-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.guide-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
}
.guide-card h3 a:hover {
  color: var(--amber);
}

.guide-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
}

.guide-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Stats Bar --- */
.stats-bar {
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
}

[data-theme="light"] .stats-bar {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-top: 4px;
}

/* --- Hidden Tools Section --- */
.hidden-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.tool-card:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow-amber);
}

.tool-card-emoji {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.tool-card h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.tool-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* --- Testimonial Tips --- */
.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
}

.tip-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--amber);
  opacity: 0.2;
  position: absolute;
  top: 8px;
  left: 16px;
  line-height: 1;
}

.tip-card p {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.tip-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.tip-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Newsletter CTA --- */
.newsletter-section {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.02));
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  text-align: center;
}

.newsletter-section h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 1.5rem auto 0;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--amber);
}

.btn-amber {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--amber);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-amber:hover {
  background: var(--amber-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-amber);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  color: var(--amber);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid var(--amber);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--amber-glow);
  color: var(--amber-light);
}

/* --- Article / Guide Page --- */
.guide-hero {
  padding: 130px 0 60px;
  text-align: center;
  position: relative;
}

.guide-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
}

.guide-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.guide-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.article-body h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--amber-glow);
}

.article-body h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.article-body p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.article-body ul, .article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.article-body li { margin-bottom: 0.4rem; }

/* --- Table of Contents --- */
.toc-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.toc-box h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--amber);
}

.toc-box ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc-box li {
  margin-bottom: 0.4rem;
}

.toc-box a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.toc-box a:hover {
  color: var(--amber);
}

/* --- Pro Tip / Did You Know / Apple Insider --- */
.callout-box {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  position: relative;
}

.callout-box .callout-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.callout-pro {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.callout-pro .callout-title { color: var(--amber); }

.callout-didyouknow {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.callout-didyouknow .callout-title { color: var(--info); }

.callout-insider {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.callout-insider .callout-title { color: var(--success); }

.callout-warning {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.callout-warning .callout-title { color: var(--danger); }

/* --- Terminal Code Blocks --- */
.terminal-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}
.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dots span:nth-child(1) { background: #ef4444; }
.terminal-dots span:nth-child(2) { background: #f59e0b; }
.terminal-dots span:nth-child(3) { background: #10b981; }

.terminal-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-500);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: var(--gray-400);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all var(--transition);
}
.copy-btn:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.copy-btn.copied {
  color: var(--success);
  border-color: var(--success);
}

.terminal-body {
  padding: 16px 20px;
  overflow-x: auto;
}

.terminal-body code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--code-text);
  white-space: pre;
  line-height: 1.6;
}

/* Inline code */
.article-body code:not(.terminal-body code) {
  background: var(--amber-glow);
  color: var(--amber-dark);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

[data-theme="dark"] .article-body code:not(.terminal-body code) {
  color: var(--amber-light);
}

/* --- Comparison Tables --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparison-table thead {
  background: var(--amber);
  color: var(--navy);
}

.comparison-table th {
  padding: 12px 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
}

.comparison-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.comparison-table tbody tr:hover {
  background: var(--amber-glow);
}

/* --- Footer --- */
.footer-mac {
  background: var(--navy);
  color: var(--gray-400);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

[data-theme="light"] .footer-mac {
  background: var(--navy);
}

.footer-mac h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-mac a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-mac a:hover {
  color: var(--amber);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 0.5rem; }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy-light);
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  backdrop-filter: blur(12px);
}

.cookie-banner.show { display: flex; }

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-300);
}

.cookie-banner a {
  color: var(--amber);
}

.cookie-btn {
  padding: 8px 22px;
  background: var(--amber);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.cookie-btn:hover {
  background: var(--amber-light);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--amber);
  color: var(--navy);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-amber);
  font-size: 1.2rem;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--amber-light);
  transform: translateY(-2px);
}

/* --- Contact Form --- */
.contact-form .form-control,
.contact-form .form-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

/* --- QA Section --- */
.qa-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.qa-card h4 {
  font-size: 1.05rem;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

.qa-card p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
}

/* --- About Page --- */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--amber), var(--amber-glow));
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--amber);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

.timeline-date {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--amber);
  margin-bottom: 0.3rem;
}

/* --- Legal Pages --- */
.legal-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.legal-body h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--amber);
}

.legal-body h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

.legal-body p, .legal-body li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Related Articles --- */
.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition);
}
.related-card:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
}
.related-card h4 a {
  color: var(--text-primary);
  font-size: 1.05rem;
}
.related-card h4 a:hover { color: var(--amber); }
.related-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}

/* --- Responsive (desktop priority) --- */
@media (max-width: 992px) {
  .hero-title { font-size: 2.5rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .hidden-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-form { flex-direction: column; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .section { padding: 50px 0; }
  .hidden-tools-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .stats-bar .row > div { margin-bottom: 1rem; }
}
