:root {
  --bg: #0c0f14;
  --surface: #121827;
  --surface-2: #0f1523;
  --text: #eaf0f6;
  --muted: #a9b4c2;
  --brand: #4cc9f0;
  --brand-2: #bde0fe;
  --card: #151b2c;
  --radius-lg: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  --container: 1200px;
}

/* Base */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(
      900px 500px at 50% -10%,
      #0e1420 0%,
      var(--bg) 60%
    ),
    linear-gradient(180deg, #0b111c, var(--bg));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(12, 15, 20, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
}
.site-nav a:hover {
  color: var(--text);
}

/* Sections */
.section {
  position: relative;
  padding: 50px 0;
}
.section-light {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0)
  );
}
.section-dark {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
}
.section-policies {
  background: linear-gradient(180deg, rgb(0 220 255 / 8%), rgba(0, 0, 0, 0));
}
.section-innovation {
  background: linear-gradient(
    180deg,
    rgba(255, 203, 62, 0.04),
    rgba(0, 0, 0, 0)
  );
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section-head {
  margin-bottom: 50px;
}
.section-head h2 {
  margin: 0 0 30px;
  font-size: 32px;
}
.lead {
  color: var(--muted);
  margin: 0;
}

/* Hero (final) */
.hero {
  min-height: 88vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  position: relative;
}
.parallax-layer {
  position: absolute;
  inset: -20%;
  background: radial-gradient(
      40% 30% at 20% 30%,
      rgba(76, 201, 240, 0.18),
      transparent 60%
    ),
    radial-gradient(
      35% 25% at 80% 70%,
      rgba(189, 224, 254, 0.14),
      transparent 60%
    );
  filter: blur(20px);
}
.hero--angled::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12vw;
  height: 22vw;
  background: linear-gradient(175deg, transparent 62%, #ffffff 63% 100%);
  pointer-events: none;
}
.hero-map {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      60% 50% at 50% 40%,
      rgba(9, 41, 29, 0.18),
      transparent 60%
    ),
    radial-gradient(60% 60% at 70% 70%, rgba(30, 73, 87, 0.14), transparent 60%),
    url("./images/bg.svg") center/cover no-repeat;
  background-blend-mode: screen;
  opacity: 0.1;
  z-index: 1;
}
.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-bottom: 100px;
  transform: translateZ(0) scale(0.995);
  transition: transform 0.8s ease;
}
.hero.in .hero-brand {
  transform: scale(1);
}

.hero-wordmark {
  margin: 0;
  line-height: 0.88;
  text-align: center;
  font-size: min(10vw, 112px);
  font-weight: 900;
  letter-spacing: 0.5px;
  background: linear-gradient(
    180deg,
    #0077ff 0%,
    #00cfff 40%,
    #74e6ff 60%,
    #0c1f40 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 40px rgba(6, 12, 28, 0.25);

  /* glow + shine */
  background-size: 200% 200%;
  animation: wordmark-shift 18s linear infinite,
    wordmark-glow 6s ease-in-out infinite alternate;
  animation-play-state: paused;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35), 0 10px 30px rgba(116, 230, 255, 0.1);
  filter: drop-shadow(0 18px 42px rgba(0, 207, 255, 0.08));
}
.hero-wordmark::after {
  content: "";
  position: absolute;
  inset: -6% -2%;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 60%
  );
  mix-blend-mode: screen;
  transform: translateX(-120%);
  animation: wordmark-sweep 6.5s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  animation-play-state: paused;
  pointer-events: none;
}
.hero.in .hero-wordmark,
.hero.in .hero-wordmark::after {
  animation-play-state: running;
}
.hero-wordmark span {
  display: inline-block;
}

.hero-welcome {
  margin: 10px 0 4px;
  font-size: clamp(18px, 2.6vw, 30px);
  font-weight: 700;
  color: #eaf0f6;
  text-align: center;
}
.hero-sub {
  margin: 0 0 28px;
  font-size: clamp(14px, 2vw, 18px);
  color: var(--muted);
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}

