/* ==========================================================================
   062 · RIVR DEFI (جدول السيولة) — 1:1 Airy Editorial Glassmorphism & Concave Cutout
   #F0F0F0 outer canvas · 48px rounded lakeside hero · SVG-filleted concave notch + editorial bands
   ========================================================================== */

:root {
  --rv-bg: #F0F0F0;
  --rv-navy: #1E325A;
  --rv-navy-soft: rgba(30, 50, 90, 0.85);
  --rv-slate: #4B5260;
  --rv-nav-ink: #2D2D2D;
  --rv-sans: 'IBM Plex Sans Arabic', 'Readex Pro', -apple-system, sans-serif;
  --rv-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--rv-bg);
  color: var(--rv-navy);
  font-family: var(--rv-sans);
  letter-spacing: 0;
}

body {
  background: var(--rv-bg);
  color: var(--rv-navy);
  font-family: var(--rv-sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

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

button, input {
  font-family: inherit;
  letter-spacing: 0;
}

/* ======================== HERO OUTER FRAME ======================== */
.rv-hero-frame {
  padding: 18px;
  min-height: 100dvh;
  display: flex;
}

.rv-hero-card {
  position: relative;
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  min-height: calc(100dvh - 36px);
  border-radius: 48px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #DCE2EA;
  isolation: isolate;
}

.rv-hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.rv-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  transform: scale(1.02);
}

#rv-ripple-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.rv-hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(244, 246, 250, 0.72) 0%, rgba(244, 246, 250, 0.34) 44%, rgba(235, 240, 246, 0.18) 100%);
  pointer-events: none;
}

/* ======================== TOP NAVBAR INSIDE HERO ======================== */
.rv-navbar {
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 10;
}

.rv-wordmark {
  font-size: 19px;
  font-weight: 600;
  color: var(--rv-navy);
  white-space: nowrap;
}

.rv-wordmark span {
  font-weight: 400;
  opacity: 0.65;
  margin-inline-start: 4px;
}

.rv-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  font-size: 13.5px;
  color: var(--rv-nav-ink);
  white-space: nowrap;
}

.rv-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 999px;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.rv-nav-links a:hover {
  opacity: 0.72;
  background: rgba(255, 255, 255, 0.35);
}

.rv-chevron {
  display: inline-block;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.rv-nav-links a:hover .rv-chevron {
  transform: translateX(-2px);
}

.rv-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 20px;
  border-radius: 999px;
  background: rgba(30, 50, 90, 0.86);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.22s ease, transform 0.2s ease;
}

.rv-nav-cta:hover {
  background: rgba(30, 50, 90, 1);
  transform: translateY(-1px);
}

.rv-cta-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* ======================== CENTER HERO HEADING STACK ======================== */
.rv-center-stack {
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 28px 140px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.rv-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 500;
  color: var(--rv-navy);
}

.rv-h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.7rem);
  font-weight: 500;
  line-height: 1.12;
  color: #3F4654;
  letter-spacing: 0;
}

.rv-subtitle {
  max-width: 580px;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: rgba(63, 70, 84, 0.88);
  line-height: 1.75;
}

/* ======================== BOTTOM-RIGHT (RTL START) FROSTED KPI CARD ======================== */
.rv-stat-hud {
  position: absolute;
  bottom: 34px;
  inset-inline-start: 34px;
  min-width: 215px;
  padding: 20px 22px;
  border-radius: 35px;
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 42px rgba(30, 50, 90, 0.1);
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rv-stat-val {
  font-size: 30px;
  font-weight: 600;
  color: var(--rv-navy);
  line-height: 1.1;
}

.rv-stat-lbl {
  font-size: 12px;
  color: rgba(30, 50, 90, 0.72);
  margin-bottom: 8px;
}

.rv-stat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px 7px 14px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--rv-navy);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.rv-stat-pill:hover {
  background: rgba(255, 255, 255, 0.9);
}

