/* =====================================================================
   Carrier Index – 2026 redesign layer
   Loaded AFTER carrierindex.css. Re-themes the existing Bootstrap-based
   markup (deeper navy gradients, glass cards, Space Grotesk headings)
   and styles the interactive sections (tabs, steps, search, ROI, FAQ…).
   ===================================================================== */

:root {
  --rd-bg:        #100a3e;
  --rd-bg-deep:   #0d0834;
  --rd-bg-footer: #0b0730;
  --rd-bg-mid:    #1b1370;
  --rd-bg-light:  #241a8f;
  --rd-violet:    #5b4bff;
  --rd-violet-2:  #7a6bff;
  --rd-orange:    #ff6b35;
  --rd-orange-2:  #ff8a5c;
  --rd-peach:     #ffb094;
  --rd-green:     #7ce0b0;
  --rd-amber:     #ffc46b;
  --rd-red:       #ff8a8a;
  --rd-line:      rgba(255, 255, 255, .14);
  --rd-glass:     rgba(255, 255, 255, .04);
  --rd-heading:   "Space Grotesk", "DM Sans", system-ui, sans-serif;
  --rd-mono:      ui-monospace, SFMono-Regular, Menlo, monospace;
  --rd-ease:      cubic-bezier(.2, .7, .3, 1);

  /* Re-point the legacy variables so every existing block follows the theme */
  --ci-primary: var(--rd-bg);
  --ci-subtle:  var(--rd-bg-mid);
}

