/*
 * peeryx-v127-premium.css — Production Premium Pass
 *
 * Position: last in cascade (after v126-navbar.css)
 * Goal: operator-grade visual design. No experimental effects.
 * Inspiration: Cloudflare / Fastly / Gcore / Akamai visual quality.
 *
 * §0  Design tokens upgrade
 * §1  Navbar — premium visual refinements
 * §2  Typography global improvements
 * §3  Hero section improvements
 * §4  Cards & components
 * §5  Badge / Metric / Tag components
 * §6  Transit IP page
 * §7  Réseau page
 * §8  Contact form
 * §9  Footer
 * §10 Utility / mobile fixes
 */

/* ══════════════════════════════════════════════════════════════
   §0  DESIGN TOKENS — unified across all components
   ══════════════════════════════════════════════════════════════ */
:root {
  /* Base palette */
  --px-bg-0:        #020810;
  --px-bg-1:        #050d1e;
  --px-bg-2:        #080f22;
  --px-bg-surface:  #0a1428;
  --px-bg-card:     rgba(8, 16, 36, 0.80);
  --px-bg-card-h:   rgba(10, 20, 44, 0.90);

  /* Accent — operator teal */
  --px-teal:        #00c8a0;
  --px-teal-h:      #00ddb0;
  --px-teal-dim:    rgba(0, 200, 160, 0.12);
  --px-teal-glow:   rgba(0, 200, 160, 0.28);

  /* Blue accent (secondary) */
  --px-blue:        #2a7fff;
  --px-blue-dim:    rgba(42, 127, 255, 0.10);

  /* Text */
  --px-text:        #edf6ff;
  --px-text-2:      #b8d0e4;
  --px-text-3:      #7a9db8;
  --px-text-4:      #4a6880;

  /* Borders */
  --px-border:      rgba(255, 255, 255, 0.065);
  --px-border-2:    rgba(0, 200, 160, 0.14);
  --px-border-card: rgba(255, 255, 255, 0.07);

  /* Shadows */
  --px-shadow-sm:   0 1px 4px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.04);
  --px-shadow-md:   0 4px 24px rgba(0,0,0,0.40), 0 0 0 1px rgba(255,255,255,0.05);
  --px-shadow-lg:   0 12px 48px rgba(0,0,0,0.54), 0 0 0 1px rgba(255,255,255,0.055);
  --px-shadow-teal: 0 4px 24px rgba(0,200,160,0.22);

  /* Spacing scale */
  --px-r-xs:  4px;
  --px-r-sm:  6px;
  --px-r-md:  10px;
  --px-r-lg:  14px;
  --px-r-xl:  20px;

  /* Typography */
  --px-font-sans: 'Hanken Grotesk', 'Sora', ui-sans-serif, system-ui, sans-serif;
  --px-font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ══════════════════════════════════════════════════════════════
   §1  NAVBAR — premium visual refinements (extends v126)
   ══════════════════════════════════════════════════════════════ */

/* Elevated background — slightly more opacity + richer navy */
.pxnav::before {
  background: rgba(2, 8, 18, 0.96) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.058) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.032),
    0 1px 0 rgba(0, 0, 0, 0.30),
    0 4px 16px rgba(0, 0, 0, 0.20) !important;
}

/* Scrolled: add perceptible depth */
.pxnav.pxnav--scrolled::before,
.pxnav.scrolled::before {
  background: rgba(2, 7, 16, 0.99) !important;
  border-bottom-color: rgba(0, 200, 160, 0.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.022),
    0 2px 0 rgba(0, 0, 0, 0.32),
    0 8px 40px rgba(0, 0, 0, 0.60) !important;
}

/* Top hairline — more precise gradient */
.pxnav::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0,200,160,0.0) 5%,
    rgba(0,200,160,0.45) 30%,
    rgba(0,200,160,0.72) 50%,
    rgba(0,200,160,0.45) 70%,
    rgba(0,200,160,0.0) 95%,
    transparent 100%
  ) !important;
}

