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

:root {
  --bg:         #0d0f14;
  --bg-card:    #13161e;
  --bg-table:   #10121a;
  --accent:     #c9a84c;
  --accent-2:   #3ec6c6;
  --text:       #dde0e8;
  --text-muted: #7a7f91;
  --border:     #1e2130;
  --radius:     12px;
  --max-w:      820px;
  --font:       'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

/* ==============================
   NAV
============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.nav ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav ul li a:hover {
  color: var(--accent);
}

/* ==============================
   HERO
============================== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-height: 500px;
}

.hero-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.45);
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.12;
  text-shadow: 0 2px 24px rgba(0,0,0,0.7);
}

.hero-sub {
  margin-top: 0.85rem;
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  color: rgba(255,255,255,0.72);
  max-width: 580px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.55);
  line-height: 1.6;
}

/* ==============================
   MAIN CONTAINER
============================== */
.article-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.article-body {
  margin-top: 3.2rem;
}

/* ==============================
   DEFINITION BOX
============================== */
.definition-box {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  margin-bottom: 2.2rem;
}

.definition-box h2 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
}

.definition-box p {
  margin-bottom: 0;
  color: var(--text);
}

/* ==============================
   TYPOGRAPHY
============================== */
h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  font-weight: 700;
  color: #ffffff;
  margin-top: 2.8rem;
  margin-bottom: 0.9rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.45rem;
  line-height: 1.4;
}

p {
  margin-bottom: 1.3rem;
  color: var(--text);
}

ul {
  margin: 0.5rem 0 1.6rem 1.4rem;
}

ul li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

ul li::marker {
  color: var(--accent);
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ==============================
   ARTICLE IMAGES
============================== */
.article-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 2.2rem 0;
  display: block;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* ==============================
   TABLES
============================== */
.table-wrapper {
  overflow-x: auto;
  margin: 1.8rem 0 2.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 520px;
  background: var(--bg-table);
}

caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: left;
  padding: 0.65rem 1rem;
  background: #161820;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

thead tr {
  background: #191c28;
}

thead th {
  padding: 0.8rem 1rem;
  text-align: left;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

tbody tr {
  border-top: 1px solid var(--border);
  transition: background 0.15s;
}

tbody tr:hover {
  background: rgba(201, 168, 76, 0.05);
}

tbody td {
  padding: 0.72rem 1rem;
  color: var(--text);
  vertical-align: middle;
}

tbody td:first-child {
  font-weight: 500;
  color: #ffffff;
}

/* ==============================
   FAQ
============================== */
.faq {
  margin-top: 2.8rem;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 1.3rem 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-item h3 {
  margin-bottom: 0.5rem;
}

.faq-item p {
  margin-bottom: 0;
}

/* ==============================
   DIVIDER
============================== */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.8rem 0;
}

/* ==============================
   FOOTER
============================== */
.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.6rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.site-footer a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--accent);
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 640px) {
  .nav ul {
    gap: 0.9rem;
  }

  .hero-img {
    height: 340px;
  }

  .definition-box {
    padding: 1.1rem 1.2rem;
  }

  h2 {
    margin-top: 2.2rem;
  }

  table {
    font-size: 0.82rem;
  }
}
