/* ============================================
   黑料社 (Black Material Agency) - Main Stylesheet
   Design: Intelligence Agency / News Agency Style
   Prefix: bma-
   ============================================ */

/* === Google Fonts Import === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500;600;700&display=swap');

/* === CSS Variables === */
:root {
  --bma-primary: #111111;
  --bma-secondary: #E5E5E5;
  --bma-accent: #FFD700;
  --bma-text: #F5F5F5;
  --bma-link: #FFD700;
  --bma-dark: #0a0a0a;
  --bma-card-bg: #1a1a1a;
  --bma-border: #333333;
  --bma-muted: #888888;
  --bma-danger: #cc0000;
  --bma-font-heading: 'Roboto Mono', monospace;
  --bma-font-body: 'Inter', sans-serif;
  --bma-max-width: 1440px;
  --bma-gutter: 20px;
}

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

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

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

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

a {
  color: var(--bma-link);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--bma-font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--bma-text);
}

/* === Hidden Jammer Blocks === */
.intel-jammer-block {
  display: none !important;
  visibility: hidden;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* === Scanline Effect === */
.bma-scanline::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* === Container === */
.bma-container {
  width: 100%;
  max-width: var(--bma-max-width);
  margin: 0 auto;
  padding: 0 var(--bma-gutter);
}

/* === Navigation === */
#bma-header {
  background-color: #000000;
  padding: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--bma-accent);
}

.bma-nav-inner {
  max-width: var(--bma-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--bma-gutter);
}

.bma-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bma-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.bma-logo-text {
  font-family: var(--bma-font-heading);
  font-size: 1.2rem;
  color: var(--bma-accent);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.bma-nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
}

.bma-nav-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--bma-text);
  font-family: var(--bma-font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-left: 1px solid var(--bma-border);
}

.bma-nav-menu li:first-child a {
  border-left: none;
}

.bma-nav-menu li a:hover,
.bma-nav-menu li a.bma-active {
  color: var(--bma-accent);
  background-color: rgba(255, 215, 0, 0.05);
}

/* Hamburger Menu */
.bma-hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 5px;
}

.bma-hamburger span {
  width: 25px;
  height: 2px;
  background-color: var(--bma-accent);
  transition: all 0.3s ease;
}

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

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

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

/* Mobile Side Menu */
.bma-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
}

.bma-mobile-overlay.bma-show {
  display: block;
}

.bma-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #0a0a0a;
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 60px 20px 20px;
  border-left: 1px solid var(--bma-accent);
  overflow-y: auto;
}

.bma-mobile-menu.bma-show {
  right: 0;
}

.bma-mobile-menu-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--bma-accent);
  font-size: 1.5rem;
  cursor: pointer;
  font-family: var(--bma-font-heading);
}

.bma-mobile-menu ul {
  list-style: none;
}

.bma-mobile-menu ul li a {
  display: block;
  padding: 15px 0;
  color: var(--bma-text);
  font-family: var(--bma-font-heading);
  font-size: 1rem;
  border-bottom: 1px solid var(--bma-border);
  letter-spacing: 1px;
}

.bma-mobile-menu ul li a:hover {
  color: var(--bma-accent);
}

/* === Hero Section === */
.bma-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bma-dark);
}

.bma-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.bma-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
}

