/* ========================================
   NAVBAR IP-LOOKUP SEARCH
   ======================================== */

.navbar-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  font-family: var(--font-sans);   /* Inter, asked 2026-10-12; the panel under the open bar stays mono */
  font-size: 0.75rem;
  background: color-mix(in srgb, var(--text-primary) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-primary) 10%, transparent);
  border-radius: 6px;
  transition: border-color var(--duration-fast), background var(--duration-fast);
}

.navbar-search:focus-within {
  border-color: color-mix(in srgb, var(--text-primary) 25%, transparent);
  background: color-mix(in srgb, var(--text-primary) 2%, transparent);
}

.navbar-search-input {
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  width: 160px;
  font-family: var(--font-sans);   /* Inter, asked 2026-10-12; the panel under the open bar stays mono */
  font-size: 0.75rem;
  color: var(--text-primary);
  caret-color: var(--accent);
}

.navbar-search-input::placeholder {
  color: color-mix(in srgb, var(--text-primary) 28%, transparent);
}

.navbar-search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-family: var(--font-sans);   /* Inter, asked 2026-10-12; the panel under the open bar stays mono */
  font-size: 0.75rem;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--text-primary) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-primary) 10%, transparent);
  border-radius: 3px;
  opacity: 0.7;
  transition: opacity var(--duration-fast);
}

.navbar-search:focus-within .navbar-search-kbd {
  opacity: 1;
  color: var(--text-primary);
}

@media (max-width: 1023px) {
  .navbar-search { display: none; }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  border-color: var(--accent);
  transform: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-1px);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-lg {
  font-size: var(--text-base);
  padding: 1rem 2rem;
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .btn-icon {
  transform: translateX(2px);
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 0 max(var(--container-padding), calc((100% - var(--container-wide)) / 2));
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--duration-normal) var(--ease-out),
              backdrop-filter var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
}

/* Inner pages: the bar is paper, since content scrolls beneath it. No line under it at rest;
   the line arrives with .scrolled, as on the landing page, whose bar starts transparent over the map. */
body:not(:has(.hero)) .navbar {
  background: color-mix(in srgb, var(--bg-primary) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  background: color-mix(in srgb, var(--bg-primary) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: color-mix(in srgb, var(--text-primary) 10%, transparent);
}

.navbar-logo {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.navbar-logo span {
  color: var(--text-primary);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
  position: relative;
}

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

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width var(--duration-normal) var(--ease-out);
}

.navbar-links a:hover::after {
  width: 100%;
}

/* Navbar dropdowns */
.navbar-dropdown {
  position: relative;
}

.navbar-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-sans);
  transition: color var(--duration-fast);
}

.navbar-dropdown-trigger:hover {
  color: var(--text-primary);
}

.navbar-dropdown-trigger svg {
  transition: transform var(--duration-fast) var(--ease-out);
  opacity: 0.5;
}

.navbar-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: -8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-primary);
  z-index: 200;
  box-shadow:
    0 2px 6px color-mix(in srgb, var(--text-primary) 6%, transparent),
    0 10px 30px color-mix(in srgb, var(--text-primary) 10%, transparent);
  overflow: hidden;
  /* opens with a short rise, not a pop */
  animation: nav-panel-in 0.18s var(--ease-out);
}
@keyframes nav-panel-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .navbar-dropdown-panel { animation: none; } }

/* Open state is a class set by script (click, or hover with intent); no :hover CSS,
   so a pointer sweeping across the bar does not flap panels open and shut */
.navbar-dropdown.is-open .navbar-dropdown-panel { display: grid; }
.navbar-dropdown.is-open .navbar-dropdown-trigger { color: var(--text-primary); }
.navbar-dropdown.is-open .navbar-dropdown-trigger svg { transform: rotate(180deg); }

/* A bridge so the pointer can travel from the trigger down into the panel */
.navbar-dropdown-panel::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-panel--platform { grid-template-columns: minmax(0, 1fr); width: 640px; }   /* the column never grows past the panel: a long live line shortens, and its link stays in view; two columns of items since 2026-10-09 */
/* The live strip spans both columns along the foot of the Platform panel */
.nav-live {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--text-primary) 2.5%, transparent);
}
.nav-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 18%, transparent); flex-shrink: 0; }
#nav-live-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-live a { margin-left: auto; color: var(--text-primary); text-decoration: none; white-space: nowrap; }
.nav-live a::after { display: none !important; }
.nav-live a:hover { color: var(--accent); }
.nav-panel--narrow { grid-template-columns: 1fr; width: 540px; }