/* Trusted ribbon in hero (use flex version only) */
.hero-trusted {
  margin: 100px auto 0;
  max-width: 1120px;
  padding-inline: 12px;
}
.trusted-title {
  text-align: center;
  color: #cfd7e4;
  font-weight: 700;
  margin-bottom: 10px;
}
.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trusted-logo {
  flex: 0 1 15%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.trusted-logo-img {
  height: auto;
  width: auto;
  max-height: 36px;
  max-width: 75px;
  object-fit: contain;
  image-rendering: auto;
  filter: none;
  transition: transform 0.2s ease;
}
@media (hover: hover) {
  .trusted-logo:hover .trusted-logo-img {
    transform: translateY(-1px);
  }
}
@media (max-width: 1100px) {
  .trusted-logo {
    flex-basis: 25%;
  }
}
@media (max-width: 720px) {
  .trusted-logo {
    flex-basis: 50%;
  }
  .trusted-logo-img {
    max-height: 30px;
    max-width: 140px;
  }
}

/* CTA & scroll indicator */
.hero-cta {
  margin-top: 10px;
}
.scroll-indicator {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(18px, 4vw, 42px);
  background: transparent;
  border: none;
  cursor: pointer;
}
.scroll-hex {
  width: 24px;
  height: 24px;
  display: block;
  background: linear-gradient(180deg, #2fe390, #0bbd74);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  box-shadow: 0 6px 16px rgba(15, 189, 116, 0.45);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* Grids */
.grid {
  display: grid;
  gap: 18px;
}

/* Policy Cards */
.policy-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card {
  background: var(--card);
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}
.card-kicker {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 12px;
  text-transform: uppercase;
}
.card-actions {
  margin-top: auto;
}

/* 360 iGaming */
#solution {
  position: relative;
  overflow: hidden;
}
#solution::before {
  content: "";
  position: absolute;
  inset: -10% -10% -20% -10%;
  background: radial-gradient(
      60% 40% at 30% 20%,
      rgba(76, 201, 240, 0.1),
      transparent 60%
    ),
    radial-gradient(
      50% 35% at 80% 60%,
      rgba(189, 224, 254, 0.08),
      transparent 60%
    );
  filter: blur(8px);
  pointer-events: none;
}
h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(76, 201, 240, 0),
    rgba(76, 201, 240, 0.75),
    rgba(189, 224, 254, 0)
  );
  border-radius: 2px;
}
.cards-igaming {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 1024px) {
  .cards-igaming {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.card-igaming {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0)
    ),
    var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 22px 22px clamp(72px, 12vw, 96px);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease, background 0.22s ease;
}
.card-igaming::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 36px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0)
  );
  opacity: 0.06;
  pointer-events: none;
}
.card-igaming::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -18%;
  width: 60%;
  aspect-ratio: 1/1;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(76, 201, 240, 0.14),
    rgba(76, 201, 240, 0)
  );
  filter: blur(14px);
  pointer-events: none;
}
.card-igaming h3 {
  font-size: 20px;
  font-weight: 800; /* stronger than default 700 */
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #ffffff; /* brighter than muted text */
  min-height: 60px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

/* optional accent underline for subtle depth */
.card-igaming h3::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 6px;
  background: linear-gradient(
    90deg,
    rgba(76, 201, 240, 0.8),
    rgba(189, 224, 254, 0.4)
  );
  border-radius: 2px;
}
.card-igaming p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}
.card-igaming:hover,
.card-igaming:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
}
/* bottom icon */
.ig-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.ig-icon-bottom {
  position: absolute;
  right: 16px;
  bottom: 14px;
  opacity: 0.95;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.card-igaming:hover .ig-icon-bottom {
  transform: translateY(-2px);
  opacity: 1;
}
/* parallax hint */
.card-igaming[data-parallax] {
  will-change: transform;
}

/* Innovation cards */
.innovation-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.innovation-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.innovation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
}
.innovation-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}
.innovation-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.innovation-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Testimonials slider */
.tslider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.ts-viewport {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px clamp(18px, 4vw, 48px);
  overflow: hidden;
  min-height: 260px;
}
.ts-slide {
  display: grid;
  grid-template-rows: 1fr auto;
  align-content: stretch;
  gap: 18px;
  display: none;
  transform: translateX(10px);
  pointer-events: none;
}
.ts-slide.is-active {
  display: block;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.ts-quote {
  margin: 0;
  max-width: 980px;
  text-align: left;
  font-size: clamp(18px, 2.3vw, 22px);
  line-height: 1.6;
  color: var(--text);
}
.ts-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
}
.ts-person {
  line-height: 1.3;
  text-align: left;
}
.ts-name {
  font-weight: 700;
  color: var(--text);
  font-size: clamp(14px, 1.8vw, 16px);
}
.ts-role {
  color: var(--muted);
  font-size: clamp(12px, 1.6vw, 14px);
}
.ts-logo {
  height: 34px;
  width: auto;
  filter: none;
  margin-top: 4px;
}
.ts-nav {
  top: 50%;
  transform: translateY(-50%);
}

