/* ============================================
   Web3Legals - Global Stylesheet
   Theme: Gold / Black / White
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #A07830;
  --gold-muted: rgba(201,168,76,0.1);
  --black: #0A0A0A;
  --black-soft: #111111;
  --black-card: #161616;
  --black-border: #2A2A2A;
  --white: #FFFFFF;
  --white-soft: #F5F5F0;
  --white-muted: #AAAAAA;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.25s ease;
  --max-w: 1200px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --gold-glow: 0 0 30px rgba(201,168,76,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--white); }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { color: var(--white-muted); font-size: 1rem; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

.gold { color: var(--gold); }
.gold-gradient {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-label {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.75rem;
}

/* ─── LAYOUT ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--black-border);
  height: 70px; display: flex; align-items: center; padding: 0 1.5rem;
}
.navbar .inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max-w); margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--white); display: flex; align-items: center; gap: 0.6rem;
}
.nav-logo .logo-box {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--black); font-weight: 900; letter-spacing: -0.05em;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links > li > a {
  font-size: 0.875rem; font-weight: 500; color: var(--white-muted);
  padding: 0.5rem 0.9rem; border-radius: var(--radius); transition: all var(--transition);
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--white); background: var(--gold-muted); }
.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--black-card); border: 1px solid var(--black-border);
  border-radius: var(--radius-lg); min-width: 200px;
  box-shadow: var(--shadow); overflow: hidden;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 0.7rem 1rem; font-size: 0.85rem;
  color: var(--white-muted); border-bottom: 1px solid var(--black-border);
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--gold-muted); color: var(--gold); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
  color: var(--black) !important; font-weight: 600 !important;
  padding: 0.5rem 1.2rem !important;
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }

/* ─── MOBILE MENU ─── */
.mobile-nav {
  display: none; position: fixed;
  top: 70px; left: 0; right: 0; bottom: 0;
  background: var(--black); z-index: 999;
  padding: 1.5rem; overflow-y: auto;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1rem; color: var(--white-muted);
  padding: 0.85rem 0; border-bottom: 1px solid var(--black-border); display: block;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-sub { padding-left: 1rem; font-size: 0.9rem !important; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 600; border-radius: var(--radius);
  border: none; cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: var(--black); }
.btn-gold:hover { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--black); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,168,76,0.3); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-outline:hover { background: var(--gold-muted); color: var(--gold-light); }
.btn-ghost { background: transparent; color: var(--white-muted); border: 1px solid var(--black-border); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ─── CARDS ─── */
.card {
  background: var(--black-card); border: 1px solid var(--black-border);
  border-radius: var(--radius-lg); padding: 2rem; transition: all var(--transition);
}
.card:hover { border-color: var(--gold); box-shadow: var(--gold-glow); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px; background: var(--gold-muted);
  border: 1px solid var(--gold-dark); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1.25rem;
}

/* ─── TAGS ─── */
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: 2px; border: 1px solid;
}
.tag-gold { background: var(--gold-muted); border-color: var(--gold-dark); color: var(--gold); }
.tag-white { background: rgba(255,255,255,0.04); border-color: var(--black-border); color: var(--white-muted); }

/* ─── DIVIDER ─── */
.divider { width: 48px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); margin: 1rem 0 1.5rem; }
.divider-center { margin: 1rem auto 1.5rem; }

/* ─── SECTION HEADER ─── */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }
.section-header h2 { margin-bottom: 1rem; }

/* ─── GRIDS ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ─── HERO ─── */
.hero { padding: 140px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--black-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--black-border) 1px, transparent 1px);
  background-size: 50px 50px; opacity: 0.18;
}
.hero-glow {
  position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.08), transparent 70%);
  pointer-events: none;
}

/* ─── STATS ─── */
.stat { text-align: center; }
.stat-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--gold); display: block; }
.stat-label { font-size: 0.75rem; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-muted); }

/* ─── ARTICLE CARD ─── */
.article-card { background: var(--black-card); border: 1px solid var(--black-border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); }
.article-card:hover { border-color: var(--gold); box-shadow: var(--gold-glow); transform: translateY(-2px); }
.article-card-img { height: 180px; background: linear-gradient(135deg, var(--black-soft), var(--black-card)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; border-bottom: 1px solid var(--black-border); }
.article-card-body { padding: 1.5rem; }
.article-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.article-meta span { font-size: 0.75rem; color: var(--white-muted); }
.article-card h3 { font-size: 1.05rem; margin-bottom: 0.75rem; line-height: 1.4; }
.article-card h3 a { color: var(--white); }
.article-card h3 a:hover { color: var(--gold); }
.article-card p { font-size: 0.875rem; margin-bottom: 1rem; }
.article-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--black-border); }

/* ─── COUNTRY TABLE ─── */
.table-wrap { overflow-x: auto; }
.country-table { width: 100%; border-collapse: collapse; }
.country-table th { background: var(--black-card); padding: 0.9rem 1rem; text-align: left; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); border-bottom: 2px solid var(--gold-dark); white-space: nowrap; }
.country-table td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--black-border); font-size: 0.875rem; color: var(--white-muted); }
.country-table tr:hover td { background: var(--gold-muted); color: var(--white); }
.rating-bg { height: 4px; width: 70px; border-radius: 2px; background: var(--black-border); overflow: hidden; display: inline-block; vertical-align: middle; }
.rating-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); }

/* ─── FORM ─── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.75rem; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-muted); margin-bottom: 0.5rem; }
.form-input, .form-textarea, .form-select {
  width: 100%; background: var(--black-card); border: 1px solid var(--black-border);
  border-radius: var(--radius); padding: 0.75rem 1rem;
  color: var(--white); font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color var(--transition); appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
.form-textarea { resize: vertical; min-height: 120px; }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--black-card); border: 1px solid var(--gold);
  border-radius: var(--radius-lg); padding: 1rem 1.5rem;
  color: var(--white); font-size: 0.9rem; box-shadow: var(--shadow);
  transform: translateY(100px); opacity: 0; transition: all 0.3s ease; max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-color: #e74c3c; }

/* ─── FOOTER ─── */
.footer { background: var(--black-soft); border-top: 1px solid var(--black-border); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.875rem; margin: 1rem 0 1.5rem; max-width: 280px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a { font-size: 0.875rem; color: var(--white-muted); }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--black-border); padding-top: 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.8rem; color: var(--white-muted); }
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 36px; height: 36px; background: var(--black-card);
  border: 1px solid var(--black-border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--white-muted); font-size: 0.85rem; transition: all var(--transition);
  text-decoration: none;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-muted); }

/* ─── BREADCRUMB ─── */
.breadcrumb { padding: 1rem 0; display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--white-muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--white-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--black-border); }

/* ─── ANIMATIONS ─── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── UTILITIES ─── */
.text-center { text-align: center; }
.mt-1{margin-top:0.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-1{margin-bottom:0.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.flex{display:flex}.flex-center{display:flex;align-items:center;justify-content:center}
.gap-1{gap:0.5rem}.gap-2{gap:1rem}.gap-3{gap:1.5rem}

/* ─── RESPONSIVE ─── */
@media(max-width:1024px){.grid-4{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:768px){
  .nav-links{display:none}.hamburger{display:flex}
  .grid-2,.grid-3{grid-template-columns:1fr}.grid-4{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr}
  section{padding:3.5rem 0}.hero{padding:110px 0 60px}
  .footer-bottom{flex-direction:column;text-align:center}
}
@media(max-width:480px){.grid-4{grid-template-columns:1fr}}
