:root {
  --bg-base: #080c14;
  --bg-card: rgba(15, 23, 42, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-emerald: #10b981;
  --accent-cyan: #38bdf8;
}

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

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.text-emerald { color: var(--accent-emerald); }
.text-cyan { color: var(--accent-cyan); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
}

.brand-badge {
  background: #1e293b;
  color: var(--accent-cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 16px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

.btn-terminal {
  background: #1e293b;
  color: #fff;
  border: 1px solid var(--border-subtle);
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-terminal:hover {
  background: #334155;
  border-color: var(--accent-cyan);
}

/* Hero & Axiom */
.hero-section {
  padding: 50px 0 40px 0;
  text-align: center;
}

.axiom-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  max-width: 850px;
}

.axiom-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.axiom-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: left;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  transition: transform 0.2s, border-color 0.2s;
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.card-span-2 {
  grid-column: span 2;
}

.card-vault {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(15, 23, 42, 0.75) 100%);
  border-color: rgba(16, 185, 129, 0.25);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.icon-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.accent-tag { color: var(--accent-emerald); }

.badge-tool, .badge-secure {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-tool {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.badge-secure {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.bento-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Calculator Inputs & Sliders */
.calc-box {
  background: #090e17;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-row label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent-emerald);
  height: 5px;
  background: #1e293b;
  border-radius: 4px;
}

.result-strip {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
  margin-top: 4px;
}

.res-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.res-val {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Vault Features */
.vault-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.v-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.v-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-emerald);
}

.btn-card-action {
  display: block;
  text-align: center;
  background: #1e293b;
  color: #fff;
  border: 1px solid var(--border-subtle);
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: auto;
  transition: all 0.2s;
}

.btn-card-action:hover {
  background: #334155;
  border-color: var(--accent-emerald);
}

/* Split Matrix */
.split-display {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

.split-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 4px 0;
}

/* Research Grid */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.research-item {
  background: #090e17;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.research-item:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.02);
}

.res-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.res-cat { color: var(--accent-cyan); font-weight: 600; }

.research-item h4 {
  color: #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.research-item p {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
  margin-top: auto;
}

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

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 20px;
}

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

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; }
  .card-span-2 { grid-column: span 1; }
  .research-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
  .footer-content { flex-direction: column; gap: 16px; text-align: center; }
}