/* Footer (final) */
.site-footer {
  padding: 0 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.footer-links a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.9;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-links a.pdf::before {
  content: "PDF";
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 6px;
  margin-right: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary, #2aa6ff);
  vertical-align: middle;
}
.footer-ownership {
  color: var(--muted);
  line-height: 1.6;
}
.footer-ownership a {
  color: var(--primary, #2aa6ff);
}
.legal {
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}
@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
  .legal {
    grid-column: 1 / -1;
  }
}

/* Reveals */
.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  filter: blur(6px);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

.reveal-text {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
  transition: opacity 0.55s ease, transform 0.55s ease, filter 0.55s ease;
  transition-delay: calc(var(--rt, 0) * 80ms);
}
.reveal-text.in {
  opacity: 1;
  transform: none;
  filter: none;
}
.reveal-left {
  transform: translateX(-12px);
}
.reveal-right {
  transform: translateX(12px);
}
.reveal-left.in,
.reveal-right.in {
  transform: none;
}

/* Keyframes for wordmark */
@keyframes wordmark-shift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 100%;
  }
}
@keyframes wordmark-glow {
  0% {
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35),
      0 10px 30px rgba(116, 230, 255, 0.1);
    filter: drop-shadow(0 18px 42px rgba(0, 207, 255, 0.08));
  }
  100% {
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35),
      0 12px 40px rgba(116, 230, 255, 0.2);
    filter: drop-shadow(0 22px 52px rgba(0, 207, 255, 0.14));
  }
}
@keyframes wordmark-sweep {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  12% {
    opacity: 0.8;
  }
  40% {
    transform: translateX(0%);
    opacity: 0.6;
  }
  66% {
    transform: translateX(120%);
    opacity: 0;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .policy-cards,
  .innovation-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .policy-cards,
  .innovation-cards {
    grid-template-columns: 1fr;
  }
  .card-igaming {
    padding: 18px 18px 76px;
  }
  .ig-icon {
    width: 46px;
    height: 46px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-text {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .hero-wordmark,
  .hero-wordmark::after {
    animation: none !important;
  }
}

/* --- FIX: make the background image truly full-bleed inside each card --- */
.cards-igaming .card-igaming {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* wipe any previous ::before size and paint the image full area */
.cards-igaming .card-igaming::before {
  content: "";
  position: absolute;
  inset: 0 !important; /* override old 'inset: 0 0 auto 0' */
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  height: auto !important; /* override old 'height:36px' */
  border-radius: inherit;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

/* keep the decorative overlay above the image */
.cards-igaming .card-igaming::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
    /* placeholder – keep transparent */
      radial-gradient(
        40% 40% at 95% 105%,
        rgba(76, 201, 240, 0.14),
        rgba(76, 201, 240, 0) 60%
      );
  z-index: 0;
  pointer-events: none;
}

/* ensure content sits above */
.cards-igaming .card-igaming > * {
  z-index: 1;
}

/* Assign per-card background images via nth-child (order = your markup) */
.cards-igaming .card-igaming:nth-child(1) {
  --card-bg: url("https://cdn.prod.website-files.com/646230c212bf67f1593c39aa/6479cc8b2002563472652fb6_sports1024.jpg");
} /* Sportsbook */
.cards-igaming .card-igaming:nth-child(2) {
  --card-bg: url("https://cdn.prod.website-files.com/646230c212bf67f1593c39aa/647907208c9f59a184ac9876_games.png");
} /* Games Studio */
.cards-igaming .card-igaming:nth-child(3) {
  --card-bg: url("https://cdn.prod.website-files.com/646230c212bf67f1593c39aa/64790d94f838309d0f042233_safety.png");
} /* Fraud Mgmt */
.cards-igaming .card-igaming:nth-child(4) {
  --card-bg: url("https://cdn.prod.website-files.com/646230c212bf67f1593c39aa/6479031e2ea1a5e42d6d6e9c_payments.png");
} /* Payments */
.cards-igaming .card-igaming:nth-child(5) {
  --card-bg: url("https://cdn.prod.website-files.com/646230c212bf67f1593c39aa/6478f25cd3f9eabb98c0ccb1_data.png");
} /* Marketing & Analytics */

/* Optional: ensure text stays readable on lighter images */
.cards-igaming .card-igaming p,
.cards-igaming .card-igaming h3 {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

/* =========================
   POLICIES — neutral design + color badges + better CTA
   ========================= */

/* Hide the old kicker */
#policies .policy-cards .card .card-kicker {
  display: none;
}

/* Card base (keeps the neutral “glass” look) */
#policies .policy-cards .card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto; /* title, body, cta */
  gap: 12px;

  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0) 140px
    ),
    rgba(10, 14, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);

  padding: 22px 22px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
#policies .policy-cards .card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Consolidated subtle accents (top hairline + corner glow) */
#policies .policy-cards .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.18),
        transparent
      )
      top/100% 1px no-repeat,
    radial-gradient(
      closest-side at 95% 95%,
      rgba(255, 255, 255, 0.06),
      transparent 70%
    );
}

