/* --------------------------------------------------------------- hero */

/* The hero is aligned with the Blocknet home hero: copy on the left, a
   rounded-square logo plate on the right, same type scale. */
.pivx-cockpit__hero {
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 17px 24px;
  align-items: center;
  max-width: none;
  margin: 0 0 17px;
  padding: 10px 0 0;
}

.pivx-cockpit__message { text-align: left; }

/* styles.css sets `body.info.pivx h1` — that outranks a plain class rule,
   so the hero rules are scoped to the page body as well. */
body.pivx-cockpit-page .pivx-cockpit__message h1 {
  font-size: clamp(2.75rem, 5vw, 4.65rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  white-space: nowrap;
  text-align: left;
}

body.pivx-cockpit-page .pivx-cockpit__message p {
  max-width: 920px;
  margin: 14px 0 0;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.52;
}

/* circle + orbit rings become the Blocknet-style tilted plate */
.pivx-cockpit__core {
  width: 104px;
  height: 104px;
  border-radius: 30px;
  border-color: rgba(185, 135, 255, 0.38);
  background: radial-gradient(circle, rgba(185, 135, 255, 0.2), rgba(8, 6, 13, 0.94) 68%);
  box-shadow: 0 0 45px rgba(185, 135, 255, 0.14);
  transform: rotate(-7deg);
}

.pivx-cockpit__core::before,
.pivx-cockpit__core::after { display: none; }

.pivx-cockpit__core img {
  width: 61px;
  height: 61px;
  transform: rotate(7deg);
}

@media (max-width: 900px) {
  .pivx-cockpit__hero { grid-template-columns: minmax(0, 1fr) 92px; gap: 16px; }
  .pivx-cockpit__core { width: 88px; height: 88px; border-radius: 26px; }
  .pivx-cockpit__core img { width: 52px; height: 52px; }
}

/* narrow screens: stack with the mark on top, like Blocknet does */
@media (max-width: 600px) {
  .pivx-cockpit__hero {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 4px 2px 16px;
    text-align: center;
  }
  .pivx-cockpit__core { grid-row: 1; width: 84px; height: 84px; border-radius: 24px; }
  .pivx-cockpit__core img { width: 48px; height: 48px; }
  .pivx-cockpit__message { grid-row: 2; text-align: center; }
  body.pivx-cockpit-page .pivx-cockpit__message h1 { font-size: 2.35rem; text-align: center; }
  body.pivx-cockpit-page .pivx-cockpit__message p { font-size: 0.94rem; line-height: 1.5; margin-top: 10px; }
}

/* -------------------------------------------------- status bar slogan */

/* "PIVX CONTROL DECK" is gone: the green eyebrow from the hero moved up
   into the status bar and keeps its green colour. */
.pivx-console__tag {
  color: var(--cockpit-green);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

/* ------------------------------------------------------- hero metrics */

.pivx-hero-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 15px 0 0;
  border-top: 1px solid rgba(185, 135, 255, 0.18);
}

.pivx-hero-metric {
  --metric-color: #bd84ff;
  --metric-rgb: 189, 132, 255;
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 84px;
  align-items: center;
  justify-content: center;
  padding: 12px 13px;
  overflow: hidden;
  border: 1px solid rgba(var(--metric-rgb), 0.25);
  border-radius: 13px;
  background:
    radial-gradient(circle at 10% 100%, rgba(var(--metric-rgb), 0.14), transparent 46%),
    linear-gradient(120deg, rgba(var(--metric-rgb), 0.06), rgba(7, 6, 12, 0.78));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 14px 28px rgba(0, 0, 0, 0.16);
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pivx-hero-metric:hover,
.pivx-hero-metric:focus-visible {
  border-color: rgba(var(--metric-rgb), 0.62);
  background:
    radial-gradient(circle at 10% 100%, rgba(var(--metric-rgb), 0.2), transparent 48%),
    linear-gradient(120deg, rgba(var(--metric-rgb), 0.1), rgba(7, 6, 12, 0.82));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 17px 34px rgba(0, 0, 0, 0.2), 0 0 24px rgba(var(--metric-rgb), 0.12);
  outline: none;
  transform: translateY(-2px);
}

.pivx-hero-metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: rgb(var(--metric-rgb));
  box-shadow: 0 0 15px rgb(var(--metric-rgb));
}

.pivx-hero-metric--staking { --metric-color: #61ef9d; --metric-rgb: 97, 239, 157; }
.pivx-hero-metric--masternode { --metric-color: #52d8ff; --metric-rgb: 82, 216, 255; }
.pivx-hero-metric--price { --metric-color: #ffc857; --metric-rgb: 255, 200, 87; }

.pivx-hero-metric small {
  display: block;
  color: #b6a9c9;
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.pivx-hero-metric strong {
  display: block;
  margin-top: 5px;
  color: rgb(var(--metric-rgb));
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.16rem, 1.8vw, 1.48rem);
  line-height: 1.05;
}

.pivx-hero-metric div > span:last-child {
  display: block;
  margin-top: 6px;
  color: #a99cbd;
  font-size: 0.68rem;
  line-height: 1.3;
}

.pivx-hero-metric__pair {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: clamp(1rem, 1.5vw, 1.24rem) !important;
}

.pivx-hero-metric__pair span:first-child { color: #ffe199; }
.pivx-hero-metric__pair span:last-child { color: #a8ffd1; }

.pivx-hero-metrics__source {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  margin: 1px 3px 0;
  color: #8f82a3;
  font-size: 0.66rem;
  line-height: 1.4;
  text-align: right;
}

.pivx-hero-metrics__source > span {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--cockpit-green);
  box-shadow: 0 0 10px rgba(97, 239, 157, 0.6);
}

.pivx-hero-metrics__source b { color: #b6a9c9; font-weight: 700; }

@media (max-width: 1000px) {
  .pivx-hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pivx-hero-metrics__source {
    flex-wrap: wrap;
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .pivx-hero-metrics { gap: 7px; }
  .pivx-hero-metric { min-height: 78px; padding: 11px 10px; }
  .pivx-hero-metric strong { font-size: 1rem; }
  .pivx-hero-metric div > span:last-child { font-size: 0.64rem; }
}

/* =========================================================================
   PIVX home — fact sheet + a proper size for the cockpit tile icons.
   Kept separate from Blocknet's sheet on purpose: the two pages share no
   styling file, and styles.css stays untouched.
   ========================================================================= */

/* One divider above the reasons heading, one above the "Learn more about
   PIVX" title. */
.pivx-reasons {
  --reason-color: #bd84ff;
  --reason-rgb: 189, 132, 255;
  position: relative;
  margin: 26px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(var(--reason-rgb), 0.18);
}

.pivx-reasons__head {
  margin-bottom: 14px;
  text-align: center;
}

/* styles.css paints a grey bottom border on every `body.info.pivx h2` and
   adds wide margins — that is the line that used to sit under the heading,
   and it outranks plain class rules. Both headings are reset here. */
body.pivx-cockpit-page .pivx-reasons__head h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: #f4f0ff;
  font-family: "Bahnschrift SemiCondensed", "Aptos Display", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.pivx-reasons__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pivx-reason {
  --card-color: var(--reason-color);
  --card-rgb: var(--reason-rgb);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 16px 5px 5px;
  overflow: hidden;
  border: 1px solid rgba(var(--card-rgb), 0.26);
  border-radius: 999px;
  background:
    radial-gradient(circle at 12% 0%, rgba(var(--card-rgb), 0.16), transparent 62%),
    linear-gradient(150deg, rgba(var(--card-rgb), 0.085), rgba(7, 6, 12, 0.94) 76%);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.pivx-reason:nth-child(3n + 2) { --card-color: #61ef9d; --card-rgb: 97, 239, 157; }
.pivx-reason:nth-child(3n + 3) { --card-color: #52d8ff; --card-rgb: 82, 216, 255; }

.pivx-reason:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--card-rgb), 0.72);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24), 0 0 18px rgba(var(--card-rgb), 0.2);
}

/* Automatic highlight — same rhythm as the Vector and Coinworld fact grids. */
.pivx-reason.is-auto-active {
  transform: translateY(-2px);
  border-color: rgba(var(--card-rgb), 0.72);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26), 0 0 26px rgba(var(--card-rgb), 0.3);
}

.pivx-reason svg {
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  padding: 6px;
  border: 1px solid rgba(var(--card-rgb), 0.34);
  border-radius: 50%;
  color: var(--card-color);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.18), transparent 40%),
    linear-gradient(145deg, rgba(var(--card-rgb), 0.24), rgba(var(--card-rgb), 0.07));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14), 0 0 12px rgba(var(--card-rgb), 0.28);
  transition: transform 0.22s ease, background 0.22s ease;
}

.pivx-reason:hover svg {
  transform: scale(1.06);
  background: rgba(var(--card-rgb), 0.24);
}

.pivx-reason.is-auto-active svg {
  transform: scale(1.06);
  background: rgba(var(--card-rgb), 0.24);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.16), 0 0 18px rgba(var(--card-rgb), 0.4);
}

.pivx-reason strong {
  color: #f2edff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

/* Title above the link cards — same reset as the reasons heading. The `h2`
   in the selector is needed: styles.css uses `body.info.pivx h2` (0,2,2).
   The divider above the link cards lives on this heading. */
body.pivx-cockpit-page h2.pivx-cockpit-more {
  margin: 26px 0 14px;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid rgba(189, 132, 255, 0.18);
  color: #f4f0ff;
  font-family: "Bahnschrift SemiCondensed", "Aptos Display", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
}

/* --------------------------------------------------- cockpit tile icons */

/* The glyph used to be 29px with 8px padding, so only 13px of drawing was
   left. Give it room to breathe and a stronger plate. */
.pivx-cockpit-tile__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 5px;
  padding: 10px;
  border-radius: 15px;
  stroke-width: 1.85;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.18), transparent 36%),
    color-mix(in srgb, var(--tile-color) 16%, rgba(7, 6, 12, 0.9));
  box-shadow:
    0 0 22px var(--tile-glow),
    inset 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 14px color-mix(in srgb, var(--tile-color) 10%, transparent);
  filter: drop-shadow(0 0 9px var(--tile-glow));
}

.pivx-cockpit-tile:hover .pivx-cockpit-tile__icon,
.pivx-cockpit-tile:focus-visible .pivx-cockpit-tile__icon {
  transform: translateY(-2px) scale(1.06);
  box-shadow:
    0 0 30px var(--tile-glow),
    inset 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 18px color-mix(in srgb, var(--tile-color) 15%, transparent);
}

@media (max-width: 720px) {
  body.pivx-cockpit-page .pivx-reasons { margin: 18px 0 0; padding-top: 13px; }
  .pivx-reasons__grid { gap: 6px; }
  .pivx-reason { padding: 4px 13px 4px 4px; gap: 8px; }
  .pivx-reason svg { width: 26px; height: 26px; flex: 0 0 26px; padding: 5px; }
  .pivx-reason strong { font-size: 0.76rem; }
  .pivx-cockpit-tile__icon { width: 40px; height: 40px; padding: 9px; stroke-width: 1.8; }
  body.pivx-cockpit-page h2.pivx-cockpit-more { margin: 18px 0 11px; padding-top: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .pivx-reason:hover,
  .pivx-reason:hover svg,
  .pivx-reason.is-auto-active,
  .pivx-reason.is-auto-active svg { transform: none; }
}