/* Desktop nav links — improved contrast and hover */
@media (min-width: 1024px) {
  .pxnav__link {
    color: #a8c6de !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0.008em !important;
    padding: 8px 13px !important;
    border-radius: 6px !important;
    transition: color 0.16s ease, background 0.16s ease !important;
  }
  .pxnav__link:hover {
    color: #e8f4ff !important;
    background: rgba(255, 255, 255, 0.052) !important;
  }
  .pxnav__link--active,
  .pxnav__link[aria-current="page"] {
    color: #f4faff !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.04) !important;
  }
  .pxnav__link--active::after,
  .pxnav__link[aria-current="page"]::after {
    width: 22px !important;
    height: 2px !important;
    background: var(--px-teal) !important;
    opacity: 1 !important;
  }

  /* CTA button — more prominent */
  .pxnav__cta {
    padding: 10px 24px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    background: var(--px-teal) !important;
    color: #020c18 !important;
    border-radius: 8px !important;
    letter-spacing: 0.016em !important;
    box-shadow:
      0 2px 12px rgba(0, 200, 160, 0.32),
      0 1px 4px rgba(0, 0, 0, 0.24) !important;
  }
  .pxnav__cta:hover {
    background: var(--px-teal-h) !important;
    box-shadow:
      0 6px 28px rgba(0, 200, 160, 0.48),
      0 2px 8px rgba(0, 0, 0, 0.28) !important;
    transform: translateY(-1px) !important;
  }

  /* Sign in — more discrete */
  .pxnav__signin {
    color: #6888a0 !important;
    font-size: 13px !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: transparent !important;
    padding: 8px 15px !important;
  }
  .pxnav__signin:hover {
    color: #a8c6de !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.04) !important;
  }

  /* Locale trigger — slightly more visible */
  .pxnav__locale .locale-trigger {
    color: #5e7e96 !important;
    font-size: 11.5px !important;
  }
  .pxnav__locale .locale-trigger:hover {
    color: #90b4c8 !important;
  }
}

/* Hamburger bars — thicker, more premium */
.pxnav__toggle-bar {
  height: 2px !important;
  background: #8aacbf !important;
  border-radius: 2px !important;
}
.pxnav__toggle:hover .pxnav__toggle-bar {
  background: #b0ccdf !important;
}

/* Drawer links — higher contrast on mobile */
.pxnav__drawer-link {
  color: #90b0c8 !important;
  font-size: 15.5px !important;
  font-weight: 500 !important;
  padding: 15px 28px !important;
  min-height: 54px !important;
}
.pxnav__drawer-link:hover {
  color: #e0f0fc !important;
  background: rgba(255, 255, 255, 0.042) !important;
  border-left-color: rgba(0, 200, 160, 0.32) !important;
}
.pxnav__drawer-link--active,
.pxnav__drawer-link[aria-current="page"] {
  color: #f0f8ff !important;
  border-left-color: var(--px-teal) !important;
  background: rgba(0, 200, 160, 0.048) !important;
}

/* Drawer CTA */
.pxnav__drawer-cta {
  background: var(--px-teal) !important;
  color: #020c18 !important;
  font-weight: 700 !important;
}

/* ══════════════════════════════════════════════════════════════
   §2  TYPOGRAPHY — global improvements
   ══════════════════════════════════════════════════════════════ */