html, body { background-color: var(--rd-bg); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
::selection { background: var(--rd-orange); color: #140d4e; }

/* ---------- Section backgrounds (Bootstrap utility overrides) -------- */
.bg-primary    { background-color: var(--rd-bg) !important; }
.ci-bg-subtle  { background-color: var(--rd-bg-mid) !important; }
.bg-secondary  { background-color: var(--rd-bg-light) !important; }
.bg-dark       { background-color: var(--rd-bg-deep) !important; }
.bg-accent     { background-color: var(--rd-orange) !important; }
.ci-bg-gradient {
  background: linear-gradient(180deg, var(--rd-bg), var(--rd-bg-mid) 40%, var(--rd-bg-light) 100%) !important;
}
.text-accent   { color: var(--rd-orange) !important; }
.border-accent { border-color: var(--rd-orange) !important; }

/* ---------- Typography ---------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4,
.navbar-brand span, .brand-name {
  font-family: var(--rd-heading);
  letter-spacing: -.025em;
}
h1, .ci-hero-title { letter-spacing: -.035em; }

/* Shared section header: eyebrow + heading + intro */
.rd-head { max-width: 680px; margin-bottom: 2.75rem; }
.rd-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.rd-eyebrow {
  font-size: .8125rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rd-orange-2);
  margin: 0;
}
.rd-title {
  font-family: var(--rd-heading);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  color: #fff;
  margin: .85rem 0 0;
}
.rd-lede {
  color: rgba(255, 255, 255, .74);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 1rem 0 0;
}
.rd-section { padding: 6.5rem 0; position: relative; }
@media (max-width: 767.98px) { .rd-section { padding: 4.25rem 0; } }

/* ---------- Buttons -------------------------------------------------- */
.btn { border-radius: .65rem; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.btn-accent {
  background-color: var(--rd-orange);
  border-color: var(--rd-orange);
  color: #fff;
  box-shadow: 0 .6rem 1.6rem rgba(255, 107, 53, .3);
}
.btn-accent:hover, .btn-accent:focus {
  background-color: var(--rd-orange);
  border-color: var(--rd-orange);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 .9rem 2rem rgba(255, 107, 53, .45);
}
.btn-secondary {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline-light:hover { transform: translateY(-2px); }
.btn:focus-visible, .rd-pill:focus-visible, .rd-tab:focus-visible, .rd-faq-q:focus-visible,
a:focus-visible, input:focus-visible {
  outline: 2px solid var(--rd-peach);
  outline-offset: 2px;
}

/* ---------- Navbar --------------------------------------------------- */
.ci-navbar { border-bottom: 1px solid transparent; transition: background-color .35s ease, backdrop-filter .35s ease, border-color .35s ease; }
.ci-navbar--top { background-color: transparent; }
.ci-navbar--scrolled {
  background-color: rgba(13, 8, 52, .86);
  border-bottom-color: rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.ci-navbar .navbar-brand span { font-family: var(--rd-heading); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.ci-navbar .nav-link { font-size: .92rem; color: rgba(255, 255, 255, .82); }
.ci-navbar .nav-link:hover, .ci-navbar .nav-link:focus { color: var(--rd-orange-2); }
.ci-navbar .nav-link.active { color: var(--rd-orange-2) !important; font-weight: 600; }
.ci-navbar .btn-accent { font-size: .9rem; font-weight: 600; padding-top: .6rem; padding-bottom: .6rem; border-radius: .5rem; }
@media (max-width: 991.98px) {
  .ci-navbar .navbar-collapse { padding: 1rem 0 .5rem; }
}

/* ---------- Scroll reveal ------------------------------------------- */
.rv-on [data-rv] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--rd-ease), transform .7s var(--rd-ease);
  transition-delay: var(--rv-delay, 0ms);
}
.rv-on [data-rv].rv-in { opacity: 1; transform: none; }

/* ---------- Keyframes ------------------------------------------------ */
@keyframes rdFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes rdPulse { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: .9; transform: scale(1.06); } }
@keyframes rdDash  { to { background-position: -1200px 0; } }
@keyframes rdTruck { 0% { left: 12%; } 100% { left: 82%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rv-on [data-rv] { opacity: 1; transform: none; }
}

/* ---------- Hero ----------------------------------------------------- */
.ci-hero {
  min-height: 100vh;
  padding: 150px 0 90px;
  background: radial-gradient(120% 90% at 78% 8%, #3a2ce0 0%, #241a8f 42%, #150e56 72%, var(--rd-bg) 100%);
}
.ci-hero::before {            /* subtle grid */
  content: "";
  position: absolute; inset: 0; z-index: 1; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 60% at 60% 40%, #000, transparent);
          mask-image: radial-gradient(70% 60% at 60% 40%, #000, transparent);
}
.ci-hero .ci-overlay {        /* image overlay becomes a navy→transparent wash */
  background: linear-gradient(180deg, rgba(16, 10, 62, .55), rgba(16, 10, 62, .9));
  opacity: 1;
}
.ci-hero .hero-bg { opacity: .35; }
.rd-orb { position: absolute; border-radius: 50%; pointer-events: none; z-index: 1; }
.rd-orb--orange {
  right: -140px; top: 80px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(255, 107, 53, .30), transparent 62%);
  filter: blur(20px);
  animation: rdPulse 9s ease-in-out infinite;
}
.rd-orb--violet {
  left: -180px; bottom: -160px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(91, 75, 255, .45), transparent 65%);
  filter: blur(24px);
}
.ci-hero .hero-content { width: 100%; }
.ci-hero-title {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  line-height: 1.04;
  font-weight: 700;
}
.ci-hero .ci-hero-inner { max-width: 640px; }
.rd-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  border: 1px solid rgba(255, 107, 53, .45);
  background: rgba(255, 107, 53, .1);
  color: var(--rd-peach);
  padding: .45rem .9rem;
  border-radius: 99px;
  font-size: .8125rem;
}
.rd-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rd-orange); display: inline-block; animation: rdPulse 2s ease-in-out infinite; }
.rd-dot--green { background: var(--rd-green); width: 6px; height: 6px; animation-duration: 1.8s; }
.rd-highlights { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--rd-line); width: 100%; }
.rd-highlights strong { display: block; font-family: var(--rd-heading); font-size: 1.6rem; font-weight: 700; }
.rd-highlights span { font-size: .8125rem; color: rgba(255, 255, 255, .6); }

