/* AMW Group -- Active Measures Research */
/* Design: institutional authority, maximum restraint */

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

:root {
  --navy: #0f1b2d;
  --navy-mid: #1a2940;
  --navy-light: #243552;
  --accent: #b91c1c;
  --accent-hover: #991b1b;
  --gold: #d4a843;
  --surface: #f8f9fb;
  --border: #e5e7eb;
  --border-light: #f0f1f3;
  --white: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.04);
  --radius: 4px;
  --radius-lg: 6px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1080px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.mono { font-family: 'JetBrains Mono', monospace; }

/* ============================================================ */
/* HEADER */
/* ============================================================ */

header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.logo-mark {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--white);
  background: var(--accent);
  padding: 6px 8px;
  border-radius: 3px;
  line-height: 1;
}

.logo-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
}

nav { display: flex; gap: 28px; align-items: center; }

nav a {
  color: rgba(255,255,255,0.55);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  transition: color 0.15s var(--ease);
}

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

.nav-toggle { display: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 20px; height: 1.5px;
  background: rgba(255,255,255,0.7); margin: 5px 0;
}

@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
  .nav-toggle { display: block; }
  nav {
    display: none; flex-direction: column; position: absolute;
    top: 56px; left: 0; right: 0; background: var(--navy);
    padding: 24px 20px; gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  nav.open { display: flex; }
  .hero { padding: 64px 20px 56px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .section { padding: 48px 20px; }
  .reports-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
}

/* ============================================================ */
/* HERO */
/* ============================================================ */

.hero {
  background: var(--navy);
  color: var(--white);
  padding: 96px 32px 80px;
  text-align: center;
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.15;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero .accent { color: var(--accent); }

.hero p {
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 40px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  font-weight: 400;
}

.hero .cta {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 12px 28px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: var(--radius);
  transition: all 0.15s var(--ease);
}

.hero .cta:hover {
  background: var(--accent-hover);
  color: var(--white);
}

/* ============================================================ */
/* SECTIONS */
/* ============================================================ */

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 32px;
}

.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0;
}

/* ============================================================ */
/* REPORT CARDS */
/* ============================================================ */

.reports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 720px) {
  .reports-grid { grid-template-columns: 1fr; }
}

.report-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s var(--ease);
}

.report-card:hover {
  border-color: #d1d5db;
  box-shadow: var(--shadow-lg);
}

.report-card .card-top {
  padding: 20px 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.report-card .serial {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.report-card .status {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 700;
}

.status-published { background: #ecfdf5; color: #059669; }
.status-progress { background: #fefce8; color: #ca8a04; }

.report-card .card-body { padding: 14px 22px 22px; }

.report-card h3 {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.45;
  font-weight: 600;
}

.report-card .meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.report-card .description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}

.report-card .card-actions { display: flex; gap: 8px; }

.btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius);
  transition: all 0.15s var(--ease);
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover { background: var(--navy-mid); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: var(--text-secondary); color: var(--text-primary); }

/* ============================================================ */
/* METHODOLOGY */
/* ============================================================ */

.method-section {
  background: var(--surface);
  padding: 72px 32px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.method-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .method-grid { grid-template-columns: 1fr; gap: 24px; }
}

.method-card {
  padding: 0;
}

.method-card h3 {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.method-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================ */
/* REPORT PAGE */
/* ============================================================ */

.report-header {
  background: var(--navy);
  color: var(--white);
  padding: 44px 32px;
}

.report-header-inner { max-width: var(--max-w); margin: 0 auto; }

.report-header .serial-lg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}

.report-header h1 {
  font-size: 24px;
  margin-bottom: 16px;
  line-height: 1.4;
  font-weight: 700;
  max-width: 700px;
}

.report-meta-bar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

.pdf-container {
  max-width: var(--max-w);
  margin: 24px auto;
  padding: 0 32px;
}

.pdf-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.pdf-viewer {
  width: 100%;
  height: 800px;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ============================================================ */
/* ABOUT */
/* ============================================================ */

.about-content { max-width: 640px; }

.about-content h3 {
  font-size: 16px;
  color: var(--text-primary);
  margin: 36px 0 10px;
  font-weight: 600;
}

.about-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.about-content ul { margin: 0 0 20px 18px; }

.about-content li {
  margin-bottom: 6px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.methodology-box {
  background: var(--surface);
  border-left: 3px solid var(--navy);
  padding: 22px 24px;
  margin: 28px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.methodology-box h3 { margin-top: 0 !important; font-size: 14px !important; }
.methodology-box p { font-size: 13.5px !important; }

/* ============================================================ */
/* FOOTER */
/* ============================================================ */

footer {
  background: var(--navy);
  color: rgba(255,255,255,0.35);
  padding: 40px 32px;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer .footer-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
}

footer .footer-links { display: flex; gap: 20px; font-size: 12px; }
footer .footer-links a { color: rgba(255,255,255,0.35); }
footer .footer-links a:hover { color: rgba(255,255,255,0.7); }

footer .copyright {
  width: 100%;
  text-align: center;
  font-size: 11px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
