/* =====================================================================
   Ranking Masters — Landing Page Section System
   Brand: Premium · zelfverzekerd · data-gedreven · scherp · direct
   Source of truth: MASTERFILE §1.2, §4.2 Tone of Voice
   Used by: landing-sections/01..11
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Ubuntu:wght@300;400;500;700&display=swap');

:root {
  /* Brand colors — styleguide compliant */
  --rm-bg-deep: #000513;
  --rm-bg-base: #000C31;
  --rm-bg-elev: #0D1D50;
  --rm-bg-card: #0D1D50;
  --rm-bg-card-2: #08288C;
  --rm-line: rgba(255,255,255,0.08);
  --rm-line-strong: rgba(255,255,255,0.16);

  /* Text */
  --rm-text: #F4F6FB;
  --rm-text-muted: rgba(244,246,251,0.66);
  --rm-text-dim: rgba(244,246,251,0.42);

  /* Accents */
  --rm-orange: #FF7A00;
  --rm-orange-soft: #FFB061;
  --rm-green: #6ACC50;
  --rm-mint: #6ACC50;
  --rm-yellow: #FFD400;
  --rm-blue: #4D6CCD;
  --rm-red: #ef4444;

  /* Layout tokens */
  --rm-radius-sm: 10px;
  --rm-radius: 16px;
  --rm-radius-lg: 22px;
  --rm-shadow-card: 0 30px 60px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
  --rm-shadow-cta: 0 18px 40px -12px rgba(255,122,0,0.45), 0 0 0 1px rgba(255,255,255,0.08) inset;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  background: var(--rm-bg-deep);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--rm-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------------- Section shell ---------------- */
.rm-section {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, var(--rm-bg-base) 0%, #060A18 100%);
  color: var(--rm-text);
  padding: 120px 0;
  overflow: hidden;
  isolation: isolate;
}
.rm-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 90%);
  pointer-events: none;
}
.rm-section .glow-tr,
.rm-section .glow-bl {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.rm-section .glow-tr {
  width: 720px; height: 720px;
  top: -220px; right: -220px;
  background: radial-gradient(circle, rgba(77,108,205,0.18) 0%, transparent 70%);
}
.rm-section .glow-bl {
  width: 540px; height: 540px;
  bottom: -200px; left: -180px;
  background: radial-gradient(circle, rgba(106,204,80,0.08) 0%, transparent 70%);
}

.rm-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ---------------- Eyebrow / badge ---------------- */
.rm-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--rm-line-strong);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 12px; font-weight: 700; letter-spacing: 2.4px;
  color: #D4D8E0; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.rm-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--rm-green);
  box-shadow: 0 0 10px rgba(106,204,80,0.6);
  animation: rmDot 2.2s ease-in-out infinite;
}
.rm-eyebrow.is-orange .dot { background: #9CB4FF; box-shadow: 0 0 10px rgba(156,180,255,0.6); }

/* ---------------- Headline + lead ---------------- */
.rm-h1 {
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -2px;
  color: var(--rm-text);
  margin-top: 28px;
  max-width: 980px;
}
.rm-h1 .accent {
  position: relative;
  display: inline-block;
  color: var(--rm-text);
}
.rm-h1 .accent {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
}
.rm-h1 .punchout { color: var(--rm-text); font-family: 'Playfair Display', Georgia, serif; font-style: italic; }
.rm-lead {
  margin-top: 24px;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--rm-text-muted);
  max-width: 720px;
}
.rm-lead b { color: var(--rm-text); font-weight: 700; }

.rm-h2 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--rm-text);
}
.rm-h3 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--rm-text);
}

/* ---------------- Layout helpers ---------------- */
.rm-grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.rm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rm-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rm-stack-l { display: flex; flex-direction: column; gap: 24px; }
.rm-stack-m { display: flex; flex-direction: column; gap: 16px; }
.rm-stack-s { display: flex; flex-direction: column; gap: 8px; }
.rm-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------------- Card ---------------- */
.rm-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius);
  padding: 32px;
  box-shadow: var(--rm-shadow-card);
  backdrop-filter: blur(8px);
}
.rm-card .num-eyebrow {
  font-family: 'Ubuntu', sans-serif;
  font-size: 12px; letter-spacing: 1.4px;
  color: var(--rm-text-dim);
  text-transform: uppercase;
}
.rm-card-orange {
  border-color: rgba(156,180,255,0.32);
  background: linear-gradient(180deg, rgba(156,180,255,0.10) 0%, rgba(156,180,255,0.03) 100%);
}
.rm-card-green {
  border-color: rgba(106,204,80,0.28);
  background: linear-gradient(180deg, rgba(106,204,80,0.08) 0%, rgba(106,204,80,0.02) 100%);
}

