* { box-sizing: border-box; }
:root {
  --bg: #f7f8fa;
  --panel-bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #e50914;
  --accent-b: #ff6b6b;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --panel-bg: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #334155;
  --accent: #ff6b6b;
  --accent-b: #e50914;
}
html, body { margin: 0; padding: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif; color: var(--text); background: var(--bg); }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: var(--panel-bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.topbar .brand { display: flex; align-items: center; gap: 0.75rem; }
.topbar .brand img { width: 32px; height: 32px; }
.topbar .brand a { text-decoration: none; color: inherit; }
.topbar .header-center { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; }
.topbar h1 { margin: 0; font-size: 1.2rem; }
.topbar .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
}
.topbar .nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s, transform 0.12s;
}
.topbar .nav-links a:hover {
  background-color: rgba(229, 9, 20, 0.08);
  transform: translateY(-1px);
}
.topbar .nav-links a.active {
  background-color: var(--accent);
  color: #fff;
}
.topbar .controls { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.topbar input[type="search"] { padding: 0.35rem 0.6rem; border: 1px solid var(--border); border-radius: 6px; min-width: 220px; }
.topbar button { padding: 0.4rem 0.7rem; border: 1px solid var(--border); background: var(--panel-bg); color: var(--text); border-radius: 6px; cursor: pointer; }
.topbar button:hover { background: rgba(37, 99, 235, 0.05); }

[data-theme="dark"] .topbar {
  background: var(--panel-bg);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .topbar .nav-links a {
  color: var(--text);
}
[data-theme="dark"] .topbar .nav-links a:hover,
[data-theme="dark"] .topbar .nav-links a.active {
  background-color: rgba(255,255,255,0.12);
}
[data-theme="dark"] .topbar .nav-links {
  background: rgba(255,255,255,0.03);
}
[data-theme="dark"] .topbar button {
  background: var(--panel-bg);
  color: var(--text);
  border-color: var(--border);
}

@media (max-width: 980px) {
  .topbar {
    gap: 0.6rem;
  }
  .topbar .header-center {
    order: 3;
    width: 100%;
  }
  .topbar .nav-links {
    width: 100%;
    border-radius: 12px;
  }
}

.muted { color: var(--muted); }

.layout { display: grid; grid-template-columns: 240px 1fr; gap: 1rem; padding: 1rem; }
.sidebar { background: var(--panel-bg); border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem; }
.sidebar h2 { margin: 0 0 0.5rem; font-size: 1rem; color: var(--muted); }
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cat-item .cat-btn { width: 100%; text-align: left; padding: 0.35rem 0.6rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer; }
.cat-item .count { float: right; color: var(--muted); }

.input-panel { max-width: 900px; margin-bottom: 1rem; }
.input-panel textarea { width: 100%; font-size: 1rem; padding: 0.75rem; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-bg); }
.input-controls { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.input-controls button { padding: 0.4rem 0.7rem; border: 1px solid var(--border); background: white; border-radius: 6px; cursor: pointer; }
.input-controls button:hover { background: #f0f4f8; }
.input-panel .hint { color: var(--muted); font-size: 0.9rem; }

.output-panel { max-width: 1100px; margin: 0 auto; }
.output-panel h3 { margin: 0 0 0.5rem; font-size: 1.1rem; color: var(--text); }
.output { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-bg); min-height: 200px; }
.sentence-builder { outline: none; }

.token-block { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px; border: 1px solid var(--border); border-radius: 10px; min-width: 100px; min-height: 120px; background: var(--panel-bg); box-shadow: 0 1px 0 rgba(0,0,0,0.03); }
.token-block.text { min-width: auto; min-height: auto; padding: 6px 8px; font-size: 1.1rem; border-style: dashed; }
.symbol { width: 100px; height: 100px; object-fit: contain; }
.label { margin-top: 4px; font-size: 0.95rem; color: var(--text); }

.cat-title { font-size: 1rem; color: var(--muted); margin: 0.5rem 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.symbol-card { display: flex; flex-direction: column; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-bg); cursor: pointer; }
.symbol-card img { width: 90px; height: 90px; object-fit: contain; }
.symbol-card .label { margin-top: 6px; font-size: 0.9rem; color: var(--text); }

/* Grid (A4 print) */
body.grid-view .output { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
body.grid-view .token-block { min-width: 120px; min-height: 140px; }

/* Print styles */
@media print {
  @page { size: A4; margin: 12mm; }
  .no-print { display: none !important; }
  .topbar, .footer { display: none !important; }
  body.grid-view .output { grid-template-columns: repeat(4, 1fr); }
  .token-block { break-inside: avoid; }
}

.export-output { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}

/* Pages Landing */
.pages-home { padding: 1rem; }
.pages-header { max-width: 1200px; margin: 0 auto; }
.pages-grid {
  max-width: 1200px;
  margin: 1rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.page-card {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.page-preview {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: 160px;
  position: relative;
  overflow: hidden;
}

.page-card-body { padding: 0.75rem; display: grid; gap: 6px; }
.page-title { font-weight: 700; }
.page-meta { font-size: 0.85rem; color: var(--muted); }

.page-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.page-actions button {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  background: var(--panel-bg);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
}
.page-actions button:hover { background: rgba(37, 99, 235, 0.05); }

.page-preview .preview-item { position: absolute; }
.page-preview .preview-text {
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 2px 4px;
  background: var(--panel-bg);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-preview .preview-symbol img { display: block; width: 100%; height: 100%; object-fit: contain; }


/* Footer Styles */
.footer {
  background: var(--panel-bg);
  border-top: 1px solid var(--border);
  padding: 2rem 1rem 1rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-size: 1.2rem;
}

.footer-col h4 {
  margin: 0 0 0.75rem 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Search Modal Styles */
.search-results {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-bg);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.5rem;
}

.search-result-item:hover {
  background: rgba(37, 99, 235, 0.05);
  border-color: var(--accent);
}

.search-result-item.selected {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--accent);
}

.search-symbol {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.search-word {
  font-weight: 500;
  color: var(--text);
}

/* ── Base Modal ── */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  display: none; align-items: center; justify-content: center;
  z-index: 1000;
  animation: modalFadeIn 0.2s ease;
  backdrop-filter: blur(2px);
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal:not([hidden]) { display: flex; }
.modal[hidden] { display: none; }

.modal-content {
  background: var(--panel-bg, #fff);
  border-radius: 12px;
  width: 90%; max-width: 900px; max-height: 90vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(8px) scale(0.99);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.modal:not([hidden]) .modal-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, #1d47a3 100%);
  color: white;
}
.modal-header h2 { margin: 0; font-size: 1.3rem; }

.close-btn {
  background: rgba(255,255,255,0.3); border: none;
  font-size: 1.5rem; cursor: pointer; color: white;
  border-radius: 4px; width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; flex-shrink: 0;
}
.close-btn:hover { background: rgba(255,255,255,0.5); }

.modal-body {
  padding: 1rem 1.5rem;
  overflow-y: auto; flex: 1;
  display: flex; flex-direction: column;
}

[data-theme="dark"] .modal-content { background: #1e293b; }

.modal-actions {
  text-align: center;
  padding: 1rem 0;
}

.modal-actions p {
  margin: 0 0 1rem 0;
  color: var(--muted);
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
  margin: 0 0.5rem;
}

/* Landing Page Styles */
.landing-page {
  min-height: calc(100vh - 80px);
}

/* Top CTA banner for landing page */
.top-cta {
  background: linear-gradient(90deg, rgba(37,99,235,0.06), rgba(229,9,20,0.04));
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}
.top-cta .top-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.top-cta .top-cta-text h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text);
}
.top-cta .top-cta-text p { margin: 0.25rem 0 0 0; }
.top-cta .top-cta-actions { display: flex; gap: 0.75rem; }
.top-cta .btn-primary.large, .top-cta .btn-secondary.large {
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .top-cta .top-cta-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .top-cta .top-cta-actions { justify-content: center; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, var(--panel-bg) 0%, rgba(37, 99, 235, 0.05) 100%);
  min-height: 60vh;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-b);
  border-color: var(--accent-b);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.example-sentence {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--panel-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* How It Works Section */
.how-it-works {
  padding: 4rem 1rem;
  background: var(--bg);
}

.how-it-works h2 {
  font-size: 2rem;
  text-align: center;
  margin: 0 0 3rem 0;
  color: var(--text);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 2rem;
  background: var(--panel-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.3rem;
  margin: 0 0 1rem 0;
  color: var(--text);
}

.step p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Examples Section */
.examples {
  padding: 4rem 1rem;
  background: var(--panel-bg);
}

.examples h2 {
  font-size: 2rem;
  text-align: center;
  margin: 0 0 1rem 0;
  color: var(--text);
}

.section-description {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 3rem 0;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.example-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.example-card h4 {
  font-size: 1.2rem;
  margin: 0 0 1.5rem 0;
  color: var(--text);
}

.sentence-display {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 1rem 0;
  padding: 1rem;
  background: var(--panel-bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.example-text {
  color: var(--accent);
  font-weight: 600;
  margin: 0;
  font-size: 1.1rem;
}

/* Features Section */
.features {
  padding: 4rem 1rem;
  background: var(--bg);
}

.features h2 {
  font-size: 2rem;
  text-align: center;
  margin: 0 0 3rem 0;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature {
  padding: 2rem;
  background: var(--panel-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.feature h3 {
  font-size: 1.3rem;
  margin: 0 0 1rem 0;
  color: var(--text);
}

.feature p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Call to Action Section */
.cta {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-b) 100%);
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin: 0 0 1rem 0;
  color: white;
}

.cta p {
  font-size: 1.2rem;
  margin: 0 0 2rem 0;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta .btn-primary {
  background: white;
  color: var(--accent);
  border-color: white;
}

.cta .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  color: var(--accent-b);
}

.cta .btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.cta .btn-secondary:hover {
  background: white;
  color: var(--accent);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 2rem 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .example-sentence {
    padding: 1rem;
  }

  .steps-grid, .examples-grid, .features-grid {
    grid-template-columns: 1fr;
  }

  .how-it-works, .examples, .features, .cta {
    padding: 2rem 1rem;
  }

  .cta h2 {
    font-size: 2rem;
  }
}

/* Immersive long landing additions (uses existing --accent colors) */
.immersive-long .immersive-hero { padding: 5rem 0; position: relative; overflow: visible; }
.immersive-hero .immersive-overlay { position:absolute; inset:-10% -5% auto -5%; height:600px; background: radial-gradient(circle at 10% 40%, rgba(229,9,20,0.06), transparent 12%), radial-gradient(circle at 90% 80%, rgba(229,9,20,0.04), transparent 12%); filter: blur(36px) saturate(110%); z-index:0; }
.immersive-wrap { position:relative; z-index:2; display:flex; gap:2rem; align-items:flex-start; }
.immersive-left { flex:1; max-width:800px; }
.immersive-left .eyebrow { color:var(--muted); font-weight:700; margin-bottom:0.5rem; }
.immersive-left h1 { font-size:2.6rem; margin:0 0 0.8rem 0; line-height:1.03; }
.immersive-left .lead { font-size:1.05rem; color:var(--muted); margin-bottom:1.2rem; }
.hero-ctas { display:flex; gap:0.8rem; margin-bottom:1.2rem; }
.btn-xl { padding:0.9rem 1.3rem; border-radius:12px; }
.trust-list { display:flex; gap:0.8rem; margin-top:1rem; list-style:none; padding:0; color:var(--muted); }
.trust-list li { background:var(--panel-bg); padding:0.45rem 0.8rem; border-radius:8px; border:1px solid var(--border); }
.immersive-right { width:420px; }
.device-mock { background: linear-gradient(180deg, var(--panel-bg), #fbfbfb); border:1px solid var(--border); border-radius:14px; padding:12px; box-shadow: 0 18px 50px rgba(12,38,63,0.06); }
/* Dark mode for .device-mock */
[data-theme="dark"] .device-mock {
  background: linear-gradient(180deg, var(--panel-bg), #1e293b);
  border-color: var(--border);
  /* box-shadow and border-radius remain unchanged */
}
.mock-topbar { height:18px; background: linear-gradient(90deg, rgba(0,0,0,0.03), transparent); border-radius:6px; margin-bottom:10px; }
.mock-canvas { min-height:220px; display:flex; gap:8px; align-items:center; justify-content:center; flex-direction:column; }
.mock-item {
  background: linear-gradient(180deg, #fff, #f7fbff);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--text);
}
.mock-item.small { font-size:0.9rem; padding:8px 10px; }
.mock-item.secondary { opacity:0.9; }

.deep-features { padding:3rem 0; }
.feature-grid.large { display:flex; gap:1rem; }
.feature-item { flex:1; background:var(--panel-bg); border:1px solid var(--border); padding:1.2rem; border-radius:10px; box-shadow:0 8px 30px rgba(12,38,63,0.04); }
.showcase-wide { display:flex; gap:1rem; margin-top:1.4rem; }
.showcase-card.wide { flex:1; display:flex; gap:1rem; align-items:center; padding:1rem; border-radius:10px; border:1px solid var(--border); background:var(--panel-bg); }
.showcase-card img { width:72px; height:72px; object-fit:contain; }
.showcase-caption { font-weight:700; color:var(--muted); }

.testimonials.long { padding:2.5rem 0; }
.test-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.test-grid blockquote { background:var(--panel-bg); padding:1rem; border-radius:8px; border:1px solid var(--border); font-style:italic; }

.faq.long { padding:2.5rem 0; }
.faq-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }

.immersive-cta.long { padding:2rem 0; background:linear-gradient(90deg, rgba(229,9,20,0.04), rgba(255,107,107,0.02)); }
.cta-inner { display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.cta-actions a { margin-left:0.6rem; }

@media (max-width: 980px) {
  .immersive-wrap { flex-direction:column; }
  .immersive-right { width:100%; }
  .test-grid { grid-template-columns:1fr; }
  .faq-grid { grid-template-columns:1fr; }
  .showcase-wide { flex-direction:column; }
}

  /* Credits Page (minimal) */
  .credits-page {
    padding: 2.5rem 1rem 4rem;
  }

  .credits-container {
    max-width: 900px;
    margin: 0 auto;
  }

  .credits-hero h1 {
    font-size: 2.2rem;
    margin: 0 0 0.75rem 0;
    color: var(--text);
  }

  .credits-hero p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
  }

  .credits-section {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
  }

  .credits-section h2 {
    font-size: 1.35rem;
    margin: 0 0 0.75rem 0;
    color: var(--text);
  }

  .credits-section p {
    margin: 0.5rem 0;
    line-height: 1.7;
    color: var(--muted);
  }

  .credits-strong {
    font-weight: 700;
    color: var(--text);
  }

  .credits-note {
    font-size: 0.95rem;
    color: var(--muted);
  }

  .credits-list {
    margin: 0.75rem 0 0 0;
    padding-left: 1.25rem;
    color: var(--muted);
    line-height: 1.7;
  }

  .credits-license {
    margin-top: 0.75rem;
  }

  .credits-page a {
    color: var(--accent);
    font-weight: 600;
  }

  .credits-page a:hover {
    text-decoration: underline;
  }

  @media (max-width: 600px) {
    .credits-hero h1 {
      font-size: 1.7rem;
    }
  }