/* Live-load illustration */
.rd-live {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 22px;
  box-shadow: 0 40px 90px rgba(8, 4, 40, .6);
  animation: rdFloat 7s ease-in-out infinite;
  color: #fff;
}
.rd-live-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.1rem; }
.rd-live-title { font-family: var(--rd-heading); font-weight: 600; font-size: .95rem; }
.rd-status { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--rd-green); background: rgba(124, 224, 176, .12); padding: .3rem .65rem; border-radius: 99px; white-space: nowrap; }
.rd-map {
  position: relative; overflow: hidden; height: 150px; border-radius: 12px;
  border: 1px solid var(--rd-line);
  background-color: rgba(16, 10, 62, .55);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 10px, transparent 10px 20px);
}
.rd-road {
  position: absolute; left: 8%; right: 8%; top: 58%; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0 12px, transparent 12px 26px);
  background-size: 1200px 2px;
  animation: rdDash 14s linear infinite;
}
.rd-truck {
  position: absolute; top: calc(58% - 15px); left: 12%; width: 30px; height: 30px; border-radius: 8px;
  background: var(--rd-orange);
  box-shadow: 0 0 26px rgba(255, 107, 53, .75);
  animation: rdTruck 11s linear infinite;
}
.rd-map-label { position: absolute; left: 12px; bottom: 10px; font-family: var(--rd-mono); font-size: .6875rem; color: rgba(255, 255, 255, .45); letter-spacing: .08em; }
.rd-live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; }
.rd-mini { border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; padding: .75rem; }
.rd-mini small { display: block; font-size: .7rem; letter-spacing: .06em; color: rgba(255, 255, 255, .55); text-transform: uppercase; }
.rd-mini b { display: block; font-size: .9rem; margin-top: .3rem; }
.rd-mini em { display: block; font-style: normal; font-size: .75rem; color: var(--rd-green); margin-top: .25rem; }
.rd-doc {
  margin-top: .9rem; border: 1px dashed rgba(255, 107, 53, .5); border-radius: 10px; padding: .75rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: rgba(255, 107, 53, .07); font-size: .85rem;
}
.rd-doc code { font-family: var(--rd-mono); font-size: .72rem; color: var(--rd-peach); background: none; white-space: nowrap; }
.rd-sample { margin: .85rem 0 0; font-size: .7rem; color: rgba(255, 255, 255, .4); text-align: center; }

/* ---------- Existing blocks: Solutions cards ------------------------- */
.ci-solution-card {
  border: 1px solid var(--rd-line);
  background: linear-gradient(160deg, rgba(58, 44, 224, .22), rgba(255, 255, 255, .03));
  transition: transform .3s ease, border-color .3s ease;
}
.ci-solution-card:hover { transform: translateY(-6px); border-color: rgba(255, 107, 53, .65); }
.ci-solution-card .icon-wrap { border: 1px solid var(--rd-orange); border-radius: 14px; width: 64px; height: 64px; }
.ci-solution-card .icon-wrap i { font-size: 1.6rem; color: var(--rd-orange-2); }
.ci-solution-card p { color: rgba(255, 255, 255, .68); line-height: 1.6; }

/* ---------- Existing blocks: Features / images ----------------------- */
.ci-feature-img { border: 1px solid var(--rd-line); border-radius: 1.1rem; box-shadow: 0 30px 70px rgba(8, 4, 40, .5); }
.ci-category-card, .rounded-4.border-accent { border-width: 1px !important; border-color: var(--rd-line) !important; transition: transform .3s ease, border-color .3s ease; }
a:hover > .rounded-4.border-accent { transform: translateY(-4px); border-color: rgba(255, 107, 53, .65) !important; }
.eclipse { background: radial-gradient(circle, rgba(91, 75, 255, .22) 0%, rgba(0, 0, 0, 0) 40%); }

