/* ═══════════════════════════════════════════════════
   RAINBOW PAY — styles.css
   Brand: Red #CC0000, Rainbow accents, White type
   Mobile-first, no frameworks
═══════════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ── */
:root {
  --red:        #CC0000;
  --red-dark:   #A30000;
  --red-deep:   #8B0000;
  --red-mid:    #B50000;
  --white:      #FFFFFF;
  --off-white:  #F8F4F4;
  --light-bg:   #FDF8F8;
  --text-dark:  #1A0A0A;
  --text-mid:   #4A2020;
  --text-muted: #7A5050;
  --border:     #EDD8D8;

  /* Rainbow */
  --r1: #FFD700;
  --r2: #FF6B00;
  --r3: #FF0000;
  --r4: #2196F3;
  --r5: #4CAF50;
  --r6: #9C27B0;
  --rainbow: linear-gradient(90deg, #FFD700, #FF6B00, #FF3D00, #2196F3, #4CAF50, #9C27B0);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(150,0,0,.10);
  --shadow:    0 6px 24px rgba(150,0,0,.14);
  --shadow-lg: 0 16px 48px rgba(150,0,0,.18);

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Georgia', 'Times New Roman', serif; /* editorial weight for hero */

  --max-w: 1200px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --section-pad: clamp(4rem, 8vw, 7rem);

  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --transition-slow: 0.45s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--red);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
}

/* ── TYPOGRAPHY UTILITIES ── */
.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .75rem;
  position: relative;
  padding-bottom: .5rem;
}
.section-label::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--rainbow);
  border-radius: 2px;
}
.section-label.light { color: rgba(255,255,255,.7); }
.section-label.light::after { background: var(--rainbow); opacity: .7; }

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
}
.section-title.dark { color: var(--text-dark); }
.section-title.light { color: var(--white); }

.section-sub {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 56ch;
}
.section-sub.light { color: rgba(255,255,255,.75); }

.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.body-text {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.body-text.light { color: rgba(255,255,255,.8); }

.br-lg { display: none; }
@media (min-width: 768px) { .br-lg { display: block; } }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid rgba(255,255,255,.7);
  outline-offset: 3px;
}
.btn-white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.btn-white:hover {
  background: #FFF0F0;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.85);
  transform: translateY(-2px);
}
.btn-red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: var(--shadow);
}
.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-lg { padding: 1rem 2.4rem; font-size: 1rem; }

/* ── SECTION BASE ── */
.section { padding: var(--section-pad) 0; }
.section-light { background: var(--light-bg); }
.section-red   { background: var(--red); }

/* ═══════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(180,0,0,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: background var(--transition);
}
.site-header.scrolled {
  background: rgba(140,0,0,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none; flex-shrink: 0;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: .85; }
.nav-logo:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: 4px; border-radius: 4px; }

.logo-svg { flex-shrink: 0; }

.logo-wordmark {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--white);
  line-height: 1;
}
.logo-pay { color: rgba(255,255,255,.75); }

/* Nav menu */
.nav-menu ul {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-link {
  display: block;
  padding: .5rem .9rem;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav-link:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: 2px; }

.nav-cta {
  color: var(--white) !important;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 50px;
  padding: .45rem 1.1rem;
}
.nav-cta:hover { background: rgba(255,255,255,.3) !important; border-color: rgba(255,255,255,.6) !important; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.1);
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  transition: background var(--transition);
}
.nav-toggle:hover { background: rgba(255,255,255,.2); }
.nav-toggle:focus-visible { outline: 2px solid rgba(255,255,255,.7); }

.burger {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: background var(--transition);
}
.burger::before, .burger::after {
  content: '';
  position: absolute;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition);
}
.burger::before { top: -6px; }
.burger::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle[aria-expanded="true"] .burger::after  { transform: rotate(-45deg) translate(4px, -4px); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(140,0,0,.97);
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding: 1rem clamp(1.2rem, 4vw, 2.5rem) 1.5rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu ul { flex-direction: column; align-items: flex-start; gap: .1rem; }
  .nav-link { padding: .75rem 0; width: 100%; }
  .nav-cta { margin-top: .5rem; display: inline-block; width: auto; }
}

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero {
  background: var(--red);
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(68px + clamp(3rem,7vw,6rem)) 0 clamp(3rem,7vw,6rem);
}

.hero-arc {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-arc svg {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
  object-fit: cover;
}

/* Subtle noise texture */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: .15;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .45rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  backdrop-filter: blur(6px);
}
.hero-badge svg { opacity: .9; }

.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: 1.5rem;
}

.rainbow-text {
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(.95rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,.8);
  max-width: 54ch;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}

