/**
 * Proxy Grove — Residential Proxy product page
 * Uses locked brand tokens only (no invented cyan/teal accents).
 */

/* Page shell */
.pg-rp-page {
  overflow-x: clip;
}

.pg-rp-breadcrumb {
  padding: 1.25rem 0 0;
}

.pg-rp-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--color-text-body) 65%, transparent);
}

.pg-rp-breadcrumb__list a {
  color: var(--color-text-heading);
  text-decoration: none;
  font-weight: 600;
}

.pg-rp-breadcrumb__list a:hover {
  text-decoration: underline;
}

.pg-rp-breadcrumb__sep {
  opacity: 0.45;
}

/* Hero */
.pg-rp-hero {
  position: relative;
  padding: 2rem 0 3.5rem;
}

.pg-rp-hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(19 0 154 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(19 0 154 / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.pg-rp-hero__inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .pg-rp-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.pg-rp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgb(19 0 154 / 0.06);
  border: 1px solid rgb(19 0 154 / 0.12);
  color: var(--color-text-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.15rem;
}

.pg-rp-hero__badge-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-button-primary-bg);
  box-shadow: 0 0 0 4px rgb(19 127 21 / 0.18);
  animation: pg-rp-pulse 2s ease-in-out infinite;
}

.pg-rp-hero__title {
  margin: 0 0 1rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--color-text-heading);
}

.pg-rp-hero__desc {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--color-text-body) 88%, transparent);
}

.pg-rp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pg-rp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.pg-rp-btn--primary {
  background: var(--color-button-primary-bg);
  color: var(--color-button-primary-text);
  border: none;
}

.pg-rp-btn--primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.pg-rp-btn--secondary {
  background: var(--color-surface-raised);
  color: var(--color-text-heading);
  border: 1px solid rgb(19 0 154 / 0.16);
}

.pg-rp-btn--secondary:hover {
  border-color: rgb(19 0 154 / 0.35);
  transform: translateY(-1px);
}

.pg-rp-btn:focus-visible {
  outline: 2px solid var(--color-text-heading);
  outline-offset: 3px;
}

/* Hero illustration */
.pg-rp-hero__art {
  position: relative;
  min-height: 0;
}

.pg-rp-hero__art-frame {
  position: relative;
  border-radius: 1.25rem;
  background: linear-gradient(160deg, #fff 0%, #f4f5fb 100%);
  border: 1px solid rgb(19 0 154 / 0.08);
  box-shadow: var(--shadow-glass);
  overflow: hidden;
  aspect-ratio: 5 / 4;
}

.pg-rp-hero__art-frame img,
.pg-rp-hero__art-frame svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 42%;
  /* Crop soft SVG margins so the art fills the card */
  transform: scale(1.14);
  transform-origin: center 42%;
}

.pg-rp-hero__float-node {
  animation: pg-rp-float 5.5s ease-in-out infinite;
  transform-origin: center;
}

.pg-rp-hero__pulse-ring {
  animation: pg-rp-ring 2.8s ease-out infinite;
  transform-origin: center;
}

@keyframes pg-rp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pg-rp-ring {
  0% { opacity: 0.55; transform: scale(0.85); }
  100% { opacity: 0; transform: scale(1.55); }
}

@keyframes pg-rp-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
}

@keyframes pg-rp-dash {
  to { stroke-dashoffset: -40; }
}

.pg-rp-hero__line {
  stroke-dasharray: 6 8;
  animation: pg-rp-dash 2.4s linear infinite;
}

/* Stats */
.pg-rp-stats {
  padding: 0 0 3.5rem;
}

.pg-rp-stats__list {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .pg-rp-stats__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .pg-rp-stats__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.pg-rp-stats__card {
  padding: 1.25rem 1.1rem;
  text-align: center;
  position: relative;
}

.pg-rp-stats__value {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-heading);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.pg-rp-stats__label {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--color-text-body) 72%, transparent);
}

.pg-rp-stats__live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-button-primary-bg);
}

.pg-rp-stats__live-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-button-primary-bg);
  animation: pg-rp-pulse 1.8s ease-in-out infinite;
}

/* Shared section headers */
.pg-rp-section {
  position: relative;
  padding: 3.5rem 0;
}

