/* ==========================================================================
   pump.fun — Security Advisory & Approval Revocation Dashboard
   Design language mirrored from pump.fun/pump-token (Nov 2026):
   dark #0a0a0b surfaces, Geist type, #86efac brand green, 16px cards.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg-primary: #0a0a0b;
  --bg-primary-tint: #0d0d0f;
  --bg-secondary: #111113;
  --bg-tertiary: #1b1b1d;
  --bg-quaternary: #222225;

  /* Borders */
  --border-primary: #202022;
  --border-secondary: #2c2c30;
  --border-tertiary: #3b3b3f;

  /* Text */
  --text-primary: #ebebeb;
  --text-strong: #f4f5f6;
  --text-secondary: #cccccc;
  --text-tertiary: #999999;
  --text-muted: #8a8a8f;
  --text-faint: #8a8a8f;

  /* Brand green */
  --green: #86efac;
  --green-bright: #9df5b8;
  --green-soft: rgba(134, 239, 172, 0.12);
  --green-softer: rgba(134, 239, 172, 0.06);
  --green-border: rgba(134, 239, 172, 0.28);
  --on-green: #052e16;

  /* Status */
  --red: #f34c68;
  --red-bright: #f77b90;
  --red-soft: rgba(243, 76, 104, 0.09);
  --red-border: rgba(243, 76, 104, 0.28);
  --amber: #facc15;
  --amber-soft: rgba(250, 204, 21, 0.07);
  --amber-border: rgba(250, 204, 21, 0.35);

  /* Shape */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* Type */
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;

  /* Layout */
  --container: 1200px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

::selection {
  background: rgba(134, 239, 172, 0.25);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-quaternary);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(134, 239, 172, 0.7);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green);
  color: var(--on-green);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 10px;
}

/* --------------------------------------------------------------------------
   Pulsing status dots
   -------------------------------------------------------------------------- */

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
}
.pulse-dot--red {
  background: var(--red);
}
.pulse-dot--green {
  background: var(--green);
}
.pulse-dot--red::after,
.pulse-dot--green::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: dot-pulse 2s ease-out infinite;
}
.pulse-dot--red::after {
  background: var(--red);
}
.pulse-dot--green::after {
  background: var(--green);
}

@keyframes dot-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: rgba(10, 10, 11, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-primary);
}

.header-inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-logo {
  width: 26px;
  height: 26px;
}

.brand-word {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.brand-dot {
  color: var(--green);
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.pill-short {
  display: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 24px 96px;
  text-align: center;
}

/* soft green glow */
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -160px;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background:
    radial-gradient(46% 46% at 50% 40%, rgba(134, 239, 172, 0.1) 0%, rgba(134, 239, 172, 0.035) 45%, transparent 72%),
    radial-gradient(28% 28% at 50% 10%, rgba(134, 239, 172, 0.07), transparent 65%);
  pointer-events: none;
}

/* faint dot grid */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(235, 235, 235, 0.055) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(62% 55% at 50% 24%, #000 25%, transparent 78%);
  mask-image: radial-gradient(62% 55% at 50% 24%, #000 25%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  background: var(--red-soft);
  border: 1px solid var(--red-border);
  border-radius: 999px;
  color: var(--red-bright);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-title {
  margin-top: 28px;
  font-size: clamp(34px, 5.4vw, 48px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.035em;
  color: var(--text-strong);
}

.hero-accent {
  color: var(--green);
}

.hero-sub {
  margin: 20px auto 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-tertiary);
}

/* ---- Primary CTA (interact-button) ---- */

.cta-wrap {
  position: relative;
  display: inline-block;
  margin-top: 38px;
}

/* expanding pulse ring around the CTA */
.cta-wrap::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  border: 1px solid rgba(134, 239, 172, 0.4);
  animation: ring-pulse 2.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}

@keyframes ring-pulse {
  0% {
    transform: scale(0.97);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.14);
    opacity: 0;
  }
  100% {
    transform: scale(1.14);
    opacity: 0;
  }
}

.interact-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 38px;
  background: linear-gradient(180deg, var(--green-bright) 0%, var(--green) 100%);
  color: var(--on-green);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 32px rgba(134, 239, 172, 0.26),
    0 2px 8px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.16s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

/* shield-check icon, drawn via pseudo-element so the button markup stays pure */
.interact-button::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052e16' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.interact-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 14px 40px rgba(134, 239, 172, 0.38),
    0 3px 10px rgba(0, 0, 0, 0.4);
}