/* the items in two columns, descriptions kept; the heading spans both (decided 2026-10-09, over one column, a compact list, themed groups and tiles) */
.nav-panel--platform .nav-col, .nav-panel--narrow .nav-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4px; }
.nav-col .nav-heading { grid-column: 1 / -1; }

.nav-col { padding: 14px 8px; }
.nav-col + .nav-col { border-left: 1px solid var(--border); }

.nav-heading {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 12px 4px;
}
.nav-item + .nav-heading { margin-top: 8px; }

.nav-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  margin: 0 4px;
  border-radius: 5px;
  text-decoration: none;
  transition: background var(--duration-fast);
}
.nav-item:hover,
.nav-item:focus-visible { background: color-mix(in srgb, var(--text-primary) 4%, transparent); outline: none; }
.nav-item::after { display: none !important; }
.nav-item > span { display: flex; flex-direction: column; min-width: 0; }
.nav-item-icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--text-secondary); }
.nav-item-title { font-family: var(--font-sans); font-size: 0.82rem; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; }
.nav-item-desc { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); margin-top: 1px; }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Navbar actions speak the hero CTAs' language: tracked mono caps. Log in is a
   plain link; Get API Key is the one solid block, in ink, turning accent on hover. */
.navbar-actions .btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  padding: 0.55rem 1rem;
}
/* Log in: ink, with an arrow, beside the block; accent on hover */
.navbar-actions .btn-secondary {
  border: none;
  color: var(--text-primary);
  padding: 0.55rem 0.6rem;
}
.navbar-actions .btn-secondary::after {
  content: ' →';
}
.navbar-actions .btn-secondary:hover {
  background: transparent;
  color: var(--accent);
  transform: none;
}
.navbar-actions .btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid var(--text-primary);
}
.navbar-actions .btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.theme-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;                      /* no outline around the toggle (his ask, 2026-10-16) */
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

/* the light-or-dark toggle: the moon shows on the light themes, the sun on the dark ones */
.theme-toggle .theme-toggle-sun { display: none; }
[data-theme="dark"] .theme-toggle .theme-toggle-sun { display: block; }
[data-theme="dark"] .theme-toggle .theme-toggle-moon { display: none; }

.theme-trigger:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* Plain toggle triggers (no dropdown) show their state */
.theme-trigger[aria-pressed="true"] {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  transition: all var(--duration-normal) var(--ease-out);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-primary);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav { gap: var(--space-xl); padding: calc(var(--navbar-height) + var(--space-lg)) var(--space-lg) var(--space-xl); overflow-y: auto; justify-content: flex-start; align-items: stretch; }
.mobile-nav-group { display: flex; flex-direction: column; gap: 0.35rem; }
.mobile-nav-heading { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.35rem; }
.mobile-nav a {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.3rem 0;
}
.mobile-nav .btn { margin-top: auto; align-self: stretch; text-align: center; font-size: var(--text-sm); }

@media (max-width: 767px) {
  .navbar-links { display: none; }
  .navbar-actions .btn { display: none; }
  .navbar-hamburger { display: flex; }
  .mobile-nav { display: flex; }
}

/* ========================================
   STATS STRIP
   ======================================== */

.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  position: relative;
}

.stats-strip-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 1px;
  background: var(--border);
  transition: all 0.4s ease;
}

.stats-strip.in-view .stats-strip-item:not(:last-child)::after {
  animation: stat-pulse 0.8s ease-out;
}

.stats-strip.in-view .stats-strip-item:nth-child(2)::after {
  animation-delay: 0.15s;
}

.stats-strip.in-view .stats-strip-item:nth-child(3)::after {
  animation-delay: 0.3s;
}

@keyframes stat-pulse {
  0% { height: 40px; background: var(--border); }
  50% { height: 60px; background: var(--text-primary); }
  100% { height: 40px; background: var(--border); }
}

