/* ===== THEME TOKENS =====
   Default = dark: near-black neutrals + WHITE text, green ONLY as accent.
   Light theme (html[data-theme="light"]) = white + black text + green accent.
   Neutrals are intentionally gray (not green-tinted) so the green reads as a
   highlight, not a wash. */
:root {
  --pb-bg: #000000;
  --pb-bg-alt: #0c0c0e;
  --pb-surface: #0c0c0e;
  --pb-surface-strong: #161618;
  --pb-surface-soft: rgba(255, 255, 255, 0.05);
  --pb-border: rgba(255, 255, 255, 0.10);
  --pb-border-strong: rgba(255, 255, 255, 0.18);
  --pb-text: #ffffff;
  --pb-text-soft: rgba(255, 255, 255, 0.72);
  --pb-text-muted: rgba(255, 255, 255, 0.48);
  --pb-primary: #42ef7b;
  --pb-primary-strong: #18c85c;
  --pb-primary-soft: rgba(66, 239, 123, 0.14);
  --pb-on-primary: #06140c;
  --pb-warning: #ffd166;
  --pb-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --pb-radius-xl: 32px;
  --pb-radius-lg: 24px;
  --pb-radius-md: 18px;
  --pb-radius-sm: 12px;
  --pb-shell-width: min(1180px, calc(100vw - 32px));
}

html[data-theme="light"] {
  --pb-bg: #ffffff;
  --pb-bg-alt: #f7f8f9;
  --pb-surface: #ffffff;
  --pb-surface-strong: #ffffff;
  --pb-surface-soft: #f2f4f6;
  --pb-border: #e2e6e9;
  --pb-border-strong: #d3d9de;
  --pb-text: #0b0c0e;
  --pb-text-soft: rgba(11, 12, 14, 0.70);
  --pb-text-muted: rgba(11, 12, 14, 0.50);
  --pb-primary: #0a9f4a;
  --pb-primary-strong: #0c7e3c;
  --pb-primary-soft: rgba(10, 159, 74, 0.12);
  --pb-on-primary: #ffffff;
  --pb-warning: #b8860b;
  --pb-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* No black outline on click/tap. Keyboard users still get a clear accent ring
   via :focus-visible (kept for accessibility). */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--pb-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mouse/touch tactile feedback replaces the focus ring on click: a brief
   press-down on :active. Belt-and-suspenders: force outline:none on buttons
   so no UA default ring leaks through after a click. */
button,
[role="button"],
.pb-button,
a.pb-button,
.pb-dash-table .pb-button,
.pb-mobilebar__home,
.pb-theme-toggle,
summary {
  outline: none;
  transition: transform 0.15s ease, background-color 0.15s ease,
              color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
button:focus, [role="button"]:focus, .pb-button:focus, summary:focus { outline: none; }
button:active,
[role="button"]:active,
.pb-button:active,
a.pb-button:active,
.pb-mobilebar__home:active,
.pb-theme-toggle:active,
summary:active {
  transform: scale(0.96);
  transition-duration: 0.06s;
}

html {
  scroll-behavior: smooth;
}

body.paybridge-public {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: var(--pb-text);
  background:
    radial-gradient(circle at top left, rgba(66, 239, 123, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(66, 239, 123, 0.14), transparent 22%),
    linear-gradient(180deg, #031008 0%, #040b07 56%, #06160d 100%);
}

body.paybridge-public a {
  color: inherit;
  text-decoration: none;
}

.paybridge-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 92%);
}

.paybridge-orbit {
  position: fixed;
  inset: auto auto 7vh 4vw;
  width: 38vw;
  height: 38vw;
  max-width: 560px;
  max-height: 560px;
  border-radius: 50%;
  border: 1px solid rgba(66, 239, 123, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(66, 239, 123, 0.06),
    0 0 80px rgba(66, 239, 123, 0.05);
  filter: blur(0.2px);
  z-index: 0;
  pointer-events: none;
}

.paybridge-shell {
  position: relative;
  z-index: 1;
  width: var(--pb-shell-width);
  margin: 0 auto;
}

.paybridge-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(3, 15, 9, 0.72);
  border-bottom: 1px solid rgba(75, 255, 142, 0.08);
}

.paybridge-header__inner {
  width: var(--pb-shell-width);
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.paybridge-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.paybridge-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(66, 239, 123, 0.18));
}

.paybridge-brand__wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.paybridge-brand__name {
  font-family: "Montserrat", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.paybridge-brand__tagline {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pb-text-muted);
}

.paybridge-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--pb-text-soft);
  font-weight: 600;
}