/* Stats bar */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .5rem 1.5rem;
}
.stat-num {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1;
}
.stat-lbl {
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.stat-sep {
  width: 1px; height: 40px;
  background: rgba(255,255,255,.2);
}
@media (max-width: 520px) {
  .stat-sep { display: none; }
  .hero-stats { gap: 0; }
  .hero-stat { padding: .5rem 1rem; }
}

/* ═══════════════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp .7s ease forwards;
}
.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .24s; }
.delay-3 { animation-delay: .36s; }
.delay-4 { animation-delay: .5s; }
.delay-5 { animation-delay: .65s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .24s; }
.reveal.delay-3 { transition-delay: .36s; }

/* ═══════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════ */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  align-items: center;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1.1fr 1fr; gap: 5rem; }
}

/* License cards */
.license-cards {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: 1.75rem 0 1.5rem;
}
.license-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.license-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.lc-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #FFF0F0;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.lc-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .2rem;
}
.lc-value {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.verify-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--red);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
  padding-bottom: 1px;
}
.verify-link:hover { border-color: var(--red); }
.verify-link:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

/* Visual cards stack */
.col-visual { position: relative; padding: 2rem; }
.vis-stack { position: relative; width: 100%; max-width: 360px; margin: 0 auto; }

.vis-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.vc1 { margin-bottom: -12px; }
.vc2 { position: relative; z-index: 1; margin-left: 24px; margin-bottom: -12px; }
.vc3 { position: relative; z-index: 2; margin-left: 8px; }

.vc-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .6rem;
}
.vc-bar-row { display: flex; align-items: center; gap: .75rem; }
.vc-bar {
  flex: 1; height: 8px;
  background: var(--border);
  border-radius: 50px;
  overflow: hidden;
}
.vc-fill {
  height: 100%;
  width: var(--w, 70%);
  background: var(--rainbow);
  border-radius: 50px;
  animation: barGrow 1.2s ease .8s backwards;
}
@keyframes barGrow { from { width: 0; } }
.vc-pct { font-size: .85rem; font-weight: 800; color: var(--text-dark); }
.vc-status {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 50px;
  margin-top: .6rem;
}
.vc-status.approved { background: #DCFCE7; color: #166534; }
.vc-status.settled  { background: #DBEAFE; color: #1D4ED8; }

.vc-amount {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -.02em;
  margin-bottom: .3rem;
}
.vc-metric { display: flex; align-items: baseline; gap: .6rem; }
.metric-val { font-size: 1.5rem; font-weight: 900; color: var(--text-dark); }
.metric-arrow { font-size: .85rem; font-weight: 700; color: #16A34A; }

.vis-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(204,0,0,.08);
  pointer-events: none;
}
.r1 { width: 280px; height: 280px; top: -40px; right: -40px; z-index: -1; }
.r2 { width: 160px; height: 160px; bottom: -20px; left: -20px; z-index: -1; border-color: rgba(33,150,243,.1); }

/* ═══════════════════════════════════════════════════
   ADVANTAGES
═══════════════════════════════════════════════════ */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}
.adv-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}
.adv-card:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.28);
  transform: translateY(-3px);
}
.adv-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  margin-bottom: 1.25rem;
  position: relative;
}
.adv-icon::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: var(--rainbow);
  opacity: .25;
}
.adv-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .6rem;
  letter-spacing: -.01em;
}
.adv-text {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.svc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rainbow);
  opacity: 0;
  transition: opacity var(--transition);
}
.svc-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(204,0,0,.15);
}
.svc-card:hover::before { opacity: 1; }

.svc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.svc-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: #FFF0F0;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}
.svc-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 1px solid var(--border);
  padding: .2rem .65rem;
  border-radius: 50px;
  color: var(--red);
}
.svc-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: .65rem;
  letter-spacing: -.01em;
}
.svc-text {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}
.svc-list {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.svc-list li {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-mid);
  padding-left: 1.1rem;
  position: relative;
}
.svc-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rainbow);
}