.stats-strip-number {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stats-strip-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

@media (max-width: 767px) {
  .stats-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-strip-item:nth-child(2)::after {
    display: none;
  }

  .stats-strip-item:nth-child(1),
  .stats-strip-item:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .stats-strip-number {
    font-size: var(--text-2xl);
  }
}

/* ========================================
   SECTOR LOGO BAR
   ======================================== */

.sector-logos {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sector-bar {
  display: flex;
  align-items: center;
}

/* Label */
.sector-bar-label {
  flex-shrink: 0;
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
  border-right: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* Overflow / carousel area */
.sector-bar-overflow {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 90px;
  mask-image: linear-gradient(to right, transparent, black 60px, black calc(100% - 60px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 60px, black calc(100% - 60px), transparent);
}

/* All tracks stacked absolute, hidden by default */
.sector-bar-track {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  width: max-content;
  gap: var(--space-2xl);
  padding: var(--space-lg) var(--space-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Active track is visible and scrolling */
.sector-bar-track.active {
  opacity: 1;
  pointer-events: auto;
  animation: sector-scroll 35s linear infinite;
}

/* Brand-colour marks (logos/trusted-color), each cropped to its ink. One height
   for all would give a badge far more mass than a wordmark and equal areas would
   starve the wordmarks, so height falls off gently with aspect ratio
   (44px × aspect^-0.32): a square badge sits around 42px, a 4:1 wordmark at 28px,
   the longest at 22px, with the widest capped at 190px. */
.sector-bar-track img {
  width: auto;
  max-width: 190px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.92;
  transition: opacity var(--duration-fast);
}
.sector-bar-track img[alt="NASA"] { height: 41px; }   /* 1.2:1 → 50px wide */
.sector-bar-track img[alt="2U"] { height: 39px; }   /* 1.4:1 → 56px wide */
.sector-bar-track img[alt="Cisco"] { height: 36px; }   /* 1.9:1 → 68px wide */
.sector-bar-track img[alt="USAGM"] { height: 40px; }   /* 2.4:1; fine lettering, so a step above the curve */
.sector-bar-track img[alt="Experian"] { height: 31px; }   /* 3.1:1 → 95px wide */
.sector-bar-track img[alt="Secretlab"] { height: 31px; }   /* 3.1:1 → 96px wide */
.sector-bar-track img[alt="ESL"] { height: 30px; }   /* 3.3:1 → 99px wide */
.sector-bar-track img[alt="Couchsurfing"] { height: 30px; }   /* 3.4:1 → 102px wide */
.sector-bar-track img[alt="Disney"] { height: 30px; }   /* 3.5:1 → 103px wide */
.sector-bar-track img[alt="First Liberty"] { height: 34px; }   /* 3.9:1; fine lettering, so a step above the curve */
.sector-bar-track img[alt="Crey"] { height: 28px; }   /* 3.9:1 → 111px wide */
.sector-bar-track img[alt="Adobe"] { height: 28px; }   /* 4.0:1 → 112px wide */
.sector-bar-track img[alt="Discovery"] { height: 27px; }   /* 4.8:1 → 128px wide */
.sector-bar-track img[alt="Atoms"] { height: 26px; }   /* 5.5:1 → 140px wide */
.sector-bar-track img[alt="Rogers"] { height: 25px; }   /* 5.7:1 → 144px wide */
.sector-bar-track img[alt="iHeartMedia"] { height: 25px; }   /* 6.0:1 → 148px wide */
.sector-bar-track img[alt="Montana.gov"] { height: 25px; }   /* 6.2:1 → 152px wide */
.sector-bar-track img[alt="Nielsen"] { height: 24px; }   /* 6.9:1 → 163px wide */
.sector-bar-track img[alt="AngelList"] { height: 24px; }   /* 7.0:1 → 166px wide */
.sector-bar-track img[alt="Tencent"] { height: 23px; }   /* 7.8:1 → 178px wide */
.sector-bar-track img[alt="McKinsey"] { height: 21px; }
[data-theme="dark"] .sector-bar-track img{
  /* invert, not flatten: a mark with a disc and a cut-out (ESL) keeps its inner contrast */
  filter: grayscale(1) invert(1);
  opacity: 0.85;
}
[data-theme="dark"] .sector-bar-track img[alt="NASA"],
[data-theme="dark"] .sector-bar-track img[alt="2U"]{
  filter: grayscale(1) brightness(1.6);
}

.sector-bar:hover .sector-bar-track img:hover {
  opacity: 1;
}

/* Pause scroll on hover */
.sector-bar:hover .sector-bar-track.active {
  animation-play-state: paused;
}

@keyframes sector-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 767px) {
  .sector-bar-label {
    width: 120px;
    padding: var(--space-md) var(--space-sm);
    font-size: 0.65rem;
  }

  .sector-bar-overflow {
    height: 64px;
    mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
  }

  .sector-bar-track img {
    width: 90px;
    height: 28px;
  }
}

/* ========================================
   DATASET CAROUSEL
   ======================================== */

/* the fields the dataset returns, as they appear in the response */

/* the visitor's own values for this dataset, at the foot of the card: plain pairs, no boxes, no dividers */

   /* one long value shortens; it never pushes out of the card */
   /* a flag that is set */

/* the figure is the card's claim: it keeps the card's one outline, and that outline is the card's accent */

/* the whole card is the link; this line says so */

/* ---- Card background (prototype: ?cardbg=1-3); 1 is the transparent card above ---- */
       /* 3: solid, as before */

/* Wrapper so side arrows can be absolutely positioned over the track */

/* Side arrows: a hairline square in the cards' own language, ink on hover */

/* Scroll indicators (now sit alone below the carousel) */

/* ========================================
   STEPS
   ======================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3xl);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.666% + 24px);
  right: calc(16.666% + 24px);
  height: 1px;
  border-top: 2px dashed var(--border);
}

.step {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}

.step-number {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  background: var(--bg-primary);
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .steps::before {
    display: none;
  }
}

/* ========================================
   MEGA FOOTER
   ======================================== */

.mega-footer {
  position: relative;
  z-index: 2;
  color: var(--text-on-dark);
}

/* CTA Banner at top (unchanged, sits on the page bg above the panel) */
.mega-footer-cta {
  padding: var(--space-5xl) 0 var(--space-4xl);
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
}

.footer-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text-primary) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text-primary) 5%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
}

.mega-footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3xl);
}

