/* ===== SIMULATIONSTHEORIE.DE — Design System ===== */
/* Inspired by stoffwexel23.com, evolved for a philosophical content site */

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Simulation palette — teal/cyan instead of purple */
  --bg-deep: #040608;
  --bg-primary: #080b0e;
  --bg-card: #0d1117;
  --bg-card-hover: #131920;
  --bg-elevated: #161d26;

  --text-primary: #e2e8f0;
  --text-secondary: #8892a0;
  --text-muted: #4a5568;

  --accent: #06b6d4;
  --accent-dim: #0891b2;
  --accent-glow: rgba(6, 182, 212, 0.12);
  --accent-bright: #22d3ee;

  --gold: #d4a853;
  --gold-dim: #a08040;
  --gold-glow: rgba(212, 168, 83, 0.1);

  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.1);

  --border: #1a2332;
  --border-light: #243044;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Grid effect */
  --grid-color: rgba(6, 182, 212, 0.03);
  --grid-size: 60px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--accent-bright); }

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

/* ===== SUBTLE GRID BACKGROUND ===== */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(4, 6, 8, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 2rem;
}

.nav-logo {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav-logo .logo-sim {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

.nav-lang {
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  font-family: var(--font-mono);
  transition: all 0.3s;
}

.nav-lang:hover {
  border-color: var(--text-muted);
  color: var(--text-secondary);
}

/* Mobile nav */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-burger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* Dropdown nav */
.nav-dropdown { position: relative; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 0.75rem; min-width: 220px; z-index: 200; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 0.5rem 1rem; background: rgba(8,11,14,0.95); backdrop-filter: blur(20px); color: var(--text-secondary) !important; font-size: 0.78rem !important; font-weight: 500 !important; letter-spacing: 0.03em !important; text-transform: none !important; border-left: 1px solid var(--border); border-right: 1px solid var(--border); transition: all 0.2s; }
.nav-dropdown-menu a:first-child { border-top: 1px solid var(--border); border-radius: 6px 6px 0 0; font-weight: 600 !important; color: var(--text-primary) !important; }
.nav-dropdown-menu a:last-child { border-bottom: 1px solid var(--border); border-radius: 0 0 6px 6px; }
.nav-dropdown-menu a:hover { background: rgba(6,182,212,0.06); color: var(--text-primary) !important; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(4, 6, 8, 0.97);
  backdrop-filter: blur(30px);
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 0.6rem;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
}

.mobile-menu.active { display: flex; }

.mobile-menu a {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 7rem 0;
  position: relative;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

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

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.8;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 10s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 12s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  100% { transform: translate(40px, -30px) scale(1.2); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
}

.hero-overline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 2rem;
}

.hero-title .line {
  display: block;
}

.hero-title .dim {
  color: var(--text-secondary);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: pulse 2s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero-scroll { display: none; }
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

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

.btn-primary:hover {
  background: var(--accent-bright);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

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

.btn-outline:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 0.5rem 0;
}

.btn-ghost:hover {
  color: var(--accent-bright);
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-dim));
  opacity: 0;
  transition: opacity 0.35s;
}

.card:hover .card-accent {
  opacity: 1;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-icon.ci-teal { background: var(--accent-glow); color: var(--accent); }
.card-icon.ci-purple { background: var(--purple-glow); color: var(--purple); }
.card-icon.ci-gold { background: var(--gold-glow); color: var(--gold); }

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

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

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.card-link:hover {
  gap: 0.6rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0 auto;
  max-width: 800px;
}

/* ===== ARTICLE CONTENT ===== */
.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.article-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 3rem 0 1.25rem;
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content blockquote {
  border-left: 3px solid var(--accent-dim);
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-primary);
}

.article-content blockquote cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.article-content ul, .article-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.75rem;
}

.article-content .highlight-box {
  background: var(--accent-glow);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.article-content .highlight-box h4 {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

/* ===== TOC (Table of Contents for article pages) ===== */
.toc {
  position: sticky;
  top: 5rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding-right: 1rem;
}

.toc h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.toc a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  padding-left: 1rem;
  transition: all 0.3s;
}

.toc a:hover,
.toc a.active {
  color: var(--text-primary);
  border-color: var(--accent);
}

/* ===== LAYER VISUALIZATION ===== */
.layer-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 3rem 0;
}

.layer {
  padding: 1.5rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
  cursor: default;
}

.layer:hover {
  border-color: var(--border-light);
  transform: translateX(4px);
}