/* Segments */
.svc-segments {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.seg-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.seg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.seg-tag {
  display: inline-block;
  background: #FFF0F0;
  color: var(--red);
  font-size: .83rem;
  font-weight: 700;
  padding: .4rem .9rem;
  border-radius: 50px;
  border: 1px solid rgba(204,0,0,.15);
}
.seg-disclaimer {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ═══════════════════════════════════════════════════
   CASE STUDIES
═══════════════════════════════════════════════════ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
}
.case-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: background var(--transition), transform var(--transition);
}
.case-card:hover {
  background: rgba(255,255,255,.16);
  transform: translateY(-3px);
}
.case-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  padding: .25rem .75rem;
  margin-bottom: 1rem;
  position: relative;
}
.case-tag::before {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--rainbow);
  border-radius: 0 0 50px 50px;
}
.case-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: .9rem;
}
.case-text {
  font-size: .88rem;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.25rem;
}
.case-metric { display: flex; flex-direction: column; gap: .2rem; min-width: 80px; }
.cm-num {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cm-lbl {
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════ */
.faq-container { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: .75rem; }

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.faq-item:has(.faq-q[aria-expanded="true"]) { box-shadow: var(--shadow); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: .97rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border: none;
  background: none;
}
.faq-q:hover { background: #FFF5F5; }
.faq-q:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.faq-q[aria-expanded="true"] { color: var(--red); background: #FFF5F5; }

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}
.faq-q[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--red);
}

.faq-a {
  padding: 0 1.5rem 1.25rem;
  font-size: .92rem;
  color: var(--text-mid);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}
.faq-a p { margin: .75rem 0 0; }
.faq-a p:first-child { margin-top: 0; }
.faq-a a { color: var(--red); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }

/* JS-driven accordion */
.faq-a[hidden] { display: none; }
.faq-a.animating { display: block; overflow: hidden; }

/* ═══════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1fr 1.4fr; align-items: start; gap: 5rem; }
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  line-height: 1.65;
  transition: color var(--transition);
}
a.contact-item:hover { color: #fff; }
.ci-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* Form */
.contact-form-wrap {
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  backdrop-filter: blur(6px);
}
.lead-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 540px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-label {
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  letter-spacing: .02em;
}
.req { color: #FFD700; }
.optional { font-weight: 400; color: rgba(255,255,255,.5); font-size: .78rem; }

.form-input {
  width: 100%;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: .95rem;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: rgba(255,255,255,.35); }
.form-input:focus {
  outline: none;
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.18);
  box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}
.form-input.invalid {
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255,215,0,.15);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,.5)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-select option { background: var(--red-dark); color: #fff; }
.form-textarea { resize: vertical; min-height: 100px; }

.field-error {
  font-size: .78rem;
  font-weight: 600;
  color: #FFD700;
  min-height: 1em;
  line-height: 1.3;
}

/* Consent */
.form-consent { margin-top: .25rem; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  cursor: pointer;
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  line-height: 1.55;
}
.consent-check {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.consent-box {
  width: 20px; height: 20px;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 4px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition), background var(--transition);
  margin-top: .1rem;
  position: relative;
}
.consent-check:checked ~ .consent-box {
  background: #fff;
  border-color: #fff;
}
.consent-check:checked ~ .consent-box::after {
  content: '';
  position: absolute;
  width: 5px; height: 9px;
  border: 2px solid var(--red);
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.consent-check:focus-visible ~ .consent-box {
  outline: 2px solid rgba(255,255,255,.7);
  outline-offset: 2px;
}
.form-link { color: rgba(255,255,255,.9); text-decoration: underline; }

/* Submit button */
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  position: relative;
}
.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(204,0,0,.3);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-submit.loading .btn-text { opacity: 0; }
.btn-submit.loading .btn-spinner { display: block; position: absolute; }

/* Success / Error messages */
.form-success, .form-error-msg {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.55;
}
.form-success {
  background: rgba(22,163,74,.18);
  border: 1px solid rgba(22,163,74,.3);
  color: #DCFCE7;
}
.form-error-msg {
  background: rgba(255,215,0,.12);
  border: 1px solid rgba(255,215,0,.3);
  color: #FFF9C4;
}
.form-error-msg a { color: #FFD700; text-decoration: underline; }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.site-footer {
  background: var(--red-deep);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.2fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr; }
}

.footer-brand .footer-logo { margin-bottom: 1rem; }
.footer-tagline {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  margin-top: .75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-col { min-width: 120px; }
.footer-col-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: .9rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-col a:focus-visible { outline: 1px solid rgba(255,255,255,.5); outline-offset: 2px; border-radius: 2px; }

.footer-legal {
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-legal-inner {
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.legal-block {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
}
.legal-block strong { color: rgba(255,255,255,.8); }
.legal-block p + p { margin-top: .2rem; }
.legal-disclaimer {
  font-size: .77rem;
  color: rgba(255,255,255,.35);
  line-height: 1.7;
  max-width: 80ch;
}
.copyright {
  font-size: .8rem;
  color: rgba(255,255,255,.3);
  margin-top: .5rem;
}

/* ═══════════════════════════════════════════════════
   RAINBOW UNDERLINE UTILITY
═══════════════════════════════════════════════════ */
.rainbow-underline {
  position: relative;
  display: inline-block;
}
.rainbow-underline::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 3px;
  background: var(--rainbow);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE UTILITIES
═══════════════════════════════════════════════════ */
@media (max-width: 599px) {
  .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-stats { flex-direction: column; align-items: stretch; }
  .hero-stat { flex-direction: row; justify-content: space-between; padding: .6rem 1.2rem; }
  .stat-sep { width: 100%; height: 1px; }
  .vis-stack { max-width: 280px; }
  .cases-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus styles for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