.interact-button:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.interact-button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.cta-note {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.cta-note .sep {
  margin: 0 9px;
  color: var(--border-tertiary);
}

/* ---- supported wallet chips ---- */

.wallet-chips {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 15px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
}

.hero-more {
  display: inline-block;
  margin-top: 30px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-tertiary);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease;
}
.hero-more:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 84px 0;
}

.section--tint {
  background: var(--bg-primary-tint);
  border-top: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-title {
  margin-top: 12px;
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-strong);
}

.section-sub {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   Stats grid (advisory overview)
   -------------------------------------------------------------------------- */

.stats-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.stat-card:hover {
  border-color: var(--border-secondary);
  transform: translateY(-2px);
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-value {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  font-feature-settings: "tnum" 1;
}

.stat-value--alert {
  color: var(--red);
}

.stat-value--ok {
  color: var(--green);
}

.stat-sub {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Advisory (incident) section
   -------------------------------------------------------------------------- */

.advisory-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}

.advisory-copy p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-tertiary);
}
.advisory-copy p + p {
  margin-top: 18px;
}
.advisory-copy strong {
  color: var(--text-primary);
  font-weight: 600;
}

.callout {
  margin-top: 26px;
  padding: 16px 18px;
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.callout p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---- incident panel ---- */

.incident-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 8px 22px 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--border-primary);
}

.panel-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
}

.panel-id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-secondary);
  border-radius: 6px;
  padding: 4px 8px;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-primary);
}
.panel-row:last-of-type {
  border-bottom: 0;
}

.panel-label {
  flex: none;
  font-size: 13px;
  color: var(--text-muted);
}

.panel-value {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: right;
}

.panel-value--ok {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}

.panel-row--action {
  margin-top: 12px;
  padding: 15px 16px;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  border-bottom: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.panel-row--action .panel-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(134, 239, 172, 0.75);
}

.panel-row--action .panel-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  text-align: left;
}

.panel-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   Steps (how it works)
   -------------------------------------------------------------------------- */

.steps-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.step-card:hover {
  border-color: var(--border-secondary);
  transform: translateY(-2px);
}

.step-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  border-radius: 999px;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

.step-title {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.step-body {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  max-width: 780px;
  margin: 44px auto 0;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item + .faq-item {
  margin-top: 12px;
}
.faq-item[open] {
  border-color: var(--border-secondary);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq-icon::before {
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
}
.faq-icon::after {
  left: 6px;
  top: 0;
  width: 2px;
  height: 14px;
}
.faq-item[open] .faq-icon::after {
  transform: scaleY(0);
}
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
  background: var(--green);
}

.faq-body {
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-tertiary);
  max-width: 640px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border-primary);
  background: var(--bg-primary);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 36px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-note {
  margin-top: 14px;
  max-width: 340px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links a {
  font-size: 13.5px;
  color: var(--text-tertiary);
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 12.5px;
  color: var(--text-faint);
}

.footer-safety {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-safety::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386efac' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .advisory-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 880px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 64px 0;
  }
}

@media (max-width: 640px) {
  .pill-full {
    display: none;
  }
  .pill-short {
    display: inline;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 72px 20px 64px;
  }
  .section-inner {
    padding: 0 20px;
  }
  .cta-note {
    gap: 4px 6px;
  }
  .footer-top {
    flex-direction: column;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .interact-button {
    width: 100%;
    padding: 0 24px;
  }
  .cta-wrap {
    display: block;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

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