.mega-footer-cta-content h2 {
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.mega-footer-cta-content p {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  max-width: 480px;
}

.mega-footer-cta-actions {
  display: flex;
  gap: var(--space-md);
  flex-shrink: 0;
}

.mega-footer-btn-secondary {
  border-color: color-mix(in srgb, var(--text-primary) 25%, transparent);
  color: var(--text-primary);
}

.mega-footer-btn-secondary:hover {
  background: color-mix(in srgb, var(--text-primary) 6%, transparent);
  border-color: color-mix(in srgb, var(--text-primary) 40%, transparent);
  color: var(--text-primary);
}

/* -------- Bordered panel wrap -------- */
.mega-footer-panel-wrap {
  padding: 0 clamp(1rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem);
}

.mega-footer-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--text-on-dark) 18%, transparent);
  border-radius: 0;                 /* square, like the buttons and cards */
  background: var(--bg-dark);
  background-image: radial-gradient(120% 80% at 50% 100%, color-mix(in srgb, var(--text-on-dark) 6%, transparent) 0%, transparent 60%);
  color: var(--text-on-dark);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--text-on-dark) 8%, transparent) inset,
    0 40px 80px -40px rgba(0,0,0,0.5);
}

/* Night, in the light and dark themes: ink with the accent in it, and a blue glow rising from the bottom edge.
   The other themes keep the panel colours they define. */
:root:is(:not([data-theme]), [data-theme=""], [data-theme="dark"]) .mega-footer-panel {
  --bg-dark: #0a0e22;
  --text-on-dark: #eef1ff;
  background-image:
    radial-gradient(120% 85% at 50% 100%, color-mix(in srgb, #3366ff 42%, transparent) 0%, transparent 62%),
    linear-gradient(180deg, #080b18 0%, #0b1130 100%);
}

:root:is(:not([data-theme]), [data-theme=""], [data-theme="dark"]) .mega-footer-illustration {
  color: #a9c0ff;
}

/* The coordinate grid behind everything. It thins out behind the link columns so they stay readable. */
.mega-footer-illustration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--text-on-dark);
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.34) 40%, #000 62%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.34) 40%, #000 62%);
}

