:root {
  --bg: #070a10;
  --bg-elevated: #0d121c;
  --bg-card: #111827;
  --border: #1e293b;
  --border-strong: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --emerald: #34d399;
  --amber: #fbbf24;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-w: 1140px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 450px at 85% -10%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(700px 400px at 10% 0%, rgba(52, 211, 153, 0.07), transparent 55%),
    var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 16, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.98rem;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  color: #030712;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.85rem;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 7px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(56, 189, 248, 0.1);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.nav-portal {
  margin-left: 6px;
  border: 1px solid var(--border-strong);
  color: var(--text) !important;
  font-family: var(--mono);
  font-size: 0.8rem !important;
}

/* Main Layout */
main {
  flex: 1;
}

.hero {
  padding: 76px 0 56px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.28);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 820px;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.3;
}

.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 0 28px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #04101d;
}

.btn-primary:hover {
  background: #7dd3fc;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
}

/* Proof / Credential Strip */
.cred-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.cred-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.cred-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cred-value {
  font-family: var(--mono);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

/* Sections & Grids */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section-header {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-header p {
  color: var(--text-muted);
  margin: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--mono);
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.24);
  width: fit-content;
}

.tag-green {
  background: rgba(52, 211, 153, 0.1);
  color: var(--emerald);
  border-color: rgba(52, 211, 153, 0.25);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.7);
}

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

code,
.mono {
  font-family: var(--mono);
  font-size: 0.86em;
  color: #bae6fd;
}

.callout {
  background: rgba(14, 165, 233, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 18px 20px;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.callout strong {
  color: var(--text);
}

.metric-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.metric-list li {
  padding-left: 20px;
  position: relative;
  color: var(--text-muted);
}

.metric-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--emerald);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #05070c;
  padding: 36px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-links a:hover {
  color: var(--text);
}
