:root {
  /* Light Theme Surfaces */
  --bg-base:       #ffffff;
  --bg-surface:    #f8fafc;
  --bg-elevated:   #f1f5f9;
  --bg-code:       #0b1320;
  --border-subtle: #e2e8f0;
  --border-bright: #cbd5e1;

  /* Dark Hero / Nav Surfaces */
  --dark-base:     #08101c;
  --dark-surface:  #0d192b;
  --dark-border:   #1c3252;
  --dark-text:     #e6f0fa;
  --dark-muted:    #94abc9;
  --dark-dim:      #6b84a8;

  /* Brand & Accents (Light-mode accessible) */
  --accent-cyan:        #0d7a66;
  --accent-cyan-bright: #00d4aa;
  --accent-orange:      #e05519;
  --accent-orange-bright: #ff6b2b;
  --accent-threat:      #dc2626;
  --accent-blue:        #2563eb;

  /* Text (Light Theme) */
  --text-primary:  #0f172a;
  --text-muted:    #475569;
  --text-dim:      #64748b;

  /* Layout */
  --nav-height:    68px;
  --max-width:     1160px;
  --radius:        8px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-base);
  min-height: 100vh;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--text-primary);
}

code, pre, .mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

code {
  background: var(--bg-elevated);
  color: var(--accent-cyan);
  border: 1px solid var(--border-subtle);
  padding: 0.12em 0.38em;
  border-radius: 4px;
  font-size: 0.87em;
}

pre {
  background: var(--bg-code);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--dark-text);
}

pre code {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* --- Navigation (Dark) --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(8, 16, 28, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dark-border);
}

.nav-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: baseline;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand .go, .brand .d { color: var(--accent-cyan-bright); }
.brand .bl { color: var(--accent-orange-bright); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--dark-muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-cyan-bright);
}

/* --- Buttons & Badges --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent-orange-bright);
  color: #08101c;
}

.btn-primary:hover {
  background: #ff824d;
  color: #08101c;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-cyan-bright);
  border: 1px solid var(--accent-cyan-bright);
}

.btn-secondary:hover {
  background: rgba(0, 212, 170, 0.12);
  color: var(--dark-text);
}

.badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.badge-cyan {
  background: rgba(13, 122, 102, 0.09);
  color: var(--accent-cyan);
  border: 1px solid rgba(13, 122, 102, 0.28);
}

.badge-threat {
  background: rgba(220, 38, 38, 0.08);
  color: var(--accent-threat);
  border: 1px solid rgba(220, 38, 38, 0.28);
}

.badge-orange {
  background: rgba(224, 85, 25, 0.09);
  color: var(--accent-orange);
  border: 1px solid rgba(224, 85, 25, 0.28);
}

/* Brighter badges inside dark hero & terminal */
.hero .badge-cyan,
.terminal-strip .badge-cyan {
  background: rgba(0, 212, 170, 0.12);
  color: var(--accent-cyan-bright);
  border-color: rgba(0, 212, 170, 0.35);
}

/* --- Landing Page Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-cyan);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 660px;
  margin-bottom: 2.25rem;
  font-size: 1.05rem;
}

/* --- Dark Hero Banner --- */
.hero {
  background-color: var(--dark-base);
  background-image:
    radial-gradient(circle at 75% 25%, rgba(0, 212, 170, 0.08), transparent 48%),
    radial-gradient(circle at 15% 75%, rgba(45, 156, 219, 0.06), transparent 45%);
  color: var(--dark-text);
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid var(--dark-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--dark-text);
  margin: 0.85rem 0 1.15rem;
}

.hero p {
  color: var(--dark-muted);
  font-size: 1.12rem;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero code {
  background: transparent;
  color: var(--accent-cyan-bright);
  border: none;
  padding: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-logo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-wrap::before {
  content: "";
  position: absolute;
  width: 82%;
  height: 82%;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.18), transparent 70%);
  filter: blur(28px);
  z-index: 0;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 410px;
  height: auto;
  border-radius: 16px;
  /* Blends the dark navy edges of the logo smoothly into --dark-base */
  -webkit-mask-image: radial-gradient(circle at center, #000 62%, transparent 98%);
  mask-image: radial-gradient(circle at center, #000 62%, transparent 98%);
}

/* Terminal Strip (inside Hero) */
.terminal-strip {
  margin-top: 3rem;
  background: #050b14;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: var(--dark-surface);
  border-bottom: 1px solid var(--dark-border);
  font-size: 0.8rem;
  color: var(--dark-dim);
}

.terminal-body {
  padding: 1.15rem 1.25rem;
  font-size: 0.86rem;
  overflow-x: auto;
}

.t-prompt { color: var(--accent-cyan-bright); }
.t-dim    { color: var(--dark-dim); }
.t-hit    { color: #ff6b6b; font-weight: 600; }
.t-txt    { color: var(--accent-orange-bright); }

/* --- Cards Grid --- */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Tables --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.93rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table td {
  color: var(--text-muted);
}

/* --- Comparison Panes --- */
.compare-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.code-muted {
  opacity: 0.86;
}

/* --- Documentation Page Layout --- */
.docs-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  padding-bottom: 2rem;
  border-right: 1px solid var(--border-subtle);
  padding-right: 1.25rem;
}

.docs-nav-group {
  margin-bottom: 1.5rem;
}

.docs-nav-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

.docs-sidebar ul {
  list-style: none;
}

.docs-sidebar li {
  margin-bottom: 0.35rem;
}

.docs-sidebar a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
}

.docs-sidebar a:hover {
  color: var(--accent-cyan);
  border-left-color: var(--accent-cyan);
  background: var(--bg-surface);
}

.docs-content {
  padding: 2.5rem 0 5rem;
  max-width: 780px;
}

.docs-content h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.docs-content h2 {
  font-size: 1.45rem;
  color: var(--text-primary);
  margin: 2.75rem 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.docs-content h3 {
  font-size: 1.12rem;
  color: var(--accent-cyan);
  margin: 1.75rem 0 0.5rem;
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.docs-content p,
.docs-content ul,
.docs-content ol {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.docs-content ul,
.docs-content ol {
  padding-left: 1.4rem;
}

.docs-content li {
  margin-bottom: 0.45rem;
}

.docs-content pre {
  margin: 1rem 0 1.4rem;
}

.callout {
  background: var(--bg-surface);
  border-left: 3px solid var(--accent-cyan);
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  margin: 1.25rem 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.callout strong {
  color: var(--text-primary);
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 2.25rem 0;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-grid,
  .card-grid-3,
  .card-grid-2,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .hero-logo-wrap {
    order: -1;
  }

  .hero-logo {
    max-width: 290px;
  }

  .docs-sidebar {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem 0;
  }
}