/* ---------- Stats ---------------------------------------------------- */
.rd-stats { border-top: 1px solid rgba(255, 255, 255, .07); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.rd-stat-num {
  font-family: var(--rd-heading);
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  letter-spacing: -.03em;
  color: var(--rd-orange);
  line-height: 1.1;
}
.rd-stat-label { color: rgba(255, 255, 255, .66); font-size: .9rem; margin-top: .4rem; }

/* ---------- Shared glass card ---------------------------------------- */
.rd-card {
  border: 1px solid var(--rd-line);
  border-radius: 18px;
  background: var(--rd-glass);
  padding: 1.75rem;
}
.rd-card--tint { background: linear-gradient(160deg, rgba(58, 44, 224, .28), rgba(255, 255, 255, .03)); padding: 2rem; }
.rd-card--dark { background: rgba(13, 8, 52, .5); padding: 2rem; }
.rd-diamond {
  flex: none; margin-top: .45rem; width: 8px; height: 8px; border-radius: 2px;
  background: var(--rd-orange); transform: rotate(45deg); display: block;
}
.rd-points { display: grid; gap: .75rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.rd-points li { display: flex; gap: .75rem; align-items: flex-start; }
.rd-points strong { display: block; font-size: .97rem; }
.rd-points span.rd-sub { display: block; color: rgba(255, 255, 255, .66); font-size: .9rem; line-height: 1.55; margin-top: .15rem; }

/* ---------- Tabs / pills / steps buttons ----------------------------- */
.rd-tabs { display: flex; flex-wrap: wrap; gap: .6rem; }
.rd-tab, .rd-pill, .rd-step-btn {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s ease, transform .25s ease, border-color .2s ease;
}
.rd-tab { font-size: .94rem; font-weight: 600; padding: .75rem 1.35rem; border-radius: 10px; }
.rd-pill { font-size: .9rem; padding: .65rem 1.1rem; border-radius: 99px; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); }
.rd-tab:hover, .rd-pill:hover { background: rgba(255, 255, 255, .13); }
.rd-tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: -1px; height: 3px; border-radius: 3px; background: var(--rd-orange);
}
.rd-pill[aria-selected="true"] { border-color: var(--rd-orange); background: rgba(255, 107, 53, .14); }
.rd-step-btn { text-align: left; border-radius: 16px; padding: 1.35rem; width: 100%; }
.rd-step-btn:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .11); }
.rd-step-btn[aria-selected="true"] { border-color: rgba(255, 107, 53, .6); }
.rd-step-btn .rd-step-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rd-orange); color: var(--rd-orange-2);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--rd-heading); font-weight: 700;
}
.rd-step-btn .rd-step-bar { display: block; height: 3px; border-radius: 3px; background: transparent; margin-top: 1rem; transition: background .2s ease; }
.rd-step-btn[aria-selected="true"] .rd-step-bar { background: var(--rd-orange); }

.rd-metric { font-family: var(--rd-heading); font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; margin-top: .6rem; }
.rd-kicker { font-size: .75rem; letter-spacing: .14em; color: rgba(255, 255, 255, .5); text-transform: uppercase; }
.rd-shot { border: 1px solid var(--rd-line); border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .03); }
.rd-shot img { display: block; width: 100%; height: auto; }

.rd-chip { display: inline-block; border: 1px solid rgba(255, 138, 92, .5); background: rgba(255, 107, 53, .1); color: var(--rd-peach); font-size: .8125rem; padding: .4rem .8rem; border-radius: 99px; }
.rd-log { font-size: .88rem; }
.rd-log-title { font-family: var(--rd-mono); font-size: .72rem; color: rgba(255, 255, 255, .5); letter-spacing: .08em; }
.rd-log-row { display: flex; gap: .75rem; align-items: center; }
.rd-log-row time { font-family: var(--rd-mono); color: var(--rd-peach); font-size: .78rem; flex: none; }
.rd-log-row span { color: rgba(255, 255, 255, .82); }

