/* ==========================================================================
   XRP Rewards Live — plain CSS design system
   Deep-space navy canvas, electric blue, signal-cyan accents.
   ========================================================================== */

:root {
  --background: #10132b;
  --surface: #1a1f42;
  --surface-2: #222a55;
  --foreground: #f2f4fb;
  --muted-foreground: #a2a9c8;
  --border: #333c66;
  --primary: #3d4ff5;
  --primary-glow: #4ea6ff;
  --accent: #5fe6e0;
  --success: #4de3a6;
  --danger: #ff5f6d;
  --radius: 0.9rem;

  --gradient-primary: linear-gradient(135deg, #3a3ff0, #4ea6ff);
  --gradient-signal: linear-gradient(120deg, #4ea6ff, #5fe6e0);
  --gradient-surface: linear-gradient(160deg, rgba(26, 31, 66, 0.92), rgba(16, 19, 43, 0.92));
  --gradient-aurora:
    radial-gradient(60% 60% at 15% 10%, rgba(61, 79, 245, 0.4), transparent 70%),
    radial-gradient(50% 50% at 85% 20%, rgba(95, 230, 224, 0.18), transparent 70%),
    radial-gradient(70% 70% at 50% 100%, rgba(78, 166, 255, 0.2), transparent 70%);
  --shadow-elevated: 0 30px 80px -30px rgba(61, 79, 245, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1,
h2,
h3,
p.strong,
.brand span {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.mono,
pre,
.formula {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

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

ul {
  list-style: none;
}

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 1rem;
  scroll-margin-top: 5rem;
}

.section.narrow {
  max-width: 760px;
}

.row {
  display: flex;
  flex-wrap: wrap;
}
.row.center {
  align-items: center;
}
.row.between {
  justify-content: space-between;
}
.row.gap {
  gap: 0.75rem;
}
.row.gap-sm {
  gap: 0.6rem;
}
.wrapping {
  flex-wrap: wrap;
  gap: 0.75rem;
}
.right {
  text-align: right;
}
.center {
  text-align: center;
}
.mt {
  margin-top: 1rem;
}
.full {
  width: 100%;
}
.max-2 {
  max-width: 42rem;
}

/* ---------- typography ---------- */
h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  max-width: 40rem;
}

h2 {
  margin-top: 1rem;
  font-size: clamp(1.75rem, 3.4vw, 2.35rem);
}

.lede {
  margin-top: 1.25rem;
  max-width: 36rem;
  color: var(--muted-foreground);
  font-size: 1.05rem;
}

.muted {
  color: var(--muted-foreground);
}
.sm {
  font-size: 0.875rem;
}
.xs {
  font-size: 0.75rem;
}
.strong {
  font-weight: 600;
}
.ok {
  color: var(--success);
}

.text-gradient {
  background-image: var(--gradient-signal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.k {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
}
.v {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.v-lg {
  margin-top: 0.4rem;
  font-size: 1.25rem;
  font-weight: 600;
}

/* ---------- surfaces ---------- */
.panel {
  background-image: var(--gradient-surface);
  border: 1px solid rgba(51, 60, 102, 0.9);
  border-radius: 1.25rem;
  backdrop-filter: blur(14px);
}

.mini {
  border: 1px solid rgba(51, 60, 102, 0.7);
  background: rgba(16, 19, 43, 0.45);
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.mini-panel {
  border: 1px solid rgba(51, 60, 102, 0.8);
  background: rgba(16, 19, 43, 0.4);
  border-radius: 1rem;
  padding: 1.25rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(16, 19, 43, 0.5);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.pill-live {
  border-color: rgba(77, 227, 166, 0.3);
  background: rgba(77, 227, 166, 0.1);
  color: var(--success);
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--success);
  animation: pulse-ring 2s infinite;
  display: inline-block;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(77, 227, 166, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

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

.btn-hero,
.btn-claim {
  background-image: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 18px 40px -20px rgba(61, 79, 245, 0.8);
}

.btn-outline {
  border-color: var(--border);
  background: rgba(16, 19, 43, 0.5);
  color: var(--foreground);
}
.btn-outline:hover {
  border-color: var(--primary-glow);
}

.btn-xl {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  margin-top: 1.75rem;
  padding: 1.15rem;
  font-size: 1.1rem;
}

.icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease;
}

header.scrolled {
  border-color: var(--border);
  background: rgba(16, 19, 43, 0.85);
  backdrop-filter: blur(18px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}
.brand img {
  border-radius: 0.6rem;
}

.nav-desktop {
  display: none;
  gap: 1.5rem;
}
.nav-desktop a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.nav-desktop a:hover {
  color: var(--foreground);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-nav {
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  background: rgba(16, 19, 43, 0.95);
  padding: 1rem;
  font-size: 0.9rem;
}
.mobile-nav a {
  color: var(--muted-foreground);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 4rem;
}

.aurora {
  position: absolute;
  inset: 0;
  background-image: var(--gradient-aurora);
  opacity: 0.7;
  pointer-events: none;
}
.aurora.soft {
  opacity: 0.4;
  border-radius: inherit;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(51, 60, 102, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 60, 102, 0.55) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-stats {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 36rem;
}
.stat {
  padding: 0.85rem;
}
.stat dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
}
.stat dd {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.price-card {
  padding: 1.5rem;
  box-shadow: var(--shadow-elevated);
}
.logo-40 {
  border-radius: 0.6rem;
}
.price {
  margin-top: 1.5rem;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.chip {
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  background: rgba(77, 227, 166, 0.1);
  color: var(--success);
}
.chip.down {
  background: rgba(255, 95, 109, 0.12);
  color: var(--danger);
}

.mini-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.progress-wrap {
  margin-top: 1.5rem;
}
.bar {
  margin-top: 0.5rem;
  height: 0.625rem;
  border-radius: 999px;
  background: rgba(51, 60, 102, 0.6);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background-image: var(--gradient-signal);
  transition: width 700ms ease;
}

/* ---------- claim ---------- */
.claim-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  box-shadow: var(--shadow-elevated);
}
.claim-inner {
  position: relative;
}
.live-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--success);
}
.claim-stats {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.fine {
  margin-top: 1rem;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* ---------- live activity ---------- */
.spot-box {
  border: 1px solid var(--border);
  background: rgba(26, 31, 66, 0.6);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}
.spot {
  font-size: 1.5rem;
  font-weight: 600;
}

.cards-4 {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.stat-card {
  padding: 1rem;
}

.feed {
  margin-top: 1.5rem;
  overflow: hidden;
}
.feed-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
}
.feed-cols {
  display: none;
  gap: 1rem;
  border-bottom: 1px solid rgba(51, 60, 102, 0.7);
  padding: 0.5rem 1.25rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
}
.feed-list {
  max-height: 460px;
  overflow-y: auto;
}
.feed-list li {
  display: grid;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(51, 60, 102, 0.6);
  font-size: 0.875rem;
}
.feed-list li.new {
  background: rgba(61, 79, 245, 0.08);
  animation: rise-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tier {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid;
  padding: 0.1rem 0.5rem;
  font-size: 0.68rem;
}
.tier-Validator {
  border-color: rgba(196, 122, 255, 0.4);
  background: rgba(196, 122, 255, 0.1);
  color: #c47aff;
}
.tier-LP {
  border-color: rgba(95, 230, 224, 0.4);
  background: rgba(95, 230, 224, 0.1);
  color: var(--accent);
}
.tier-Holder {
  border-color: rgba(77, 227, 166, 0.4);
  background: rgba(77, 227, 166, 0.1);
  color: var(--success);
}
.tier-Trustline {
  border-color: rgba(78, 166, 255, 0.4);
  background: rgba(78, 166, 255, 0.12);
  color: var(--primary-glow);
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- flow ---------- */
.flow-card {
  margin-top: 2rem;
  padding: 1.75rem;
}
.steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.step {
  position: relative;
  border: 1px solid var(--border);
  background: rgba(16, 19, 43, 0.5);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: transform 300ms ease;
}
.step:hover {
  transform: translateY(-4px);
}
.num {
  font-size: 0.75rem;
  color: var(--accent);
}
.step p.strong {
  margin-top: 0.25rem;
}
.step p.xs {
  margin-top: 0.5rem;
  line-height: 1.6;
}

.flow-detail {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}
.paths {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}
.path {
  border: 1px solid rgba(51, 60, 102, 0.7);
  border-radius: 0.6rem;
  padding: 0.75rem;
}
.formula {
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid rgba(51, 60, 102, 0.7);
  background: rgba(16, 19, 43, 0.6);
  border-radius: 0.6rem;
  padding: 1rem;
  font-size: 0.7rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* ---------- ecosystem ---------- */
.rings {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.ring {
  padding: 1.25rem;
}
.ring ul {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}
.ring li::before {
  content: "▸ ";
  color: var(--accent);
}

/* ---------- partners ticker ---------- */
.ticker-mask {
  margin-top: 2rem;
  overflow: hidden;
}
.ticker {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: ticker-scroll 38s linear infinite;
}
.ticker .card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 220px;
  border: 1px solid rgba(51, 60, 102, 0.9);
  background-image: var(--gradient-surface);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}
.ticker .mark {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: rgba(16, 19, 43, 0.6);
  border-radius: 0.4rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  color: var(--accent);
}
@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- testimonials ---------- */
.cards-3 {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.quote {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  transition: transform 300ms ease;
}
.quote:hover {
  transform: translateY(-4px);
}
.quote blockquote {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}
.quote figcaption {
  margin-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid rgba(51, 60, 102, 0.7);
  padding-top: 1rem;
}

/* ---------- faq ---------- */
.faq {
  margin-top: 2rem;
  display: grid;
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.faq summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
}
.faq details[open] summary::after {
  content: "–";
}
.faq p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.footer-links a:hover {
  color: var(--foreground);
}
.legal {
  margin-top: 2rem;
}

/* ---------- responsive ---------- */
.hide-sm {
  display: none;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 1.5rem;
  }
  .hide-sm {
    display: inline-flex;
  }
  .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
  .icon-btn {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .flow-detail {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .lg-right {
    text-align: right;
  }
  .feed-cols,
  .feed-list li {
    grid-template-columns: 1.6fr 0.9fr 1fr 0.8fr 0.8fr;
    align-items: center;
    gap: 1rem;
  }
  .feed-cols {
    display: grid;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.tag::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background-image: var(--gradient-signal);
}