.mega-footer-illustration svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mega-footer-panel-inner {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 3.5vw, 3.5rem) 0;
}

.mega-footer-panel-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}

/* -------- Brand column (left) -------- */
.mega-footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.mega-footer-brand-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
}

.mega-footer-brand-mark svg {
  color: var(--text-on-dark);
  opacity: 0.85;
}

.mega-footer-brand-blurb {
  font-size: 0.875rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--text-on-dark) 70%, transparent);
  max-width: 30ch;
  margin: 0;
}

.mega-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}

.mega-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--text-on-dark) 18%, transparent);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-on-dark) 78%, transparent);
}

/* The live status, where the compliance badges were: the indicator's colour follows status.ipdata.co */
a.mega-footer-badge { text-decoration: none; transition: border-color var(--duration-fast), color var(--duration-fast); }
a.mega-footer-badge:hover { border-color: color-mix(in srgb, var(--text-on-dark) 40%, transparent); color: var(--text-on-dark); }
.mega-footer-status-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--status, #8a8a94); box-shadow: 0 0 0 2px color-mix(in srgb, var(--status, #8a8a94) 25%, transparent); }
#footer-status[data-state="none"] { --status: #2fbf71; }
#footer-status[data-state="minor"] { --status: #e0a52b; }
#footer-status[data-state="major"], #footer-status[data-state="critical"] { --status: #e5484d; }
#footer-status[data-state="maintenance"] { --status: #5b8cff; }

.mega-footer-latency-value { font-weight: 500; color: var(--text-on-dark); }

/* -------- Link groups (right) -------- */
.mega-footer-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-left: 1px solid color-mix(in srgb, var(--text-on-dark) 12%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--text-on-dark) 12%, transparent);
}

.mega-footer-link-cell {
  padding: clamp(1rem, 2vw, 1.75rem) clamp(0.75rem, 1.6vw, 1.5rem);
  border-right: 1px solid color-mix(in srgb, var(--text-on-dark) 12%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--text-on-dark) 12%, transparent);
  min-width: 0;
}

.mega-footer-link-cell h5 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--text-on-dark) 72%, transparent);
  margin: 0 0 var(--space-md);
}

.mega-footer-link-cell a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-on-dark) 78%, transparent);
  padding: 0.35rem 0;
  transition: color var(--duration-fast);
}

/* the Product cell: twice as wide with its ten links in two columns, where the labels fit on one line: from 1900px up,
   and again below 1024px where the cells are wide (2026-10-14). Between the two the five cells are equal and Product is one column. */
.mega-footer-link-cell--wide {
  align-content: start;
}

@media (min-width: 1900px) {
  .mega-footer-links {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  }
  .mega-footer-link-cell--wide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
  }
  .mega-footer-link-cell--wide h5 {
    grid-column: 1 / -1;
  }
}

.mega-footer-link-cell a:hover {
  color: var(--text-on-dark);
}

.mega-footer-link-cell a .ext {
  font-size: 0.75em;
  opacity: 0.35;
  transition: opacity var(--duration-fast), transform var(--duration-fast);
}

.mega-footer-link-cell a:hover .ext {
  opacity: 1;
  transform: translate(1px, -1px);
}

/* -------- Giant wordmark (rises over the horizon) -------- */
.mega-footer-wordmark {
  position: relative;
  margin: clamp(3rem, 6vw, 5rem) 0 clamp(0.5rem, 1.5vw, 1rem);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  line-height: 0.82;
  pointer-events: none;
  color: var(--text-on-dark);
}

.mega-footer-wordmark-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(4.5rem, 20vw, 17rem);
  letter-spacing: -0.06em;
  color: var(--text-on-dark);
  white-space: nowrap;
}

.mega-footer-wordmark-dot {
  color: var(--text-on-dark);
  margin-left: -0.12em;
}

/* -------- Bottom bar -------- */
.mega-footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid color-mix(in srgb, var(--text-on-dark) 14%, transparent);
  padding: var(--space-lg) 0 var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--text-on-dark) 55%, transparent);
}

.mega-footer-social {
  display: flex;
  gap: 0.5rem;
}

