:root{
  /* Core monochrome palette */
  --bg: #05070b;
  --bg2:#0a0d12;

  --text:#e9edf6;
  --muted:#b5bccd;
  --muted2:#8f98ad;

  --line: rgba(255,255,255,.10);
  --line2: rgba(255,255,255,.06);

  /* Keep variables but make them monochrome */
  --brand:#e9edf6;
  --brand2:#e9edf6;
  --ok:#e9edf6;
  --warn:#e9edf6;

  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 18px;
  --radius2: 24px;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* Optional light theme (also monochrome) */
[data-theme="light"]{
  --bg:#f6f7f9;
  --bg2:#ffffff;

  --text:#0b0f17;
  --muted:#374054;
  --muted2:#56607a;

  --line: rgba(11,15,23,.14);
  --line2: rgba(11,15,23,.09);

  --shadow: 0 14px 40px rgba(12,18,35,.12);

  --brand:#0b0f17;
  --brand2:#0b0f17;
  --ok:#0b0f17;
  --warn:#0b0f17;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration: underline; }

.container{
  width:min(1160px, calc(100% - 40px));
  margin:0 auto;
}

/* Subtle monochrome grid */
.grid-bg{
  position: fixed;
  inset:0;
  pointer-events:none;
  opacity:.18;
  background-image:
    linear-gradient(to right, var(--line2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line2) 1px, transparent 1px);
  background-size:56px 56px;
  mask-image: radial-gradient(closest-side at 50% 40%, rgba(0,0,0,1), rgba(0,0,0,0));
  z-index:0;
}

/* Header */
header{
  position: sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(10,10,10,.75);
  border-bottom: 1px solid var(--line);
}
[data-theme="light"] header{
  background: rgba(255,255,255,.80);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:220px;
}

.brand .name{ font-weight:750; letter-spacing:.2px; line-height:1.1; }
.brand .tag{
  font-size:12px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing:.4px;
  margin-top:3px;
}

.navlinks{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
}
.navlinks a{
  font-size:13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius:12px;
  border: 1px solid transparent;
}
.navlinks a:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-color: var(--line);
  text-decoration:none;
}

.navlinks a.active{
  color: var(--text);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}
[data-theme="light"] .navlinks a:hover{ background: rgba(11,15,23,.05); }
[data-theme="light"] .navlinks a.active{
  background: rgba(11,15,23,.06);
  border-color: rgba(11,15,23,.14);
}

.nav-cta{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:220px;
  justify-content:flex-end;
}

/* Buttons (monochrome) */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 12px;
  border-radius:14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size:13px;
  font-weight:650;
  cursor:pointer;
  user-select:none;
  transition: transform .08s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
}

/* Primary = higher contrast, still monochrome */
.btn.primary{
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  color: var(--text);
  box-shadow: 0 8px 26px rgba(0,0,0,.35);
}
.btn.primary:hover{
  background: rgba(255,255,255,.18);
  transform: translateY(-1px);
}

[data-theme="light"] .btn{
  background: rgba(11,15,23,.04);
  border-color: rgba(11,15,23,.14);
}
[data-theme="light"] .btn:hover{
  background: rgba(11,15,23,.07);
  border-color: rgba(11,15,23,.18);
}
[data-theme="light"] .btn.primary{
  background: rgba(11,15,23,.10);
  border-color: rgba(11,15,23,.22);
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}
[data-theme="light"] .btn.primary:hover{
  background: rgba(11,15,23,.14);
}

.icon{ width:16px; height:16px; display:inline-block; }
.mobile-toggle{ display:none; }

main{ position:relative; z-index:2; }

/* Cards and panels (monochrome surfaces) */
.card{
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  overflow:hidden;
}
[data-theme="light"] .card{
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(245,246,248,1));
}

.panel{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  padding: 16px;
}
[data-theme="light"] .panel{
  background: rgba(11,15,23,.03);
}

.section{
  padding: 26px 0 18px;
}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap:16px;
  margin-bottom: 12px;
}
.section-head h1, .section-head h2{
  margin:0;
  font-size: 22px;
  letter-spacing: -0.2px;
}
.section-head p{
  margin:0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
  max-width: 66ch;
}

.grid{ display:grid; gap:12px; }
.grid.cols-2{ grid-template-columns: repeat(2, 1fr); }
.grid.cols-3{ grid-template-columns: repeat(3, 1fr); }

.list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.item{
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.03);
}
[data-theme="light"] .item{
  background: rgba(11,15,23,.03);
}
.item .top{
  display:flex;
  gap:10px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}
.item .title{
  font-weight: 750;
  font-size: 13.5px;
  letter-spacing: -.1px;
}
.item .meta{
  font-family: var(--mono);
  color: var(--muted2);
  font-size: 11.5px;
  white-space: nowrap;
}
.item .desc{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.pillrow{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top: 10px;
}
.pill{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding: 6px 10px;
  border-radius: 999px;
}
[data-theme="light"] .pill{
  background: rgba(11,15,23,.03);
}

footer{
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.footer-row{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap:16px;
  flex-wrap: wrap;
}
.footer-row .small{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted2);
  margin-top: 6px;
}

@media (max-width: 760px){
  .navlinks{ display:none; }
  .mobile-toggle{ display:inline-flex; }
  .grid.cols-3{ grid-template-columns: 1fr; }
  .grid.cols-2{ grid-template-columns: 1fr; }
  .nav-cta{ min-width:auto; }
  .brand{ min-width:auto; }
}

/* =========================
   LOGO (single source of truth)
   Works for BOTH:
   - <div class="logo"></div>
   - <img class="logo-img" ...>
   ========================= */

/* 1) If a page still uses <div class="logo">, make it show the PNG */
/* Logo sizing (works even if PNG has lots of empty space) */
.brand .logo-img{
  height: 16px;
  width: auto;
  max-width: 48px;    /* allow wide logos */
  display: block;
}

footer .logo-img.small{
  height: 14px;
  width: auto;
  max-width: 44px;
  display: block;
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.footer-name{
  font-weight:750;
  color: var(--text);
}
