:root {
  --bg: #0A0118;
  --card: #130428;
  --text: #F5F0FF;
  --muted: #B8A8D4;
  --primary: #A855F7;
  --primary-dark: #7C3AED;
  --gold: #FDB71A;
  --border: rgba(168,85,247,0.15);
  --shadow: 0 10px 30px rgba(0,0,0,0.6);
  --radius: 16px;
}

/* ---------------- Base ---------------- */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 3.5vw, 18px);
  line-height: 1.6;
  transition: background 0.5s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(800px 600px at 10% 10%, rgba(168,85,247,0.25), transparent 60%),
    radial-gradient(900px 500px at 90% 80%, rgba(124,58,237,0.20), transparent 60%),
    linear-gradient(135deg, #0A0118 0%, #1E0B3D 50%, #0A0118 100%);
  animation: bgPulse 10s ease-in-out infinite alternate;
}
@keyframes bgPulse {
  0% { opacity: 1; }
  100% { opacity: 0.85; }
}

/* ---------------- Typography ---------------- */
h1 {
  font-size: clamp(28px, 7vw, 50px);
  background: linear-gradient(135deg, var(--primary), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: .6em;
}
h2 { font-size: clamp(22px, 6vw, 38px); margin-bottom: .6em; }
h3 { font-size: clamp(18px, 5vw, 28px); margin-bottom: .4em; }
.muted { color: var(--muted); }
.tagline { font-size: 1.1em; }

/* ---------------- Layout ---------------- */
.section { padding: clamp(40px, 10vw, 100px) 16px; }
.container { max-width: 1080px; margin: 0 auto; }
.grid-2 {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media(min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* ---------------- Card ---------------- */
.card {
  background: linear-gradient(145deg, rgba(168,85,247,0.05), rgba(0,0,0,0.25)), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 5vw, 32px);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(253,183,26,0.3);
}

/* ---------------- Table ---------------- */
.table { display: grid; gap: 10px; margin-top: 16px; }
.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(168,85,247,0.05);
  border: 1px solid var(--border);
}
.table-head {
  background: rgba(168,85,247,0.12);
  font-weight: 700;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  background: rgba(168,85,247,0.1);
  font-weight: 600;
  transition: all 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(253,183,26,0.4);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: 2px solid var(--gold);
  color: #fff;
}

/* ---------------- Navigation ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: linear-gradient(135deg, rgba(10,1,24,0.9), rgba(30,11,61,0.9));
  border-bottom: 1px solid var(--border);
}
.nav-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; max-width: 1080px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand img { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--gold); }

/* ---------------- Drawer ---------------- */
.hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 3px; background: linear-gradient(90deg,var(--primary),var(--gold)); border-radius: 2px; transition: all .3s; }
.hamburger.active span:nth-child(1){transform:rotate(45deg) translate(6px,6px)}
.hamburger.active span:nth-child(2){opacity:0}
.hamburger.active span:nth-child(3){transform:rotate(-45deg) translate(6px,-6px)}

.nav-drawer {
  position: fixed; top: 0; right: -280px;
  width: 280px; height: 100vh;
  background: linear-gradient(180deg, #1E0B3D, #0A0118);
  border-left: 2px solid var(--gold);
  transition: right .3s ease;
  padding: 80px 20px 20px;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0,0,0,0.6);
}
.nav-drawer.open { right: 0; }
.nav-drawer a {
  display: block;
  padding: 14px 18px;
  margin: 8px 0;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.25s;
}
.nav-drawer a:hover, .nav-drawer a.active {
  background: linear-gradient(135deg, rgba(168,85,247,0.25), rgba(124,58,237,0.2));
  border-color: var(--gold);
}

/* ---------------- Overlay ---------------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.overlay.active { opacity: 1; pointer-events: auto; }

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(30,11,61,0.6), rgba(10,1,24,0.9));
  text-align: center;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 16px;
  flex-wrap: wrap;
  gap: 16px;
}
.brand-min img { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--gold); }