/* ============================================================
   AI GOVERNANCE — Stylesheet v2
   Theme: Deep Navy-Indigo background + Gold primary accent
   Aesthetic: Regulatory authority, boardroom, official seal
   ============================================================ */

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

:root {
  --bg:           #061E29;
  --bg-2:         #0a2735;
  --bg-3:         #0e3142;
  --bg-card:      #0c2c3c;
  --border:       rgba(255,255,255,0.07);
  --border-md:    rgba(255,255,255,0.12);
  --text:         #e4ecf0;
  --text-2:       #8fa3ad;
  --text-3:       #51666f;
  --gold:         #d4af37;
  --gold-dim:     #b8943a;
  --gold-glow:    rgba(212,175,55,0.1);
  --navy-accent:  #1e3a5f;
  --navy-glow:    rgba(30,58,95,0.18);
  --silver:       #c8d2dc;
  --red:          #e0566a;
  --accent:       #d4af37;
  --font-display: 'Syne', sans-serif;
  --font-body:    'Lora', serif;
  --font-mono:    'DM Mono', monospace;
  --radius:       8px;
  --radius-lg:    14px;
  --max-w:        1200px;
  --nav-h:        68px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.75; -webkit-font-smoothing: antialiased; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
a { color: var(--gold); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.25); border-radius: 3px; }

/* NAV */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--nav-h); background: rgba(6,30,41,0.93); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.logo-parent { color: var(--text-3); }
.logo-sep { color: var(--border-md); margin: 0 0.3rem; }
.logo-repo { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a { color: var(--text-2); font-family: var(--font-display); font-size: 0.875rem; padding: 0.5rem 0.85rem; border-radius: var(--radius); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--bg-3); }
.nav-links .nav-home { color: var(--silver); border: 1px solid rgba(200,210,220,0.25); margin-left: 0.5rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text-2); }

/* HERO */
.hero { min-height: 100vh; padding-top: var(--nav-h); display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(212,175,55,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(212,175,55,0.025) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black 20%, transparent 100%); }
.hero-glow-indigo { position: absolute; top: 15%; left: 5%; width: 550px; height: 550px; background: radial-gradient(ellipse, rgba(77,126,168,0.1) 0%, transparent 70%); }
.hero-glow-gold { position: absolute; bottom: 10%; right: 8%; width: 380px; height: 380px; background: radial-gradient(ellipse, rgba(212,175,55,0.08) 0%, transparent 70%); }

.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; padding-top: 5rem; padding-bottom: 5rem; }

.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.25); color: var(--gold); font-family: var(--font-mono); font-size: 0.75rem; padding: 0.35rem 0.85rem; border-radius: 100px; margin-bottom: 1.5rem; animation: fadeUp 0.6s ease both; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }

.hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 1.5rem; animation: fadeUp 0.6s 0.1s ease both; }
.hero-title .line-indigo { display: block; color: var(--gold); }
.hero-title .line-white { display: block; color: var(--text); }
.hero-title .line-sub { display: block; font-size: 0.5em; font-weight: 500; color: var(--silver); letter-spacing: 0.06em; margin-top: 0.75rem; font-family: var(--font-mono); }

.hero-desc { font-size: 1.05rem; color: var(--text-2); max-width: 540px; margin-bottom: 2.5rem; animation: fadeUp 0.6s 0.2s ease both; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp 0.6s 0.3s ease both; }

/* GOVERNANCE PANEL VISUAL */
.hero-visual { animation: fadeIn 0.8s 0.4s ease both; }
.gov-panel { background: var(--bg-card); border: 1px solid rgba(212,175,55,0.18); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 0 50px rgba(212,175,55,0.04), inset 0 0 80px rgba(30,58,95,0.15); }
.panel-header { background: var(--bg-3); padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.75rem; }
.panel-icon { font-size: 0.9rem; }
.panel-title { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); }
.panel-body { padding: 0; }
.gov-row { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border); transition: background 0.2s; }
.gov-row:last-child { border-bottom: none; }
.gov-row:hover { background: var(--bg-3); }
.gov-name { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: var(--text); }
.gov-region { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-3); }
.gov-status { font-family: var(--font-mono); font-size: 0.65rem; padding: 0.2rem 0.6rem; border-radius: 100px; }
.status-mandatory { background: rgba(224,86,106,0.12); color: var(--red); border: 1px solid rgba(224,86,106,0.25); }
.status-active { background: rgba(212,175,55,0.1); color: var(--gold); border: 1px solid rgba(212,175,55,0.25); }
.status-emerging { background: rgba(200,210,220,0.1); color: var(--silver); border: 1px solid rgba(200,210,220,0.25); }

