/* ===== VARIABLES ===== */
:root {
  --red: #cc0000;
  --red-dark: #990000;
  --red-light: #e60000;
  --gold: #ff9900;
  --gold-light: #ffb733;
  --gray: #999999;
  --gray-light: #f4f4f6;
  --gray-dark: #333333;
  --white: #ffffff;
  --text: #222222;
  --text-muted: #666666;
  --dark-bg: #1a1a1a;
  --dark-card: #2a2a2a;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --max-width: 1200px;
  --font: 'Inter', system-ui, Arial, sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-light { background: var(--white); }
.section-dark { background: var(--dark-bg); color: var(--white); }
.section-accent { background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 60%, #e63300 100%); color: var(--white); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}
.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,0.75); }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(204,0,0,0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}
.logo-circle img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.logo-circle.small {
  width: 38px;
  height: 38px;
}
.logo-circle.small img { width: 28px; height: 28px; }
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red-dark);
  line-height: 1.2;
}
.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { background: rgba(204,0,0,0.07); color: var(--red); }
.btn-nav {
  background: var(--red) !important;
  color: var(--white) !important;
  border-radius: 8px !important;
  padding: 7px 16px !important;
}
.btn-nav:hover { background: var(--red-dark) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--red);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 60%, #fff8f0 100%);
  padding: 80px 0 70px;
  border-bottom: 1px solid rgba(204,0,0,0.1);
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.hero-text {
  flex: 1 1 500px;
  max-width: 620px;
}
.hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--red), var(--gold));
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-text h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--gray-dark);
}
.hero-text h1 .highlight { color: var(--red); }
.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(204,0,0,0.3);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(204,0,0,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}
.btn-download {
  background: var(--gold);
  color: var(--dark-bg);
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-download:hover { background: var(--gold-light); }

.hero-visual { flex-shrink: 0; }
.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(204,0,0,0.1);
  text-align: center;
  max-width: 240px;
}
.hero-icon { font-size: 4rem; margin-bottom: 16px; color: var(--red); }
.hero-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== PRINCIPLES ===== */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.principle-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.principle-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.principle-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 16px;
}
.principle-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-dark);
}
.principle-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== GUIDELINES ===== */
.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.guideline-block {
  background: var(--dark-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.07);
}
.guideline-block h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--red);
  color: var(--white);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.guideline-block ul { display: flex; flex-direction: column; gap: 10px; }
.guideline-block li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}
.guideline-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ===== TOOLS ===== */
.tools-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.tool-category {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.06);
}
.tool-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--red);
}
.tool-cat-icon { font-size: 1.4rem; color: var(--red); }
.tool-cat-header h3 { font-size: 0.95rem; font-weight: 600; color: var(--gray-dark); }
.tool-list { display: flex; flex-direction: column; gap: 10px; }
.tool-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: border-color 0.2s;
}
.tool-item:hover { border-color: var(--red); }
.tool-name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.tool-desc { font-size: 0.78rem; color: var(--text-muted); }

/* ===== CITATION ===== */
.citation-block {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.citation-text { flex: 1 1 500px; }
.citation-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.citation-text > p { margin-bottom: 20px; font-size: 1rem; opacity: 0.9; }
.citation-example { margin-bottom: 16px; }
.cite-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin-bottom: 6px;
}
code {
  display: block;
  background: rgba(0,0,0,0.2);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  line-height: 1.6;
  font-family: 'Courier New', monospace;
  color: rgba(255,255,255,0.9);
}
.citation-note {
  flex: 0 1 260px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}
.note-icon { font-size: 2.5rem; margin-bottom: 12px; color: var(--gold); }
.citation-note p { font-size: 0.9rem; line-height: 1.6; opacity: 0.9; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--gray-light);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.07);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item[open] {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--red);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-body {
  padding: 0 20px 18px;
}
.faq-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== DOCUMENTS ===== */
.docs-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}
.doc-card {
  background: var(--dark-card);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.2s;
}
.doc-card:hover { border-color: var(--gold); }
.doc-icon { font-size: 2.2rem; flex-shrink: 0; color: var(--gold); }
.doc-info { flex: 1; }
.doc-info h3 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.doc-info p { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.doc-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.btn-view {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  font-size: 0.82rem;
  padding: 8px 16px;
  white-space: nowrap;
  font-family: var(--font);
}
.btn-view:hover { background: var(--gold); color: var(--dark-bg); }

/* ===== PDF VIEWER MODAL ===== */
.pdf-modal[hidden] { display: none; }
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pdf-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}
.pdf-modal-dialog {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 900px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--dark-bg);
  border-bottom: 2px solid var(--red);
}
.pdf-modal-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-modal-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  font-size: 0.82rem;
  padding: 8px 16px;
  white-space: nowrap;
}
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }
.pdf-modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.pdf-modal-close:hover { color: var(--gold); }
.pdf-modal-body { flex: 1; background: var(--gray-light); }
.pdf-modal-body iframe { width: 100%; height: 100%; border: none; }
body.pdf-modal-open { overflow: hidden; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark-bg);
  border-top: 2px solid var(--red);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-name { font-size: 0.9rem; font-weight: 600; color: var(--white); }
.footer-sub { font-size: 0.78rem; color: var(--gray); }
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px;
    border-bottom: 1px solid rgba(204,0,0,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 99;
    gap: 4px;
  }
  .nav-toggle { display: block; }
  .hero-inner { flex-direction: column; }
  .hero-text h1 { font-size: 1.9rem; }
  .hero-visual { display: none; }
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 1.6rem; }
  .guidelines-grid { grid-template-columns: 1fr; }
  .citation-block { flex-direction: column; gap: 24px; }
  .citation-note { flex: none; width: 100%; }
  .doc-card { flex-wrap: wrap; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.6rem; }
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }
  .brand-sub { display: none; }
}