.layer-0 { background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), transparent); border-color: rgba(139, 92, 246, 0.15); }
.layer-1 { background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), transparent); border-color: rgba(99, 102, 241, 0.12); }
.layer-2 { background: linear-gradient(135deg, rgba(6, 182, 212, 0.06), transparent); border-color: rgba(6, 182, 212, 0.12); }
.layer-3 { background: linear-gradient(135deg, rgba(20, 184, 166, 0.06), transparent); border-color: rgba(20, 184, 166, 0.12); }
.layer-4 { background: linear-gradient(135deg, rgba(212, 168, 83, 0.06), transparent); border-color: rgba(212, 168, 83, 0.12); }
.layer-5 { background: linear-gradient(135deg, rgba(239, 68, 68, 0.04), transparent); border-color: rgba(239, 68, 68, 0.1); }

.layer-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.layer h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.layer p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.layer-connector {
  width: 1px;
  height: 20px;
  background: linear-gradient(to bottom, var(--border-light), var(--border));
  margin: 0 auto;
}

/* ===== QUOTE BLOCK ===== */
.quote-block {
  max-width: 700px;
  margin: 4rem auto;
  text-align: center;
  padding: 3rem 2rem;
  position: relative;
}

.quote-block::before {
  content: '»';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  color: var(--accent-dim);
  opacity: 0.3;
  line-height: 1;
}

.quote-block p {
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-primary);
}

.quote-block cite {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-muted);
}

/* ===== TAGS ===== */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 20px;
  border: 1px solid rgba(6, 182, 212, 0.15);
  font-weight: 500;
}

.tag-gold {
  background: var(--gold-glow);
  color: var(--gold);
  border-color: rgba(212, 168, 83, 0.15);
}

.tag-purple {
  background: var(--purple-glow);
  color: var(--purple);
  border-color: rgba(139, 92, 246, 0.15);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

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

.footer-brand h3 {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.3rem 0;
  transition: color 0.3s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== FAQ SCHEMA ===== */
.faq-list {
  margin: 2rem 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

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

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

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

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== GLITCH EFFECT (subtle, on hover) ===== */
.glitch-hover {
  position: relative;
}

.glitch-hover:hover {
  animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, 0); }
  80% { transform: translate(1px, 1px); }
  100% { transform: translate(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-lang { display: block; order: 2; margin-left: auto; margin-right: 0.75rem; }
  .nav-burger { order: 3; }

  /* Force all heroes to auto-height on mobile, override inline min-height */
  .hero, .hero[style] { min-height: auto !important; padding: 6rem 0 3rem; }

  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .container-narrow { padding: 0 1.25rem; }

  /* Global text overflow prevention — every text element */
  h1, h2, h3, h4, h5, h6,
  p, span, li, a, blockquote, td, th, label, figcaption,
  .section-title, .hero-title, .hero-overline,
  .hero-description, .compare-title,
  .tradition-item h4, .axiom-tag,
  .faq-question, .faq-answer {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  h1, h2, h3, h4, .section-title, .hero-title {
    hyphens: auto;
  }

  /* Typography scaling */
  .section-title { font-size: clamp(1.5rem, 7vw, 2.5rem); }
  .article-content h2 { font-size: clamp(1.2rem, 5vw, 1.4rem); }
  .article-content h3 { font-size: clamp(1rem, 4vw, 1.1rem); }
  .faq-question { font-size: 0.95rem !important; }

  /* Compare grids single-column */
  .compare-grid { grid-template-columns: 1fr !important; }

  /* Subset visualization: shrink nested circles */
  .subset-visual { padding: 1.5rem 1rem; }
  .subset-outer { padding: 1.5rem 1rem; }
  .subset-inner { padding: 1.2rem 1rem; }
  .subset-core { padding: 0.8rem 1rem; }

  /* Tradition timeline: tighter on mobile */
  .tradition-timeline { padding-left: 1.5rem; }
  .tradition-item { padding: 1rem; }
  .tradition-item::before { left: -1.9rem; }

  /* Axiom pills wrap */
  .axiom-list { gap: 0.4rem; }
  .axiom-item { font-size: 0.75rem; padding: 0.3rem 0.7rem; }

  /* All boxes/cards: prevent overflow, reduce padding */
  .compare-box, .axiom-box, .highlight-box, .subset-visual,
  .layer-visual, .key-insight, .quote-block, .translation-grid {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Clamp excessive padding on cards/boxes */
  .compare-box, .axiom-box, .key-insight, .quote-block {
    padding: 1.2rem !important;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero-title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .layer-stack .layer {
    padding: 1.25rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  /* Extra tight on small phones */
  .container { padding: 0 1rem; }
  .article-content h2 { font-size: 1.15rem; }
  .hero-title { font-size: clamp(1.6rem, 9vw, 2.5rem); }
  .hero-description { font-size: 0.9rem; }
  .subset-outer { padding: 1rem 0.5rem; }
  .subset-inner { padding: 0.8rem 0.5rem; }
  .subset-core { padding: 0.5rem 0.8rem; }
}
