/* ============================================
   Orca Slicer - orcaslicer.in.net
   Dark Mode / Emerald Green Tech Theme
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #10B981;
  --secondary: #059669;
  --accent: #34D399;
  --bg: #111827;
  --card-bg: #1F2937;
  --surface: #374151;
  --text: #F3F4F6;
  --muted: #9CA3AF;
  --font-sans: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
  --max-width: 1200px;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --glow: 0 0 20px rgba(16, 185, 129, 0.3);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

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

ul, ol {
  padding-left: 1.5em;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

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

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--muted);
}

strong {
  color: var(--text);
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.section-title h2 .highlight {
  color: var(--primary);
}

.section-title p {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.highlight {
  color: var(--primary);
}

.mono {
  font-family: var(--font-mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Header / Navbar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: background-color var(--transition), box-shadow var(--transition), padding var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  padding: 0.6rem 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.logo .logo-icon {
  font-size: 1.6rem;
  color: var(--primary);
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary);
  color: var(--bg) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(52, 211, 153, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero h1 .green {
  color: var(--primary);
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
  min-height: 1.8em;
  font-family: var(--font-mono);
}

.hero-tagline .cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--primary);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--surface);
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-mono);
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* --- Cards --- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--primary);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--primary);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* --- Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

/* --- Download Section --- */
.download-section {
  background: var(--card-bg);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.download-card {
  background: var(--bg);
  border: 1px solid var(--surface);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--glow);
}

.download-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.download-card h3 {
  margin-bottom: 0.25rem;
}

.download-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.download-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.download-links .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.download-card .os-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.download-card p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.text-center {
  text-align: center;
}

/* --- Benchmarks Section --- */
.benchmark-bar {
  margin-bottom: 1.5rem;
}

.benchmark-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.benchmark-label span:first-child {
  font-weight: 600;
  color: var(--text);
}

.benchmark-label span:last-child {
  color: var(--primary);
  font-family: var(--font-mono);
}

.benchmark-track {
  background: var(--surface);
  border-radius: 50px;
  height: 12px;
  overflow: hidden;
}

.benchmark-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--secondary), var(--primary), var(--accent));
  transition: width 1.5s ease-out;
  width: 0;
}

.benchmark-fill.animated {
  /* Width set via inline style */
}

/* --- Compatibility Matrix --- */
.compat-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.compat-table th,
.compat-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--surface);
}

.compat-table th {
  background: var(--surface);
  color: var(--primary);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compat-table tr:hover td {
  background: rgba(16, 185, 129, 0.05);
}

.compat-table td {
  color: var(--muted);
}

.compat-status {
  color: var(--primary);
  font-weight: 600;
}

/* --- Terminal / Code Block --- */
.terminal {
  background: #0D1117;
  border: 1px solid var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
}

.terminal-header {
  background: var(--surface);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dot.red { background: #FF5F56; }
.terminal-dot.yellow { background: #FFBD2E; }
.terminal-dot.green { background: #27C93F; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 0.5rem;
  margin-bottom: 0;
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--accent);
  overflow-x: auto;
}

.terminal-body .prompt {
  color: var(--primary);
}

.terminal-body .comment {
  color: var(--muted);
}

pre, code {
  font-family: var(--font-mono);
}

code {
  background: rgba(16, 185, 129, 0.1);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent);
}

pre {
  background: #0D1117;
  border: 1px solid var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--primary);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

.blog-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.blog-card h3 a {
  color: var(--text);
}

.blog-card h3 a:hover {
  color: var(--primary);
}

.blog-card p {
  font-size: 0.9rem;
  flex: 1;
}

.blog-card .read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-card .read-more:hover {
  color: var(--accent);
  gap: 0.6rem;
}

/* --- FAQ Section --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--surface);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover,
.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  background: var(--card-bg);
  border: none;
  color: var(--text);
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--surface);
}

.faq-toggle {
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
}

.faq-answer-inner p {
  margin-bottom: 0.5rem;
}

/* --- Community Section --- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

.community-stat:hover {
  border-color: var(--primary);
  box-shadow: var(--glow);
}

.community-stat .stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.community-stat .stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-mono);
  display: block;
}

.community-stat .stat-text {
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- Footer --- */
.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--surface);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
}

.footer h4 {
  color: var(--text);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--surface);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--muted);
  font-size: 0.85rem;
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

/* --- Blog / Article Styles --- */
.article-hero {
  padding: 8rem 0 3rem;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
}

.article-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.article-hero .breadcrumb a {
  color: var(--muted);
}

.article-hero .breadcrumb a:hover {
  color: var(--primary);
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--surface);
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-content strong {
  color: var(--text);
}

.tip-box {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.tip-box p {
  margin-bottom: 0;
  color: var(--text);
}

.tip-box strong {
  color: var(--primary);
}

.warning-box {
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid #F59E0B;
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.warning-box p {
  margin-bottom: 0;
  color: var(--text);
}

/* --- Internal Link Box --- */
.related-posts {
  background: var(--card-bg);
  border: 1px solid var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 3rem;
}

.related-posts h3 {
  color: var(--text);
  margin-bottom: 1rem;
}

.related-posts ul {
  list-style: none;
  padding: 0;
}

.related-posts li {
  margin-bottom: 0.75rem;
}

.related-posts a {
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* --- Legal Pages --- */
.legal-page {
  padding: 8rem 0 4rem;
}

.legal-page .container {
  max-width: 800px;
}

.legal-page h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.legal-page .last-updated {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.8;
}

.legal-page ul {
  margin-bottom: 1rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4,
  .community-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 3rem 0; }

  .hero {
    min-height: auto;
    padding: 7rem 0 3rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(17, 24, 39, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .features-grid,
  .blog-grid,
  .download-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    text-align: center;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .compat-table {
    font-size: 0.85rem;
  }

  .compat-table th,
  .compat-table td {
    padding: 0.6rem 0.75rem;
  }

  .article-hero {
    padding: 6rem 0 2rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .community-grid,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* --- Table of Contents (Blog) --- */
.toc {
  background: var(--card-bg);
  border: 1px solid var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.toc h4 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

.toc ol {
  padding-left: 1.25rem;
}

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

.toc a {
  color: var(--muted);
  font-size: 0.95rem;
}

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

/* --- Profile Cards (Blog) --- */
.profile-card {
  background: var(--card-bg);
  border: 1px solid var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition);
}

.profile-card:hover {
  border-color: var(--primary);
}

.profile-card h4 {
  color: var(--accent);
}

.profile-card .profile-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.spec-tag {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}