.mega-footer-social a {
  width: 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--text-on-dark) 18%, transparent);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--text-on-dark) 65%, transparent);
  transition: all var(--duration-fast);
}

.mega-footer-social a:hover {
  color: var(--text-on-dark);
  border-color: color-mix(in srgb, var(--text-on-dark) 35%, transparent);
  background: color-mix(in srgb, var(--text-on-dark) 6%, transparent);
}

@media (max-width: 1023px) {
  .mega-footer-cta-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .mega-footer-cta-content p {
    margin: 0 auto;
  }

  .mega-footer-panel-grid {
    grid-template-columns: 1fr;
  }

  .mega-footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
  .mega-footer-link-cell:nth-child(4),
  .mega-footer-link-cell:nth-child(5) {
    grid-column: span 1;
  }
  /* the Product cell, once the cells narrow: twice as wide, its ten links in two columns under one heading
     (at desktop width the five cells are too narrow to split, so there it stays one column) */
  .mega-footer-link-cell--wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(0.75rem, 2vw, 1.5rem);
  }
  .mega-footer-link-cell--wide h5 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .mega-footer-cta {
    padding: var(--space-3xl) 0;
  }
  .mega-footer-cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .mega-footer-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .mega-footer-panel-wrap {
    padding: 0 0.75rem 0.75rem;
  }
  .mega-footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .mega-footer-bottom {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    padding: var(--space-lg) 0;
  }
  .mega-footer-wordmark-text,
  .mega-footer-wordmark-dot {
    font-size: clamp(3.5rem, 22vw, 6rem);
  }
}

/* ========================================
   SCROLL PROGRESS RAIL
   ======================================== */

/* ========================================
   LIVE API PING COUNTER
   ======================================== */

@keyframes ping-blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ========================================
   TESTIMONIAL TICKER STRIP
   ======================================== */

.ticker-section {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) 0;
  background: var(--bg-primary);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 60s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-tape {
  display: flex;
  gap: var(--space-2xl);
  padding-right: var(--space-2xl);
  flex-shrink: 0;
}

.ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-quote {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-style: italic;
}

.ticker-author {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   MAGNETIC SNAP BUTTONS
   ======================================== */

.hero-ctas .btn,
.mega-footer-cta-actions .btn {
  transition: all var(--duration-normal) var(--ease-out), transform 0.2s ease-out;
}

/* ========================================
   SECTION TRANSITION MARKERS
   A hairline between two sections with small labels pinned along it. Here, rather than in the
   homepage's stylesheet, because the dataset pages and the pricing page carry them too.
   ======================================== */

.section-marker {
  position: relative;
  height: 0;
  z-index: 2;   /* above the sections it sits between, which stack at 1 on the product pages, so the line and the labels always show */
}

.section-marker::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--border);
  opacity: 0.5;
}