/* BUTTONS */
.btn-primary { display: inline-flex; align-items: center; background: var(--gold); color: #061E29; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; padding: 0.75rem 1.75rem; border-radius: var(--radius); transition: transform 0.2s, box-shadow 0.2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,175,55,0.3); opacity: 1; color: #061E29; }
.btn-secondary { display: inline-flex; align-items: center; background: transparent; color: var(--text); border: 1px solid var(--border-md); font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; padding: 0.75rem 1.75rem; border-radius: var(--radius); transition: border-color 0.2s; }
.btn-secondary:hover { border-color: var(--silver); background: rgba(200,210,220,0.06); color: var(--text); opacity: 1; }
.btn-back, .btn-parent { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-3); }
.btn-back:hover { color: var(--gold); opacity: 1; }
.btn-parent:hover { color: var(--silver); opacity: 1; }
.btn-outline { display: inline-flex; align-items: center; color: var(--gold); border: 1px solid rgba(212,175,55,0.3); font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; padding: 0.7rem 1.5rem; border-radius: var(--radius); transition: background 0.2s; }
.btn-outline:hover { background: var(--gold-glow); opacity: 1; }

/* SECTIONS */
section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
.section-label.gold { color: var(--silver); }
.section-header h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1rem; }
.section-header p { color: var(--text-2); max-width: 560px; margin: 0 auto; }

/* FRAMEWORKS GRID */
.frameworks-section { background: var(--bg-2); }
.frameworks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.framework-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; transition: border-color 0.3s, transform 0.3s; }
.framework-card:hover { border-color: rgba(212,175,55,0.3); transform: translateY(-3px); }
.framework-flag { font-size: 1.5rem; margin-bottom: 1rem; display: block; }
.framework-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.framework-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }
.framework-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 1rem; }
.tag { font-family: var(--font-mono); font-size: 0.65rem; background: var(--bg-3); color: var(--text-3); border: 1px solid var(--border); padding: 0.2rem 0.5rem; border-radius: 100px; }

/* ARTICLES */
.articles-section { background: var(--bg); }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.article-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; transition: border-color 0.3s, transform 0.3s; }
.article-card:hover { border-color: rgba(212,175,55,0.3); transform: translateY(-3px); }
.article-cat { font-family: var(--font-mono); font-size: 0.65rem; color: var(--gold); letter-spacing: 0.1em; }
.article-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.4; }
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--gold); }
.article-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }
.article-meta { margin-top: auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.article-meta time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); }
.article-tags { display: flex; gap: 0.4rem; }
.tag-sm { font-family: var(--font-mono); font-size: 0.65rem; background: var(--bg-3); color: var(--text-3); padding: 0.15rem 0.5rem; border-radius: 100px; }

/* POST */
.post-single { padding-top: var(--nav-h); }
.post-header { padding: 4rem 0 3rem; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.post-breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); margin-bottom: 1.5rem; }
.post-breadcrumb a { color: var(--text-3); }
.post-breadcrumb a:hover { color: var(--gold); }
.post-category { font-family: var(--font-mono); font-size: 0.7rem; color: var(--gold); letter-spacing: 0.12em; display: block; margin-bottom: 1rem; }
.post-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.post-subtitle { font-size: 1.1rem; color: var(--text-2); max-width: 700px; margin-bottom: 1.5rem; }
.post-meta { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-3); }
.sep { opacity: 0.4; }
.post-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.post-body { padding: 3rem 0 5rem; }
.post-content { max-width: 740px; font-size: 1.05rem; line-height: 1.85; color: var(--text-2); }
.post-content h2 { font-family: var(--font-display); font-size: 1.6rem; color: var(--text); margin: 2.5rem 0 1rem; border-left: 3px solid var(--gold); padding-left: 1rem; }
.post-content h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--silver); margin: 2rem 0 0.75rem; }
.post-content p { margin-bottom: 1.5rem; }
.post-content a { color: var(--gold); }
.post-content strong { color: var(--text); font-weight: 600; }
.post-content code { font-family: var(--font-mono); font-size: 0.85em; background: var(--bg-3); padding: 0.15em 0.4em; border-radius: 4px; color: var(--gold); }
.post-content pre { background: var(--bg-card); border: 1px solid rgba(212,175,55,0.15); border-radius: var(--radius-lg); padding: 1.5rem; overflow-x: auto; margin: 2rem 0; }
.post-content pre code { background: none; padding: 0; }
.post-content blockquote { border-left: 3px solid var(--silver); padding: 1rem 1rem 1rem 1.5rem; margin: 2rem 0; background: rgba(30,58,95,0.25); border-radius: 0 var(--radius) var(--radius) 0; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.9rem; }
.post-content th, .post-content td { padding: 0.75rem 1rem; border: 1px solid var(--border); text-align: left; }
.post-content th { background: var(--bg-3); color: var(--gold); font-family: var(--font-mono); font-size: 0.8rem; }
.post-footer-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 3rem; max-width: 740px; }

/* FOOTER */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--gold); display: block; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-3); line-height: 1.6; }
.footer-regions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.footer-regions span { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-3); background: var(--bg-3); padding: 0.2rem 0.5rem; border-radius: 4px; }
.footer-nav h4 { font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a { font-size: 0.85rem; color: var(--text-3); }
.footer-nav a:hover { color: var(--gold); opacity: 1; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-3); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

@media (max-width: 1024px) { .hero .container { grid-template-columns: 1fr; gap: 3rem; } .frameworks-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); } .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .nav-links { display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 1rem; } .nav-links.open { display: flex; } .nav-toggle { display: flex; } .frameworks-grid, .articles-grid { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .container { padding: 0 1.25rem; } }