html body {
  font-family: var(--px-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html body h1,
html body h2,
html body h3,
html body h4 {
  font-family: var(--px-font-sans);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.016em;
  color: var(--px-text);
}

html body h1 { font-weight: 800; letter-spacing: -0.024em; }
html body h2 { letter-spacing: -0.018em; }
html body h3 { letter-spacing: -0.012em; font-weight: 600; }

/* Eyebrow labels */
html body .eyebrow,
html body .section-eyebrow,
html body [class*="eyebrow"],
html body [class*="-eyebrow"] {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--px-teal);
  opacity: 0.90;
}

/* ══════════════════════════════════════════════════════════════
   §3  HERO — first screen improvements
   ══════════════════════════════════════════════════════════════ */

/* Hero badge / AS number pill */
html body .pxv93-hero-badge,
html body .hero-badge,
html body [class*="hero-badge"],
html body [class*="hero-pill"],
html body [class*="as-badge"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(0, 200, 160, 0.082);
  border: 1px solid rgba(0, 200, 160, 0.22);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--px-teal);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Hero CTAs */
html body [class*="hero"] a[class*="cta"],
html body [class*="hero"] a[class*="btn"],
html body [class*="hero"] a[class*="demo"],
html body [class*="hero"] button[class*="cta"] {
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.014em;
}

/* ══════════════════════════════════════════════════════════════
   §4  CARDS — premium component design
   ══════════════════════════════════════════════════════════════ */

/* Generic card base */
html body [class*="-card"]:not([class*="blog-card"]):not([class*="resource-card"]):not([class*="blog-empty"]) {
  background: var(--px-bg-card);
  border: 1px solid var(--px-border-card);
  border-radius: var(--px-r-lg);
  transition: border-color 0.20s ease, box-shadow 0.20s ease, transform 0.18s ease;
}
html body [class*="-card"]:not([class*="blog-card"]):not([class*="resource-card"]):not([class*="blog-empty"]):hover {
  border-color: rgba(0, 200, 160, 0.16);
  box-shadow: var(--px-shadow-md);
}

/* Partner cards */
html body [class*="partner-card"],
html body .footer-partners [class*="card"] {
  background: var(--px-bg-card) !important;
  border: 1px solid var(--px-border-card) !important;
  border-radius: var(--px-r-lg) !important;
  padding: 24px !important;
  transition: border-color 0.20s ease, box-shadow 0.20s ease !important;
}
html body [class*="partner-card"]:hover,
html body .footer-partners [class*="card"]:hover {
  border-color: rgba(0, 200, 160, 0.18) !important;
  box-shadow: var(--px-shadow-md) !important;
}

/* Why-cards (trust page benefits) */
html body [class*="why-card"],
html body [class*="benefit-card"],
html body [class*="benefits-card"] {
  background: var(--px-bg-card);
  border: 1px solid var(--px-border-card);
  border-radius: var(--px-r-lg);
  padding: 20px 24px;
}

/* ══════════════════════════════════════════════════════════════
   §5  BADGES / METRICS / TAGS — unified design
   ══════════════════════════════════════════════════════════════ */

/* Transit proof strip — improved visual */
html body .transit-proof-strip-v81 {
  background: linear-gradient(
    180deg,
    rgba(2, 10, 24, 0.0) 0%,
    rgba(2, 10, 24, 1.0) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid rgba(255, 255, 255, 0.040);
}

html body .transit-proof-item-v81 strong {
  color: var(--px-text) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}
html body .transit-proof-item-v81 span[aria-hidden] {
  color: rgba(0, 200, 160, 0.45) !important;
  font-size: 14px !important;
  margin: 0 6px !important;
}
html body .transit-proof-item-v81 span:not([aria-hidden]) {
  color: var(--px-text-3) !important;
  font-size: 13px !important;
}

/* pxv93 hero metrics — improved separator */
html body .pxv93-metrics > li strong,
html body .pxv93-metrics > div strong {
  color: var(--px-text) !important;
  font-weight: 700 !important;
}
html body .pxv93-metrics > li span[aria-hidden],
html body .pxv93-metrics > div span[aria-hidden] {
  color: rgba(0, 200, 160, 0.40) !important;
  margin: 0 5px !important;
}
html body .pxv93-metrics > li span:not([aria-hidden]),
html body .pxv93-metrics > div span:not([aria-hidden]) {
  color: var(--px-text-3) !important;
  font-size: 12.5px !important;
}

/* px-nt-metric (réseau page) */
html body .px-nt-metric strong {
  color: var(--px-text) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}
html body .px-nt-metric span[aria-hidden] {
  color: rgba(0, 200, 160, 0.40) !important;
  margin: 0 5px !important;
}
html body .px-nt-metric span:not([aria-hidden]) {
  color: var(--px-text-3) !important;
  font-size: 12px !important;
}

/* pxv93 dash stats (architecture panel) */
html body .pxv93-dash-stats > div > strong {
  color: var(--px-text) !important;
  font-size: 14px !important;
}
html body .pxv93-dash-stats > div > span[aria-hidden] {
  color: rgba(0, 200, 160, 0.40) !important;
  margin: 0 4px !important;
}
html body .pxv93-dash-stats > div > span:not([aria-hidden]) {
  color: var(--px-text-3) !important;
  font-size: 11px !important;
}

/* px-nt-client — "Votre réseau · Trafic propre" */
html body .px-nt-client {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}
html body .px-nt-sep {
  color: rgba(0, 200, 160, 0.40) !important;
  margin: 0 2px !important;
}
html body .px-nt-client small {
  font-size: 12px !important;
  color: var(--px-teal) !important;
  font-weight: 600 !important;
}

/* Mode tags */
html body .pxv93-mode-tags span {
  background: rgba(0, 200, 160, 0.072) !important;
  border: 1px solid rgba(0, 200, 160, 0.16) !important;
  color: var(--px-teal) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  border-radius: 5px !important;
  padding: 3px 9px !important;
}

/* Generic stat pills */
html body [class*="stat-pill"],
html body [class*="metric-badge"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--px-teal-dim);
  border: 1px solid rgba(0, 200, 160, 0.18);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--px-teal);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   §6  TRANSIT IP PAGE
   ══════════════════════════════════════════════════════════════ */

/* Transit proof strip grid */
html body .transit-proof-grid-v81 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0 !important;
  padding: 14px 0 !important;
}
@media (max-width: 639px) {
  html body .transit-proof-grid-v81 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 12px 0 !important;
  }
}
@media (min-width: 640px) and (max-width: 899px) {
  html body .transit-proof-grid-v81 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Architecture ribbon cards — better visual */
html body .px83-ribbon-card {
  background: var(--px-bg-card) !important;
  border: 1px solid var(--px-border-card) !important;
  border-radius: var(--px-r-lg) !important;
  padding: 20px 24px !important;
  transition: border-color 0.20s ease !important;
}
html body .px83-ribbon-card:hover {
  border-color: rgba(0, 200, 160, 0.16) !important;
}

/* ══════════════════════════════════════════════════════════════
   §7  RÉSEAU PAGE
   ══════════════════════════════════════════════════════════════ */

/* Network topology card */
html body .px-nt-card,
html body [class*="nt-card"] {
  background: var(--px-bg-card) !important;
  border: 1px solid var(--px-border-card) !important;
  border-radius: var(--px-r-lg) !important;
}

/* PoP status badges */
html body .pop-active,
html body [class*="pop-active"],
html body [class*="pop--active"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(0, 200, 160, 0.08);
  border: 1px solid rgba(0, 200, 160, 0.20);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: var(--px-teal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html body .pop-deploy,
html body [class*="pop-deploy"],
html body [class*="pop--deploy"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(42, 127, 255, 0.08);
  border: 1px solid rgba(42, 127, 255, 0.20);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: #6aacff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   §8  CONTACT FORM — premium design
   ══════════════════════════════════════════════════════════════ */

html body .contact-form {
  max-width: 640px;
}

html body .contact-form label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--px-text-2) !important;
  letter-spacing: 0.01em !important;
  margin-bottom: 6px !important;
}

html body .contact-form input,
html body .contact-form select,
html body .contact-form textarea {
  background: rgba(8, 18, 40, 0.72) !important;
  border: 1px solid var(--px-border) !important;
  border-radius: 8px !important;
  color: var(--px-text) !important;
  font-size: 14px !important;
  font-family: var(--px-font-sans) !important;
  padding: 11px 14px !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
  outline: none !important;
}

html body .contact-form input:focus,
html body .contact-form select:focus,
html body .contact-form textarea:focus {
  border-color: rgba(0, 200, 160, 0.40) !important;
  box-shadow: 0 0 0 3px rgba(0, 200, 160, 0.10) !important;
}

html body .contact-form input::placeholder,
html body .contact-form textarea::placeholder {
  color: var(--px-text-4) !important;
  opacity: 1 !important;
}

html body .contact-form button[type="submit"],
html body .contact-form [type="submit"] {
  background: var(--px-teal) !important;
  color: #020c18 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 13px 28px !important;
  cursor: pointer !important;
  letter-spacing: 0.016em !important;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.14s ease !important;
  box-shadow: 0 2px 12px rgba(0, 200, 160, 0.28) !important;
}

html body .contact-form button[type="submit"]:hover,
html body .contact-form [type="submit"]:hover {
  background: var(--px-teal-h) !important;
  box-shadow: 0 6px 24px rgba(0, 200, 160, 0.40) !important;
  transform: translateY(-1px) !important;
}

/* ══════════════════════════════════════════════════════════════
   §9  BLOG — card improvements
   ══════════════════════════════════════════════════════════════ */

/* Blog filter — improve pill styling */
html body [class*="blog-filter"] button,
html body [class*="blog-tag"],
html body [class*="blog-category"] {
  border-radius: 6px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease !important;
}

/* Blog empty state — visual */
html body .blog-empty-state-v80 {
  text-align: center;
  padding: 48px 24px;
  color: var(--px-text-3);
  font-size: 15px;
}

/* ══════════════════════════════════════════════════════════════
   §10  FOOTER — improvements
   ══════════════════════════════════════════════════════════════ */

html body footer,
html body .footer,
html body [class*="px-footer"],
html body [class*="site-footer"] {
  border-top: 1px solid var(--px-border) !important;
}

/* ══════════════════════════════════════════════════════════════
   §11  UTILITY — mobile fixes + global consistency
   ══════════════════════════════════════════════════════════════ */

/* Prevent horizontal overflow */
html body {
  overflow-x: hidden;
}

/* Focus visible — global */
html body *:focus-visible {
  outline: 2px solid var(--px-teal) !important;
  outline-offset: 3px !important;
}

/* Skip link */
html body .peeryx-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--px-teal);
  color: #020c18;
  padding: 8px 16px;
  border-radius: 0 0 6px 6px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: top 0.18s ease;
}
html body .peeryx-skip-link:focus {
  top: 0;
}