/* ---------- Carrier search ------------------------------------------- */
.rd-search-card { border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; background: rgba(13, 8, 52, .55); padding: 1.5rem; box-shadow: 0 30px 70px rgba(8, 4, 40, .45); }
.rd-search-card label { display: block; font-size: .8125rem; color: rgba(255, 255, 255, .6); letter-spacing: .05em; margin-bottom: .6rem; text-transform: uppercase; }
.rd-input {
  width: 100%; padding: .85rem 1rem; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; font-size: 1rem;
  outline: none; transition: border-color .2s ease, background .2s ease;
}
.rd-input::placeholder { color: rgba(255, 255, 255, .4); }
.rd-input:focus { border-color: var(--rd-orange); background: rgba(255, 255, 255, .1); }
.rd-result {
  border: 1px solid var(--rd-line); border-radius: 12px; padding: 1rem; background: rgba(255, 255, 255, .04);
  transition: transform .2s ease, border-color .2s ease;
}
.rd-result:hover { transform: translateX(4px); border-color: rgba(255, 107, 53, .6); }
.rd-result-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .6rem; font-size: .8rem; color: rgba(255, 255, 255, .62); font-family: var(--rd-mono); }
.rd-result-status { font-size: .78rem; background: rgba(255, 255, 255, .07); padding: .3rem .65rem; border-radius: 99px; white-space: nowrap; }
.rd-status--ok   { color: var(--rd-green); }
.rd-status--warn { color: var(--rd-amber); }
.rd-status--bad  { color: var(--rd-red); }
.rd-empty { border: 1px dashed rgba(255, 255, 255, .24); border-radius: 12px; padding: 1.4rem; text-align: center; color: rgba(255, 255, 255, .7); font-size: .92rem; }

/* ---------- ROI calculator ------------------------------------------- */
.rd-range-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.rd-range-row label { font-size: .95rem; color: rgba(255, 255, 255, .8); }
.rd-range-row output { font-family: var(--rd-heading); font-size: 1.35rem; font-weight: 700; color: var(--rd-orange-2); }
input[type=range].rd-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99px;
  background: rgba(255, 255, 255, .18); outline: none; margin: 1rem 0 1.9rem;
}
input[type=range].rd-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--rd-orange); border: 3px solid var(--rd-bg-mid); cursor: pointer; }
input[type=range].rd-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--rd-orange); border: 3px solid var(--rd-bg-mid); cursor: pointer; }
.rd-result-card { border: 1px solid rgba(255, 107, 53, .4); border-radius: 18px; padding: 1.9rem; background: linear-gradient(160deg, rgba(255, 107, 53, .14), rgba(58, 44, 224, .16)); height: 100%; }
.rd-savings { font-family: var(--rd-heading); font-size: clamp(2.6rem, 6vw, 4.25rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; margin-top: .6rem; }
.rd-row { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--rd-line); }
.rd-row:last-child { border-bottom: 0; padding-bottom: 0; }
.rd-row span:first-child { color: rgba(255, 255, 255, .75); font-size: .95rem; }
.rd-row span:last-child { font-weight: 600; }
.rd-fineprint { font-size: .78rem; color: rgba(255, 255, 255, .5); }

