:root {
  --bg: #0d1f10;
  --surface: #162b1a;
  --surface-2: #1e3d25;
  --border: #1e3d25;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #f59e0b;
  --accent-light: #fcd34d;
  --radius: 8px;
  --nav-height: 64px;
  --max-width: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
}

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(13, 31, 16, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-logo-img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  border-radius: 4px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 0.5rem 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-item.active > .nav-link,
.nav-item:hover > .nav-link {
  color: var(--text);
  background: var(--surface);
}
.nav-item.has-dropdown > .nav-link::after {
  content: ' ▾';
  font-size: 0.65rem;
  opacity: 0.7;
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  padding: 0.4rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  transition: color 0.15s, background 0.15s;
}
.dropdown a:hover,
.dropdown a.active {
  color: var(--text);
  background: var(--surface-2);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #0d1f10;
  padding: 0.7rem 1.75rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  margin-left: 0.75rem;
}
.btn-outline:hover {
  background: var(--surface);
  border-color: var(--text-muted);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-height) 1.5rem 4rem;
  background: linear-gradient(160deg, #0d1f10 0%, #132e18 50%, #0d1f10 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(245, 158, 11, 0.07) 0%, transparent 65%);
}
.hero-content {
  position: relative;
  max-width: 1050px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.hero-text {
  flex: 1;
  text-align: left;
}
.hero-image {
  flex: 0 0 300px;
}
.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}
.hero-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 100px;
  padding: 0.3rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.75rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ── Sections ─────────────────────────────────────────────── */
section { padding: 5rem 1.5rem; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
section h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
p.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 3rem;
  line-height: 1.75;
}
.bg-surface { background: var(--surface); }

/* ── Cards ────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.bg-surface .card {
  background: var(--surface-2);
  border-color: transparent;
}
.card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }
.card-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.card-link:hover { color: var(--accent-light); }

/* ── News list ────────────────────────────────────────────── */
.news-list { display: flex; flex-direction: column; gap: 0.875rem; }
.news-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.news-item:hover { border-color: rgba(245, 158, 11, 0.4); }
.news-date {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  padding-top: 0.15rem;
  min-width: 5rem;
}
.news-item h3 { font-size: 0.975rem; font-weight: 700; margin-bottom: 0.2rem; }
.news-item h3 a { color: var(--text); text-decoration: none; }
.news-item h3 a:hover { color: var(--accent); }
.news-item p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.5; }

/* ── CTA section ──────────────────────────────────────────── */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--surface) 0%, #132e18 100%);
  border-top: 1px solid var(--border);
}

/* ── Page header (single/list) ────────────────────────────── */
.page-header {
  padding: calc(var(--nav-height) + 4rem) 1.5rem 3rem;
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.page-header .section-inner { max-width: 800px; }
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-header .meta {
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

/* ── Article body ─────────────────────────────────────────── */
.article-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}
.article-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
}
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
  color: var(--accent);
}
.article-body p { margin-bottom: 1.25rem; color: var(--text-muted); line-height: 1.8; }
.article-body ul,
.article-body ol { margin: 0 0 1.25rem 1.5rem; color: var(--text-muted); line-height: 1.8; }
.article-body li { margin-bottom: 0.25rem; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--accent); }
.article-body a:hover { color: var(--accent-light); }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.article-body th {
  background: var(--surface-2);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
}
.article-body td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.article-body tr:last-child td { border-bottom: none; }

/* ── List page ────────────────────────────────────────────── */
.list-page { padding: 3rem 1.5rem 5rem; }
.list-inner { max-width: var(--max-width); margin: 0 auto; }
.list-intro {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 3rem;
  font-size: 1.05rem;
  line-height: 1.8;
}
.subpage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.subpage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 0.2s, transform 0.2s;
}
.subpage-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}
.subpage-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent);
}
.subpage-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
  text-align: center;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.footer p { color: var(--text-muted); font-size: 0.875rem; }
.footer-social {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.25rem 0 1rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  transition: background 0.15s, transform 0.15s;
}
.footer-social a:hover {
  background: var(--border);
  transform: translateY(-2px);
}
.footer-social img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 0.75rem 0 1.5rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hero { padding-bottom: 3rem; }
  .hero-content { flex-direction: column-reverse; gap: 2rem; }
  .hero-text { text-align: center; }
  .hero-image { flex: 0 0 auto; max-width: 200px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .btn-outline { display: none; }
  .news-item { flex-direction: column; gap: 0.5rem; }
  .news-date { min-width: unset; }
}
