/* Site-wide overrides loaded after core.css / alt.css on every page. */

/* ---------- Main navbar: near-black glass instead of the old muted blue (#373e4d) ---------- */

body > nav.navbar {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(8, 8, 12, 0.92) !important;
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

body > nav.navbar .navbar-item,
body > nav.navbar .navbar-link {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
}

body > nav.navbar .navbar-item:hover,
body > nav.navbar .navbar-item:focus {
  background: transparent;
  color: #ffffff;
}

body > nav.navbar .navbar-brand .navbar-item {
  color: #ffffff;
}

body > nav.navbar .navbar-burger span {
  background-color: #ffffff;
}

@media (max-width: 1023px) {
  body > nav.navbar .navbar-brand {
    background-color: transparent !important;
  }

  body > nav.navbar .navbar-menu,
  body > nav.navbar .navbar-menu.is-active {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background-color: #0b0b10 !important;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  }
}

/* ---------- In-page links (href="#section") scroll smoothly instead of jumping ---------- */

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- "Our Commitment to Privacy": grid texture (same as the hero bands) ---------- */

.subscription-commitment-section,
.ab-privacy {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.subscription-commitment-section::before,
.ab-privacy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 50% 70% at 50% 40%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 50% 70% at 50% 40%, #000 10%, transparent 75%);
  pointer-events: none;
}

/* The smaller card on the bot pages gets a tighter grid fading from the left */
.ab-privacy::before {
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 45% 120% at 15% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 45% 120% at 15% 50%, #000 10%, transparent 75%);
}

/* ---------- Footer (every page) ---------- */

footer.site-footer {
  position: relative;
  padding: 64px 0 28px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #08080c;
  color: #a3a3b2;
  font-family: "Inter", "Azo Sans", "Roboto", system-ui, sans-serif;
  isolation: isolate;
}

/* Purple hairline and a faint glow along the top edge */
.sf-glow {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 220px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(139, 92, 246, 0.12), transparent 70%);
  pointer-events: none;
}

.sf-glow::before {
  content: "";
  position: absolute;
  inset: 0 15% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, #6d28d9 20%, #b49bff 50%, #6d28d9 80%, transparent);
  opacity: 0.6;
}

footer.site-footer .container {
  padding: 0 24px;
}

.sf-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sf-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sf-logo:hover {
  color: #ffffff;
}

.sf-logo img {
  width: 40px;
  height: auto;
}

.sf-brand p {
  max-width: 320px;
  margin: 16px 0 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.sf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 0 36px -10px rgba(139, 92, 246, 0.6);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.sf-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sf-col h5 {
  margin: 6px 0 16px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sf-col ul,
.sf-bottom ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-col li + li {
  margin-top: 10px;
}

footer.site-footer a:not(.sf-btn):not(.sf-logo) {
  color: #a3a3b2;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

footer.site-footer a:not(.sf-btn):not(.sf-logo):hover {
  color: #ffffff;
}

.sf-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  font-size: 0.875rem;
}

.sf-bottom p {
  margin: 0;
}

.sf-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

footer.site-footer .sf-bottom a:not(.sf-btn) {
  font-size: 0.875rem;
}

/* Tablet: brand across the top, links in three columns */
@media (max-width: 1023px) {
  .sf-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 24px;
  }

  .sf-brand {
    grid-column: 1 / -1;
  }
}

/* Phone: two link columns, bottom bar stacked */
@media (max-width: 600px) {
  footer.site-footer {
    padding: 48px 0 24px;
  }

  footer.site-footer .container {
    padding: 0 16px;
  }

  .sf-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
    padding-bottom: 32px;
  }

  .sf-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-btn {
    transition: none;
  }
}