.bma-hero-content h1 {
  font-size: 3rem;
  color: var(--bma-accent);
  margin-bottom: 20px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.bma-hero-subtitle {
  font-size: 1.1rem;
  color: var(--bma-secondary);
  margin-bottom: 30px;
  font-family: var(--bma-font-heading);
}

.bma-hero-classified {
  display: inline-block;
  background: var(--bma-accent);
  color: #000;
  padding: 4px 16px;
  font-family: var(--bma-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

/* === Section Common === */
.bma-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--bma-border);
}

.bma-section-alt {
  background-color: var(--bma-dark);
}

.bma-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.bma-section-header h2 {
  font-size: 2rem;
  color: var(--bma-accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.bma-section-header p {
  color: var(--bma-muted);
  font-family: var(--bma-font-heading);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.bma-section-tag {
  display: inline-block;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--bma-accent);
  color: var(--bma-accent);
  padding: 2px 12px;
  font-family: var(--bma-font-heading);
  font-size: 0.7rem;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

/* === Latest Intel Module === */
.bma-intel-list {
  max-width: 900px;
  margin: 0 auto;
}

.bma-intel-item {
  display: flex;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--bma-border);
  transition: background-color 0.3s ease;
}

.bma-intel-item:hover {
  background-color: rgba(255, 215, 0, 0.03);
}

.bma-intel-time {
  flex-shrink: 0;
  width: 100px;
  font-family: var(--bma-font-heading);
  font-size: 0.8rem;
  color: var(--bma-accent);
  padding-top: 3px;
}

.bma-intel-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--bma-text);
}

.bma-intel-content h3 a {
  color: var(--bma-text);
}

.bma-intel-content h3 a:hover {
  color: var(--bma-accent);
}

.bma-intel-content p {
  font-size: 0.9rem;
  color: var(--bma-muted);
  line-height: 1.6;
}

.bma-intel-badge {
  display: inline-block;
  background: var(--bma-danger);
  color: #fff;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-family: var(--bma-font-heading);
  letter-spacing: 1px;
  margin-right: 8px;
  vertical-align: middle;
}

/* === Informant Network === */
.bma-informant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.bma-informant-card {
  background: var(--bma-card-bg);
  border: 1px solid var(--bma-border);
  padding: 25px;
  position: relative;
  overflow: hidden;
}

.bma-informant-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--bma-accent);
}

.bma-informant-rank {
  font-family: var(--bma-font-heading);
  font-size: 2rem;
  color: var(--bma-accent);
  font-weight: 700;
}

.bma-informant-codename {
  font-family: var(--bma-font-heading);
  font-size: 1rem;
  color: var(--bma-text);
  margin: 8px 0;
  letter-spacing: 1px;
}

.bma-informant-stats {
  font-size: 0.8rem;
  color: var(--bma-muted);
}

.bma-informant-level {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border: 1px solid var(--bma-accent);
  color: var(--bma-accent);
  font-family: var(--bma-font-heading);
  font-size: 0.7rem;
  letter-spacing: 1px;
}

/* === Investigation Cards === */
.bma-investigation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.bma-investigation-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--bma-border);
  background: var(--bma-card-bg);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.bma-investigation-card:hover {
  transform: translateY(-5px);
  border-color: var(--bma-accent);
}

.bma-investigation-card .bma-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.bma-investigation-card:hover .bma-card-img {
  filter: grayscale(0%);
}

.bma-investigation-card .bma-card-body {
  padding: 20px;
}

.bma-card-code {
  font-family: var(--bma-font-heading);
  font-size: 0.75rem;
  color: var(--bma-accent);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.bma-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.bma-card-body p {
  font-size: 0.85rem;
  color: var(--bma-muted);
  line-height: 1.6;
}

.bma-card-status {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--bma-accent);
  color: var(--bma-accent);
  font-family: var(--bma-font-heading);
  font-size: 0.7rem;
  letter-spacing: 1px;
}

/* === Intel Analysis Chart === */
.bma-chart-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bma-card-bg);
  border: 1px solid var(--bma-border);
  padding: 30px;
}

.bma-chart-wrapper canvas {
  width: 100% !important;
}

/* === Anonymous Submission === */
.bma-submit-section {
  text-align: center;
}

.bma-submit-btn {
  display: inline-block;
  padding: 16px 50px;
  background: transparent;
  border: 2px solid var(--bma-accent);
  color: var(--bma-accent);
  font-family: var(--bma-font-heading);
  font-size: 1rem;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.bma-submit-btn:hover {
  background: var(--bma-accent);
  color: #000;
}

/* === Modal === */
.bma-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.bma-modal-overlay.bma-show {
  display: flex;
}

.bma-modal {
  background: var(--bma-card-bg);
  border: 1px solid var(--bma-accent);
  max-width: 600px;
  width: 90%;
  padding: 40px;
  position: relative;
}

.bma-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: var(--bma-accent);
  font-size: 1.5rem;
  cursor: pointer;
}