/* === Color badge (top-right) — same element for all cards,
      per-card color via nth-child variables === */
#policies .policy-cards .card {
  --badge: linear-gradient(180deg, #9aa4b2, #ccd1d8); /* default fallback */
}
#policies .policy-cards .card:nth-child(1) {
  --badge: linear-gradient(180deg, #34d399, #10b981);
} /* KYC */
#policies .policy-cards .card:nth-child(2) {
  --badge: linear-gradient(180deg, #60a5fa, #3b82f6);
} /* KYB */
#policies .policy-cards .card:nth-child(3) {
  --badge: linear-gradient(180deg, #f59e0b, #f97316);
} /* Responsible */
#policies .policy-cards .card:nth-child(4) {
  --badge: linear-gradient(180deg, #a78bfa, #8b5cf6);
} /* Legal */

#policies .policy-cards .card::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.55) 0 24%,
      transparent 25%
    ),
    var(--badge);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 6px 14px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* Title + body */
#policies .policy-cards .card h3 {
  margin: 2px 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.2;
  color: #fff;
}
#policies .policy-cards .card h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.05)
  );
}
#policies .policy-cards .card p {
  margin: 0;
  max-width: 50ch;
  color: var(--text);
  opacity: 0.95;
  line-height: 1.6;
  text-wrap: pretty;
}

/* === CTA: “Voir / Télécharger” — upgraded ghost button === */
#policies .policy-cards .card .btn-ghost {
  --btn-b: rgba(255, 255, 255, 0.16);
  --btn-bg: rgb(0 135 255 / 15%);
  --btn-bg-h: rgba(255, 255, 255, 0.1);

  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--btn-b);
  background: var(--btn-bg);
  color: #eaf0f6;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;

  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}
#policies .policy-cards .card .btn-ghost:hover {
  background: var(--btn-bg-h);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
#policies .policy-cards .card .btn-ghost:active {
  transform: translateY(0);
  box-shadow: none;
}

/* add a small download icon (CSS mask, no extra markup) */
#policies .policy-cards .card .btn-ghost::before {
  content: "";
  inline-size: 16px;
  block-size: 16px;
  background: currentColor;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>')
    center / contain no-repeat;
}
#policies .policy-cards .card .btn-ghost:focus-visible {
  outline: 2px solid #9dd7ff;
  outline-offset: 2px;
}

/* === Testimonials / Trusted slider — polished card design === */
.tslider {
  max-width: 1080px; /* keeps it centered and tidy */
  margin: 0 auto;
  position: relative;
  padding-inline: 28px; /* room for arrows that sit slightly outside */
}

.ts-viewport {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 44px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  min-height: unset; /* let height adapt to content */
}

/* Quote text */
.ts-quote {
  margin: 0 0 14px 0;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.6;
  color: var(--text);
}