.paybridge-nav a:hover {
  color: var(--pb-primary);
}

.paybridge-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.pb-button:hover {
  transform: translateY(-1px);
}

.pb-button--primary {
  color: var(--pb-on-primary);
  background: linear-gradient(135deg, var(--pb-primary) 0%, var(--pb-primary-strong) 100%);
  box-shadow: 0 18px 40px rgba(33, 210, 95, 0.22);
}

.pb-button--ghost {
  color: var(--pb-text);
  border-color: var(--pb-border);
  background: rgba(255, 255, 255, 0.02);
}

.pb-button--ghost:hover {
  border-color: var(--pb-border-strong);
  color: var(--pb-primary);
}

.pb-main {
  padding: 42px 0 64px;
}

.pb-section {
  margin-bottom: 26px;
}

.pb-panel {
  position: relative;
  overflow: hidden;
  background: var(--pb-surface);
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius-xl);
  box-shadow: var(--pb-shadow);
}

.pb-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% 42%;
  height: 240px;
  background: radial-gradient(circle, rgba(66, 239, 123, 0.22), transparent 68%);
  pointer-events: none;
}

.pb-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 22px;
}

.pb-hero__copy,
.pb-hero__visual {
  padding: 42px;
}

.pb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pb-primary);
}

.pb-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}

.pb-title {
  margin: 22px 0 18px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.pb-title span,
.pb-highlight {
  color: var(--pb-primary);
}

.pb-lead {
  max-width: 640px;
  color: var(--pb-text-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.pb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0;
}

.pb-chip-row,
.pb-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pb-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--pb-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--pb-text-soft);
  font-weight: 700;
}

.pb-chip i {
  color: var(--pb-primary);
}

.pb-visual-stack {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pb-device {
  width: min(100%, 330px);
  border-radius: 38px;
  padding: 18px 18px 22px;
  background:
    linear-gradient(180deg, rgba(11, 25, 17, 0.98) 0%, rgba(6, 14, 10, 1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 34px 70px rgba(0, 0, 0, 0.55);
}

.pb-device__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pb-device__notch {
  width: 38%;
  height: 20px;
  border-radius: 999px;
  margin: 0 auto 18px;
  background: rgba(255, 255, 255, 0.05);
}

.pb-device__metric {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(11, 27, 18, 0.94) 0%, rgba(8, 17, 12, 0.98) 100%);
  border: 1px solid rgba(66, 239, 123, 0.08);
}

.pb-device__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.86rem;
  color: var(--pb-text-muted);
}

.pb-device__value {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--pb-primary);
}

.pb-device__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.pb-device__grid strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.pb-device__graph {
  margin-top: 18px;
  height: 76px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(66, 239, 123, 0.14), transparent),
    linear-gradient(90deg, transparent 0%, rgba(66, 239, 123, 0.1) 40%, transparent 100%);
  position: relative;
  overflow: hidden;
}

.pb-device__graph::before {
  content: "";
  position: absolute;
  inset: 20px 10px;
  background:
    linear-gradient(135deg, transparent 0 14%, rgba(66, 239, 123, 0.4) 14% 16%, transparent 16% 26%, rgba(66, 239, 123, 0.6) 26% 28%, transparent 28% 40%, rgba(66, 239, 123, 0.5) 40% 42%, transparent 42% 56%, rgba(66, 239, 123, 0.7) 56% 58%, transparent 58%);
}

.pb-floating-card {
  position: absolute;
  border-radius: 24px;
  padding: 18px 20px;
  background: rgba(7, 19, 13, 0.94);
  border: 1px solid rgba(66, 239, 123, 0.12);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.32);
}

.pb-floating-card--top {
  top: 28px;
  left: -8px;
}

.pb-floating-card--bottom {
  right: -4px;
  bottom: 36px;
}

.pb-floating-card__label {
  display: block;
  margin-bottom: 6px;
  color: var(--pb-text-muted);
  font-size: 0.8rem;
}

.pb-floating-card__value {
  font-weight: 800;
  font-size: 1.15rem;
}

.pb-section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}