.bma-modal h3 {
  font-size: 1.3rem;
  color: var(--bma-accent);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.bma-modal textarea {
  width: 100%;
  min-height: 150px;
  background: var(--bma-primary);
  border: none;
  border-bottom: 2px solid var(--bma-accent);
  color: var(--bma-text);
  font-family: var(--bma-font-heading);
  font-size: 0.9rem;
  padding: 15px;
  resize: vertical;
}

.bma-modal textarea:focus {
  outline: none;
  border-bottom-color: #fff;
}

.bma-modal-submit {
  margin-top: 20px;
  padding: 12px 40px;
  background: var(--bma-accent);
  border: none;
  color: #000;
  font-family: var(--bma-font-heading);
  font-size: 0.9rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.bma-modal-submit:hover {
  opacity: 0.85;
}

/* === Bounty Program === */
.bma-bounty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.bma-bounty-card {
  background: var(--bma-card-bg);
  border: 1px solid var(--bma-border);
  padding: 25px;
  position: relative;
}

.bma-bounty-reward {
  font-family: var(--bma-font-heading);
  font-size: 1.5rem;
  color: var(--bma-accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.bma-bounty-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.bma-bounty-card p {
  font-size: 0.85rem;
  color: var(--bma-muted);
}

.bma-bounty-status-active {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00cc00;
  box-shadow: 0 0 6px #00cc00;
}

/* === Membership Card === */
.bma-membership-section {
  text-align: center;
}

.bma-membership-visual {
  max-width: 500px;
  margin: 0 auto 30px;
}

.bma-membership-visual img {
  width: 100%;
  border: 1px solid var(--bma-border);
}

.bma-membership-perks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  max-width: 700px;
  margin: 30px auto 0;
  text-align: left;
}

.bma-perk-item {
  padding: 15px;
  border: 1px solid var(--bma-border);
  background: var(--bma-card-bg);
  font-size: 0.85rem;
  color: var(--bma-secondary);
}

.bma-perk-item::before {
  content: '▸ ';
  color: var(--bma-accent);
}

/* === Advertising Section === */
.bma-advertising-section {
  text-align: center;
}

.bma-advertising-section p {
  max-width: 600px;
  margin: 0 auto 20px;
  color: var(--bma-muted);
  font-size: 0.9rem;
}

.bma-contact-email {
  font-family: var(--bma-font-heading);
  font-size: 1.1rem;
  color: var(--bma-accent);
  letter-spacing: 1px;
}

/* === APP Download Section === */
.bma-app-section {
  text-align: center;
}

.bma-app-mockup {
  max-width: 280px;
  margin: 0 auto 30px;
}

.bma-app-mockup img {
  width: 100%;
  border-radius: 20px;
}

.bma-app-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.bma-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 2px solid var(--bma-accent);
  color: var(--bma-accent);
  font-family: var(--bma-font-heading);
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.bma-app-btn:hover {
  background: var(--bma-accent);
  color: #000;
}

/* === About Section === */
.bma-about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.bma-about-content p {
  font-size: 0.95rem;
  color: var(--bma-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

/* === Footer === */
#bma-footer {
  background: #000000;
  padding: 60px 0 0;
  border-top: 1px solid var(--bma-accent);
}

.bma-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: var(--bma-max-width);
  margin: 0 auto;
  padding: 0 var(--bma-gutter);
}

.bma-footer-col h4 {
  font-size: 0.9rem;
  color: var(--bma-accent);
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.bma-footer-col ul {
  list-style: none;
}

.bma-footer-col ul li {
  margin-bottom: 10px;
}

.bma-footer-col ul li a {
  color: var(--bma-muted);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.bma-footer-col ul li a:hover {
  color: var(--bma-accent);
}

.bma-footer-col p {
  color: var(--bma-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.bma-footer-bottom {
  margin-top: 40px;
  padding: 20px var(--bma-gutter);
  border-top: 1px solid var(--bma-border);
  text-align: center;
  max-width: var(--bma-max-width);
  margin-left: auto;
  margin-right: auto;
}

.bma-footer-bottom p {
  font-size: 0.75rem;
  color: var(--bma-muted);
  margin-bottom: 5px;
  line-height: 1.6;
}

.bma-footer-cert {
  font-family: var(--bma-font-heading);
  letter-spacing: 1px;
}

/* === Article Page === */
.bma-article-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--bma-border);
}

.bma-article-header h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.bma-article-meta {
  text-align: center;
  font-family: var(--bma-font-heading);
  font-size: 0.8rem;
  color: var(--bma-muted);
  letter-spacing: 1px;
}

.bma-article-meta span {
  margin: 0 10px;
}

.bma-article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px var(--bma-gutter);
}

.bma-article-body p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--bma-secondary);
}

.bma-article-body h2 {
  font-size: 1.4rem;
  color: var(--bma-accent);
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bma-border);
}

.bma-article-img {
  width: 100%;
  margin: 30px 0;
  border: 1px solid var(--bma-border);
}

.bma-article-img img {
  width: 100%;
}

.bma-article-img figcaption {
  font-size: 0.8rem;
  color: var(--bma-muted);
  font-family: var(--bma-font-heading);
  padding: 8px 0;
  text-align: center;
  letter-spacing: 1px;
}

/* === Category Page === */
.bma-category-header {
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--bma-border);
}

