@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #07090E;
  --bg-secondary: #0D111A;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(16, 185, 129, 0.4);
  --accent: #10B981;
  --accent-glow: rgba(16, 185, 129, 0.25);
  --gold: #F59E0B;
  --gold-glow: rgba(245, 158, 11, 0.2);
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-primary);
}

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

a:hover {
  color: #34D399;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.85);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10B981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-glow);
}

.logo-text {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: #FFF;
}

.logo-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 600;
}

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover {
  color: #FFF;
  text-decoration: none;
}

/* Content Layout */
main {
  flex: 1;
  padding: 60px 0 80px;
}

.doc-header {
  margin-bottom: 40px;
}

.doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 12px;
}

.doc-title {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.75px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.doc-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 24px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--bg-card-hover);
}

.card-intro {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(16, 185, 129, 0.2);
}

.card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card p {
  margin-bottom: 12px;
  font-size: 0.935rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul, .card ol {
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 0.935rem;
}

.card li {
  margin-bottom: 8px;
}

.card li:last-child {
  margin-bottom: 0;
}

/* Callout alerts */
.callout {
  padding: 18px 20px;
  border-radius: 14px;
  font-size: 0.875rem;
  margin: 18px 0;
  line-height: 1.5;
}

.callout-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6EE7B7;
}

.callout-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #FCD34D;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 16px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

th {
  padding: 10px 14px;
  font-weight: 600;
  color: #FFF;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 40px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-links a:hover {
  color: #FFF;
}

@media (max-width: 640px) {
  .doc-title {
    font-size: 1.75rem;
  }
  .card {
    padding: 22px 20px;
  }
  .nav-inner {
    height: 64px;
  }
}