/* ---------------- Stat blocks ---------------- */
.rm-stat {
  display: flex; flex-direction: column; gap: 8px;
  padding: 28px;
  border-left: 2px solid var(--rm-line-strong);
}
.rm-stat .num {
  font-family: 'Ubuntu', sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700; line-height: 1;
  letter-spacing: -1px;
  color: var(--rm-green);
}
.rm-stat .num.orange { color: var(--rm-green); }
.rm-stat .num.green { color: var(--rm-green); }
.rm-stat .num.mint { color: var(--rm-green); }
.rm-stat .lbl {
  font-size: 14px; color: var(--rm-text-muted);
  line-height: 1.4;
}

/* ---------------- Pills ---------------- */
.rm-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--rm-line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 600;
  color: var(--rm-text);
}
.rm-pill .pdot { width: 6px; height: 6px; border-radius: 50%; }
.rm-pill .pdot.green { background: var(--rm-green); box-shadow: 0 0 6px rgba(106,204,80,0.55); }
.rm-pill .pdot.orange { background: #9CB4FF; box-shadow: 0 0 6px rgba(156,180,255,0.55); }
.rm-pill .pdot.white { background: #fff; }
.rm-pill.mono { font-family: 'Ubuntu', sans-serif; font-weight: 700; }

/* ---------------- CTA bar ---------------- */
.rm-cta-bar {
  margin-top: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(8,40,140,0.18) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(156,180,255,0.20);
  border-radius: var(--rm-radius);
  flex-wrap: wrap;
}
.rm-cta-bar .cta-text {
  font-size: 18px; font-weight: 600; color: var(--rm-text);
  line-height: 1.4;
}
.rm-cta-bar .cta-text small {
  display: block; font-size: 13px; color: var(--rm-text-muted); font-weight: 400;
  margin-top: 4px;
}
.rm-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(79deg, #FF8555 0%, #D04813 100%);
  color: #fff;
  font-size: 16px; font-weight: 800;
  padding: 16px 26px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: -0.2px;
  box-shadow: var(--rm-shadow-cta);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(208,72,19,0.4);
}
.rm-btn .arrow { font-size: 18px; }
.rm-btn-ghost {
  background: transparent;
  color: var(--rm-text);
  border: 1px solid var(--rm-line-strong);
  box-shadow: none;
}
.rm-btn-ghost:hover { background: rgba(255,255,255,0.04); }

/* ---------------- Brand row ---------------- */
.rm-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--rm-text-dim);
  letter-spacing: 2px; text-transform: uppercase;
}
.rm-brand .logo {
  font-size: 15px; font-weight: 800; color: var(--rm-text);
  letter-spacing: 0;
  text-transform: none;
}
.rm-brand .logo b { color: var(--rm-text); }

/* ---------------- Misc ---------------- */
.rm-divider {
  height: 1px; background: var(--rm-line);
  margin: 56px 0;
}
.rm-num-mono {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  color: var(--rm-text);
}

/* ---------------- Animations ---------------- */
.rm-anim { opacity: 0; transform: translateY(14px); animation: rmFadeUp 800ms cubic-bezier(0.16,1,0.3,1) forwards; }
.rm-anim.d1 { animation-delay: 120ms; }
.rm-anim.d2 { animation-delay: 240ms; }
.rm-anim.d3 { animation-delay: 360ms; }
.rm-anim.d4 { animation-delay: 480ms; }
.rm-anim.d5 { animation-delay: 600ms; }

@keyframes rmFadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes rmDot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(106,204,80,0.5); }
  50% { transform: scale(1.3); box-shadow: 0 0 14px rgba(106,204,80,0.85); }
}

@media (prefers-reduced-motion: reduce) {
  .rm-anim { opacity: 1; transform: none; animation: none; }
}

@media (max-width: 920px) {
  .rm-section { padding: 80px 0; }
  .rm-container { padding: 0 24px; }
  .rm-grid-2, .rm-grid-3, .rm-grid-4 { grid-template-columns: 1fr; }
  .rm-cta-bar { flex-direction: column; align-items: stretch; text-align: left; }
  .rm-cta-bar .rm-btn { justify-content: center; }
}