.bma-category-header h1 {
  font-size: 2.2rem;
  color: var(--bma-accent);
  letter-spacing: 3px;
}

.bma-category-header p {
  color: var(--bma-muted);
  font-size: 0.9rem;
  margin-top: 10px;
}

.bma-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  padding: 40px 0;
}

.bma-article-card {
  background: var(--bma-card-bg);
  border: 1px solid var(--bma-border);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.bma-article-card:hover {
  border-color: var(--bma-accent);
  transform: translateY(-3px);
}

.bma-article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.bma-article-card-body {
  padding: 20px;
}

.bma-article-card-body h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.bma-article-card-body h3 a {
  color: var(--bma-text);
}

.bma-article-card-body h3 a:hover {
  color: var(--bma-accent);
}

.bma-article-card-body p {
  font-size: 0.85rem;
  color: var(--bma-muted);
  line-height: 1.6;
}

.bma-article-card-meta {
  padding: 12px 20px;
  border-top: 1px solid var(--bma-border);
  font-family: var(--bma-font-heading);
  font-size: 0.75rem;
  color: var(--bma-muted);
  letter-spacing: 1px;
}

/* === APP Download Page === */
.bma-app-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  text-align: center;
}

.bma-app-page-inner {
  padding: 60px 20px;
}

.bma-app-page-logo {
  width: 120px;
  margin: 0 auto 30px;
}

.bma-app-page h1 {
  font-size: 2.5rem;
  color: var(--bma-accent);
  margin-bottom: 15px;
  letter-spacing: 3px;
}

.bma-app-page .bma-app-subtitle {
  font-size: 1rem;
  color: var(--bma-muted);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.bma-app-page-mockup {
  max-width: 300px;
  margin: 0 auto 40px;
}

.bma-app-page-mockup img {
  width: 100%;
  border-radius: 20px;
}

/* === Legal Pages === */
.bma-legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px var(--bma-gutter);
}

.bma-legal-page h1 {
  font-size: 2rem;
  color: var(--bma-accent);
  margin-bottom: 30px;
  text-align: center;
}

.bma-legal-page h2 {
  font-size: 1.2rem;
  color: var(--bma-accent);
  margin: 30px 0 15px;
}

.bma-legal-page p {
  font-size: 0.9rem;
  color: var(--bma-secondary);
  margin-bottom: 15px;
  line-height: 1.8;
}

/* === Buttons Common === */
.bma-btn {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid var(--bma-accent);
  color: var(--bma-accent);
  font-family: var(--bma-font-heading);
  font-size: 0.85rem;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
  text-transform: uppercase;
}

.bma-btn:hover {
  background: var(--bma-accent);
  color: #000;
}