.pg-rp-section--alt {
  background: linear-gradient(180deg, rgb(19 0 154 / 0.03), transparent 40%);
}

.pg-rp-header {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.pg-rp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 0.75rem;
}

.pg-rp-eyebrow-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-button-primary-bg);
}

.pg-rp-title {
  margin: 0 0 0.75rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-heading);
  line-height: 1.2;
}

.pg-rp-subtitle {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--color-text-body) 80%, transparent);
}

/* Why / Use / Features grids */
.pg-rp-why__grid,
.pg-rp-use__grid,
.pg-rp-feat__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pg-rp-why__grid,
  .pg-rp-use__grid,
  .pg-rp-feat__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pg-rp-why__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pg-rp-use__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pg-rp-feat__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pg-rp-why__card,
.pg-rp-use__card,
.pg-rp-feat__card {
  padding: 1.35rem 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pg-rp-why__card:hover,
.pg-rp-use__card:hover,
.pg-rp-feat__card:hover {
  transform: translateY(-3px);
}

.pg-rp-why__icon {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 0.7rem;
  background: rgb(19 0 154 / 0.07);
  color: var(--color-text-heading);
  margin-bottom: 0.9rem;
}

.pg-rp-why__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.pg-rp-why__title,
.pg-rp-use__title,
.pg-rp-feat__title {
  margin: 0 0 0.45rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-heading);
  letter-spacing: -0.02em;
}

.pg-rp-why__desc,
.pg-rp-use__desc,
.pg-rp-feat__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text-body) 78%, transparent);
}

.pg-rp-feat__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.pg-rp-feat__badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.45rem;
  border-radius: 0.4rem;
  background: rgb(19 127 21 / 0.12);
  color: var(--color-button-primary-bg);
}

.pg-rp-feat__card[data-status="coming-soon"] .pg-rp-feat__badge {
  background: rgb(19 0 154 / 0.1);
  color: var(--color-text-heading);
}

/* Steps */
.pg-rp-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: none;
}

@media (min-width: 768px) {
  .pg-rp-steps__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .pg-rp-steps__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pg-rp-steps__list--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.pg-rp-steps__card {
  padding: 1.5rem 1.25rem;
  height: 100%;
  position: relative;
}

.pg-rp-steps__num {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: rgb(19 0 154 / 0.18);
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.pg-rp-steps__title {
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-heading);
}

.pg-rp-steps__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text-body) 78%, transparent);
}

/* Coverage search */
.pg-rp-cov__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.pg-rp-cov__search {
  flex: 1 1 16rem;
  appearance: none;
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(19 0 154 / 0.14);
  background: #fff;
  font: inherit;
  color: var(--color-text-body);
}

.pg-rp-cov__search:focus {
  outline: none;
  border-color: #13009a;
  box-shadow: 0 0 0 3px rgb(19 0 154 / 0.12);
}

.pg-rp-cov__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .pg-rp-cov__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .pg-rp-cov__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pg-rp-cov__card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
}

.pg-rp-cov__flag {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  background: rgb(19 0 154 / 0.07);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-heading);
  flex-shrink: 0;
}

.pg-rp-cov__name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-heading);
}

.pg-rp-cov__region {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--color-text-body) 65%, transparent);
}

.pg-rp-cov__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  color: color-mix(in srgb, var(--color-text-body) 70%, transparent);
}

/* Performance benchmarks */
.pg-rp-perf__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pg-rp-perf__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .pg-rp-perf__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.pg-rp-perf__card {
  position: relative;
  overflow: hidden;
  padding: 1.4rem 1.2rem;
  min-height: 8.5rem;
}

.pg-rp-perf__glow {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(19 127 21 / 0.18), transparent 70%);
  pointer-events: none;
}

.pg-rp-perf__title {
  position: relative;
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-heading);
  letter-spacing: -0.02em;
}

.pg-rp-perf__desc {
  position: relative;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-text-body) 78%, transparent);
}

html.dark .pg-rp-perf__title {
  color: #f0f1f7;
}

/* Supported software */
.pg-rp-soft__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .pg-rp-soft__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .pg-rp-soft__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.pg-rp-soft__card {
  padding: 1.25rem 1.1rem;
  text-align: center;
  transition: transform 0.25s ease;
}