/* ---------- Driver app phone ----------------------------------------- */
.rd-phone {
  width: 320px; max-width: 100%; border-radius: 36px; border: 1px solid rgba(255, 255, 255, .22);
  background: var(--rd-bg-deep); padding: 14px; box-shadow: 0 40px 90px rgba(8, 4, 40, .65);
  animation: rdFloat 8s ease-in-out infinite;
}
.rd-phone-screen { border-radius: 26px; overflow: hidden; background: #f6f5ff; color: var(--rd-bg-mid); min-height: 560px; display: flex; flex-direction: column; }
.rd-phone-bar { padding: 1rem 1.1rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(27, 19, 112, .12); }
.rd-phone-bar b { font-family: var(--rd-heading); font-size: 1rem; }
.rd-phone-bar small { font-size: .75rem; color: var(--rd-violet); }
.rd-phone-body { padding: 1.1rem; display: grid; gap: .75rem; flex: 1; align-content: start; }
.rd-phone-label { font-size: .75rem; letter-spacing: .12em; color: #6a63b8; text-transform: uppercase; }
.rd-phone-row { border: 1px solid rgba(27, 19, 112, .14); border-radius: 12px; padding: .85rem; background: #fff; box-shadow: 0 6px 18px rgba(27, 19, 112, .06); }
.rd-phone-row .top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.rd-phone-row b { font-size: .95rem; }
.rd-phone-row em { font-style: normal; font-size: .72rem; font-weight: 600; color: var(--rd-orange); white-space: nowrap; }
.rd-phone-row p { font-size: .8rem; color: #5a54a0; margin: .4rem 0 0; line-height: 1.5; }
.rd-phone-cta { margin-top: auto; background: var(--rd-orange); color: #fff; text-align: center; padding: .8rem; border-radius: 12px; font-weight: 600; }
.rd-phone-panel { display: flex; flex-direction: column; flex: 1; }

/* ---------- Security cards ------------------------------------------- */
.rd-sec-card {
  height: 100%; border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; padding: 1.6rem; background: rgba(13, 8, 52, .4);
  transition: transform .3s ease, border-color .3s ease;
}
.rd-sec-card:hover { transform: translateY(-6px); border-color: rgba(255, 107, 53, .65); }
.rd-sec-icon { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--rd-orange); display: flex; align-items: center; justify-content: center; color: var(--rd-orange-2); font-size: 1.25rem; }
.rd-sec-card h3 { font-size: 1.1rem; font-weight: 600; margin: 1.1rem 0 0; }
.rd-sec-card p { color: rgba(255, 255, 255, .68); font-size: .92rem; line-height: 1.6; margin: .6rem 0 0; }

/* ---------- FAQ ------------------------------------------------------ */
.rd-faq { display: grid; gap: .75rem; }
.rd-faq-item { border: 1px solid var(--rd-line); border-radius: 14px; background: var(--rd-glass); overflow: hidden; }
.rd-faq-q {
  width: 100%; text-align: left; cursor: pointer; background: transparent; border: 0; color: #fff; font-family: inherit;
  font-size: 1.04rem; font-weight: 600; padding: 1.2rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.rd-faq-q:hover { background: rgba(255, 255, 255, .05); }
.rd-faq-q i { color: var(--rd-orange-2); font-size: 1.1rem; flex: none; transition: transform .25s ease; }
.rd-faq-q[aria-expanded="true"] i { transform: rotate(45deg); }
.rd-faq-a { padding: 0 1.4rem 1.4rem; color: rgba(255, 255, 255, .74); font-size: .97rem; line-height: 1.68; }

/* ---------- CTA section ---------------------------------------------- */
.ci-cta-section {
  background: linear-gradient(120deg, #2a1eb8, #3a2ce0) !important;
}
.ci-cta-section::before {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .1) 0 2px, transparent 2px 90px);
}
.ci-cta-section::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 107, 53, .35), transparent 62%);
}
.ci-cta-section .container { z-index: 2; }
.ci-cta-section h2 { font-family: var(--rd-heading); font-size: clamp(2rem, 4.2vw, 3.25rem) !important; line-height: 1.08; letter-spacing: -.035em; font-weight: 700 !important; color: var(--rd-orange-2) !important; }
.ci-cta-section .btn-accent { background: var(--rd-orange); }

/* ---------- Footer --------------------------------------------------- */
.ci-footer { background-color: var(--rd-bg-footer); }
.ci-footer a { color: rgba(255, 255, 255, .72); }
.ci-footer a:hover { color: var(--rd-orange-2); }
.ci-footer .text-accent, .ci-footer a.text-accent { color: var(--rd-orange-2) !important; }
.ci-footer .brand-name { font-family: var(--rd-heading); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.ci-footer .border-secondary { border-color: rgba(255, 255, 255, .1) !important; }

/* ---------- Cookie banner / forms / cards on other pages ------------- */
.ci-cookie-banner { background-color: rgba(13, 8, 52, .97); border-top-color: rgba(255, 107, 53, .6); }
.ci-form .form-control:focus, .ci-form .form-select:focus { border-color: var(--rd-orange); box-shadow: 0 0 0 .2rem rgba(255, 107, 53, .25); }
.ci-article-card, .ci-team-card, .ci-doc-item { border-color: var(--rd-line) !important; border-radius: 16px; }
.ci-article-card:hover, .ci-team-card:hover { border-color: rgba(255, 107, 53, .65) !important; }
.ci-doc-item:hover { border-color: var(--rd-orange); background: rgba(255, 107, 53, .08); }
.article-body a, .ci-legal-body a { color: var(--rd-orange-2); }
.article-body h4 { color: var(--rd-orange-2); }
.ci-legal-body h2 { border-bottom-color: var(--rd-orange); }

/* ---------- Blog -------------------------------------------------------- */
.ci-hero--compact { min-height: 0; padding: 150px 0 80px; }
.ci-hero--compact .ci-hero-title { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }

.rd-filters { display: flex; flex-wrap: wrap; gap: .6rem; }
.rd-filter {
  display: inline-block; padding: .5rem 1.05rem; border-radius: 99px; font-size: .88rem; text-decoration: none;
  color: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .05);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.rd-filter:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.rd-filter.is-active { border-color: var(--rd-orange); background: rgba(255, 107, 53, .14); color: #fff; }

.rd-post {
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--rd-line); border-radius: 18px;
  background: linear-gradient(160deg, rgba(58, 44, 224, .16), rgba(255, 255, 255, .03));
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.rd-post:hover { transform: translateY(-5px); border-color: rgba(255, 107, 53, .6); box-shadow: 0 24px 60px rgba(8, 4, 40, .45); }
.rd-post-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: rgba(255, 255, 255, .04); }
.rd-post-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.rd-post:hover .rd-post-media img { transform: scale(1.04); }
.rd-post-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: rgba(255, 255, 255, .3);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 10px, transparent 10px 20px); }
.rd-post-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.rd-post-title { font-family: var(--rd-heading); font-size: 1.25rem; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: #fff; margin: 0 0 .6rem; }
.rd-post-intro { color: rgba(255, 255, 255, .7); font-size: .95rem; line-height: 1.6; margin: 0 0 1.1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rd-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-top: auto; font-size: .8rem; color: rgba(255, 255, 255, .55); }
.rd-post-meta i { margin-right: .3rem; }
.rd-post-cat { border: 1px solid rgba(255, 138, 92, .5); background: rgba(255, 107, 53, .1); color: var(--rd-peach); padding: .2rem .65rem; border-radius: 99px; font-size: .75rem; }
.rd-post-flag { align-self: flex-start; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rd-orange-2); margin-bottom: .75rem; }
.rd-post-more { margin-top: 1.1rem; color: var(--rd-orange-2); font-weight: 600; font-size: .92rem; }

@media (min-width: 992px) {
  .rd-post--featured { flex-direction: row; }
  .rd-post--featured .rd-post-media { flex: 0 0 52%; aspect-ratio: auto; min-height: 340px; }
  .rd-post--featured .rd-post-body { padding: 2.25rem 2.5rem; justify-content: center; }
  .rd-post--featured .rd-post-title { font-size: 1.9rem; }
  .rd-post--featured .rd-post-meta { margin-top: .25rem; }
}

.rd-pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.rd-pager-link { padding: .6rem 1.1rem; border: 1px solid var(--rd-line); border-radius: 10px; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .05); transition: background .2s ease, border-color .2s ease; }
.rd-pager-link:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 107, 53, .6); color: #fff; }

/* ---------- Small screens -------------------------------------------- */
@media (max-width: 575.98px) {
  .ci-hero { padding-top: 120px; }
  .rd-card--tint, .rd-card--dark { padding: 1.4rem; }
  .rd-live { animation-duration: 9s; }
}