.section-marker-label {
  position: absolute;
  top: -0.5em;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  opacity: 1;
  background: var(--bg-primary);
  padding: 0 0.4em;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* ============================================
   LOOKUP BAR SEARCH
   Cmd+K, a click or a tab into the navbar's lookup bar lifts it out and opens a panel under it that
   finds an address to try: by country, by mobile carrier or by VPN (js/main.js, js/palette.js).
   ============================================ */

/* Holds the field's place in the navbar while it is away */
.cmdk-ghost {
  flex: none;
}

/* The bar, lifted out of the navbar and grown where it stands */
.navbar-search.cmdk-lifted {
  position: fixed;
  z-index: 1200;
  display: flex;                    /* the navbar hides it under 1024px; opened, it shows just below the navbar */
  box-sizing: border-box;
  margin: 0;
  background: var(--bg-primary);
  border-color: color-mix(in srgb, var(--accent) 85%, var(--text-primary));
  box-shadow: 0 0 0 0.5px color-mix(in srgb, var(--accent) 85%, var(--text-primary)), 0 16px 44px rgba(0, 0, 0, 0.14);
  transition:
    left 0.34s cubic-bezier(0.2, 0.9, 0.2, 1.05),
    top 0.34s cubic-bezier(0.2, 0.9, 0.2, 1.05),
    width 0.34s cubic-bezier(0.2, 0.9, 0.2, 1.05),
    height 0.34s cubic-bezier(0.2, 0.9, 0.2, 1.05),
    padding 0.34s ease,
    opacity 0.2s ease;
}

.navbar-search.cmdk-lifted .navbar-search-input {
  flex: 1;
  width: auto;
  min-width: 0;
  transition: font-size 0.3s ease;
}

.navbar-search.cmdk-lifted .navbar-search-kbd {
  opacity: 1;
}

.navbar-search.cmdk-lifted.is-open {
  padding: 0 0.8rem;
  gap: 0.5rem;
}

.navbar-search.cmdk-lifted.is-open .navbar-search-input {
  font-size: 0.85rem;
}

/* What hangs under the open bar */
.cmdk-extra {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease 0.14s, transform 0.2s ease 0.14s;
}

.navbar-search.is-open .cmdk-extra {
  opacity: 1;
  transform: none;
}

/* closing: the panel goes at once, at the width it had; the bar shrinks back only after it has gone */
.navbar-search.is-open .cmdk-extra.is-leaving {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
}

.cmdk-extra kbd {
  display: inline-block;
  min-width: 18px;
  margin-right: 5px;
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-align: center;
  color: var(--text-secondary);
  border: 1px solid color-mix(in srgb, var(--text-primary) 16%, transparent);
  border-radius: 3px;
}

/* The panel: tabs for the ways to search, then the results */
.cmdk-find {
  top: calc(100% + 6px);
  background: var(--bg-primary);
  border: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.14);
  text-align: left;
}

.cf-list {
  max-height: min(56vh, 430px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 6px;
}

/* the country a set of results belongs to */
.cf-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 8px 2px;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.cf-head-meta {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.cf-title {
  display: flex;
  justify-content: space-between;
  padding: 12px 8px 4px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cf-title:first-child {
  padding-top: 6px;
}

.cf-title span {
  letter-spacing: 0.02em;
  text-transform: none;
}

.cf-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  padding: 7px 8px;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--text-primary);
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.cf-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

/* a network's or provider's logo, found by its domain; the box keeps its place when there is none */
.cf-logo {
  flex: none;
  align-self: center;
  width: 16px;
  height: 16px;
}

.cf-logo img {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: contain;
  background: color-mix(in srgb, var(--text-primary) 6%, transparent);
}

.cf-flag {
  flex: none;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 0.85em;
}

/* the name gives way only when it alone is too long; what follows it is cut first */
.cf-name {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cf-sub {
  flex: 0 9999 auto;
  min-width: 0;
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cf-meta,
.cf-ip,
.cf-go {
  flex: none;
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* the address a row looks up: one column, so they line up down the list */
.cf-ip {
  min-width: 15ch;
  text-align: right;
  color: var(--text-secondary);
}

.cf-row:hover,
.cf-row.is-active {
  background: color-mix(in srgb, var(--text-primary) 5%, transparent);
}

.cf-row.is-active .cf-name,
.cf-row.is-active .cf-ip {
  color: color-mix(in srgb, var(--accent) 85%, var(--text-primary));
}

.cf-note {
  padding: 14px 8px;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.cf-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 8px 14px 9px;
  font-size: 0.68rem;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--text-primary) 3%, transparent);
}

/* the ways to search, as tabs */
.cf-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 8px 0;
}

.cf-tab {
  padding: 5px 8px 6px;
  font: inherit;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: none;
  border: 0;
  border-bottom: 1.5px solid transparent;
  border-radius: 0;
  cursor: pointer;
}

.cf-tab:hover {
  color: var(--text-primary);
}

.cf-tab.is-on {
  color: var(--text-primary);
  border-bottom-color: color-mix(in srgb, var(--accent) 85%, var(--text-primary));
}

@media (max-width: 599px) {
  .cf-meta {
    display: none;
  }

  .cf-ip {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar-search.cmdk-lifted,
  .navbar-search.cmdk-lifted .navbar-search-input,
  .cmdk-extra {
    transition: none;
  }
}

/* a logo that could not be loaded stands as its name (index.html's error handler) */
.logo-name { display: inline-block; font: 600 1.1rem/1.2 var(--font-sans); letter-spacing: -0.01em; color: var(--text-secondary); white-space: nowrap; }