.pg-rp-soft__card:hover {
  transform: translateY(-3px);
}

.pg-rp-soft__mark {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: rgb(19 0 154 / 0.08);
  color: var(--color-text-heading);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.pg-rp-soft__title {
  margin: 0 0 0.4rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-heading);
}

.pg-rp-soft__desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--color-text-body) 75%, transparent);
}

html.dark .pg-rp-soft__title {
  color: #f0f1f7;
}

html.dark .pg-rp-soft__mark {
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}

/* Rotation modes */
.pg-rp-modes__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pg-rp-modes__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .pg-rp-modes__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pg-rp-modes__card {
  padding: 1.35rem 1.2rem 1.4rem;
  transition: transform 0.25s ease;
}

.pg-rp-modes__card:hover {
  transform: translateY(-3px);
}

.pg-rp-modes__icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  background: rgb(19 0 154 / 0.08);
  color: var(--color-text-heading);
}

.pg-rp-modes__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.pg-rp-modes__visual {
  margin: 0 0 0.85rem;
}

.pg-rp-modes__orbit {
  width: 100%;
  max-width: 7.5rem;
  height: auto;
  display: block;
}

.pg-rp-modes__node {
  transform-origin: 60px 32px;
  animation: pg-rp-modes-spin 8s linear infinite;
}

@keyframes pg-rp-modes-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-rp-modes__node {
    animation: none;
  }
}

.pg-rp-modes__title {
  margin: 0 0 0.45rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-heading);
}

.pg-rp-modes__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-text-body) 78%, transparent);
}

html.dark .pg-rp-modes__title {
  color: #f0f1f7;
}

html.dark .pg-rp-modes__icon {
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}

/* Protocol comparison (HTTP / HTTPS) */
.pg-rp-proto__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .pg-rp-proto__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pg-rp-proto__card {
  padding: 1.5rem 1.35rem 1.6rem;
  transition: transform 0.25s ease;
}

.pg-rp-proto__card:hover {
  transform: translateY(-3px);
}

.pg-rp-proto__head {
  margin-bottom: 1rem;
}

.pg-rp-proto__title {
  margin: 0 0 0.35rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-heading);
  letter-spacing: -0.02em;
}

.pg-rp-proto__subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--color-text-body) 72%, transparent);
}

.pg-rp-proto__flow {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 0 0.5rem;
}

.pg-rp-proto__flow-label {
  margin: 0 0 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-heading);
  opacity: 0.75;
}

.pg-rp-proto__specs {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.pg-rp-proto__row {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(19 0 154 / 0.08);
}

.pg-rp-proto__dt {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pg-rp-proto__dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-text-body) 78%, transparent);
}

html.dark .pg-rp-proto__title,
html.dark .pg-rp-proto__dt,
html.dark .pg-rp-proto__flow-label {
  color: #f0f1f7;
}

html.dark .pg-rp-proto__row {
  border-top-color: rgb(255 255 255 / 0.08);
}

.pg-rp-cov__map-wrap {
  margin-bottom: 1.75rem;
}

/* Pricing note */
.pg-rp-pricing__note {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--color-text-body) 75%, transparent);
}

.pg-rp-pricing__sales {
  margin-top: 1.75rem;
  text-align: center;
}

/* Dark mode */
html.dark .pg-rp-hero__art-frame,
html.dark .pg-rp-cov__search {
  background: #12141f;
  border-color: rgb(255 255 255 / 0.1);
  color: #fff;
}

html.dark .pg-rp-hero__title,
html.dark .pg-rp-title,
html.dark .pg-rp-why__title,
html.dark .pg-rp-use__title,
html.dark .pg-rp-feat__title,
html.dark .pg-rp-steps__title,
html.dark .pg-rp-stats__value,
html.dark .pg-rp-cov__name,
html.dark .pg-rp-breadcrumb__list a {
  color: #f0f1f7;
}

html.dark .pg-rp-btn--secondary {
  background: #12141f;
  color: #f0f1f7;
  border-color: rgb(255 255 255 / 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .pg-rp-hero__float-node,
  .pg-rp-hero__pulse-ring,
  .pg-rp-hero__line,
  .pg-rp-hero__badge-dot,
  .pg-rp-stats__live-dot {
    animation: none !important;
  }
}