.bma-btn-solid {
  background: var(--bma-accent);
  color: #000;
}

.bma-btn-solid:hover {
  background: transparent;
  color: var(--bma-accent);
}

/* === Typewriter Effect === */
.bma-typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--bma-accent);
  animation: bma-typing 3.5s steps(40, end), bma-blink 0.75s step-end infinite;
  display: inline-block;
}

@keyframes bma-typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes bma-blink {
  from, to { border-color: transparent; }
  50% { border-color: var(--bma-accent); }
}

/* === Responsive Design === */

/* 1440px */
@media (max-width: 1440px) {
  .bma-container {
    max-width: 1200px;
  }
}

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

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

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

/* 768px */
@media (max-width: 768px) {
  .bma-nav-menu {
    display: none;
  }

  .bma-hamburger {
    display: flex;
  }

  .bma-hero-content h1 {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }

  .bma-section {
    padding: 50px 0;
  }

  .bma-section-header h2 {
    font-size: 1.5rem;
  }

  .bma-investigation-grid {
    grid-template-columns: 1fr;
  }

  .bma-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .bma-intel-item {
    flex-direction: column;
    gap: 8px;
  }

  .bma-intel-time {
    width: auto;
  }

  .bma-article-grid {
    grid-template-columns: 1fr;
  }

  .bma-article-header h1 {
    font-size: 1.5rem;
  }
}

/* 360px */
@media (max-width: 360px) {
  html {
    font-size: 14px;
  }

  .bma-hero-content h1 {
    font-size: 1.4rem;
  }

  .bma-nav-inner {
    padding: 10px 15px;
  }

  .bma-section {
    padding: 35px 0;
  }

  .bma-app-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* === Pure CSS Checkbox Hack for Mobile Menu === */
#bma-menu-toggle {
  display: none;
}

#bma-menu-toggle:checked ~ .bma-mobile-overlay {
  display: block;
}

#bma-menu-toggle:checked ~ .bma-mobile-menu {
  right: 0;
}

/* === Pure CSS Checkbox Hack for Modal === */
#bma-modal-toggle {
  display: none;
}

#bma-modal-toggle:checked ~ .bma-modal-overlay {
  display: flex;
}

/* === Chart Placeholder (no JS) === */
.bma-chart-placeholder {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bma-card-bg);
  border: 1px solid var(--bma-border);
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bma-chart-placeholder-title {
  font-family: var(--bma-font-heading);
  font-size: 1rem;
  color: var(--bma-accent);
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.bma-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  height: 200px;
  padding: 0 20px;
}

.bma-chart-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.bma-chart-bar-set {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 100%;
  justify-content: center;
}

.bma-chart-bar {
  width: 16px;
  border-radius: 2px 2px 0 0;
  transition: height 0.5s ease;
}

.bma-chart-bar.bma-bar-a {
  background: var(--bma-accent);
}

.bma-chart-bar.bma-bar-b {
  background: var(--bma-secondary);
}

.bma-chart-bar.bma-bar-c {
  background: var(--bma-danger);
}

.bma-chart-bar-label {
  font-family: var(--bma-font-heading);
  font-size: 0.7rem;
  color: var(--bma-muted);
}

.bma-chart-legend {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 25px;
}

.bma-chart-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--bma-font-heading);
  font-size: 0.75rem;
  color: var(--bma-secondary);
}

.bma-chart-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.bma-chart-legend-dot.bma-dot-a { background: var(--bma-accent); }
.bma-chart-legend-dot.bma-dot-b { background: var(--bma-secondary); }
.bma-chart-legend-dot.bma-dot-c { background: var(--bma-danger); }

/* === Utility Classes === */
.bma-text-center { text-align: center; }
.bma-text-accent { color: var(--bma-accent); }
.bma-text-muted { color: var(--bma-muted); }
.bma-mt-20 { margin-top: 20px; }
.bma-mt-40 { margin-top: 40px; }
.bma-mb-20 { margin-bottom: 20px; }
.bma-mb-40 { margin-bottom: 40px; }