.pb-card {
  position: relative;
  padding: 28px;
  background: linear-gradient(180deg, rgba(8, 21, 15, 0.92) 0%, rgba(5, 13, 9, 0.96) 100%);
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius-lg);
  box-shadow: var(--pb-shadow);
}

.pb-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(66, 239, 123, 0.18) 0%, rgba(66, 239, 123, 0.07) 100%);
  color: var(--pb-primary);
  font-size: 1.35rem;
}

.pb-card h3,
.pb-card h2 {
  margin: 0 0 12px;
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.03em;
}

.pb-card p,
.pb-card li,
.pb-meta {
  color: var(--pb-text-soft);
  line-height: 1.65;
}

.pb-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.pb-card li + li {
  margin-top: 10px;
}

.pb-kicker {
  margin-bottom: 14px;
  display: inline-block;
  color: var(--pb-primary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
}

.pb-feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.pb-feature {
  grid-column: span 4;
}

.pb-feature__tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(66, 239, 123, 0.1);
  color: var(--pb-primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pb-metric-grid,
.pb-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pb-metric {
  padding: 22px;
  border-radius: var(--pb-radius-md);
  border: 1px solid rgba(66, 239, 123, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.pb-metric strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--pb-primary);
  letter-spacing: -0.06em;
}

.pb-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.pb-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 22px;
}

.pb-form-panel,
.pb-story-panel {
  padding: 36px;
}

.pb-form-panel form {
  display: grid;
  gap: 18px;
}

.pb-form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pb-text-soft);
}

.pb-form-panel input,
.pb-form-panel textarea,
.pb-form-panel select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  color: var(--pb-text);
  border-radius: 16px;
  border: 1px solid rgba(66, 239, 123, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.pb-form-panel textarea {
  min-height: 140px;
  resize: vertical;
}

.pb-form-panel input:focus,
.pb-form-panel textarea:focus,
.pb-form-panel select:focus {
  outline: none;
  border-color: rgba(66, 239, 123, 0.42);
  box-shadow: 0 0 0 4px rgba(66, 239, 123, 0.08);
}

.pb-help {
  color: var(--pb-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.pb-alert {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 103, 103, 0.09);
  border: 1px solid rgba(255, 103, 103, 0.14);
  color: #ffb6b6;
}

.pb-success {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(66, 239, 123, 0.09);
  border: 1px solid rgba(66, 239, 123, 0.16);
  color: var(--pb-primary);
}

.pb-data-list {
  display: grid;
  gap: 14px;
}

.pb-data-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pb-data-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pb-data-row span:first-child {
  color: var(--pb-text-muted);
}

.pb-table {
  width: 100%;
  border-collapse: collapse;
}

.pb-table th,
.pb-table td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pb-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pb-text-muted);
}

.pb-empty {
  padding: 26px;
  border-radius: 20px;
  border: 1px dashed rgba(66, 239, 123, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

.pb-footer {
  width: var(--pb-shell-width);
  margin: 0 auto;
  padding: 0 0 42px;
  color: var(--pb-text-muted);
}

.pb-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(75, 255, 142, 0.08);
}

.pb-reveal {
  animation: pb-rise 500ms ease both;
}

.pb-reveal:nth-child(2) {
  animation-delay: 80ms;
}

.pb-reveal:nth-child(3) {
  animation-delay: 160ms;
}

.pb-reveal:nth-child(4) {
  animation-delay: 240ms;
}

@keyframes pb-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .pb-hero,
  .pb-auth-shell,
  .pb-cta {
    grid-template-columns: 1fr;
  }

  .pb-floating-card {
    position: static;
    margin-top: 16px;
  }

  .pb-feature {
    grid-column: span 6;
  }

  .pb-metric-grid,
  .pb-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .paybridge-header__inner,
  .pb-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .paybridge-nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .pb-title {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .pb-hero__copy,
  .pb-hero__visual,
  .pb-card,
  .pb-form-panel,
  .pb-story-panel {
    padding: 28px;
  }

  .pb-feature {
    grid-column: span 12;
  }

  .pb-metric-grid,
  .pb-mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .paybridge-header__actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .paybridge-header__actions .pb-button {
    width: 100%;
  }

  .pb-actions .pb-button {
    width: 100%;
  }

  .pb-data-row {
    flex-direction: column;
  }
}
