:root {
  --bg-main: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-hover: #1c2742;
  --bg-header: #0f172a;
  --border-color: #243049;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-green: #10b981;
  --accent-green-hover: #059669;
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-gold-hover);
  text-decoration: underline;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.site-logo span {
  color: var(--accent-gold);
}

.site-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.site-nav a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.site-nav a:hover {
  background: var(--bg-card);
  color: var(--accent-gold);
}

.btn-cta {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-hover) 100%);
  color: #fff !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-cta:hover {
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

/* Main Content */
.main-wrapper {
  padding: 40px 0 80px 0;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--text-main);
}

/* Typography */
h1, h2, h3, h4 {
  color: #fff;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.2rem; margin-bottom: 1.5rem; }
h2 { font-size: 1.6rem; margin-top: 2.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
h3 { font-size: 1.25rem; margin-top: 1.8rem; }
p { margin-bottom: 1.2rem; }
ul, ol { margin-bottom: 1.4rem; padding-left: 24px; }
li { margin-bottom: 0.5rem; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
}

th {
  background: #1e293b;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--border-color);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: #e2e8f0;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--bg-card-hover);
}

/* Table Wrapper for Mobile */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

/* Callouts / Alerts */
blockquote {
  border-left: 4px solid var(--accent-gold);
  background: #1a2234;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 1.8rem 0;
  color: #cbd5e1;
}

blockquote p {
  margin: 0;
}

/* Pre / Code blocks */
pre {
  background: #030712;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  margin: 1.5rem 0;
  color: #38bdf8;
}

code {
  background: #1e293b;
  color: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

pre code {
  background: transparent;
  padding: 0;
}

/* Article Cards on Homepage */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
  margin-top: 2rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  text-decoration: none;
}

.article-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 10px;
}

.article-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

.article-tag {
  display: inline-block;
  background: #1e293b;
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  align-self: flex-start;
  text-transform: uppercase;
}

/* Hero Section */
.hero-box {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border: 1px solid #3730a3;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  text-align: center;
}

.hero-box h1 {
  font-size: 2.6rem;
  margin-bottom: 15px;
}

.hero-box p {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 24px auto;
}

/* Footer */
.site-footer {
  background: #030712;
  border-top: 1px solid var(--border-color);
  padding: 40px 0 30px 0;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

.footer-disclaimer {
  max-width: 720px;
  margin: 0 auto 20px auto;
  line-height: 1.5;
}

.footer-18 {
  display: inline-block;
  border: 2px solid #ef4444;
  color: #ef4444;
  font-weight: 900;
  font-size: 1rem;
  padding: 2px 8px;
  border-radius: 50%;
  margin-bottom: 12px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  .hero-box { padding: 24px 16px; }
  .hero-box h1 { font-size: 2rem; }
  .site-nav { gap: 10px; font-size: 0.85rem; }
  .site-header { height: auto; padding: 10px 0; }
  .header-inner { flex-direction: column; gap: 10px; height: auto; }
}