/* CTAs — global button elevation */
html body a.btn-primary,
html body button.btn-primary,
html body a[class*="-cta-btn"],
html body [class*="-cta-link"],
html body [class*="btn-contact"],
html body [class*="px-cta"] {
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  letter-spacing: 0.014em !important;
  transition:
    background  0.18s ease,
    box-shadow  0.18s ease,
    transform   0.14s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html body *,
  html body *::before,
  html body *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Overlay on mobile scroll lock */
html body.menu-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Section separators — subtle */
html body section + section {
  border-top: 1px solid rgba(255, 255, 255, 0.038);
}

/* Code/mono text — operator feel */
html body code,
html body .mono,
html body [class*="-mono"],
html body [class*="code-"] {
  font-family: var(--px-font-mono) !important;
  font-size: 0.88em !important;
  background: rgba(0, 200, 160, 0.07) !important;
  border: 1px solid rgba(0, 200, 160, 0.14) !important;
  border-radius: 4px !important;
  padding: 1px 5px !important;
  color: var(--px-teal) !important;
}

/* AS number display */
html body [class*="as-number"],
html body [class*="asn-"],
html body [class*="-asn"] {
  font-family: var(--px-font-mono) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--px-teal) !important;
  letter-spacing: 0.04em !important;
}

/* ══════════════════════════════════════════════════════════════
   §12  MOBILE RESPONSIVE — critical fixes
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 639px) {
  /* No horizontal overflow from any element */
  html body img,
  html body video,
  html body svg,
  html body table {
    max-width: 100% !important;
  }

  /* Section padding on small screens */
  html body section {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Transit proof items — stack cleanly */
  html body .transit-proof-item-v81 {
    flex-direction: row !important;
    align-items: baseline !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
  }
  html body .transit-proof-item-v81 span:not([aria-hidden]) {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Metrics stack */
  html body .pxv93-metrics {
    gap: 8px 14px !important;
  }
}

@media (max-width: 430px) {
  html body .pxnav__logo {
    width: 110px !important;
  }

  /* Transit grid on very small screen */
  html body .transit-proof-grid-v81 {
    grid-template-columns: 1fr !important;
  }
}