.rv-stat-pill-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(30, 50, 90, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* ======================== BOTTOM-LEFT (RTL END) CONCAVE CUTOUT ======================== */
.rv-cutout {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--rv-bg);
  border-top-right-radius: 54px;
  padding: 26px 46px 22px 24px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Concave SVG fillets carving seamlessly into the 48px rounded hero card */
.rv-fillet-top {
  position: absolute;
  top: -54px;
  left: 0;
  width: 54px;
  height: 54px;
  pointer-events: none;
}

.rv-fillet-right {
  position: absolute;
  bottom: 0;
  right: -54px;
  width: 54px;
  height: 54px;
  pointer-events: none;
}

.rv-cutout-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(30, 50, 90, 0.06);
  border: 1px solid rgba(30, 50, 90, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rv-navy);
  font-size: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rv-cutout:hover .rv-cutout-circle {
  background: var(--rv-navy);
  color: #FFFFFF;
  transform: scale(1.05);
}

.rv-cutout-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--rv-navy);
  line-height: 1.25;
}

.rv-cutout-sub {
  font-size: 13.5px;
  color: rgba(30, 50, 90, 0.65);
}

/* ======================== EDITORIAL SECTIONS (#ecosystem .. #governance) ======================== */
.rv-band {
  max-width: 860px;
  margin: 0 auto;
  padding: 78px 32px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.rv-band-kicker {
  font-family: var(--rv-mono);
  font-size: 11.5px;
  color: rgba(30, 50, 90, 0.55);
  margin-bottom: 10px;
  display: block;
}

.rv-band h2 {
  font-size: 28px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 14px;
}

.rv-band p {
  font-size: 16px;
  color: #475569;
  line-height: 1.85;
}

/* Interactive RFQ Slippage Router Box inside #economics */
.rv-sim-card {
  margin-top: 28px;
  padding: 26px;
  border-radius: 28px;
  background: #FFFFFF;
  border: 1px solid rgba(30, 50, 90, 0.1);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rv-sim-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rv-sim-modes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rv-mode-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(30, 50, 90, 0.15);
  background: #F8FAFC;
  color: var(--rv-navy);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

.rv-mode-btn.is-active {
  background: var(--rv-navy);
  color: #FFFFFF;
  border-color: var(--rv-navy);
}

.rv-slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rv-slider-row input[type="range"] {
  flex: 1;
  accent-color: var(--rv-navy);
}

.rv-sim-out {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #E2E8F0;
}

/* ======================== WHITE LEGAL BANDS (#privacy, #terms) ======================== */
.rv-white-band {
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  padding: 72px 36px;
}

.rv-white-inner {
  max-width: 860px;
  margin: 0 auto;
}

.rv-white-inner h2 {
  font-size: 23px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 12px;
}

.rv-white-inner p {
  font-size: 14.5px;
  color: #64748B;
  max-width: 680px;
  line-height: 1.85;
}

/* ======================== FOOTER ======================== */
.rv-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  padding: 32px 28px 42px;
  background: var(--rv-bg);
}

.rv-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.rv-copy {
  font-size: 12.5px;
  color: rgba(30, 50, 90, 0.56);
  text-align: center;
}

.rv-showcase-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid rgba(30, 50, 90, 0.1);
  font-size: 13px;
  color: var(--rv-navy);
  flex-wrap: wrap;
}

.rv-showcase-nav a:hover {
  opacity: 0.7;
}

@media (max-width: 920px) {
  .rv-nav-links .rv-hide-md {
    display: none;
  }
}

@media (max-width: 720px) {
  .rv-nav-links {
    display: none;
  }
  .rv-stat-hud {
    position: static;
    margin: 0 20px 16px;
  }
  .rv-cutout {
    position: static;
    border-radius: 28px;
    margin: 0 20px 20px;
  }
  .rv-fillet-top, .rv-fillet-right {
    display: none;
  }
}