/* Footer: name/role on left, logo on right (stacks on mobile) */
.ts-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}
@media (max-width: 700px) {
  .ts-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.ts-name {
  font-weight: 800;
  color: var(--text);
}
.ts-role {
  color: var(--muted);
}
.ts-logo {
  height: 36px;
  width: auto;
  filter: none;
}

/* Slides fade/translate smoothly (you already toggle .is-active in JS) */
.ts-slide {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
.ts-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* --- Arrows --- */
.ts-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; /* large hit area */
  height: 48px;
  padding: 0;
  background: transparent; /* ← no background */
  border: none; /* ← no border */
  box-shadow: none;
  cursor: pointer;
  color: #cfd7e4; /* arrow color */
  font-size: 0; /* hide the ‹ › character */
  z-index: 2;
}
.ts-nav::after {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: auto;
  background: currentColor;

  /* URL-encoded SVG */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8.12 4.12L14 10l-5.88 5.88a1.5 1.5 0 0 0 2.12 2.12l7-7a1.5 1.5 0 0 0 0-2.12l-7-7a1.5 1.5 0 1 0-2.12 2.12Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8.12 4.12L14 10l-5.88 5.88a1.5 1.5 0 0 0 2.12 2.12l7-7a1.5 1.5 0 0 0 0-2.12l-7-7a1.5 1.5 0 1 0-2.12 2.12Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.ts-prev {
  left: -6px;
}
.ts-next {
  right: -6px;
}
.ts-prev::after {
  transform: scaleX(-1);
} /* flip the right chevron */

/* Hover/active/focus states */
.ts-nav:hover::after {
  opacity: 1;
}
.ts-prev:hover::after {
  transform: scaleX(-1) translateX(-2px);
}
.ts-next:hover::after {
  transform: translateX(2px);
}
.ts-nav:active::after {
  transform: none;
}
.ts-nav:focus-visible {
  outline: 2px solid var(--brand, #4cc9f0);
  outline-offset: 2px;
}

/* Bring arrows a bit inside on small screens and scale down */
@media (max-width: 740px) {
  .ts-prev {
    left: 6px;
  }
  .ts-next {
    right: 6px;
  }
  .ts-nav {
    width: 40px;
    height: 40px;
  }
  .ts-nav::after {
    width: 18px;
    height: 18px;
  }
}
.ts-nav:active {
  transform: translateY(-50%);
}
.ts-nav:focus-visible {
  outline: 2px solid #9dd7ff;
  outline-offset: 2px;
}

/* Bring arrows inside on small screens */
@media (max-width: 740px) {
  .ts-prev {
    left: 8px;
  }
  .ts-next {
    right: 8px;
  }
  .ts-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* --- Dots (pagination) --- */
.ts-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.ts-dot {
  width: 26px;
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.18s ease, width 0.18s ease, border-color 0.18s ease;
}
.ts-dot.is-active {
  width: 36px;
  background: var(--brand, #4cc9f0);
  border-color: rgba(255, 255, 255, 0.28);
}
.ts-dot:focus-visible {
  outline: 2px solid #9dd7ff;
  outline-offset: 3px;
}

/* Optional subtle top hairline inside the card for a crafted feel */
.ts-viewport::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  pointer-events: none;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

/* ===== Footer layout polish ===== */
.site-footer {
  padding: 0 0 28px;
  border-top: 1px solid rgba(86, 179, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.site-footer .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Grid: links on the left, ownership text on the right */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr; /* adjust ratio to taste */
  align-items: start;
  column-gap: 36px;
  row-gap: 20px;
}

/* Links list: neat two-column list on wide screens */
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  align-content: start;
  padding-top: 2px; /* align with first line of right column */
}
.footer-links a {
  display: inline-flex; /* makes badge + text align nicely */
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  opacity: 0.95;
  line-height: 1.4;
}
.footer-links a:hover {
  text-decoration: underline;
}

/* PDF badge */
.footer-links a.pdf::before {
  content: "PDF";
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 20px;
  padding: 0 6px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--brand, #4cc9f0);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Ownership / contact column */
.footer-ownership {
  color: var(--muted);
  line-height: 1.65;
  max-width: 60ch; /* comfortable reading width */
}
.footer-ownership strong {
  color: var(--text);
}
.footer-ownership a {
  color: var(--brand, #4cc9f0);
  text-decoration: none;
}
.footer-ownership a:hover {
  text-decoration: underline;
}

/* Copyright row on its own baseline across the full width */
.legal {
  grid-column: 1 / -1; /* span full width */
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr; /* stack columns */
    row-gap: 18px;
  }
  .footer-links {
    grid-template-columns: 1fr; /* one column list on mobile */
  }
  .footer-ownership {
    max-width: unset;
  }
}

#contact a {
  color: #fff;
  font-weight: bolder;
}

.section-contact {
    background: linear-gradient(180deg, rgb(0 43 255 / 5%), rgba(0, 0, 0, 0));
}