header {
  position: sticky; top: 0;
  backdrop-filter: saturate(140%) blur(10px);
  z-index: 50;
}

header .inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 34px; height: 34px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }

.badge {
  display: inline-block; padding: 6px 10px; border-radius: 999px;
  background: rgba(92,124,255,.13); color: #cdd6ff; border: 1px solid rgba(92,124,255,.25);
  font-weight: 600; font-size: 12px; letter-spacing: .02em;
}

/* Cookie modal */
.cookie-modal{
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(10px) saturate(130%);
}
.cookie-modal[hidden] {
  display: none !important;
}
.cookie-card{
  width: min(520px, 100%);
  border-radius: 18px;
  padding: 16px 16px 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 20px 70px rgba(0,0,0,0.35);
  color: var(--fg);
}
.cookie-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.cookie-head h3{
  margin: 0;
  font-size: 1.05rem;
}
.cookie-x{
  border: 0;
  background: rgba(148, 163, 184, 0.12);
  color: var(--fg);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
}
.cookie-x:hover{
  background: rgba(148, 163, 184, 0.18);
}
.cookie-card p{
  margin: 12px 0 14px;
  color: var(--muted);
  line-height: 1.5;
}
.cookie-actions{
  display:flex;
  justify-content: flex-end;
}
.cookie-close{
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(2, 8, 26, 0.40);
  color: var(--fg);
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.cookie-close:hover{
  border-color: rgba(147, 197, 253, 0.55);
}

.nav-primary { display:flex; align-items:center; gap: 12px; }
.nav-group-left {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.22);
}
.nav-left, .nav-right{
  display:flex;
  align-items:center;
  gap: 10px;
}
.nav-divider{
  width: 1px;
  height: 22px;
  background: rgba(148, 163, 184, 0.28);
  margin: 0 6px;
}
.nav-item{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
  opacity: 0.92;
  transition: background 0.16s ease, opacity 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}
.nav-item svg{
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}
.nav-item:hover{
  opacity: 1;
  background: rgba(148, 163, 184, 0.12);
  transform: translateY(-1px);
}
/* make ONE item the primary CTA */
.nav-item.is-primary {
  background: linear-gradient(90deg, rgba(37,99,235,0.18), rgba(14,165,233,0.14));
  border: 1px solid rgba(37, 99, 235, 0.28);
}
.nav-item.is-primary:hover {
  background: linear-gradient(90deg, rgba(37,99,235,0.24), rgba(14,165,233,0.18));
}
.nav-group {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-group-right {
  margin-left: 24px;
}
.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--fg);
  opacity: 0.8;
  padding: 4px 0;
}
.nav-link:hover {
  opacity: 1;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 999px;
  transition: width 0.18s ease-out;
}
.nav-link:hover::after {
  width: 100%;
}
/* CTA group on the right looks more “buttony” */
.nav-cta{
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.22);
}
.nav-cta:hover{
  border-color: rgba(147, 197, 253, 0.55);
  background: rgba(59, 130, 246, 0.12);
}
/* Make Console the primary action */
.nav-cta-primary{
  border-color: rgba(34, 211, 238, 0.42);
  background: linear-gradient(90deg, rgba(37,99,235,0.22), rgba(14,165,233,0.16));
}
.nav-cta-primary:hover{
  border-color: rgba(34, 211, 238, 0.60);
  background: linear-gradient(90deg, rgba(37,99,235,0.30), rgba(14,165,233,0.22));
}
.nav-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.65);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.85;
}

/* Mobile: stack logo + nav a bit more nicely */
@media (max-width: 768px) {
  header .inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-primary{
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-group {
    gap: 12px;
  }

  .nav-divider{ display:none; }

  .nav-right{ margin-left: 0; }

  .nav-group-right {
    margin-left: 0;
  }
}

.site-footer{
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 26px 0 18px;
}
.footer-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-sep{
  color: rgba(148, 163, 184, 0.65);
  padding: 0 6px;
  user-select: none;
}
.footer-brand{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: var(--fg);
  opacity: 0.9;
}
.footer-brand img{
  display:block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.20));
}
/* Keep the right-side items together */
.footer-right{
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-links{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;   /* <-- drop one notch here */
  line-height: 1.1;
}
.footer-links a,
.footer-links button{
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(148, 163, 184, 0.7);
}
.footer-links a:hover,
.footer-links button:hover{
  background: none;
  color: var(--link-hover);
}
.footer-social{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--fg);
  opacity: 0.85;
  text-decoration:none;
}
.footer-social:hover{
  opacity: 1;
  border-color: rgba(147, 197, 253, 0.55);
  background: rgba(59, 130, 246, 0.10);
}
.footer-social svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.footer-bottom{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 0.78rem;
}
footer {
  padding: 36px 0;
  color: var(--muted);
}

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